Hi I've got a couple 1080i25 sources[1], [2] that I'm trying to output to a 1080p50 avformat consumer, and I seem to be struggling!
It seems that there's some interesting quirks in how mlt behaves contra how the yadif deinterlacer in ffmpeg works. I'm aiming for an output that looks like this: [3]; created using the following ffmpeg command: % ffmpeg -i 5sec.mov -vf yadif=1 5sec.mp4 So, my first attempt here was to try and get the avformat consumer to do the deinterlacing for me: % melt -profile atsc_1080i_50 -producer 5sec.mov -consumer avformat:lol1.mp4 -deinterlace This yielded this: [4]. Interestingly, this was a correctly interlaced 1080i25 file. Next up, I tried telling the consumer that I actually wanted a 50fps file. % melt -profile atsc_1080i_50 -producer 5sec.mov -consumer avformat:lol2.mp4 mlt_profile=atsc_1080p_50 However, this is where things started going wrong. The resulting file [5] had the correct number of frames, and the right number of frames per second; e.g. it was a 1080p50 file, but the content was 25p; where frames had been repeated to make up. Half of the temporal information had been lost. It appears yadif is used, but not in frame doubling mode. I then tried the following: % ffmpeg -i 5sec.mov -vf yadif=1 -c:v rawvideo -f nut pipe: > hueg.nut % melt -profile atsc_1080p_50 -verbose title-audio.mov hueg.nut -mix 25 -mixer luma -mixer mix:-1 -consumer avformat:lol3.mp4 This had the desired result [6]. I then tried using named pipes to pipe from ffmpeg to the avformat melt producer; but this did not work, as it appears the file is opened and closed twice. I'm trying to get the deinterlace to happen inside melt; so that I don't have to have another transcode step, or resort to piping / writing raw frames to files. Have any of you been able to do this successfully? Cheers in advance, David. [1] https://home.nuug.no/~daven/20170407-melt/5sec.mov [2] https://home.nuug.no/~daven/20170407-melt/title-audio.mov [3] https://home.nuug.no/~daven/20170407-melt/5sec.mp4 [4] https://home.nuug.no/~daven/20170407-melt/lol1.mp4 [5] https://home.nuug.no/~daven/20170407-melt/lol2.mp4 [6] https://home.nuug.no/~daven/20170407-melt/lol3.mp4 ------------------------------------------------------------------------------ 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