mpegtsmux usage (or anything that can take 2 inputs)

Richard tuxbox.guru at gmail.com
Tue Apr 17 12:57:22 PDT 2012


Thanks all! typing made me re-read the code.. there was a typo in the
dynamic pad.

R

On 17 April 2012 20:53, Richard <tuxbox.guru at gmail.com> wrote:
> I go back on what I said earlier... I have no clue anymore what is wrong.
>
> gst-launch -m filesrc location=/home/richard/Gstreamer/BBC1_DVBS.ts !
> decodebin ! audioconvert ! audioresample ! lame ! mpegtsmux ! filesink
> location=/tmp/argh.ts
>
> The above command gives me an audio track in a mpegts container...
> exactly what the doctor ordered.  The C code below gives me a 0 byte
> file and its following the exact same logic.
>
> C Code here...
> http://pastebin.com/gByrXZ4U
>
> Anyone shed some light?
>
> Richard
>
>
>
> On 17 April 2012 18:19, Richard <tuxbox.guru at gmail.com> wrote:
>> Hi All,
>>
>> Rather frustrated now :D .. I have a Command line gst-launch doing
>> exactly what I want but translating that to C is proving a bit of a
>> pain :P The lowdown is that I want to transcode one TS file format to
>> a lower bitrate TS and sink to file, sounds really easy and for the
>> life of me I can't see the wood for the trees.
>>
>> so far the pipeline is
>> fileread->decodebin->audioQ,VideoQ etc etc....
>> Audio,video->mpegtsmux->filesink
>>
>> I can sink to alsa and ximage but I am lost how to re-combine back in
>> to a mpegtsmux component. I have looked at Ghost pads and sometime
>> pads, mouse pads of other pads and its quite confusing.
>>
>> Can someone explain how to re-combine the data back in to the pipeline?
>>
>> Regards,
>> Richard


More information about the gstreamer-devel mailing list