Hi,
I'm having trouble exporting a playlist that contains blanks. Here is a small
program to reproduce the problem:
mlt.Factory().init()
profile = mlt.Profile()
playlist = mlt.Playlist()
playlist.append(mlt.Producer(profile, "color:red"), 0, 25)
playlist.blank(25)
playlist.append(mlt.Producer(profile, "color:green"), 0, 25)
consumer = mlt.Consumer(profile, "avformat")
consumer.set("target", "export.mp4")
consumer.connect(playlist)
consumer.start()
while consumer.is_stopped() == 0:
time.sleep(1)
The output:
[libx264 @ 0x7f61740023c0] interlace + weightp is not implemented
[mp4 @ 0x7f6174000f40] Using AVStream.codec to pass codec parameters to
muxers is deprecated, use AVStream.codecpar instead.
[mp4 @ 0x7f6174000f40] Using AVStream.codec to pass codec parameters to
muxers is deprecated, use AVStream.codecpar instead.
[aac @ 0x7f6174004e40] Input contains (near) NaN/+-Inf
[consumer avformat] error with audio encode: -22 (frame 28)
[aac @ 0x7f6174004e40] Input contains (near) NaN/+-Inf
[consumer avformat] error with audio encode: -22 (frame 28)
[aac @ 0x7f6174004e40] Input contains (near) NaN/+-Inf
[consumer avformat] error with audio encode: -22 (frame 29)
[aac @ 0x7f6174004e40] 5 frames left in the queue on closing
Without
playlist.blank(25)
the export works fine.
I assumed that if no producer exist to produce sound, silence will be used. Is
that assumption wrong? Do I need to insert a producer for silence? Or is this
an issue with the aac encoder?
Versions:
mlt: 6.26.1
ffmpeg: 4.4.1
/Rickard
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel