1
我使用videomixer2创建了一个图片镶嵌,并且我想在我的一张图片周围添加边框。我试图使用videoscale“加边框”属性,但它不起作用。使用GStreamer将边框添加到视频流0.10
这里是我的管道:
gst-launch videomixer2 sink_0::ypos=200 sink_0::xpos=200 \
sink_2::xpos=200 \
sink_3::xpos=400 \
sink_4::ypos=200 \
name=mixer ! \
ffmpegcolorspace ! xvimagesink \
uridecodebin uri=http://upload.wikimedia.org/wikipedia/commons/thumb/2/2d/Nostalgie_logo_simple.png/120px-Nostalgie_logo_simple.png ! \
videoscale ! ffmpegcolorspace ! imagefreeze ! \
textoverlay font-desc="Sans 24" text="Nostalgie" valign=top shaded-background=true ! \
textoverlay font-desc="Sans 24" text="PLAYING" valign=bottom shaded-background=true ! \
"video/x-raw-yuv, format=(fourcc)AYUV, width=200, height=200" ! mixer. \
uridecodebin uri=http://www.logotheque.fr/6396-2/logo+RMC+INFO.jpg ! \
videoscale ! ffmpegcolorspace ! imagefreeze ! \
textoverlay font-desc="Sans 24" text="RMC" valign=top shaded-background=true ! \
"video/x-raw-yuv, format=(fourcc)AYUV, width=200, height=200" ! mixer. \
uridecodebin uri=http://upload.wikimedia.org/wikipedia/fr/1/14/Logo_vibration.JPG ! \
videoscale add-borders=true ! ffmpegcolorspace ! imagefreeze ! \
textoverlay font-desc="Sans 24" text="Vibration" valign=top shaded-background=true ! \
"video/x-raw-yuv, format=(fourcc)AYUV, width=200, height=200" ! mixer. \
uridecodebin uri=http://upload.wikimedia.org/wikipedia/commons/b/b4/France_Inter.png ! \
videoscale ! ffmpegcolorspace ! imagefreeze ! \
textoverlay font-desc="Sans 24" text="France Inter" valign=top shaded-background=true ! \
"video/x-raw-yuv, format=(fourcc)AYUV, width=200, height=200" ! mixer. \
uridecodebin uri=http://upload.wikimedia.org/wikipedia/commons/thumb/6/64/France_Info.png/120px-France_Info.png ! \
videoscale ! ffmpegcolorspace ! imagefreeze ! \
textoverlay font-desc="Sans 24" text="France Info" valign=top shaded-background=true ! \
"video/x-raw-yuv, format=(fourcc)AYUV, width=200, height=200" ! mixer.
的“附加边界”属性是放在第三源。我错过了什么?如果无法使用videoscale,我怎样才能在我的视频流附近添加边框?
谢谢你的帮助。
你的意思是有一个相同的视频大小的窗口,并移动与xpos和ypos视频人为地创建一个边框? 没有办法围绕视频“干净地”创建边框? – user2935617
我很讨厌你也可以用videobox – martien9