Hello,<br><br>Here are the capabilities of avimux and mpegtsdemux:<br><br>avimux:<br><br>audio/mpeg<br><br>SINK template: 'audio_%d'<br>mpegversion: 1<br> layer: [ 1, 3 ]<br> rate: [ 1000, 96000 ]<br>
channels: [ 1, 2 ]<br>audio/mpeg<br> mpegversion: 4<br> rate: [ 1000, 96000 ]<br> channels: [ 1, 2 ]<br><br>SINK template: 'video_%d'<br>video/mpeg<br> width: [ 16, 4096 ]<br> height: [ 16, 4096 ]<br>
framerate: [ 0/1, 2147483647/1 ]<br> mpegversion: { 1, 2, 4 }<br> systemstream: false<br><br>mpegtsdemux:<br><br>audio/mpeg<br> mpegversion: { 1, 4 }<br><br>video/mpeg<br> mpegversion: { 1, 2, 4 }<br> systemstream: false<br>
<br>To me they seem compatible.<br><br>I'm using the last version of gstreamer. For the mpegtsdemux I'm using the CVS version, only for this plugin though. I wanted to test the very last version. <br><br>Using the ffdemux_mpegts, I'm able to convert the file, but the sound is bad. It sounds like if the sound is muted several times per second. This is the pipeline i'm using: <br>
<br>gst-launch avimux name=mux ! filesink location=/tmp/test2.avi sync=true filesrc location=257.ts do-timestamp=true ! ffdemux_mpegts name=demux demux.video_00 ! 'video/mpeg' ! queue ! mux.video_00 demux.audio_00 ! 'audio/mpeg' ! queue ! mad ! audioconvert ! lame ! queue ! mux.audio_00<br>
<br>Thank you,<br><br>Julien <br><br><br><div class="gmail_quote">2008/11/28 Zhao Liang-E3423C <span dir="ltr"><<a href="mailto:E3423C@motorola.com">E3423C@motorola.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div>
<div dir="ltr" align="left"><span><font color="#0000ff" face="ËÎÌå" 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> </div>
<div><span></span><font face="ËÎÌå"><font color="#0000ff"><font size="2">Z<span>hao
Liang</span></font></font></font><br></div>
<div dir="ltr" align="left" lang="en-us">
<hr>
<font face="Tahoma" size="2"><b>From:</b> Julien Pauty
[mailto:<a href="mailto:julien.pauty@gmail.com" target="_blank">julien.pauty@gmail.com</a>] <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></div><div class="Wj3C7c">
<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 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></div></div></div>
<br>-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge<br>
Build the coolest Linux based applications with Moblin SDK & win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br>