(Ubuntu 11.10, Gnome Classic with Compiz, Nvidia graphics card)
This problem occurs with every and all video, whether it's a Youtube video in Firefox, an AVI file in movie player, or any other video. Video simply does not work.
When I start any kind of video, the image halts after a second or two. The sound, however, continues.
Before it seemed that if I delete all the files in ~/.gstreamer-0.10/
, then reboot, the video will play. However this is no longer the case. Manipulating files in that directory does nothing to help the situation.
I am now no longer sure this is a gstreamer issue or something else. I am open to any and all possibilities.
How can I get video playback to run smoothly on my machine?
Update: VLC seems to be working now. However, video will not play in any browser, so there is still something amiss.
As requested in comments, this is the output from playing from the command line. Note it says "Your system is too SLOW to play this!" which is patently untrue. The computer has never had any trouble playing video of any size up until upgrading to 11.10. I am assuming that this is symptomatic of some other problem.
$ mplayer standup_20090523.mp4
MPlayer2 UNKNOWN (C) 2000-2011 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing standup_20090523.mp4.
Detected file format: QuickTime/MPEG-4/Motion JPEG 2000 format (libavformat)
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
VIDEO: [H264] 480x320 24bpp 29.970 fps 706.1 kbps (86.2 kbyte/s)
Clip info:
major_brand: isom
minor_version: 512
compatible_brands: isomiso2avc1mp41
creation_time: 1970-01-01 00:00:00
encoder: Lavf52.64.2
Load subtitles in .
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Asking decoder to use 4 threads if supported.
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 123.9 kbit/8.07% (ratio: 15492->192000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A: 0.0 V: 0.0 A-V: 0.000 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [vdpau] 480x320 => 480x360 Planar YV12
[vdpau] Got display refresh rate 60.020 Hz.
[vdpau] If that value looks wrong give the -vo vdpau:fps=X suboption manually.
A: 0.2 V: 0.3 A-V: -0.040 ct: -0.000 0/ 0 ??% ??% ??,?% 0 0
[AO_ALSA] Write error: Broken pipe
[AO_ALSA] Trying to reset soundcard.
A: 7.7 V: 2.0 A-V: 5.775 ct: -0.000 0/ 0 7% 4% 61.8% 50 0
************************************************
**** Your system is too SLOW to play this! ****
************************************************
Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
- Try -ao sdl or use the OSS emulation of ALSA.
- Experiment with different values for -autosync, 30 is a good start.
- Slow video output
- Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
- Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
- Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
- Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
- Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.
A: 7.9 V: 8.0 A-V: -0.036 ct: 0.000 0/ 0 2% 2% 15.2% 218 0
[AO_ALSA] Write error: Broken pipe
[AO_ALSA] Trying to reset soundcard.
A: 11.1 V: 11.2 A-V: -0.043 ct: 0.000 0/ 0 2% 2% 19.3% 300 0
[AO_ALSA] Write error: Broken pipe
[AO_ALSA] Trying to reset soundcard.
A: 16.7 V: 11.2 A-V: 5.443 ct: 0.000 0/ 0 2% 2% 24.7% 300 0
Exiting... (Quit)
More requested command line output:
$ gst-launch-0.10 --gst-debug='*:2' playbin2 uri=file:///home/dave/Vi
Videos/ Visa/
dave@homebase:~/Videos/Stand_Up_for_Mobile$ gst-launch-0.10 --gst-debug='*:2' playbin2 uri=file:///home/dave/Videos/Stand_Up_for_Mobile/standup_20090523.mp4
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:00.070988199 19816 0x97287c0 WARN qtdemux qtdemux_types.c:191:qtdemux_type_get: unknown QuickTime node type avc1
0:00:00.071037322 19816 0x97287c0 WARN qtdemux qtdemux_types.c:191:qtdemux_type_get: unknown QuickTime node type avcC
0:00:00.071062385 19816 0x97287c0 WARN qtdemux qtdemux.c:8541:qtdemux_parse_tree:<qtdemux0> Can't handle datetimes before 1970 yet, please file a bug at http://bugzilla.gnome.org
0:00:00.071373884 19816 0x97287c0 WARN qtdemux qtdemux.c:6896:qtdemux_parse_trak:<qtdemux0> unknown version 00000000
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
0:00:00.147461464 19816 0x959f050 WARN bin gstbin.c:2380:gst_bin_do_latency_func:<playbin20> did not really configure latency of 0:00:00.000000000
New clock: GstPulseSinkClock
0:00:27.651053215 19816 0x992aef0 WARN pulse pulsesink.c:630:gst_pulsering_stream_underflow_cb:<audiosink-actual-sink-pulse> Got underflow
^CCaught interrupt -- handling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 45797315295 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
mplayer
orvlc
work? If not, please add the console output of mplayer when trying to playback a video usingmplayer filename
-ao pulse
. So it looks like your error is indeed with gstreamer. Could you please try if this works, and post the result if there are errors/warnings?gst-launch-0.10 --gst-debug='*:2' playbin2 uri=file:///home/user/complete/path/to/file
. If you cancel playback, please do so by pressing Ctrl-C in the command line, not by closing the video window.