Couldn't determine type of stream

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Couldn't determine type of stream

myaspm
Hello, i was trying to merge two videos and sink it to a file. This pipe
creates a file but cant play it in Ubuntu, it gives the error "Couldn't
determine type of stream"

My pipeline is :

/"gst-launch-1.0 compositor name=mixer sink_1::alpha=0.5 sink_1::xpos=50
sink_1::ypos=50 !  queue2 ! filesink location=out1.mp4 filesrc
location=1.mp4 ! decodebin name=db ! videoscale ! videoconvert ! queue2 !
mixer. filesrc location=2.mp4 ! decodebin ! videoscale ! videoconvert !
queue2  ! mixer. db. ! audioconvert ! audioresample ! voaacenc"/

I believe i need to encode (or mux?) the videos somehow but couldn't get it
to work. What i need to do?

Thanks in advance.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Couldn't determine type of stream

Arjen Veenhuizen
In this case, you need to encode both video and audio stream and multiplex
them to make it playable. SOmething along the lines of (untested):

gst-launch-1.0 compositor name=mixer sink_1::alpha=0.5 sink_1::xpos=50
sink_1::ypos=50 !  queue ! x264enc ! h264parse ! mp4mux name=mux ! queue !
filesink location=out1.mp4 filesrc
location=1.mp4 ! decodebin name=db ! videoscale ! videoconvert ! queue !
mixer. filesrc location=2.mp4 ! decodebin ! videoscale ! videoconvert !
queue  ! mixer. db. ! audioconvert ! audioresample ! voaacenc ! aacparse !
mux.

Also, why did you use queue2? i changed it to queue since it should work
just fine in this case.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel