On 7.08.2013 6:38, Dan Dennedy wrote:
> On Tue, Aug 6, 2013 at 1:00 AM, Alar Sing <alar.s...@err.ee> wrote:
>> Hello,
>>
>> I'm testing melt for internet broacasting.
>> My setup is that i have decklink sdi card for live broadcast input and
>> multiple h264 outputs for different screen sizes.
>> Everything is fine when I one consumer:
>>
>> melt -profile square_pal_wide consumer:decklink: profile=dv_pal_wide
>> -consumer avformat:rtmp://host/live/test properties=err/x264-medium-main
>>
>> Sample picture from output 
>> http://londiste.etv.ee/users/arclyde/melt-normal.PNG
>>
>> But if I dry to use more than one consumer then there is problem: my wide
>> screen input is compresse to 4:3
>>
>> melt -profile square_pal_wide consumer:decklink: profile=dv_pal_wide
>> -consumer avformat:rtmp://host/live/testm
>> properties=err/x264-medium-baseline -consumer avformat:rtmp://host/live/test
>> properties=err/x264-medium-main
>>
>> Sample picture from output 
>> http://londiste.etv.ee/users/arclyde/melt-broken.PNG
> I found a bug and pushed a fix for it into git. Are in a position to
> build MLT yourself?
Latest source from git fixed my problem. Thank you.
>> Profiles are from mlt source.
>> My properties for baseline
>> http://londiste.etv.ee/users/arclyde/x264-medium-baseline
>> My properties for main http://londiste.etv.ee/users/arclyde/x264-medium-main
>>
>> There is documentation for using consumer multi (
>> http://www.mltframework.org/bin/view/MLT/ConsumerMulti )
> I see some of the documentation is not properly escaped for HTML. I
> need to improve my script that generates these pages. You can also
> view it with "melt -query consumer=multi".
>
>> melt -profile square_pal_wide consumer:decklink: profile=dv_pal_wide
>> -consumer multi 0=avformat:rtmp://host/live/testm
>> 0.properties=err/x264-medium-baseline 1=avformat:rtmp://host/live/test
>> 1.properties=err/x264-medium-main
>>
>> But this gives error: *** Error in `melt': double free or corruption
>> (!prev): 0x00007f52d006c0e0 ***
> I think the problem here is that the preset failed to load, then
> encoding setup was rejected by libavcodec, and it failed miserably.
> When you try to refer to a preset from the installation path, then
> there is some "lookup magic" that might not be working here.
>
> Also, the documentation "You can put these into a MLT properties file
> and supply that to this consumer." is a little confusing or
> misleading. It means that if you know the MLT properties file syntax,
> you can put all of these options into a text file and supply that text
> file name as an argument to the multi consumer. For example:
> $ melt ... -consumer multi:my.properties
>
> where my.properties contains something like:
> 0=decklink
> .mlt_profile=atsc_1080i_50
> .buffer=50
> .prefill=1
> 1=sdl
> .mlt_profile=quarter_pal
> .buffer=50
> .prefill=1
>
> or as a YAML file:
>
> - mlt_service: decklink
>    mlt_profile: atsc_1080i_5994
>    buffer: 3
> - mlt_service: sdl
>    mlt_profile: quarter_ntsc
> - mlt_service: avformat
>    target: test.dv
>    mlt_profile: dv_ntsc
>    properties: DV
>
Tested with
melt -profile square_pal_wide consumer:decklink: profile=dv_pal_wide 
-filter crop top=4 -consumer multi:err.properties
Output was
[swscaler @ 0x7f20800016e0] Warning: data is not aligned! This can lead 
to a speedloss
[mp2 @ 0x7f20c002fb60] Channel layout not specified
[mp2 @ 0x7f20b8013920] Channel layout not specified
[mp2 @ 0x7f20b0013920] Channel layout not specified
[mpeg @ 0x7f20b800b3c0] VBV buffer size not set, muxing may fail
[mpeg @ 0x7f20c0027620] VBV buffer size not set, muxing may fail
[mpeg @ 0x7f20c0027620] Encoder did not produce proper pts, making some up.
[mpeg @ 0x7f20b000b3c0] VBV buffer size not set, muxing may fail

My err.properties file:
0=avformat:rtmp://host/live/testm
.mlt_profile=err_low
.properties=err/x264-medium-baseline
1=avformat:rtmp://host/live/test
.mlt_profile=err_normal
.properties=err/x264-medium-main
2=avformat:rtmp://host/live/testh
.mlt_profile=err_high
.properties=err/x264-medium-high

It seems like properties is not loaded and producer avformat uses wrong 
settings.


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Mlt-devel mailing list
Mlt-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mlt-devel

Reply via email to