Really need help. Does anyone have an idea?<br><br><div class="gmail_quote">2011/3/7 hilal ergun <span dir="ltr"><<a href="mailto:hilalergunn@gmail.com">hilalergunn@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<br>
I am trying to mux two or more mpeg4 videos into mpegts.<br>
<br>
My pipeline;<br>
<br>
------- filesrc location=test1.avi ! ffdemux_avi !<br>
gst-launch<br>
-----------> mpegtsmux ! filesink location=test.mpts<br>
-------- filesrc location=test2.avi ! ffdemux_avi !<br>
<br>
This pipeline works fine, then "ffmpeg -i test.mpts" shows:<br>
<br>
Input #0, mpegts, from 'test.mpts':<br>
Duration: 00:03:00.00, start: 0.040000, bitrate: 3832 kb/s<br>
Program 1<br>
Stream #0.0[0x41]: Video: mpeg4, yuv420p, 592x238 [PAR<br>
147:148 DAR 42:17], 25 fps, 25 tbr, 90k tbn, 25 tbc<br>
Stream #0.1[0x40]: Video: mpeg4, yuv420p, 624x336 [PAR<br>
77:78 DAR 11:6], 1199 tbr, 90k tbn, 1199 tbc<br>
<br>
But i don't want this. I want these streams into 2 different<br>
programs.So I write a simple program and set 'prog-map' parameter.<br>
Then new ffmpeg output becomes:<br>
<br>
<br>
Input #0, mpegts, from 'test.mpts':<br>
Duration: 00:03:00.00, start: 0.040000, bitrate: 3832 kb/s<br>
Program 2<br>
Program 1<br>
Stream #0.0[0x41]: Video: mpeg4, yuv420p, 592x238<br>
[PAR 147:148 DAR 42:17], 25 fps, 25 tbr, 90k tbn, 25 tbc<br>
No Program<br>
Stream #0.1[0x40]: Video: mpeg4, yuv420p, 624x336<br>
[PAR 77:78 DAR 11:6], 1199 tbr, 90k tbn, 1199 tbc<br>
<br>
As you can see one of the streams is not associated with any program.<br>
Either I'm doing something or there is some<br>
problem with mpegtsmux. I'm using gst-plugins-bad is 0.10.19 and<br>
Gstreamer 0.10.30.<br>
<br>
I tried to debug mpegtsmux code and I can see that 'ts_data->prog_id'<br>
is properly set in the code. However, new streams<br>
don't seem correct. Does anybody have any idea about what may be wrong?<br>
<br>
Thanks.<br>
</blockquote></div><br>