mpegtsmux usage (or anything that can take 2 inputs)

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

mpegtsmux usage (or anything that can take 2 inputs)

Richard
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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: mpegtsmux usage (or anything that can take 2 inputs)

Richard
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 <[hidden email]> 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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: mpegtsmux usage (or anything that can take 2 inputs)

Richard
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 <[hidden email]> 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 <[hidden email]> 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
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel