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
>>
>
------------------------------------------------------------------------------
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