On Thu, Dec 22, 2016 at 8:53 AM David Alonso Grande <[email protected]>
wrote:
> Hello,
>
> I would like to get a CBR Mpeg2 TS over an UDP multicast generated with
> melted. I don't have any problem when using avformat consumer (not CBR, but
> working) but I don't manage to do it with cbrts consumer.
>
> I declare I have read these two links (like a thousand of times):
>
> http://www.mltframework.org/bin/view/MLT/ConsumerCbrts
> http://www.mltframework.org/bin/view/MLT/ConsumerCbrtsMore
>
>
ConsumerCbrtsMore has not been updated to include the new information about
direct UDP output for this consumer:
https://www.mltframework.org/blog/smpte_2022_2_output_added/
> And looked for examples in the mailing list. I've only found this post
> suitable for my needs:
>
> https://sourceforge.net/p/mlt/mailman/message/32866022/
>
>
That thread as well predates the UDP support added into cbrts.
> With this interesting part which I don't know how to use, thought it seems
> it would suit my needs.
>
> consumer = mlt.Consumer( profile, "avformat:udp://
> 224.224.224.224:1234?pkt_size=1316&reuse=1" )
> consumer.set( "real_time", 1 )
>
>
No, you do not want to do that.
> I am testing in a Debian 8 with bash 4.3.30
>
> Roadmap:
>
> - First: Manage to make it work with Melt.
> - Second: Analyze output with streamguru
> - Third: Manage to make it work in Melted and use it for playout.
>
> Ok, let's go step by step.
>
> 1. I am running this shell script directly in bash:
>
> melt -profile atsc_1080i_50 test_2_audios_dag.mp4 audio_index=all
> -consumer cbrts muxrate=10240000 \
> vcodec=mpeg2video bufsize=1835008 vb=7000k minrate=7000k maxrate=7000k
> g=15 bf=2 \
> acodec=mp2 ab=256k channels=4 channels.0=2 channels.1=2 \
> ds=3 real_time=-2
>
> which sends everything to stdout.
>
> 2. How do I capture that info from stdout and send it to an udp socket?
>
Use the cbrts consumer, but see all the options beginning with "udp." here:
https://www.mltframework.org/plugins/ConsumerCbrts
The comment on that page "The stream is always output to STDOUT at this
time." is also wrong and out-of-date - an oversight when updating these
docs for the new options. At a minimum, you must set only udp.address.
> I've seen your python example program in CbrtsMore web page, but how do I
> run it? I mean how do I connect my shell script output to the python
> program?
>
>
No longer needed.
> 3. How (where) can use this?
>
> consumer = mlt.Consumer( profile, "avformat:udp://
> 224.224.224.224:1234?pkt_size=1316&reuse=1" )
> consumer.set( "real_time", 1 )
>
> 4. And finally: If I manage to make this work in Melt, how can I put it in
> a Melted config file?
>
>
Then, it is simply a consumer you add just like any other: UADD ...
followed by a sequence of property setters USET.
> As you can see I am a rookie developer. Any help would be really
> appreciated.
>
> Regards,
>
> David
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today.http://sdm.link/intel
> _______________________________________________
> Mlt-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mlt-devel
>
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel