Getting DVD playback working on Ubuntu 7.10
From WhyNotWiki
Contents |
[edit] Initial attempt
I inserted a DVD. Totem Movie Player started up automatically. However, it said it was missing a codec that it needed. It asked if I wanted it to search for the missing codec. I let it search. It offered to install gstreamer0.10-plugins-ugly, so I let it.
I went to the Movie menu and selected "Play Disc __". It came up with a completely empty dialog box (not even an OK button. I pressed the X button in the corner. It gave a new dialog box:
- Title: "" is not responding
- You may choose to wait a short while for it to continue or force the application to quit entirely.
- Buttons: [Wait] [Force Quit]
I clicked Wait. It did the same thing this time, so I chose Force Quit.
I started Totem Movie Player from the Applications menu and chose "Play Disc __" from the menu again.
This time I got a different response: A dialog box saying: "Totem cannot play this type of media (DVD) because you do not have the appropriate plugins to handle it. Please install the necessary plugins and restart Totem to be able to play this media."
Okay... It would have been nice if it told me which plugins I needed to install...
sudo apt-get install totem-xine
I went to the Movie menu and selected "Play Disc __". It came up with a dialog box: "Totem could not play 'dvd:/'" "There is no plugin to handle this movie."
sudo apt-get install libxine1-ffmpeg
cabextract (version 1.2-2) will be installed gcc-3.3-base (version 1:3.3.6-15ubuntu2) will be installed gstreamer0.10-ffmpeg (version 0.10.2-2ubuntu1) will be installed gstreamer0.10-plugins-bad (version 0.10.5-4ubuntu1) will be installed gstreamer0.10-plugins-bad-multiverse (version 0.10.5-1) will be installed gstreamer0.10-plugins-ugly-multiverse (version 0.10.6-0ubuntu1) will be installed gxine (version 0.5.11-3ubuntu3) will be installed libartsc0 (version 1.5.8-0ubuntu1) will be installed libaudio2 (version 1.9-2) will be installed libavformat1d (version 3:0.cvs20070307-5ubuntu4) will be installed libcdaudio1 (version 0.99.12p2-3) will be installed libdc1394-13 (version 1.1.0-3ubuntu3) will be installed libdvbpsi4 (version 0.1.5-3) will be installed libdvdnav4 (version 0.1.10-0.2) will be installed libebml0 (version 0.7.7-3) will be installed libfaac0 (version 1.24clean-0ubuntu4) will be installed libfaad2-0 (version 2.0.0+cvs20040908+mp4v2+bmp-0ubuntu5) will be installed libfreebob0 (version 1.0.3+svn443-2) will be installed libggi2 (version 1:2.2.1-5ubuntu1) will be installed libgii1 (version 1:1.0.1-3) will be installed libgii1-target-x (version 1:1.0.1-3) will be installed libiso9660-4 (version 0.76-1ubuntu2) will be installed libjack0 (version 0.103.0-6ubuntu1) will be installed liblame0 (version 3.97-0.0) will be installed liblzo1 (version 1.08-3) will be installed libmatroska0 (version 0.8.1-1) will be installed libmjpegtools0c2a (version 1:1.8.0-0.2ubuntu5) will be installed libmms0 (version 0.3-5ubuntu2) will be installed libmozjs0d (version 1.8.1.4-2ubuntu5) will be installed libmp4v2-0 (version 2.0.0+cvs20040908+mp4v2+bmp-0ubuntu5) will be installed libquicktime1 (version 2:1.0.0+debian-4ubuntu1) will be installed libsdl-image1.2 (version 1.2.5-3) will be installed libsoundtouch1c2 (version 1.3.0-2.1) will be installed libstdc++5 (version 1:3.3.6-15ubuntu2) will be installed libtar (version 1.2.11-4) will be installed libungif4g (version 4.1.4-5) will be installed libvcdinfo0 (version 0.7.23-3) will be installed libvlc0 (version 0.8.6.release.c-0ubuntu5) will be installed libwxbase2.6-0 (version 2.6.3.2.1.5ubuntu12) will be installed libwxgtk2.6-0 (version 2.6.3.2.1.5ubuntu12) will be installed libx264-54 (version 1:0.svn20070309-4ubuntu1) will be installed libxosd2 (version 2.2.14-1.3) will be installed libxvidcore4 (version 2:1.1.2-0.1ubuntu2) will be installed mplayer (version 2:1.0~rc1-0ubuntu13) will be installed mplayer-skins (version 2-7) will be installed msttcorefonts (version 2.2) will be installed odbcinst1debian1 (version 2.2.11-16) will be installed ogle (version 0.9.2-5) will be installed sun-java6-bin (version 6-03-0ubuntu2) will be installed sun-java6-jre (version 6-03-0ubuntu2) will be installed ttf-dejavu (version 2.19-1ubuntu3) will be installed ttf-dejavu-extra (version 2.19-1ubuntu3) will be installed ubuntu-restricted-extras (version 10) will be installed unixodbc (version 2.2.11-16) will be installed unrar (version 1:3.7.3-1.1) will be installed vlc (version 0.8.6.release.c-0ubuntu5) will be installed vlc-nox (version 0.8.6.release.c-0ubuntu5) will be installed xine-ui (version 0.99.5-2build1) will be installed
$ sudo wget http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list $ wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update $ sudo apt-get install libdvdcss2
I started Totem Movie Player from the Applications menu and chose "Play Disc __" from the menu again.
This time it worked! It got past the FBI warning and arrived at the main menu!
[edit] Playing Amazing Discoveries DVD isn't working
That's strange that a commercial DVD would work but this more-amateur-like DVD will not play.
[edit] Tried VLC media player: DVD (menus)
main debug: adding playlist item `dvd:///dev/hdc' ( dvd:///dev/hdc ) main debug: control type=0 main debug: control: stopping input main debug: closing input main debug: thread 1140881744 joined (dvdnav.c:352) main debug: removing module "libmpeg2" main debug: thread 1132489040 joined (input/decoder.c:191) main debug: killing decoder fourcc `mpgv', 0 PES in FIFO main debug: removing module "spudec" main debug: thread 1157667152 joined (input/decoder.c:191) main debug: killing decoder fourcc `spu ', 0 PES in FIFO main debug: Program doesn't contain anymore ES main debug: removing module "dvdnav" main debug: thread 1149274448 joined (input/input.c:412) main debug: creating new input thread main debug: waiting for thread completion main debug: thread 1149274448 (input) created at priority 0 (input/input.c:265) main debug: `dvd:///dev/hdc' gives access `dvd' demux `' path `/dev/hdc' main debug: creating demux: access='dvd' demux='' path='/dev/hdc' main debug: looking for access_demux module: 2 candidates dvdnav debug: trying to go to dvd menu main debug: thread 1157667152 (dvdnav event thread handler) created at priority 0 (dvdnav.c:336) main debug: using access_demux module "dvdnav" main debug: meta information: main debug: - 'Title' = 'DVD_VIDEO_RECORDER' main debug: `dvd:///dev/hdc' successfully opened dvdnav debug: DVDNAV_HOP_CHANNEL dvdnav debug: DVDNAV_VTS_CHANGE dvdnav debug: - vtsN=1 dvdnav debug: - domain=4 dvdnav debug: DVDNAV_CELL_CHANGE dvdnav debug: - cellN=1 dvdnav debug: - pgN=1 dvdnav debug: - cell_length=45000 dvdnav debug: - pg_length=45000 dvdnav debug: - pgc_length=45000 dvdnav debug: - cell_start=0 dvdnav debug: - pg_start=0 dvdnav debug: DVDNAV_SPU_CLUT_CHANGE dvdnav debug: DVDNAV_SPU_STREAM_CHANGE dvdnav debug: - physical_wide=0 dvdnav debug: - physical_letterbox=0 dvdnav debug: - physical_pan_scan=0 dvdnav debug: buttonUpdate 1 main debug: selecting program id=0 main debug: looking for decoder module: 25 candidates main debug: using decoder module "spudec" main debug: thread 1132489040 (decoder) created at priority 0 (input/decoder.c:159) dvdnav debug: DVDNAV_AUDIO_STREAM_CHANGE dvdnav debug: - physical=0 dvdnav debug: buttonUpdate 1 main debug: looking for decoder module: 25 candidates main debug: using decoder module "libmpeg2" main debug: thread 1140881744 (decoder) created at priority 0 (input/decoder.c:159) dvdnav debug: buttonUpdate 1 libmpeg2 debug: 720x480 (display 720,480), aspect 576000, sar 8:9, 29.971 fps main debug: crop: 138,112,439,29, palette forced: 1 main warning: dts != current_pts (-365961) dvdnav debug: DVDNAV_NOP dvdnav debug: DVDNAV_WAIT dvdnav debug: DVDNAV_STILL_FRAME dvdnav debug: - length=0xff main debug: Registering subpicture channel, ID: 9
The window resized to the correct resolution (I believe), but appeared blank.
The time indicator said "0:00:00 / 0:00:00".
The slider at the bottom did not move, but stayed at about 90%.
When I tried to move the slider to the left, these messages were logged:
main debug: control type=5 main error: INPUT_CONTROL_SET_POSITION(_OFFSET) 84.4% failed spudec debug: invalid starting packet (size < 4 or pts <=0) spudec debug: spu size: 0, i_pts: 0 i_buffer: 128
The next chapter and previous chapter buttons did nothing when I first tried them.
But when I clicked the previous chapter button again, the slider skipped back to the beginning and started moving. It was silent at first, but then the audio started playing (no video). These messages were logged:
main debug: control type=15 dvdnav debug: DVDNAV_HOP_CHANNEL dvdnav debug: DVDNAV_HIGHLIGHT dvdnav debug: - display=1 dvdnav debug: - buttonN=1 dvdnav debug: buttonUpdate not done b=1 t=1 dvdnav debug: DVDNAV_VTS_CHANGE dvdnav debug: - vtsN=1 dvdnav debug: - domain=2 spudec debug: invalid starting packet (size < 4 or pts <=0) spudec debug: spu size: 0, i_pts: 0 i_buffer: 128 main debug: removing module "libmpeg2" main debug: thread 1140881744 joined (input/decoder.c:191) main debug: killing decoder fourcc `mpgv', 1 PES in FIFO main debug: removing module "spudec" main debug: thread 1132489040 joined (input/decoder.c:191) main debug: killing decoder fourcc `spu ', 0 PES in FIFO main debug: Program doesn't contain anymore ES dvdnav debug: DVDNAV_CELL_CHANGE dvdnav debug: - cellN=1 dvdnav debug: - pgN=1 dvdnav debug: - cell_length=3105000 dvdnav debug: - pg_length=29340000 dvdnav debug: - pgc_length=650565000 dvdnav debug: - cell_start=0 dvdnav debug: - pg_start=0 dvdnav debug: DVDNAV_SPU_CLUT_CHANGE dvdnav debug: DVDNAV_AUDIO_STREAM_CHANGE dvdnav debug: - physical=0 main debug: looking for decoder module: 25 candidates main debug: using decoder module "libmpeg2" main debug: thread 1132489040 (decoder) created at priority 0 (input/decoder.c:159) dvdnav debug: buttonUpdate not done b=1 t=1 libmpeg2 debug: 704x480 (display 720,480), aspect 563200, sar 8:9, 29.971 fps main debug: looking for decoder module: 25 candidates main debug: using decoder module "a52" main debug: thread 1140881744 (decoder) created at priority 0 (input/decoder.c:159) a52: A/52 channels:2 samplerate:48000 bitrate:256000 main debug: looking for audio output module: 3 candidates alsa debug: opening ALSA device `default' main debug: thread 1166059856 (aout) created at priority 0 (alsa.c:662) main debug: using audio output module "alsa" main debug: output 's16l' 48000 Hz Stereo frame=1 samples/4 bytes main debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes main debug: filter(s) 'fl32'->'s16l' 48000 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 24 candidates main debug: using audio filter module "float32tos16" main debug: found a filter for the whole conversion main debug: looking for audio mixer module: 3 candidates main debug: using audio mixer module "float32_mixer" main debug: input 'a52 ' 48000 Hz Stereo frame=1536 samples/1024 bytes main debug: filter(s) 'a52 '->'fl32' 48000 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 24 candidates main debug: using audio filter module "a52tofloat32" main debug: found a filter for the whole conversion main debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 24 candidates main debug: using audio filter module "bandlimited_resampler" main debug: found a filter for the whole conversion main debug: removing module "blend" main debug: removing module "xvideo" main debug: thread 1124096336 joined (video_output/video_output.c:461) main debug: no usable vout present, spawning one main debug: window size: 704x540 main debug: looking for video output module: 6 candidates xvideo debug: adaptor 0, port 73, format 0x32315659 (YV12) planar main debug: Registering subpicture channel, ID: 2 main debug: Registering subpicture channel, ID: 3 main debug: Registering subpicture channel, ID: 4 main debug: Registering subpicture channel, ID: 5 xvideo debug: Window manager supports NetWM xvideo debug: Window manager supports _NET_WM_STATE_FULLSCREEN xvideo debug: Window manager supports _NET_WM_STATE_ABOVE xvideo debug: Window manager supports _NET_WM_STATE_BELOW main debug: using video output module "xvideo" main debug: waiting for thread completion main debug: got 8 direct buffer(s) main debug: picture in 704x480 (0,0,704x480), chroma I420, ar 176:135, sar 8:9 main debug: picture user 704x480 (0,0,704x480), chroma I420, ar 176:135, sar 8:9 main debug: picture out 704x480 (0,0,704x480), chroma I420, ar 176:135, sar 8:9 main debug: direct render, mapping render pictures 0-6 to system pictures 1-7 main debug: thread 1124096336 (video output) created at priority 0 (video_output/video_output.c:421) main warning: dts != current_pts (331717) main warning: vout synchro warning: pts != current_date (-33367) main debug: decoded 103/105 pictures alsa debug: recovered from buffer underrun main warning: computed PTS is out of range (2666773), clearing out main warning: PTS is out of range (2666807), dropping buffer main warning: output PTS is out of range (2677481), clearing out main warning: PTS is out of range (2634824), dropping buffer main warning: PTS is out of range (2603240), dropping buffer main warning: PTS is out of range (2571248), dropping buffer main warning: PTS is out of range (2539534), dropping buffer main warning: PTS is out of range (2507541), dropping buffer main warning: PTS is out of range (2475623), dropping buffer main warning: PTS is out of range (2443628), dropping buffer main warning: PTS is out of range (2411748), dropping buffer main warning: PTS is out of range (2379753), dropping buffer main warning: PTS is out of range (2347860), dropping buffer main warning: PTS is out of range (2315865), dropping buffer main warning: PTS is out of range (2283937), dropping buffer main warning: PTS is out of range (2251942), dropping buffer main warning: PTS is out of range (2219963), dropping buffer main warning: PTS is out of range (2187967), dropping buffer main warning: late picture skipped (2252118) main warning: late picture skipped (2218854) main warning: late picture skipped (2118757) main warning: PTS is out of range (2220502), dropping buffer main warning: PTS is out of range (2188536), dropping buffer main warning: PTS is out of range (2156750), dropping buffer main warning: PTS is out of range (2124757), dropping buffer main warning: PTS is out of range (2092888), dropping buffer main warning: PTS is out of range (2060893), dropping buffer main warning: PTS is out of range (2029044), dropping buffer main warning: PTS is out of range (1997049), dropping buffer main warning: PTS is out of range (1965115), dropping buffer main warning: PTS is out of range (1933120), dropping buffer main warning: PTS is out of range (1901256), dropping buffer main warning: PTS is out of range (1869261), dropping buffer main warning: PTS is out of range (1837379), dropping buffer main warning: PTS is out of range (1805386), dropping buffer main warning: late picture skipped (1690086) main warning: PTS is out of range (1829154), dropping buffer main warning: PTS is out of range (1797191), dropping buffer main warning: PTS is out of range (1766770), dropping buffer main warning: PTS is out of range (1734782), dropping buffer main warning: PTS is out of range (1703037), dropping buffer main warning: PTS is out of range (1671046), dropping buffer main warning: PTS is out of range (1639195), dropping buffer main warning: PTS is out of range (1607200), dropping buffer main warning: PTS is out of range (1575323), dropping buffer main warning: PTS is out of range (1543329), dropping buffer main warning: PTS is out of range (1511389), dropping buffer main warning: PTS is out of range (1479396), dropping buffer main warning: PTS is out of range (1447539), dropping buffer main warning: PTS is out of range (1415544), dropping buffer main warning: PTS is out of range (1383561), dropping buffer main warning: PTS is out of range (1351565), dropping buffer main warning: late picture skipped (1239986) main warning: PTS is out of range (1374616), dropping buffer main warning: PTS is out of range (1342657), dropping buffer main warning: PTS is out of range (1311019), dropping buffer main warning: PTS is out of range (1279028), dropping buffer main warning: PTS is out of range (1247181), dropping buffer main warning: PTS is out of range (1215189), dropping buffer main warning: PTS is out of range (1183281), dropping buffer main warning: PTS is out of range (1151286), dropping buffer main warning: PTS is out of range (1119452), dropping buffer main warning: PTS is out of range (1087458), dropping buffer main warning: PTS is out of range (1055536), dropping buffer main warning: PTS is out of range (1023541), dropping buffer main warning: PTS is out of range (991677), dropping buffer main warning: PTS is out of range (959682), dropping buffer main warning: PTS is out of range (927829), dropping buffer main warning: PTS is out of range (895834), dropping buffer main warning: PTS is out of range (863911), dropping buffer main warning: PTS is out of range (831919), dropping buffer main warning: late picture skipped (813125) main warning: PTS is out of range (859677), dropping buffer main warning: PTS is out of range (827708), dropping buffer main warning: PTS is out of range (795958), dropping buffer main warning: PTS is out of range (763965), dropping buffer main warning: PTS is out of range (732019), dropping buffer main warning: PTS is out of range (700025), dropping buffer main warning: PTS is out of range (668222), dropping buffer main warning: PTS is out of range (636229), dropping buffer main warning: PTS is out of range (604390), dropping buffer main warning: PTS is out of range (572396), dropping buffer main warning: PTS is out of range (540505), dropping buffer main warning: PTS is out of range (508510), dropping buffer main warning: PTS is out of range (476702), dropping buffer main warning: PTS is out of range (444707), dropping buffer main warning: late picture skipped (360608) main debug: decoded 35/105 pictures main warning: PTS is out of range (468331), dropping buffer main warning: PTS is out of range (436347), dropping buffer main warning: PTS is out of range (404648), dropping buffer main warning: PTS is out of range (372655), dropping buffer main warning: PTS is out of range (340832), dropping buffer main warning: PTS is out of range (308840), dropping buffer main warning: PTS is out of range (276914), dropping buffer main warning: PTS is out of range (244919), dropping buffer main warning: PTS is out of range (213081), dropping buffer main warning: PTS is out of range (181086), dropping buffer main warning: PTS is out of range (149258), dropping buffer main warning: PTS is out of range (117265), dropping buffer main warning: PTS is out of range (85424), dropping buffer main warning: PTS is out of range (53433), dropping buffer main warning: PTS is out of range (21652), dropping buffer main warning: PTS is out of range (-10343), dropping buffer main warning: PTS is out of range (9890), dropping buffer main warning: PTS is out of range (-22078), dropping buffer main debug: audio output is starving (38589), playing silence main debug: decoded 103/105 pictures main warning: late picture skipped (66574) main warning: late picture skipped (33285) main warning: late picture skipped (87316) main warning: late picture skipped (53993) main warning: late picture skipped (20629) main warning: late picture skipped (126542) main warning: late picture skipped (93279) main warning: late picture skipped (59916) main warning: late picture skipped (26560) main warning: late picture skipped (18878) dvdnav debug: DVDNAV_NOP dvdnav debug: DVDNAV_CELL_CHANGE dvdnav debug: - cellN=2 dvdnav debug: - pgN=1 dvdnav debug: - cell_length=2790000 dvdnav debug: - pg_length=29340000 dvdnav debug: - pgc_length=650565000 dvdnav debug: - cell_start=3105000 dvdnav debug: - pg_start=0 dvdnav debug: DVDNAV_SPU_CLUT_CHANGE dvdnav debug: DVDNAV_AUDIO_STREAM_CHANGE dvdnav debug: - physical=0 alsa debug: recovered from buffer underrun main warning: backward_pts != dts (593299) main warning: computed PTS is out of range (296937), clearing out main warning: PTS is out of range (296948), dropping buffer main warning: output PTS is out of range (296957), clearing out main debug: audio output is starving (318635), playing silence main warning: late picture skipped (54832) main warning: vout synchro warning: pts != current_date (-593300) main warning: late picture skipped (69446) main debug: decoded 104/105 pictures main warning: late picture skipped (13345) main warning: late picture skipped (176922) main warning: late picture skipped (143622) main warning: late picture skipped (110268) main warning: late picture skipped (76913) main warning: late picture skipped (75443) main warning: late picture skipped (32686) dvdnav debug: DVDNAV_NOP dvdnav debug: DVDNAV_CELL_CHANGE dvdnav debug: - cellN=3 dvdnav debug: - pgN=1 dvdnav debug: - cell_length=2925000 dvdnav debug: - pg_length=29340000 dvdnav debug: - pgc_length=650565000 dvdnav debug: - cell_start=5895000 dvdnav debug: - pg_start=0 dvdnav debug: DVDNAV_SPU_CLUT_CHANGE dvdnav debug: DVDNAV_AUDIO_STREAM_CHANGE dvdnav debug: - physical=0 alsa debug: recovered from buffer underrun main warning: backward_pts != dts (748256) main warning: late picture skipped (12195) main warning: computed PTS is out of range (414944), clearing out main warning: PTS is out of range (414972), dropping buffer main warning: output PTS is out of range (425644), clearing out main debug: audio output is starving (361366), playing silence main warning: vout synchro warning: pts != current_date (-748256) main warning: late picture skipped (26781) main debug: decoded 102/105 pictures main warning: late picture skipped (139047) main warning: late picture skipped (105758) main warning: late picture skipped (72395) main warning: late picture skipped (39034) main warning: late picture skipped (38476) main warning: late picture skipped (11727) main debug: decoded 103/105 pictures
[edit] Tried VLC media player: DVD
It was silent at first, but then the audio started playing (no video). These messages were logged:
main debug: adding playlist item `dvdsimple:///dev/hdc' ( dvdsimple:///dev/hdc ) main debug: creating new input thread main debug: waiting for thread completion main debug: thread 1140881744 (input) created at priority 0 (input/input.c:265) main debug: `dvdsimple:///dev/hdc' gives access `dvdsimple' demux `' path `/dev/hdc' main debug: creating demux: access='dvdsimple' demux='' path='/dev/hdc' main debug: looking for access_demux module: 1 candidate dvdread debug: VMG opened dvdread debug: number of titles: 1 dvdread debug: title 0 has 23 chapters dvdread debug: open VTS 1, for title 1 dvdread debug: title 1 vts_title 1 pgc 1 pgn 1 start 0 end 2068578 blocks: 2068579 main debug: selecting program id=0 dvdread debug: audio position 0 main debug: using access_demux module "dvdread" main debug: looking for decoder module: 25 candidates main debug: using decoder module "libmpeg2" main debug: thread 1124096336 (decoder) created at priority 0 (input/decoder.c:159) main debug: looking for decoder module: 25 candidates main debug: using decoder module "a52" main debug: thread 1132489040 (decoder) created at priority 0 (input/decoder.c:159) main debug: `dvdsimple:///dev/hdc' successfully opened libmpeg2 debug: 704x480 (display 720,480), aspect 563200, sar 8:9, 29.971 fps main debug: no usable vout present, spawning one main debug: window size: 704x540 main debug: looking for video output module: 6 candidates xvideo debug: adaptor 0, port 73, format 0x32315659 (YV12) planar main debug: Registering subpicture channel, ID: 2 main debug: Registering subpicture channel, ID: 3 main debug: Registering subpicture channel, ID: 4 main debug: Registering subpicture channel, ID: 5 a52: A/52 channels:2 samplerate:48000 bitrate:256000 main debug: looking for audio output module: 3 candidates xvideo debug: Window manager supports NetWM xvideo debug: Window manager supports _NET_WM_STATE_FULLSCREEN xvideo debug: Window manager supports _NET_WM_STATE_ABOVE xvideo debug: Window manager supports _NET_WM_STATE_BELOW main debug: using video output module "xvideo" main debug: waiting for thread completion main debug: got 8 direct buffer(s) main debug: picture in 704x480 (0,0,704x480), chroma I420, ar 176:135, sar 8:9 main debug: picture user 704x480 (0,0,704x480), chroma I420, ar 176:135, sar 8:9 main debug: picture out 704x480 (0,0,704x480), chroma I420, ar 176:135, sar 8:9 main debug: direct render, mapping render pictures 0-6 to system pictures 1-7 main debug: thread 1166059856 (video output) created at priority 0 (video_output/video_output.c:421) main warning: dts != current_pts (88388) main warning: vout synchro warning: pts != current_date (-33367) alsa debug: opening ALSA device `default' main debug: thread 1149274448 (aout) created at priority 0 (alsa.c:662) main debug: using audio output module "alsa" main debug: output 's16l' 48000 Hz Stereo frame=1 samples/4 bytes main debug: mixer 'fl32' 48000 Hz Stereo frame=1 samples/8 bytes main debug: filter(s) 'fl32'->'s16l' 48000 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 24 candidates main debug: using audio filter module "float32tos16" main debug: found a filter for the whole conversion main debug: looking for audio mixer module: 3 candidates main debug: using audio mixer module "float32_mixer" main debug: input 'a52 ' 48000 Hz Stereo frame=1536 samples/1024 bytes main debug: filter(s) 'a52 '->'fl32' 48000 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 24 candidates main debug: using audio filter module "a52tofloat32" main debug: found a filter for the whole conversion main debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz Stereo->Stereo main debug: looking for audio filter module: 24 candidates main debug: using audio filter module "bandlimited_resampler" main debug: found a filter for the whole conversion main debug: decoded 103/105 pictures main warning: late picture skipped (23422) alsa debug: recovered from buffer underrun main warning: computed PTS is out of range (562113), clearing out main warning: PTS is out of range (562161), dropping buffer main warning: output PTS is out of range (572842), clearing out main warning: PTS is out of range (530188), dropping buffer main warning: PTS is out of range (498480), dropping buffer main warning: PTS is out of range (466487), dropping buffer main warning: PTS is out of range (434552), dropping buffer main warning: PTS is out of range (402560), dropping buffer main warning: PTS is out of range (370705), dropping buffer main warning: PTS is out of range (338711), dropping buffer main warning: PTS is out of range (306858), dropping buffer main warning: PTS is out of range (274867), dropping buffer main warning: PTS is out of range (242951), dropping buffer main warning: PTS is out of range (210958), dropping buffer main warning: PTS is out of range (179059), dropping buffer main warning: PTS is out of range (147065), dropping buffer main warning: PTS is out of range (115476), dropping buffer main warning: PTS is out of range (83489), dropping buffer main warning: PTS is out of range (51905), dropping buffer main warning: PTS is out of range (19913), dropping buffer main warning: PTS is out of range (-11859), dropping buffer main warning: late picture skipped (135013) main warning: late picture skipped (68343) main debug: audio output is starving (21749), playing silence main debug: decoded 101/105 pictures main warning: late picture skipped (169465) main warning: late picture skipped (136159) main warning: late picture skipped (102800) main warning: late picture skipped (69436) main warning: late picture skipped (63250) main debug: decoded 102/105 pictures alsa debug: recovered from buffer underrun main warning: backward_pts != dts (593299) main warning: computed PTS is out of range (253687), clearing out main warning: PTS is out of range (253700), dropping buffer main warning: output PTS is out of range (264376), clearing out main debug: audio output is starving (360221), playing silence main warning: late picture skipped (17640) main warning: vout synchro warning: pts != current_date (-593300) main warning: late picture skipped (64202)
[edit] Getting Gattica DVD to play
I had successfully played other commercial/encrypted DVDs before, so I was puzzled when this one didn't work right...
Specifically, I could get audio to play, but not video. I tried (and got the same results with) Totem, VLC, and MPlayer.
$ mplayer dvd://1 ... ========================================================================== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough VDec: vo config request - 720 x 480 (preferred colorspace: Mpeg PES) Could not find matching colorspace - retrying with -vf scale... Opening video filter: [scale] The selected video_out device is incompatible with this codec. Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp. VDecoder init failed :( Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2)) ==========================================================================
I wondered if I was still missing some codecs. I discovered I hadn't done this yet...
$ sudo apt-get install non-free-codecs ... The following NEW packages will be installed: non-free-codecs w64codecs
It still didn't work (no video).
However, after doing some googling [1], I found a couple helpful hints...
http://www.linuxquestions.org/questions/red-hat-31/centos5-mplayer-installed-but-no-video.-583276/.
Read the man pages for mplayer. 'man mplayer ' Goto the section Video Output Drivers. You may need to add the option -vo xv. That ususally does it but you may to use a different one like -vo x11. others listed but ususally these two work. Sometimes gl if gl is supported in the video drive rand video card.
Troubleshooting. There are a number of reasons MPlayer may not output your video correctly. If MPlayer has trouble identifying your video, all the video codecs mplayer requires may not be installed on your system. "Install Multimedia Plug-Ins" [Hack #28] explains how to find and install the various video and audio codecs you need under Linux.
If MPlayer plays the video, but the video output looks strange, you can't see it at all, or playback is very jerky, it's possible that MPlayer is configured to use the wrong video output option for your system. Try passing
-vo x11as an argument to mplayer on the command line, and see if that lets you at least view the video.
The following -vo options worked for me:
| scaled to use the full screen when in full screen mode? | ||
|---|---|---|
| gl | style="background: #DDFFDD" yes | |
| x11 | style="background: #FFBBBB" no | |
| gl2 | ||
| ggi | ||
| aa, caca |
[edit] Why doesn't it work with Totem?
When I try to play it in Totem (xine), it plays the audio for the Columbia Pictures introduction theme, which lasts 0:28. After that, it "plays" an empty clip of length 0:01, with the slider positioned at about 95% and refusing to be moved. The previous and next chapter buttons are grayed out. There it sits and I can't do anything to change its mind.
I wonder if this has as its root the same problem that I was having with MPlayer: it's trying to play on a "video_out" that doesn't work for my system (at least for this particular DVD). I think I've sort of confirmed that this is the problem...
While leaving Totem open, I tried starting MPlayer:
$ mplayer dvd://1 ... Xv: could not grab port 73 Could not find free Xvideo port - maybe another process is already using it. Close all video applications, and try again. If that does not help, see 'mplayer -vo help' for other (non-xv) video out drivers. Error opening/initializing the selected video_out (-vo) device.
This seems to indicate that Totem is trying to use the Xvideo port, which is obviously the default port/video_out that MPlayer uses as well (since I can use MPlayer while Totem is open, if I use a different video_out, say, -vo gl). And since that "video out driver" didn't work for MPlayer, it stands to reason that it wouldn't work for Totem either.
Unfortunately, I don't know of any way to tell Totem to use a different port (like gl), like I could do with MPlayer.
(Interestingly, even though the User Interface of Totem wouldn't let me navigate to later chapters (to listen to them, even if I couldn't watch them), I could do that with Xine Movie Player... Xine Movie Player (which uses the same xine engine for playing movies, as I understand it), although less "pretty" than Totem, lets me at least skip to any chapter using the next/previous chapter buttons, and listen to the audio...)
[edit] Why doesn't it work with VLC?
When I try to play it with VLC using the DVD (menus) option, it plays a 1-second empty clip, with a very-dark-blue background and then stops at the end. When I pressed Next, it repeated this empty clip and then stopped. When I pressed Next again, it did nothing. When I pressed Previous, it actually started the main title (length: 1:46:19). No video.
When I tried to play it using the DVD (simple) option, it started right into the title. No video.
Here are some of the logged messages:
main debug: adding playlist item `dvdsimple:///dev/hdc' ( dvdsimple:///dev/hdc ) main debug: creating new input thread main debug: waiting for thread completion main debug: thread 1157667152 (input) created at priority 0 (input/input.c:265) main debug: `dvdsimple:///dev/hdc' gives access `dvdsimple' demux `' path `/dev/hdc' main debug: creating demux: access='dvdsimple' demux='' path='/dev/hdc' main debug: looking for access_demux module: 1 candidate dvdread debug: VMG opened dvdread debug: number of titles: 1 dvdread debug: title 0 has 28 chapters dvdread debug: open VTS 1, for title 1 dvdread debug: title 1 vts_title 1 pgc 1 pgn 1 start 0 end 1726991 blocks: 1726992 main debug: selecting program id=0 dvdread debug: audio position 0 dvdread debug: audio position 1 dvdread debug: audio position 2 dvdread debug: audio position 3 dvdread debug: spu 1 0x80000000 dvdread debug: spu 2 0x80010100 dvdread debug: spu 3 0x80020200 main debug: using access_demux module "dvdread" main debug: looking for decoder module: 25 candidates main debug: using decoder module "libmpeg2" main debug: thread 1124096336 (decoder) created at priority 0 (input/decoder.c:159) main debug: looking for decoder module: 25 candidates main debug: using decoder module "a52" main debug: thread 1149274448 (decoder) created at priority 0 (input/decoder.c:159) main debug: `dvdsimple:///dev/hdc' successfully opened libmpeg2 debug: 720x480 (display 720,480), aspect 768000, sar 32:27, 29.971 fps main debug: no usable vout present, spawning one main debug: window size: 853x480 main debug: looking for video output module: 6 candidates xvideo debug: adaptor 0, port 73, format 0x32315659 (YV12) planar main debug: Registering subpicture channel, ID: 2 main debug: Registering subpicture channel, ID: 3 main debug: Registering subpicture channel, ID: 4 main debug: Registering subpicture channel, ID: 5 a52: A/52 channels:2 samplerate:48000 bitrate:192000 main debug: looking for audio output module: 3 candidates alsa debug: opening ALSA device `default' main debug: thread 1166059856 (aout) created at priority 0 (alsa.c:662) main debug: using audio output module "alsa" main debug: output 's16l' 48000 Hz Dolby frame=1 samples/4 bytes main debug: mixer 'fl32' 48000 Hz Dolby frame=1 samples/8 bytes main debug: filter(s) 'fl32'->'s16l' 48000 Hz->48000 Hz Dolby->Dolby main debug: looking for audio filter module: 24 candidates main debug: using audio filter module "float32tos16" main debug: found a filter for the whole conversion main debug: looking for audio mixer module: 3 candidates main debug: using audio mixer module "trivial_mixer" main debug: input 'a52 ' 48000 Hz Dolby frame=1536 samples/768 bytes main debug: filter(s) 'a52 '->'fl32' 48000 Hz->48000 Hz Dolby->Dolby main debug: looking for audio filter module: 24 candidates main debug: using audio filter module "a52tofloat32" main debug: found a filter for the whole conversion main debug: filter(s) 'fl32'->'fl32' 52800 Hz->48000 Hz Dolby->Dolby main debug: looking for audio filter module: 24 candidates main debug: using audio filter module "bandlimited_resampler" main debug: found a filter for the whole conversion xvideo debug: Window manager supports NetWM xvideo debug: Window manager supports _NET_WM_STATE_FULLSCREEN xvideo debug: Window manager supports _NET_WM_STATE_ABOVE xvideo debug: Window manager supports _NET_WM_STATE_BELOW main debug: using video output module "xvideo" main debug: waiting for thread completion main debug: got 8 direct buffer(s) main debug: picture in 720x480 (0,0,720x480), chroma I420, ar 16:9, sar 32:27 main debug: picture user 720x480 (0,0,720x480), chroma I420, ar 16:9, sar 32:27 main debug: picture out 720x480 (0,0,720x480), chroma I420, ar 16:9, sar 32:27 main debug: direct render, mapping render pictures 0-6 to system pictures 1-7 main debug: thread 1132489040 (video output) created at priority 0 (video_output/video_output.c:421) main warning: dts != current_pts (562672) main warning: backward_pts != current_pts (-33367) main warning: late picture skipped (250112) main warning: late picture skipped (52372) main warning: late picture skipped (19053) main warning: late picture skipped (191517) main warning: late picture skipped (158193) main warning: late picture skipped (108151) main warning: late picture skipped (74787) main warning: late picture skipped (55827) main warning: late picture skipped (22533) main debug: decoded 93/108 pictures main warning: late picture skipped (155826) main warning: late picture skipped (105853) main warning: late picture skipped (73223) main warning: late picture skipped (23176) main warning: late picture skipped (20716) main debug: decoded 107/108 pictures main debug: control type=0 main debug: control: stopping input main debug: closing input main debug: removing module "libmpeg2" main debug: thread 1124096336 joined (input/decoder.c:191) main debug: killing decoder fourcc `mpgv', 20 PES in FIFO main debug: removing module "a52" main debug: thread 1149274448 joined (input/decoder.c:191) main debug: killing decoder fourcc `a52 ', 0 PES in FIFO main debug: removing module "a52tofloat32" main debug: removing module "bandlimited_resampler" main debug: thread 1166059856 joined (alsa.c:714) main debug: removing module "alsa" main debug: removing module "float32tos16" main debug: removing module "trivial_mixer" main debug: looking for decoder module: 25 candidates main debug: using decoder module "a52" main debug: thread 1166059856 (decoder) created at priority 0 (input/decoder.c:159) main debug: removing module "a52" main debug: thread 1166059856 joined (input/decoder.c:191) main debug: killing decoder fourcc `a52 ', 1 PES in FIFO main debug: looking for decoder module: 25 candidates main debug: using decoder module "a52" main debug: thread 1166059856 (decoder) created at priority 0 (input/decoder.c:159) main debug: removing module "a52" main debug: thread 1166059856 joined (input/decoder.c:191) main debug: killing decoder fourcc `a52 ', 1 PES in FIFO main debug: looking for decoder module: 25 candidates main debug: using decoder module "a52" main debug: thread 1166059856 (decoder) created at priority 0 (input/decoder.c:159) main debug: removing module "a52" main debug: thread 1166059856 joined (input/decoder.c:191) main debug: killing decoder fourcc `a52 ', 1 PES in FIFO main debug: Program doesn't contain anymore ES main debug: removing module "dvdread" main debug: thread 1157667152 joined (input/input.c:412) main debug: garbage collector destroys 1 vout main debug: removing module "xvideo" main debug: thread 1132489040 joined (video_output/video_output.c:461)
Note, in particular, this line:
main debug: using video output module "xvideo"
So is there some way to change which video output module is used?
Yes, in fact, there is!
Go to menu "Settings: Preferences...". In the preferences menu, navigate to "Video: Output modules". The "Video output module" option was set to "Default". When I changed it to "X11 video output" and tried again, everything worked perfectly with VLC.
[edit] Tried Amazing Discoveries DVD again
This time, it worked perfectly:
- VLC player (both with menus and without)
- MPlayer (not with default settings, but with
-vo x11or-vo gl)
When I selected "Play disc" from Totem, it opened a dialog box titled "Select Movies or Playlists". The selected path was /media/cdrom0, and the disk was labeled DVD_VIDEO_RECORDER (this wasn't a very professionally made DVD). That might have been fine, if it had listed some files or something, but there was nothing listed, so the "Add" button was useless and I ended up clicking "Cancel".
Normally when you choose Play disc in Totem, it just starts playing. But I guess this disc lacks something that Totem expects. This is further confirmed: When I selected from the menu Movie: cdrom0, it gave this error:
- Totem could not play 'file:///media/cdrom0/VIDEO_TS'.
When I went to /media/cdrom0/ in Nautilus, it actually did list VIDEO_TS. However, when I tried to enter into this folder, it said:
- Couldn't display "/media/cdrom0/VIDEO_TS".
- The attempt to log in failed
Okay, whatever.
Similar story on the command line:
$ cd /media/cdrom0 bash: cd: /media/cdrom0: Permission denied $ ls /media/cdrom0 -al total 0 ?--------- ? ? ? ? ? /media/cdrom0/. ?--------- ? ? ? ? ? /media/cdrom0/.. ?--------- ? ? ? ? ? /media/cdrom0/VIDEO_TS
So something about the way this DVD is formatted must just be non-standard or messed up. So I can't really blame Totem or Linux this time, I guess...
[edit] Article metadata
- Problems that I encountered earlier but are resolved now should be displayed in a very summarized way (if at all) by default; only current/open/unresolved problems should be given in great verbosity (because I want people to help me to solve my problem, and they need as many details as possible).
- Some of the threads overlap chronologically. For instance, I started the Amazing Discoveries DVD thread, then the Gattica DVD thread, which fixed the problem I was having with Amazing Discoveries DVD. If I then report in the AD DVD thread that it has started working, then I need to also report the steps done during the Gattica DVD thread that effected this solution. How to do that without duplicating the content?
- Make the "installing package" action be generic enough that it can be included in both sections
- Give everything a timestamp
- Allow AD DVD thread to include these events:
- Had problem
- Installed package
- Problem resolved
- Gattica DVD thread would have the same type of events, but 1 and 3 would be worded differently and only 2 shared verbatim.
[Ubuntu 7.10 (category)]
