Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
9th October 2020, 08:23 | #1 | Link |
Registered User
Join Date: Jan 2013
Posts: 50
|
ffmpeg CLI syntax for encoding DVD Remux please
Hi,
Source NTSC DVD Remux - specs: ( Mediainfo = https://pastebin.com/dRTLVWFC ) 1) It has 720 x 480 resolution. 2) PAR should be 40/33 - tried to pass "--sar 40:33" to x264 3) cropping should be Crop(2,50,-0,-42) so used filter:v "crop=718:390:2:50" 4) De-interlacing needs to be done so used -vf yadif as one of 5 frames is duplicate. so tried - (to encode first 10 min) Code:
Z:\>ffmpeg -y -i "ABCD_Source.mkv" -ss 0 -t 600 -filter:v "crop=718:390:2:50" -vf yadif -vcodec libx264 -preset placebo -crf 16 -refs 16 -sar "40:33" -x264-params "me=umh:subme=11:bframes=16:deblock=-3,-3:no-dct-decimate=1:rc-lookahead=100:me_range=48:keyint_min=23" -acodec copy ABCD_ffm2.mkv Code:
[matroska @ 00000199d16f1e80] Aspect ratio mismatch between muxer (186/157) and encoder layer (40/33) Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument Error initializing output stream 0:0 -- Conversion failed! Please advise correct ffmpeg command with deinterlacing, cropping and SAR/PAR/DAR parameter for a DVD remux source. It would be good to include Color matrix Thanks! |
9th October 2020, 18:23 | #2 | Link | |
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
|
Hi,
first of all your post is in the wrong thread. You are converting to AVC (H.264), so the post belongs in the MPEG4-AVC thread. Can a mod please move it... Not being an FFMpeg specialist I usually let an encoder GUI do all the aspect ratio math. For FFmpeg I use dmMediaConverter, and for a source like yours it created this command line: Quote:
Hope it helps... Cheers manolito Last edited by manolito; 9th October 2020 at 18:38. |
|
10th October 2020, 01:19 | #3 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,377
|
Quote:
Code:
-vf "fps=30000/1001,fieldmatch,yadif=deint=interlaced,decimate" |
|
|
|