Problems encoding DVD from Canon HD Video
Dear all, I'm having problems encoding video from a Canon D600 Digital SLR into mpeg2 format for DVDs. The original video is 1920x1080p. I've created DVDs from this using the default settings of DVDStyler (apart from maxing out the bitrate) and also by a two pass encode using mencoder. I also used ffmpeg using -target pal-dvd, but other options default except for two-pass encoding. The bitrate by default was up over 6500kbits/s. All of these had horrible glitching. Even in still bits of the image there was the wavery underwater type effect where there would be changes to the image happening about every half second or so. The original HD footage looks to be of good quality. Could anyone send me a "no-apologies" bash script (or similar) for PAL DVD MPEG2 that I could try to see if it fixes the problem? [here's my script which I admit is slower than it needs to be as I haven't removed stuff from the first pass] #/bin/bash mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \ -vf scale=720:576,harddup -srate 48000 -af lavcresample=48000 \ -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=8000:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-1:predia=-10:cbp:mv0:vqmin=1:lmin=1:dc=10:vstrict=0:keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9:vpass=1 -ofps 25 \ $1 -o /dev/null mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf \ -vf scale=720:576,harddup -srate 48000 -af lavcresample=48000 \ -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=8000:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-1:predia=-10:cbp:mv0:vqmin=1:lmin=1:dc=10:vstrict=0:keyint=15:vstrict=0:acodec=ac3:abitrate=192:aspect=16/9:vpass=2 -ofps 25 \ $1 -o $2 Thanks.
On 8/13/12, Ross Clement <rossclement@gmail.com> wrote:
Dear all,
Could anyone send me a "no-apologies" bash script (or similar) for PAL DVD MPEG2 that I could try to see if it fixes the problem?
this is my windows batch file. i successfully create 3 DVD Videos using this script. well, i'm using DVD Styler too to build the DVD. -- encode2dvd.bat @ECHO off SETLOCAL SET mencoder=D:\Programs\SMPlayer\MPlayer\mencoder IF EXIST "%~1" SET filename="%~1" rem %~1 %~2 %~3 %~4 rem output_file lavcopts option output_folder IF EXIST "%~4%~n1.mpeg" GOTO EP IF EXIST "%~n1.log" GOTO LOG TITLE Encoding %~n1 pass 1 @ECHO on %mencoder% -passlogfile "%~n1.mpeg.log" -o nul -ofps 30000/1001 -ovc lavc -oac pcm -lavcopts threads=2:vcodec=mpeg2video:vqcomp=0.8:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=2500:keyint=18:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10:predia=-10:cbp:mv0:vqmin=1:lmin=1:dc=10:vstrict=0:aspect=16/9:acodec=ac3:abitrate=192:vpass=1:turbo:%~2 -vf scale=720:480,harddup %~3 %filename% @ECHO off REN "%~n1.mpeg.log" "%~n1.log" :LOG TITLE Encoding %~n1 pass 2 IF EXIST "%~n1.log.tmp" DEL "%~n1.log.tmp" COPY "%~n1.log" "%~n1.log.tmp" @ECHO on %mencoder% -passlogfile "%~n1.log.tmp" -o "%~4%~n1.mpg" -of mpeg -mpegopts format=dvd:tsaf -ofps 30000/1001 -ovc lavc -oac lavc -lavcopts threads=2:vcodec=mpeg2video:vqcomp=0.8:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=2500:keyint=18:trell:mbd=2:precmp=2:subcmp=2:cmp=2:dia=-10:predia=-10:cbp:mv0:vqmin=1:lmin=1:dc=10:vstrict=0:aspect=16/9:acodec=ac3:abitrate=192:vpass=3:%~2 -vf scale=720:480,harddup -af lavcresample=48000 -srate 48000 %~3 %filename% @ECHO off IF %ERRORLEVEL% == 0 ( DEL "%~n1.log" REN "%~n1.log.tmp" "%~n1.log" ) ELSE ( DEL "%~n1.log.tmp" DEL "%~4%~n1.mpg" ) IF EXIST "%~4%~n1.mpg" REN "%~4%~n1.mpg" "%~n1.mpeg" :EP ENDLOCAL -- encode2dvd.bat -- example: encode2dvd input.mov "lavc_option" "global_option" "output_dir" output file name will be same with input name, except with .mpeg extension. well, the output will be an NTSC video. why do you prefer PAL over NTSC? your video is 16:9, it will be best suited using NTSC. it has 60 fps, using 30 fps NTSC will reserve more frame. if you still prefer PAL, you can add "-vf scale=720:576 -ofps 25" in global option. when you sure there is no error in the script, you can add "-msglevel all=1" in global option to remove skipping frame message.
Ross, your camera is probably 600D? The D600 is Nikon's offering. On 2012-08-12 1:51 PM, Gabri Nurtinaz Shally wrote:
well, the output will be an NTSC video. why do you prefer PAL over NTSC? your video is 16:9, it will be best suited using NTSC. it has 60 fps, using 30 fps NTSC will reserve more frame. if you still prefer PAL, you can add "-vf scale=720:576 -ofps 25" in global option.
Ross probably prefers PAL because that is the TV standard in his country. If so, his camera would shoot by default at 25fps and it doesn't make sense to make a NTSC DVD because quality would suffer. (Similarly, it would make no sense for you to make a PAL DVD if your camera is shooting at 30fps. PAL probably seems foreign to you, because it is!) PAL is perfectly capable of 16:9, that has nothing to do with NTSC. (P.S. @Ross, one day, DVD's will be history and all viewing will be computer/laptop/tablet. You might consider switching your camera to NTSC because you will get 30fps option instead of 25fps at the same resolution, hence slightly smoother video on your computer screen.) -- Peter ____________________________________________________________ GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at http://www.inbox.com/smileys Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google TalkT and most webmails
participants (3)
-
Gabri Nurtinaz Shally -
Peter -
Ross Clement