Video recording pipelines that work with tvsrc on iMX6 GStreamer

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Video recording pipelines that work with tvsrc on iMX6 GStreamer

跳至解决方案
1,882 次查看
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?

标签 (3)
标记 (1)
0 项奖励
回复
1 解答
1,218 次查看
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 项奖励
回复
3 回复数
1,219 次查看
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 项奖励
回复
1,218 次查看
shengqiangai
Contributor II

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

0 项奖励
回复
1,218 次查看
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 项奖励
回复