Tomi Ollila <[EMAIL PROTECTED]> writes: > > Tomi > > ... I just did that a few hours ago I wanted to get dv recordings to dvd. > So far I have figured the following for hopefully best results (not yet > got time to test that): > > $ sh menc2dvd.sh 16:9 2222 3333 in out > + exec mencoder -oac lavc -ovc lavc > -lavcopts=acodec=mp2:abitrate=224:vcodec=mpeg2video:max_b_frames=2:mbd=1:keyint=25:vb_strategy=2:aspect=16/9:vbitrate=2222:vrc_maxrate=3333:dia=2:intra_matrix=8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37,12,14,18,27,29,34,37,38,22,26,27,31,36,37,38,40,26,27,29,36,39,38,40,48,27,29,34,37,38,40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79:inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26,28,30,32,34,22,24,26,30,32,32,34,36,24,26,28,32,34,34,36,38,26,28,30,32,34,36,38,40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,42,44 > -vf=kerndeint:hqdn3d -of mpeg -mpegopts > format=dvd:vaspect=16/9:vbitrate=2222 -o out in
... and now the results ... After fixing bugs from the above command line I got some results, the most interesting options (if kvcd matrices are not counted) are -vf kerndeint,hqdn3d That did deinterlace (as good as others that follow, that is basically smartdeinter), but noise reduction did not affect much. 2GHz machine encoded my 720x576 material ~4.5 fps. The biggest problem was encoded audio, there was some weird "clicks" throughout the result, rendering the output totally unusable, and no option tunes changed results any better. Next I tried ffmpeg (as I had script almost ready for that). With that I can utilize all the lavc-options used with mencoder, but without the deinterlace and denoise functionality that were there with mencoder. ffmpeg has -deinterlace command line option (I could not find any information how it does the job), and -nr <num> option for denoise (if that does it -- I did not notice any change in picture when using that). The end results were that ffmpeg was fast, but picture had all the noise in original material. Then, going back to transcode. After googling a bit I found that ffmpeg.cfg can be used -- and checked code what configuration values can be but there (basically the same list that in mencoder command line above). Now I had also -J smartyuv -J yuvdenoise on command line... ... transcode processed my source 2.5 frames per second, but using yuvdenoise as denoiser made really the difference (and smartyuv is the deinterlacer here). There is still something to be done to get all the options and ffmpeg configuration options right, but I am definitely going to continue with this. Mencoder has always failed to provide good results; ffmpeg can be used when there is no need for deinterlacing and denoising, but transcode is still the tool when one wants decent filtering of input material to be done when encoding video. Tomi
