Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
492 views
in Technique[技术] by (71.8m points)

interlacing - Interlaced mpeg2 video with avenc_mpeg2video gstreamer

The following GStreamer pipeline generates an mpeg2ts with an mpeg2 video track.

gst-launch-1.0 videotestsrc pattern=ball num-buffers=900 ! "video/x-raw, format=(string)I420, 
width=(int)704, height=(int)576, framerate=(fraction)25/1" ! avenc_mpeg2video ! 
mpegtsmux ! filesink location=test.ts

I need the video to be interlaced, but when adding the interlace component, I get:

gst-launch-1.0 videotestsrc pattern=ball num-buffers=900 ! "video/x-raw, format=(string)I420, 
width=(int)704, height=(int)576, framerate=(fraction)25/1" ! interlace ! avenc_mpeg2video ! 
mpegtsmux name=mux ! filesink location=test.ts
WARNING: erroneous pipeline: could not link interlace0 to avenc_mpeg2video0

Which is odd to me, as both components seem to support e.g. I420 on their pads. I've tried adding various capsfilters between interlace and avenc_mpeg2video, but to no avail - it just fails connecting in other ways. I believe the two should be compatible - can someone explain why the above fails and maybe even show what a working pipeline should look like?

question from:https://stackoverflow.com/questions/65923072/interlaced-mpeg2-video-with-avenc-mpeg2video-gstreamer

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...