Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- * using -r *
- the setpts filter will play the 400 resulting frames from the deinterlacer at 16 times the speed, so all 400 are displayed in one second
- the fps filter will then set the framerate to 25 fps, collecting all of the 400 frames into 25 frames
- timebase (TB) needs to be multiplied by 2, because the framerate is half as low as the native framerate of the deinterlaced video (50 fps)
- /home/lucifer/ffmpeg-4.2.2-amd64-static/ffmpeg -i '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/the_code_test/avidemux/VTS_05_1_1st_half_encodethis.mkv' -vf bwdif=mode=send_field:parity=auto:deint=interlaced,dejudder,setpts="N/(25*(TB*2))",crop=702:576:10 -r 25 -c:v ffv1 -c:a copy 'thecodetest_setpts25_part1.mkv'
- /home/lucifer/ffmpeg-4.2.2-amd64-static/ffmpeg -i '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/the_code_test/avidemux/VTS_06_1_2nd half_encodethis.mkv' -vf bwdif=mode=send_field:parity=auto:deint=interlaced,dejudder,setpts="N/(25*(TB*2))",crop=702:576:10 -r 25 -c:v ffv1 -c:a copy 'thecodetest_setpts25_part2.mkv'
- *
- * using the fps filter *
- /home/lucifer/ffmpeg-4.2.2-amd64-static/ffmpeg -i '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/the_code_test/avidemux/VTS_05_1_1st_half_encodethis.mkv' -vf bwdif=mode=send_field:parity=auto:deint=interlaced,dejudder,setpts="N/(25*(TB*2))",fps=fps=25,crop=702:576:10 -c:v ffv1 -c:a copy 'thecodetest_setpts25_part1_fpsfilter.mkv'
- /home/lucifer/ffmpeg-4.2.2-amd64-static/ffmpeg -i '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/the_code_test/avidemux/VTS_06_1_2nd half_encodethis.mkv' -vf bwdif=mode=send_field:parity=auto:deint=interlaced,dejudder,setpts="N/(25*(TB*2))",fps=fps=25,crop=702:576:10 -c:v ffv1 -c:a copy 'thecodetest_setpts25_part2_fpsfilter.mkv'
- ***
- * BLEND *
- /home/lucifer/ffmpeg-4.2.2-amd64-static/ffmpeg -i '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/the_code_test/avidemux/VTS_05_1_1st_half_encodethis.mkv' -vf bwdif=mode=send_field:parity=auto:deint=interlaced,dejudder,setpts="N/(25*(TB*2))",tblend=all_mode=normal,framestep=2,crop=702:576:10 -r 25 -c:v ffv1 -c:a copy 'thecodetest_setpts25_part1_blendtest.mkv'
- /home/lucifer/ffmpeg-4.2.2-amd64-static/ffmpeg -i '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/the_code_test/avidemux/VTS_05_1_1st_half_encodethis.mkv' -vf bwdif=mode=send_field:parity=auto:deint=interlaced,dejudder,tblend=all_mode=normal,framestep=2,setpts="N/(25*(TB*1))",crop=702:576:10 -r 25 -c:v ffv1 -c:a copy 'thecodetest_setpts25_part1_blendtest2.mkv'
- /home/lucifer/ffmpeg-4.2.2-amd64-static/ffmpeg -i '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/the_code_test/avidemux/VTS_06_1_2nd half_encodethis.mkv' -vf bwdif=mode=send_field:parity=auto:deint=interlaced,dejudder,tblend=all_mode=normal,framestep=2,setpts="N/(25*(TB*1))",crop=702:576:10 -r 25 -c:v ffv1 -c:a copy 'thecodetest_setpts25_part2_blendtest2.mkv'
- ***
- timebase is a fraction of the input framerate (1/400, or 1/50 or 1/25)
- ***
- * CUT *
- part1 (cutout):
- 00:39:59.280
- ffmpeg -i 'thecodetest_part1_50fps.mkv' -ss 00:39:59.520 -c:v ffv1 -c:a copy 'thecodetest_part1_50fps_billgates.mkv'
- ffmpeg -i 'thecodetest_part1_50fps.mkv' -c:v ffv1 -c:a copy -t 00:39:59.520 'thecodetest_part1_50fps_cut.mkv'
- ffmpeg -i 'thecodetest_part2_50fps.mkv' -ss 00:00:00.760 -c:v ffv1 -c:a copy 'thecodetest_part2_50fps_cut.mkv'
- mkvmerge -o thecodetest_part1_50fps_billgates_noaudio.mkv --no-audio thecodetest_part1_50fps_billgates.mkv
- *
- blend:a ihop de två bill gates-klippen:
- /home/lucifer/ffmpeg-4.2.2-amd64-static/ffmpeg -i 'thecodetest_part2_50fps_cut.mkv' -i 'thecodetest_part1_50fps_billgates_noaudio.mkv' -filter_complex blend=all_mode=normal:eof_action=pass -c:v ffv1 -c:a copy 'thecodetest_part2_50fps_cut_billgates_blended.mkv'
- slå ihop alla tre filerna:
- ffmpeg -f concat -safe 0 -i concat.txt -vf setdar=dar=16/9 -r 50 -c:v ffv1 -c:a copy 'thecodetest_50fps_finished_cut.mkv'
- *
- encode to x265:
- /home/lucifer/ffmpeg-4.2.2-amd64-static/ffmpeg -i 'thecodetest_50fps_finished_cut.mkv' -c:v libx265 -crf 20 -preset slow -tune grain -profile:v main10 -c:a copy 'thecodetest_50fps_finished_cut_x265.mkv'
- ***
- * 50 FPS *
- /home/lucifer/ffmpeg-4.2.2-amd64-static/ffmpeg -i '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/the_code_test/avidemux/VTS_05_1_1st_half_encodethis.mkv' -vf bwdif=mode=send_field:parity=auto:deint=interlaced,dejudder,crop=702:576:10 -r 50 -c:v ffv1 -c:a copy 'thecodetest_part1_50fps.mkv'
- /home/lucifer/ffmpeg-4.2.2-amd64-static/ffmpeg -i '/run/media/lucifer/0d6b70fa-0c49-47d6-84c1-3f8509d52b58/the_code_test/avidemux/VTS_06_1_2nd half_encodethis.mkv' -vf bwdif=mode=send_field:parity=auto:deint=interlaced,dejudder,crop=702:576:10 -r 50 -c:v ffv1 -c:a copy 'thecodetest_part2_50fps.mkv'
- ***
- test ffmpeg cut:
- ffmpeg -i 'thecodetest_setpts25_part1.mkv' -ss 00:39:49.280 -c:v ffv1 -c:a copy -to 00:39:59.280 'thecodetest_setpts25_part1_cut.mkv'
- ***
Advertisement
Add Comment
Please, Sign In to add comment