User Tools

Site Tools


doc:appunti:linux:video:mplayer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
doc:appunti:linux:video:mplayer [2009/09/18 10:35] niccolodoc:appunti:linux:video:mplayer [2020/04/21 08:54] (current) – [How to extract subtitles from a DVD-Video into VobSub format] niccolo
Line 2: Line 2:
  
 Mplayer was also very useful in extracting audio (AC3) and video (MPEG2) from a badly encoded DVD, see **[[dvd_ifo_errors]]**. Mplayer was also very useful in extracting audio (AC3) and video (MPEG2) from a badly encoded DVD, see **[[dvd_ifo_errors]]**.
- 
  
 ===== mplayer ===== ===== mplayer =====
Line 48: Line 47:
 ==== How to extract subtitles from a DVD-Video into VobSub format ==== ==== How to extract subtitles from a DVD-Video into VobSub format ====
  
-**A better way to convert DVD-Video subtitles** into VobSub format is to use [[transcode#how_to_extract_subtitles_from_a_dvd-video_into_vobsub_format|transcode]].+**A better way to convert DVD-Video subtitles** into VobSub format is to use **[[ripping_dvds_with_mencoder#subtitles|transcode]]**.
  
 This is because mencoder seems to produce different image data into the ''**.sub**'' file and slightly different timestamps into the index (''**.idx**'') file depending on the used video codec (''-ovc'' option): strange enough, I got different outputs using //copy// and //raw// options. Transcode instead seems to be more deterministic. This is because mencoder seems to produce different image data into the ''**.sub**'' file and slightly different timestamps into the index (''**.idx**'') file depending on the used video codec (''-ovc'' option): strange enough, I got different outputs using //copy// and //raw// options. Transcode instead seems to be more deterministic.
Line 75: Line 74:
 </code> </code>
  
-With [[subtitleripper]] you can convert VobSub subtitles into single .pgm images.+With [[subtitleripper|vobsub2pgm]] you can convert VobSub subtitles into single .pgm images
 + 
 +==== Ripping a DVD with mplayer ==== 
 + 
 +Sometimes trascoding a video DVD with **''avidemux''** (my favourite transcoding program) does not give correct results. I transcode the VOB files directly from the DVD, but the resulting video gets the multi-angle scenes interlaced. I think that the problem aroses from ''avidemux'' not being able to cope with [[wp>DVD-Video#Chapters_and_angles|DVD multi-angle scenes]]. 
 + 
 +**''mplayer''** instead plays the video correctly, so I use ''mplayer'' to extract a MPEG stream, and then I user ''avidemux'' to transcode. 
 + 
 +First of all, we can play a DVD track from an .iso image mounted with the loop option. In this example we play track #27, using audio track ID 130 and no subtitles: 
 + 
 +<code> 
 +mount -o loop,ro dvdimage.iso /media/cdrom 
 +mplayer dvd://27//media/cdrom -aid 130 -nosub 
 +</code> 
 + 
 +With this command we will dump track #27 to a raw compressed file, the file will contains all the audio tracks and subtitles: 
 + 
 +<code> 
 +mplayer dvd://27//media/cdrom -dumpstream -dumpfile dvd_track_27.vob 
 +</code> 
 + 
 +The dumped file can be played with ''mplayer'' or opened (and transcoded in XviD/mp3) with **''avidemux''**.
doc/appunti/linux/video/mplayer.1253262950.txt.gz · Last modified: 2009/09/18 10:35 by niccolo