doc:appunti:linux:video:transcode
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
doc:appunti:linux:video:transcode [2006/12/27 10:21] – external edit 127.0.0.1 | doc:appunti:linux:video:transcode [2017/10/12 09:19] (current) – [avisync] niccolo | ||
---|---|---|---|
Line 7: | Line 7: | ||
Per cominciare con mplayer (che pare essere più bravo a decodificare file danneggiati) si è convertito in // | Per cominciare con mplayer (che pare essere più bravo a decodificare file danneggiati) si è convertito in // | ||
- | Con '' | + | Con '' |
+ | |||
+ | < | ||
+ | transcode -i stream.yuv -R 1 -y xvid -o /dev/null | ||
+ | </ | ||
+ | |||
+ | Poi si esegue la seconda passata a bitrate variabile (-R 2), video encoder bitrate | ||
< | < | ||
transcode -i stream.yuv \ | transcode -i stream.yuv \ | ||
-J smartyuv=highq=1: | -J smartyuv=highq=1: | ||
- | -R 2 \ | + | -R 2 -w 6000, |
- | | + | |
- | | + | |
-V \ | -V \ | ||
-N 0x55 -b 96 \ | -N 0x55 -b 96 \ | ||
Line 24: | Line 28: | ||
Mplayer supports a very large set of video formats, including several closed codecs from the Windows platform. Using the **[[http:// | Mplayer supports a very large set of video formats, including several closed codecs from the Windows platform. Using the **[[http:// | ||
- | We used **mplayer to extract** the video and audio streams, then we used **transcode to convert** the video to XviD (two pass, 400 kbit): | + | The first, very simple recipe uses **'' |
+ | |||
+ | <code bash> | ||
+ | mencoder file.flv -oac copy -ovc xvid -xvidencopts bitrate=360 -of avi -o file.avi | ||
+ | </ | ||
+ | |||
+ | The output audio codec is '' | ||
+ | |||
+ | An insanely complicated recipe will use **mplayer to extract** the video and audio streams, then use **transcode to convert** the video to XviD (two pass, 400 kbit): | ||
< | < | ||
Line 36: | Line 48: | ||
Finally we used **avidemux** to convert audio to mp3 and to mux audio and video into an avi file. FIXME How to use transcode for this final step? | Finally we used **avidemux** to convert audio to mp3 and to mux audio and video into an avi file. FIXME How to use transcode for this final step? | ||
- | ===== How to extract subtitles from a DVD-Video into VobSub format | + | ===== Estrarre audio nellymoser da un Flash Video ===== |
- | **This seems to be the best method** to extract subtitles from a DVD-Video. | + | Un video .flv con audio in formato // |
- | + | ||
- | The same operation can be accomplished with [[mplayer# | + | |
- | + | ||
- | [[glossary# | + | |
- | + | ||
- | We can use '' | + | |
< | < | ||
- | mplayer | + | ffmpeg |
- | ... | + | |
- | ID_SUBTITLE_ID=0 | + | |
- | ID_SID_0_LANG=it | + | |
- | ID_SUBTITLE_ID=1 | + | |
- | ID_SID_1_LANG=en | + | |
- | ID_SUBTITLE_ID=2 | + | |
- | ID_SID_2_LANG=it | + | |
- | ... | + | |
</ | </ | ||
- | In the following example you will extract subtitles from a DVD-Video | + | ===== How to extract subtitles from a DVD-Video into VobSub format |
- | + | ||
- | < | + | |
- | tccat -i $RIPDIR -T $TITLE -L | tcextract -x ps1 -t vob -a 0x21 > subs-en | + | |
- | subtitle2vobsub -o vobsubs-en -i $RIPDIR/ | + | |
- | </ | + | |
- | + | ||
- | The '' | + | |
- | + | ||
- | The '' | + | |
- | With [[subtitleripper]] you can convert VobSub subtitles into single .pgm images. | + | See this paragraph: **[[ripping_dvds_with_mencoder# |
===== avisync ===== | ===== avisync ===== |
doc/appunti/linux/video/transcode.1167211296.txt.gz · Last modified: 2009/03/14 13:16 (external edit)