Hello,<br><br>I'm trying to convert a file containing transport stream into a regular AVI file. Since it's not possible (yet) to seek into a transport stream, I would like to convert it into a format where seeking is supported. My idea was to extract the video and audio streams and then to store them into an AVI container. <br>
<br>I made this pipeline: <br>gst-launch avimux name=mux ! filesink location=/tmp/test2.avi filesrc location=257.ts ! mpegtsdemux name=demux demux.video_0078 ! mux.video_00 demux.audio_0082 ! mux.audio_00 <br><br>This does not work and exits with the following errors: <br>
<br>Définition du pipeline à PAUSED...<br>Le pipeline est en phase de PREROLL...<br>ERREUR : de l'élément /GstPipeline:pipeline0/GstFileSrc:filesrc0 : Internal data stream error.<br>Information de débogage supplémentaire :<br>
gstbasesrc.c(2234): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:<br>streaming task paused, reason not-negotiated (-4)<br>ERROR : pipeline refuse to go into setup phase<br>Définition du pipeline à NULL...<br>
Libération du pipeline (FREE)...<br><br>(I translated the main info, rest is in french). <br><br>I do have a pipeline that convert the file: <br><br>gst-launch avimux name=mux ! filesink location=/tmp/test2.avi filesrc location=257.ts ! mpegtsdemux name=demux demux.video_0078 ! queue ! mpeg2dec ! ffmpegcolorspace ! mpeg2enc ! queue ! mux.video_00 demux.audio_0082 ! queue ! mad ! audioconvert ! lame ! queue ! mux.audio_00 <br>
<br>This one involves decoding and recoding video, which is useless since the formats are the same. I would like to just extract streams and store them into a different container. <br><br>Is it possible to make such pipeline ? Using avi is not a requirement. I just want to convert the transport stream into a format that supports seeking well. <br>
<br>Thanks for your help,<br><br>Julien <br><br>