gstreamer에서 여러 개의 비디오 파일을 동시에 재생할 수 있도록 명령을 내리고 있습니다. 그래서 여기에 몇 가지 연구를하고 이것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.
이 출력 이미지 = http://i.stack.imgur.com/4lZWL.png
을 발견하고 내가 그이
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.
처럼되고 가정 수정 된 코드
하지만 작동하지 않습니다. 누구나 다른 해결책이 있습니까?
비디오 파일을 디코딩해야합니다. 'decodebin2를 삽입 해보십시오! 'videobox' 요소 앞에 'videorate!'를 추가하십시오. –
여전히 할 수 없습니다. 오류는 스트림에 데이터가 없음을 나타냅니다. –
'스트림에는 데이터가 없습니다'? videomixer가없는 파이프 라인으로 파일을 단독으로 재생할 수 있습니까? –