+ Reply to Thread
Results 31 to 41 of 41
-
__________________________________________________ _______________
[Attachment 30541 - Click to enlarge] -
Code:
ffmpeg -y -i C0104.MXF -vf yadif=1:tff,scale=720:576,colormatrix=bt709:bt601,interlace -an -pix_fmt yuv422p -c:v rawvideo -f rawvideo - | ffmbc -y -f rawvideo -pix_fmt yuv422p -s 720x576 -r 25 -i - -i C0104.MXF -vf colormatrix=bt709:bt601 -map 0:0 -acodec pcm_s24le -map_audio_channel 1:1:0:0:1:0 -map_audio_channel 1:2:0:0:1:1 -map_audio_channel 1:3:0:0:1:2 -map_audio_channel 1:4:0:0:1:3 -map_audio_channel 1:5:0:0:1:4 -map_audio_channel 1:6:0:0:1:5 -map_audio_channel 1:7:0:0:1:6 -map_audio_channel 1:8:0:0:1:7 -target imx50 thisdontvibrate.mxf
without the -map 0:0 image vibrate :=) -
but seems to me that the 2° adding colormatrix in ffmbc results in wrong levels, seems to me that using only one colormatrix 709-->601 in ffmpeg is correct
Code:ffmpeg -y -i C0104.MXF -vf yadif=1:tff,scale=720:576,colormatrix=bt709:bt601,interlace -sws_flags lanczos+accurate_rnd -an -pix_fmt yuv422p -c:v rawvideo -f rawvideo - | ffmbc -y -f rawvideo -pix_fmt yuv422p -s 720x576 -r 25 -i - -i C0104.MXF -map 0:0 -acodec pcm_s24le -map_audio_channel 1:1:0:0:1:0 -map_audio_channel 1:2:0:0:1:1 -map_audio_channel 1:3:0:0:1:2 -map_audio_channel 1:4:0:0:1:3 -map_audio_channel 1:5:0:0:1:4 -map_audio_channel 1:6:0:0:1:5 -map_audio_channel 1:7:0:0:1:6 -map_audio_channel 1:8:0:0:1:7 -target imx50 output20.mxf
-
about the colormatrix:
this is original camera-recording of the broadcast bars IMX: https://www.dropbox.com/s/v8tzb23ytsyrbc4/barsIMX.MXF?dl=0
and this the HD bars: https://www.dropbox.com/s/06ixtq6rr8slth4/barsHD.MXF?dl=0
applying
Code:ffmpeg -y -i barsHD.MXF -vf yadif=1:tff,scale=720:576,colormatrix=bt709:bt601,interlace -sws_flags lanczos+accurate_rnd -an -pix_fmt yuv422p -c:v rawvideo -f rawvideo - | ffmbc -y -f rawvideo -pix_fmt yuv422p -s 720x576 -r 25 -i - -i barsHD.MXF -map 0:0 -acodec pcm_s24le -map_audio_channel 1:1:0:0:1:0 -map_audio_channel 1:2:0:0:1:1 -map_audio_channel 1:3:0:0:1:2 -map_audio_channel 1:4:0:0:1:3 -map_audio_channel 1:5:0:0:1:4 -map_audio_channel 1:6:0:0:1:5 -map_audio_channel 1:7:0:0:1:6 -map_audio_channel 1:8:0:0:1:7 -target imx50 barsHDtoIMX.mxf
-
I retested it and it doesn't matter, as long as you have 1 instance (either before or after) of colormatrix
But in the past, there was a problem with ffmpeg's colormatrix filter (quality was lower than ffmbc's for some reason), and both were worse than avisynth's colormatrix despite using the same code for some reason
I have add the -sws_flags lanczos+accurate_rnd that is almost equal the -sws_flags lanczos but final image seems a little less detailed, is there a way to have more details avoiding the use of sharp?
https://ffmpeg.org/ffmpeg-filters.html#interlace -
-
You already went through about 20 different variations on methods to resize and re-interlace +/- lowpass. Check the old threads.
For ffmpeg-only filters, the only 2 options were -vf interlace, and -vf tinterlace. If you recall you didn't like either
You have to live with "not as sharp", for interlace material during motion. This was already discussed several times -
unsharp is the sharpen filter in ffmpeg. It can sharpen or blur. (+) values sharpen , (-) values blur
https://ffmpeg.org/ffmpeg-filters.html#unsharp-1 -
https://www.dropbox.com/s/tvcw60evf4eyey8/C0058.MXF?dl=0
Code:ffmpeg -y -i C0058.MXF -vf yadif=1:tff,scale=720:576,unsharp=luma_msize_x=3:luma_msize_y=3:luma_amount=0.8,colormatrix=bt709:bt601,interlace -sws_flags lanczos+accurate_rnd -an -pix_fmt yuv422p -c:v rawvideo -f rawvideo - | ffmbc -y -f rawvideo -pix_fmt yuv422p -s 720x576 -r 25 -i - -i C0058.MXF -map 0:0 -acodec pcm_s24le -map_audio_channel 1:1:0:0:1:0 -map_audio_channel 1:2:0:0:1:1 -map_audio_channel 1:3:0:0:1:2 -map_audio_channel 1:4:0:0:1:3 -map_audio_channel 1:5:0:0:1:4 -map_audio_channel 1:6:0:0:1:5 -map_audio_channel 1:7:0:0:1:6 -map_audio_channel 1:8:0:0:1:7 -target imx50 C0058HDtoIMX.mxf
thanks poison