<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3429" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=823233902-28112008><FONT face=&#23435;&#20307; 
color=#0000ff size=2>more debug log needed, especially the caps of mpegtsdemux 
srcpads, if these srcpad caps are not compatible with avimux, these elements can 
not be connected into one pipeline.</FONT></SPAN></DIV>
<DIV>&nbsp;</DIV>
<DIV><SPAN class=823233902-28112008></SPAN><FONT face=&#23435;&#20307;><FONT 
color=#0000ff><FONT size=2>Z<SPAN class=823233902-28112008>hao 
Liang</SPAN></FONT></FONT></FONT><BR></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> Julien Pauty 
[mailto:julien.pauty@gmail.com] <BR><B>Sent:</B> Friday, November 28, 2008 6:48 
AM<BR><B>To:</B> Discussion of the development of GStreamer<BR><B>Subject:</B> 
[gst-devel] Pipeline to convert a transport stream into an AVI 
file<BR></FONT><BR></DIV>
<DIV></DIV>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&nbsp; filesrc location=257.ts ! 
mpegtsdemux name=demux demux.video_0078 ! mux.video_00&nbsp; demux.audio_0082 
!&nbsp; 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&nbsp;: de l'élément 
/GstPipeline:pipeline0/GstFileSrc:filesrc0&nbsp;: Internal data stream 
error.<BR>Information de débogage supplémentaire&nbsp;:<BR>gstbasesrc.c(2234): 
gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:<BR>streaming 
task paused, reason not-negotiated (-4)<BR>ERROR&nbsp;: 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&nbsp; filesrc location=257.ts ! mpegtsdemux 
name=demux demux.video_0078 !&nbsp; queue&nbsp; ! mpeg2dec ! ffmpegcolorspace ! 
mpeg2enc ! queue ! mux.video_00&nbsp; 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></BODY></HTML>