[gst-devel] TransportStream to mp4

bielbola carles.b at vector3.es
Wed Jun 16 10:30:10 CEST 2010


Hello,

I'm a programmer in Barcelona, with one year of experience in GStreamer. I'm
trying to remux a TransportStream with H.264 video and AAC audio to an mp4
file without reencode the stream information. If I try to do it separately,
it means a mp4 file with only the video stream an a mp4 file with the audio,
it works fine, but when I try tu mux both streams, the pipe hangs in
PREROLLING state. I'm quite sure that the problem is with the mpegtsdemux,
in fact, for mux both streams I'm using my own mp4 muxer, and it doesn't
appear that the problem whas here.

I write the pipe that I'm using via gst-launch (In Windows... I have not
tested yet in Linux)

This one works fine:

gst-launch-0.10.exe filesrc location="D:/temp/GoiTB/sample.h264" !
mpegtsdemux name=demux demux. v3qtmuxer silent=false name=mux mux. !
filesink location="D:/temp/GoiTB/sample.mp4" demux.video_0810 ! video/x-h264
! queue ! mux.video_0

This one too

gst-launch-0.10.exe filesrc location="D:/temp/GoiTB/sample.h264" !
mpegtsdemux name=demux demux. v3qtmuxer silent=false name=mux mux. !
filesink location="D:/temp/GoiTB/sample.mp4" demux.audio_0814 ! audio/mpeg !
queue ! mux.audio_0

But together it hangs after PREROLLING state

gst-launch-0.10.exe filesrc location="D:/temp/GoiTB/sample.h264" !
mpegtsdemux name=demux demux. v3qtmuxer silent=false name=mux mux. !
filesink location="D:/temp/GoiTB/sample.mp4" demux.video_0810 ! video/x-h264
! queue ! mux.video_0 demux.audio_0814 ! audio/mpeg ! queue ! mux.audio_0

The same happens if I don't try to remux the streams an only write both of
them in a separate file... for example.

gst-launch-0.10.exe filesrc location="D:/temp/GoiTB/sample.h264" !
mpegtsdemux name=demux demux.video_0810 ! queue ! filesink
location="D:/temp/GoiTB/sample.video" demux.audio_0814 ! queue ! filesink
location="D:/temp/GoiTB/sample.audio"

Can anyone help me?

Thanks a lot and sorry my poor English.

Carles Bolaños




-- 
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/TransportStream-to-mp4-tp2257060p2257060.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.




More information about the gstreamer-devel mailing list