comparison DOCS/tech/encoding-tips.txt @ 10405:a5785a0b9ee1

-dvd -> dvd:// and -vcd -> vcd://
author jonas
date Wed, 09 Jul 2003 20:10:48 +0000
parents 0fe056bdb135
children b5bea79929c6
comparison
equal deleted inserted replaced
10404:fdcb22f51ec3 10405:a5785a0b9ee1
50 50
51 And now comes the question: how do I chose my encoding parameters 51 And now comes the question: how do I chose my encoding parameters
52 so that the results will be good? First let's take a look at a 52 so that the results will be good? First let's take a look at a
53 typical mencoder line: 53 typical mencoder line:
54 54
55 mencoder -dvd 1 -o /dev/null -oac copy -ovc lavc \ 55 mencoder dvd://1 -o /dev/null -oac copy -ovc lavc \
56 -lavcopts vcodec=mpeg4:vbitrate=1000:vhq:vqmin=2:\ 56 -lavcopts vcodec=mpeg4:vbitrate=1000:vhq:vqmin=2:\
57 vlelim=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01:vpass=1 \ 57 vlelim=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01:vpass=1 \
58 -vf crop=716:572:2:2,scale=640:480 58 -vf crop=716:572:2:2,scale=640:480
59 59
60 Phew, all those parameters! Which ones should I change? NEVER leave 60 Phew, all those parameters! Which ones should I change? NEVER leave
438 viewed fullscreen. 438 viewed fullscreen.
439 439
440 4) I would recommend using the Ogg Vorbis audio codec with the .ogm 440 4) I would recommend using the Ogg Vorbis audio codec with the .ogm
441 container format. Ogg Vorbis compress audio better than MP3. On a typical 441 container format. Ogg Vorbis compress audio better than MP3. On a typical
442 old, mono-only audio stream, a 45 kbits/s Vorbis stream is ok. How to 442 old, mono-only audio stream, a 45 kbits/s Vorbis stream is ok. How to
443 extract & compress an audio stream from a ripped DVD (mplayer -dvd 1 443 extract & compress an audio stream from a ripped DVD (mplayer dvd:// 1
444 -dumpstream) : 444 -dumpstream) :
445 445
446 rm -f audiodump.pcm ; mkfifo -m 600 audiodump.pcm 446 rm -f audiodump.pcm ; mkfifo -m 600 audiodump.pcm
447 mplayer -quiet -vc null -vo null -aid 128 -ao pcm -nowaveheader stream.dump & 447 mplayer -quiet -vc null -vo null -aid 128 -ao pcm -nowaveheader stream.dump &
448 oggenc --raw --raw-bits=16 --raw-chan=2 --raw-rate=48000 -q 1 -o audio-us.ogg 448 oggenc --raw --raw-bits=16 --raw-chan=2 --raw-rate=48000 -q 1 -o audio-us.ogg
505 from vobsubs. OCR *nix softwares seems either not suited to the task, not 505 from vobsubs. OCR *nix softwares seems either not suited to the task, not
506 powerful enough or both. I'm extracting the vobsub subtitles and simply use 506 powerful enough or both. I'm extracting the vobsub subtitles and simply use
507 them with the .ogm 507 them with the .ogm
508 508
509 / .avi : 509 / .avi :
510 1) rip the DVD to harddisk with "mplayer -dvd 1 -dumpstream" 510 1) rip the DVD to harddisk with "mplayer dvd://1 -dumpstream"
511 2) mount the DVD and copy the .ifo file 511 2) mount the DVD and copy the .ifo file
512 2) extract all vobsubs to one single file with something like : 512 2) extract all vobsubs to one single file with something like :
513 513
514 for f in 0 1 2 3 4 5 6 7 8 9 10 11 ; do \ 514 for f in 0 1 2 3 4 5 6 7 8 9 10 11 ; do \
515 mencoder -ovc copy -oac copy -o /dev/null -sid $f -vobsubout sous-titres 515 mencoder -ovc copy -oac copy -o /dev/null -sid $f -vobsubout sous-titres