Hi,
Trying to record video via tvsrc through the adv7180, using imx6quad, using the freescale multimedia libraries.
So far I'm only able to get the following pipelines to work reliably on endurance runs of 15-30min:
gst-launch -e tvsrc ! vpuenc codec=6 bitrate=1000000 ! flvmux ! filesink location=output.flv sync=false
gst-launch -e tvsrc ! vpuenc codec=6 bitrate=1000000 ! matroskamux ! filesink location=output.mkv sync=false
Have tried mp4mux, qtmux and avimux, but these give me various errors.
I'm particularly interested in avimux as my colleague mostly work in windows and with virtualdub. However, when I subsitute avimux in place of flvmux or matroskamux, the video is corrupted. When I try to play it back it is extremely jittery, as if it were playing at 1fps. Taking out vpuenc in the pipeline for avimux (recording raw video) causes the video to be corrupted as well. See greenish stuff, and no video content.
I've also tried using queue , queue2 and multiqueue in the pipeline but they didn't make much of a difference in my video output.
Have anyone got avimux to work with a similar setup?
已解决! 转到解答。
Nevermind, I got it to work
gst-launch tvsrc fps-n=25 ! 'video/x-raw-yuv, width=(int)720, height=(int)576, framerate=(fraction)25/1' ! vpuenc codec=6 ! avimux ! queue2 max-size-buffer=1 max-size-bytes=0 max-size-time=0 ! filesink location=output.avi
Nevermind, I got it to work
gst-launch tvsrc fps-n=25 ! 'video/x-raw-yuv, width=(int)720, height=(int)576, framerate=(fraction)25/1' ! vpuenc codec=6 ! avimux ! queue2 max-size-buffer=1 max-size-bytes=0 max-size-time=0 ! filesink location=output.avi