Hi My dvsdk version is 4_02_00_06
set TIVidenc1 element properties bitRate=1500000 , pipeline work fine !
But use VLC to receive the MPEG-TS ,VLC report the bitRate > 1500000 bit/s ,some times the maxbitRate achieve to 3M bit/s
It seems TIVidenc1 bitRate Parameter is Invalid ! Why ?
The following gst pipeline to test .
gst-launch -e v4l2src always-copy=FALSE queue-size=4 ! 'video/x-raw-yuv,format= (fourcc)UYVY,width=720,height=576,framerate=(fraction)25/1' ! TIPrepEncBuf cont iguousInputFrame=TRUE numOutputBufs=4 ! queue max-size-buffers=4 max-size-byte s=0 ! TIVidenc1 codecName=h264enc engineName=codecServer bitRate=1500000 ! dma iperf ! mux. alsasrc ! audio/x-raw-int,rate=48000,channels=2 ! ffenc_mp2 bitrat e=64000 ! mux. mpegtsmux name=mux ! queue ! rtpmp2tpay ! udpsink port=8554 host =192.168.1.3
================================================================================================
Try set TIvidenc1 element properties rateControlPreset=2 (CBR),or encodingPreset =3 .
But gst pipeline can't work, TIVidenc1 has error! (failed to create video encoder: h264enc)
Use The following gst pipeline to test
=================================================================================================
gst-launch -e v4l2src always-copy=FALSE queue-size=4 ! 'video/x-raw-yuv,format= (fourcc)UYVY,width=720,height=576,framerate=(fraction)25/1' ! TIPrepEncBuf cont iguousInputFrame=TRUE numOutputBufs=4 ! queue max-size-buffers=4 max-size-byte s=0 ! TIVidenc1 bitRate=1500000 rateControlPreset=2 codecName=h264enc engineNa me=codecServer ! dmaiperf ! mux. alsasrc ! audio/x-raw-int,rate=48000,channels= 2 ! ffenc_mp2 bitrate=64000 ! mux. mpegtsmux name=mux ! queue ! rtpmp2tpay ! u dpsink port=8554 host=192.168.1.3
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
WARNING: from element /GstPipeline:pipeline0/GstDmaiperf:dmaiperf0:
There is no codec present that can handle the stream's type. Additional debug info: gsttidmaiperf.c(285): gst_dmaiperf_start (): /GstPipeline:pipeline0/GstDmaiperf: dmaiperf0: Engine name not specified, not printing DSP information Setting pipeline to PLAYING ...
New clock: GstAudioSrcClock ERROR: from element /GstPipeline:pipeline0/GstTIVidenc1:tividenc10: failed to cr eate video encoder: h264enc
Additional debug info: gsttividenc1.c(1272): gst_tividenc1_codec_start (): /GstPipeline:pipeline0/GstTI Videnc1:tividenc10 Execution ended after 482940673 ns. Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...