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