Tool/software: Linux
hello,
I used this command to capture and encode into a MP4 file from the website:. processors.wiki.ti.com/.../Processor_Training:_Multimedia
gst-launch-1.0 -e v4l2src device=/dev/video1 num-buffers=1000 io-mode=4 ! 'video/x-raw,
format=(string)YUY2, width=(int)1280, height=(int)720, framerate=(fraction)30/1' ! vpe num-input-buffers=8 !
queue ! ducatimpeg4enc bitrate=4000 ! queue ! mpeg4videoparse ! qtmux ! filesink location=y.mp4
But the properties of the Mp4 file showed that its framerate was 23.And the bitrate of the file was 4058 kbps.
However, when I used this command:
gst-launch-1.0 videotestsrc num-buffers=500 ! 'video/x-raw,format=(string)YUY2, width=(int)1280, height=(int)720, framerate=(fraction)30/1' ! vpe num-input-buffers=8 ! queue ! ducatimpeg4enc bitrate=4000 ! queue ! mpeg4videoparse ! qtmux ! filesink location=x.mp4
it worked fine and didn't have any problem of its framerate and bitrate:
And my camera can provide 1280x720 at 30 fps.And the version of my PSDK is 4.0.
So,could u tell me the reason of the problem and give me some advice to solve this problem.
Thanks®ards!
