Sto tentando di eseguire un comando per gstreamer in modo che possa riprodurre più file video contemporaneamente. Così ho fatto qualche ricerca e ho trovato questo unoProvare a riprodurre più file video contemporaneamente in Gstreamer
gst-launch -e videomixer name=mix ! ffmpegcolorspace ! xvimagesink \
videotestsrc pattern=1 ! video/x-raw-yuv, framerate=5/1, width=320, height=180 ! \
videobox border-alpha=0 top=0 left=0 ! mix. \
videotestsrc pattern=15 ! video/x-raw-yuv, framerate=5/1, width=320, height=180 ! \
videobox border-alpha=0 top=0 left=-320 ! mix. \
videotestsrc pattern=13 ! video/x-raw-yuv, framerate=5/1, width=320, height=180 ! \
videobox border-alpha=0 top=-180 left=0 ! mix. \
videotestsrc pattern=0 ! video/x-raw-yuv, framerate=5/1, width=320, height=180 ! \
videobox border-alpha=0 top=-180 left=-320 ! mix. \
videotestsrc pattern=3 ! video/x-raw-yuv, framerate=5/1, width=640, height=360 ! mix.
Questa è l'immagine di output = http://i.stack.imgur.com/4lZWL.png
e qui è il codice che ho modificato che supponiamo di essere come questo
http://i.stack.imgur.com/Mdsc0.png
time gst-launch -e videomixer name=mix ! ffmpegcolorspace ! xvimagesink \
filesrc location=./Cityscape1Min_720p_mp4.mp4 ! video/x-raw-yuv, framerate=5/1, \
width=320, height=180 ! videobox border-alpha=0 top=0 left=0 ! mix. \
filesrc location=./Cityscape1Min_720p_mp4.mp4 ! video/x-raw-yuv, framerate=5/1, \
width=320, height=180 ! videobox border-alpha=0 top=0 left=-320 ! mix. \
filesrc location=./Cityscape1Min_720p_mp4.mp4 ! video/x-raw-yuv, framerate=5/1, \
width=320, height=180 ! videobox border-alpha=0 top=-180 left=0 ! mix. \
filesrc location=./Cityscape1Min_720p_mp4.mp4 ! video/x-raw-yuv, framerate=5/1, \
width=320, height=180 ! videobox border-alpha=0 top=-180 left=-320 ! mix.
Ma non funziona. Qualcuno ha altre soluzioni?
indovina che è necessario decodificare i file video. prova ad inserire 'decodebin2! videorate! 'prima di ogni elemento' videobox'. –
non è ancora possibile. errore detto Stream non contiene dati –
'Stream non contiene dati'? Sei sicuro di poter riprodurre il file da solo con una pipeline che non ha un videomixer? –