I use melt 7.4.0, which came with my Linux Mint. I'm not sure whether I found a bug, a feature ;-) but I found it very strange.
I use MLT with XML (mlt) files, and some presents in dv_custom file. Let's assume I'd like to make a movie with an image and an audio. I have two separate files: one PNG, and one m4a (audio). Here's my XML file: <mlt> <producer id="audio" resource="file.m4a" /> <producer id="img" resource="file.png" /> <playlist id="clip-video"> <entry producer="img" in="0" out="500" /> </playlist> <playlist id="clip-audio"> <entry producer="audio" in="10000" out="10500" /> </playlist> <tractor id="track"> <multitrack> <track producer="clip-video" /> <track producer="clip-audio" /> </multitrack> </tractor> </mlt> It can be rendered to mp4 with the command: melt file.xml -consumer avformat:"video.mp4" acodec=aac vcodec=libx265 \ width=1280 height=720 frame_rate_num=30 frame_rate_den=1 frequency=48000 \ progressive=1 display_aspect_num=16 display_aspect_den=9 \ sample_aspect_num=1 sample_aspect_den=1 And the produced video.mp4 file is fine. When I use SDL consumer, though: melt file.xml the audio is out-of-sync with the clip-audio specified in the XML file. I have found a weird workaround for that problem, though. When I make a short video sequence from the PNG file: melt file.png out=30 -consumer avformat:"file.mp4" vcodec=libx265 \ width=1280 height=720 frame_rate_num=30 frame_rate_den=1 \ progressive=1 display_aspect_num=16 display_aspect_den=9 \ sample_aspect_num=1 sample_aspect_den=1 and use a single frame from this video in XML file, instead of PNG file producer: <mlt> <producer id="audio" resource="file.m4a" /> <producer id="frame-workaround" mlt_service="hold" resource="file.mp4" frame="1" /> <playlist id="clip-video"> <entry producer="frame-workaround" in="0" out="500" /> </playlist> <playlist id="clip-audio"> <entry producer="audio" in="10000" out="10500" /> </playlist> <tractor id="track"> <multitrack> <track producer="clip-video" /> <track producer="clip-audio" /> </multitrack> </tractor> </mlt> everything is fine in both rendered video.mp4, and in the SDL preview/consumer. Is it a problem with SDL consumer, or am I doing something wrong?
_______________________________________________ Mlt-devel mailing list Mlt-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mlt-devel