Video recording pipelines that work with tvsrc on iMX6 GStreamer

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Video recording pipelines that work with tvsrc on iMX6 GStreamer

Jump to solution
1,572 Views
madstrum
Contributor III

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?

Labels (3)
Tags (1)
0 Kudos
1 Solution
908 Views
madstrum
Contributor III

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

View solution in original post

0 Kudos
3 Replies
909 Views
madstrum
Contributor III

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

0 Kudos
908 Views
shengqiangai
Contributor II

Can you give me a sample that  how to use tvsrc  (gstreamer element ) to streaming a video on the network

0 Kudos
908 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

Hi mad strum,

Have you solved the questions in the thread you created?

Have a ncie day.

Best Regards

Dan

0 Kudos