Your problem is "consumer.udp.muxrate=10240000" It should NOT have a "udp."
in there.
Your muxrate and video bitrates and buffersize are going to be a problem
for HD. I have nothing better to recommend that what I have already
suggested on the ConsumerCbrtsMore page.
While testing this, I could not get playback to work with FFmpeg v3.x. When
using the MLT avformat consumer, it no longer uses the pkt_size and creates
split packets that cannot be used. When using the cbrts consumer, it is
only generating NULL packets. Something broke in the interface between MLT
and FFmpeg, and I lack the motivation to fix. If playback of avformat is
working for you, then you might have better luck with cbrts.


On Tue, Dec 27, 2016 at 6:41 AM David Alonso Grande <dalon...@gmail.com>
wrote:

> Hello Dan, I reply in line.
>
> On 23 December 2016 at 22:02, Dan Dennedy <d...@dennedy.org> wrote:
>
> What is the closest melt command line that works?
>
>
> I am trying with this (simplier) Melt command which is working fine for me:
>
> melt -profile atsc_1080i_50 test_1.mp4 \
> -consumer cbrts udp.address=224.168.225.202 udp.port=5678 udp.ttl=12
> udp.reuse=1 udp.rtp=0 muxrate=10240000 udp.buffer=1000 \
> vcodec=mpeg2video bufsize=5505024 vb=5M minrate=5M maxrate=5M g=15 bf=2 \
> acodec=mp2 ab=160k threads=3 real_time=1
>
>
>
> Next, incrementally change it closer to your goal testing it at each step
> until you figure out that X breaks it.
>
>
>
> I have put it in a Melted config file (as simple as possible) and I am
> still getting the same floating point exception from Melted.
>
> (7) loaded clip /home/mlt/test_files/test_1.mp4
> Floating point exception
>
> This is the reduced config file I am trying with:
>
> # You can add any sequence of MVCP commands here to initialize the server.
>
> # SET HOME FOLDER FOR CLIPS
> set root=/home/mlt/test_files
>
> ####    ADD CBRTS OUTPUTS    ###
> UADD cbrts
>
> USET U0 consumer.mlt_profile=atsc_1080i_50
>
> USET U0 consumer.udp.address=224.168.225.202
> USET U0 consumer.udp.port=5678
> USET U0 consumer.udp.ttl=12
> USET U0 consumer.udp.reuse=1
> USET U0 consumer.udp.rtp=0
>
> # MUXRATE PARAMS
> USET U0 consumer.udp.muxrate=10240000
> USET U0 consumer.udp.buffer=1000
>
> ###   CONFIG U0 IN MPEG-2 FORMAT   ###
> USET U0 consumer.f=mpegts
> USET U0 consumer.vcodec=mpeg2video
> USET U0 consumer.bufsize=5505024
> USET U0 consumer.vb=5M
> USET U0 consumer.minrate=5M
> USET U0 consumer.maxrate=5M
> USET U0 consumer.g=15
> USET U0 consumer.bf=2
>
> USET U0 consumer.acodec=mp2
> USET U0 consumer.ab=160k
>
> USET U0 consumer.threads=3
> USET U0 consumer.real_time=1
>
>
> #   LOAD CLIPS IN U0 --> CBRTS
> LOAD U0 test_1.mp4
>
> PLAY U0
>
>
>
> Are you certain that the FFmpeg mp2 encoder supports 16 channels?
>
>
> Yes, I am sure. Indeed if I change (in the first config file I've sent you
> in this post) the cbrts UADD line with this one:
>
> UADD avformat:udp://224.168.225.202:2001?pkt_size=1316\&reuse=1
> <http://224.168.225.202:2001?pkt_size=1316%5C&reuse=1>
>
> Melted is working perfectly.
>
>
>
> Why do you set the mlt_profile to 1080i but then set s=1280x720? Pick one
> resolution and set it as the profile.
>
>
> In my last test I have removed this option (s=1280x720) and left only the
> profile but I am still getting the floating point exception error when
> launching melted.
>
> Of course I am testing with the same input clip (test_1.mp4) in Melt and
> Melted (the same machine, the same shell version an so on).
> I don't know what else to try to make it work in Melted. I can grab more
> information for you if needed with gdb or ddd (with a little piece of
> advice though I've never used the debugger before).
>
> Thank you for your help.
>
> Regards,
>
> David
>
>
>
>
> On Fri, Dec 23, 2016 at 4:42 AM David Alonso Grande <dalon...@gmail.com>
> wrote:
>
> Hello Dan,
>
> Thank you for you help. I've managed to move forward but still I don't get
> to play anything.
> I am getting a *Floating point exception* from Melted server.
>
> This is the config file I am using in melted:
>
> ##  ADD root path
> set root=/home/mlt/test_files
>
> ####    ADD CBRTS OUTPUTS    ###
> UADD cbrts
>
> USET U0 consumer.udp.address=224.168.225.202
> USET U0 consumer.udp.port=2002
> USET U0 consumer.udp.ttl=12
>
> USET U0 consumer.udp.interface=lo
>
> # MUXRATE PARAMS
> USET U0 consumer.udp.muxrate=10240000
>
> #INFINITE LOOP
> USET U0 eof=loop
> # CONFIG VIDEO PARAMS
> USET U0 consumer.mlt_profile=atsc_1080i_50
> USET U0 consumer.terminate_on_pause=0
> USET U0 consumer.real_time=1
> USET U0 consumer.channels=16
> USET U0 producer.audio_index=all
> USET U0 consumer.channels.0=2
> USET U0 consumer.channels.1=2
> USET U0 consumer.channels.2=2
> USET U0 consumer.channels.3=2
> USET U0 consumer.channels.4=2
> USET U0 consumer.channels.5=2
> USET U0 consumer.channels.6=2
> USET U0 consumer.channels.7=2
>
> USET U0 consumer.threads=2
>
> ###   CONFIG U0 IN MPEG-2 FORMAT   ###
> USET U0 consumer.f=mpegts
> USET U0 consumer.vcodec=mpeg2video
> USET U0 consumer.vb=7000k
> USET U0 consumer.s=1280x720
> USET U0 consumer.acodec=mp2
> USET U0 consumer.ab=256k
> USET U0 consumer.minrate=7000k
> USET U0 consumer.maxrate=7000k
> USET U0 consumer.bufsize=1835008
> USET U0 consumer.bf=2
> USET U0 consumer.g=15
>
> #   LOAD CLIP IN U0
> LOAD U0 test_1.mp4
> PLAY U0
>
> I don't get any error from Melted config file (all 200 codes), but when I
> uncomment the PLAY U0 line, I get:
>
> (5) Starting server on 5250.
> (7) SET root = /home/mlt/test_files
> [h264 @ 0x10f5440] Reinit context to 1920x1088, pix_fmt: yuv420p
> [h264 @ 0x1141ae0] Reinit context to 1920x1088, pix_fmt: yuv420p
> [h264 @ 0x1155ee0] Reinit context to 1920x1088, pix_fmt: yuv420p
> [producer avformat] audio: total_streams 1 max_stream 1 total_channels 2
> max_channels 2
> (7) loaded clip /home/mlt/test_files/test_1.mp4
> *Floating point exception*
>
> And looking into syslog, I see this:
>
> Dec 23 05:07:15 OVE-DAG kernel: [5532015.110775] traps: melted[9230] trap
> divide error ip:7f3a1a728ba7 sp:7ffcc4d29e70 error:0 in
> libmltplusgpl.so[7f3a1a724000+10000]
>
> I am using melt 6.3.0. in Debian 8.
>
> I've read in forums about this issue but have not found much info apart
> from this thread:
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681319
>
> What can I do with this error?
>
> Regards,
>
> David
>
>
>
>
> On 22 December 2016 at 18:09, Dan Dennedy <d...@dennedy.org> wrote:
>
> On Thu, Dec 22, 2016 at 8:53 AM David Alonso Grande <dalon...@gmail.com>
> 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
> Mlt-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mlt-devel
>
>
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most 
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to