You are not logged in.

#1 2014-12-10 20:59:34

vyktor
Member
From: Slovakia
Registered: 2011-06-07
Posts: 12

ffplay doesn't play video after using chromium

Primarily my VLC stops playing movies after a while of using PC (and I think it stops working after first youtube video in chrome... I have chromium with gtalk and google talk plugin, stackoverflow.com and youtube opened... and the only one that seems to me to be related to video is youtube).

This is what I get trying to use ffplay:

[vyktor@machine ~]$ ffplay file.mp4 -loglevel debug
ffplay version 2.5 Copyright (c) 2003-2014 the FFmpeg developers
  built on Dec  4 2014 21:09:42 with gcc 4.9.2 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-avresample --enable-fontconfig --enable-gnutls --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libv4l2 --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-runtime-cpudetect --enable-shared --enable-swresample --enable-vdpau --enable-version3 --enable-x11grab
  libavutil      54. 15.100 / 54. 15.100
  libavcodec     56. 13.100 / 56. 13.100
  libavformat    56. 15.102 / 56. 15.102
  libavdevice    56.  3.100 / 56.  3.100
  libavfilter     5.  2.103 /  5.  2.103
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f05e8000920] Format mov,mp4,m4a,3gp,3g2,mj2 probed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f05e8000920] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f05e8000920] Before avformat_find_stream_info() pos: 599402532 bytes read:2866001 seeks:1
[h264 @ 0x7f05e80022e0] no picture 
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f05e8000920] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f05e8000920] After avformat_find_stream_info() pos: 2852731 bytes read:2898769 seeks:2 frames:13
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2014-10-06 03:51:25
  Duration: 01:37:26.93, start: 0.000000, bitrate: 820 kb/s
    Stream #0:0(und), 12, 1/24000: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709/unknown/unknown, left), 720x404 (720x416) [SAR 1:1 DAR 180:101], 1001/48000, 694 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
    Metadata:
      creation_time   : 2014-10-06 03:51:25
    Stream #0:1(und), 1, 1/48000: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 121 kb/s (default)
    Metadata:
      creation_time   : 2014-10-06 03:51:30
      handler_name    : GPAC ISO Audio Handler
detected 2 logical cores
[ffplay_abuffer @ 0x7f05e8288d20] Setting 'sample_rate' to value '48000'
[ffplay_abuffer @ 0x7f05e8288d20] Setting 'sample_fmt' to value 'fltp'
[ffplay_abuffer @ 0x7f05e8288d20] Setting 'channels' to value '2'
[ffplay_abuffer @ 0x7f05e8288d20] Setting 'time_base' to value '1/48000'
[ffplay_abuffer @ 0x7f05e8288d20] Setting 'channel_layout' to value '0x3'
[ffplay_abuffer @ 0x7f05e8288d20] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
[ffplay_abuffersink @ 0x7f05e8289b60] auto-inserting filter 'auto-inserted resampler 0' between the filter 'ffplay_abuffer' and the filter 'ffplay_abuffersink'
[AVFilterGraph @ 0x7f05e8009200] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x7f05e828ab80] ch:2 chl:stereo fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz
Audio frame changed from rate:48000 ch:2 fmt:fltp layout:stereo serial:-1 to rate:48000 ch:2 fmt:fltp layout:stereo serial:1
[ffplay_abuffer @ 0x7f05dc005240] Setting 'sample_rate' to value '48000'
[ffplay_abuffer @ 0x7f05dc005240] Setting 'sample_fmt' to value 'fltp'
[ffplay_abuffer @ 0x7f05dc005240] Setting 'channels' to value '2'
[ffplay_abuffer @ 0x7f05dc005240] Setting 'time_base' to value '1/48000'
[ffplay_abuffer @ 0x7f05dc005240] Setting 'channel_layout' to value '0x3'
[ffplay_abuffer @ 0x7f05dc005240] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
[ffplay_abuffersink @ 0x7f05dc0063c0] auto-inserting filter 'auto-inserted resampler 0' between the filter 'ffplay_abuffer' and the filter 'ffplay_abuffersink'
[AVFilterGraph @ 0x7f05dc004f40] query_formats: 2 queried, 0 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x7f05dc0076e0] ch:2 chl:stereo fmt:fltp r:48000Hz -> ch:2 chl:stereo fmt:s16 r:48000Hz
[h264 @ 0x7f05e828f4e0] no picture 
[h264 @ 0x7f05e8296680] no picture 
Video frame changed from size:0x0 format:none serial:-1 to size:720x404 format:yuv420p serial:1
[ffplay_buffer @ 0x7f05d406c160] Setting 'video_size' to value '720x404'
[ffplay_buffer @ 0x7f05d406c160] Setting 'pix_fmt' to value '0'
[ffplay_buffer @ 0x7f05d406c160] Setting 'time_base' to value '1/24000'
[ffplay_buffer @ 0x7f05d406c160] Setting 'pixel_aspect' to value '1/1'
[ffplay_buffer @ 0x7f05d406c160] Setting 'frame_rate' to value '24000/1001'
[ffplay_buffer @ 0x7f05d406c160] w:720 h:404 pixfmt:yuv420p tb:1/24000 fr:24000/1001 sar:1/1 sws_param:
[ffplay_crop @ 0x7f05d406cb20] Setting 'out_w' to value 'floor(in_w/2)*2'
[ffplay_crop @ 0x7f05d406cb20] Setting 'out_h' to value 'floor(in_h/2)*2'
[AVFilterGraph @ 0x7f05d4000b80] query_formats: 3 queried, 2 merged, 0 already done, 0 delayed
[ffplay_crop @ 0x7f05d406cb20] w:720 h:404 sar:1/1 -> w:720 h:404 sar:1/1
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  151 (XVideo)
  Minor opcode of failed request:  19 ()
  Serial number of failed request:  25
  Current serial number in output stream:  26

I was unable to google Major opcode of failed request:  151 (XVideo) for a few hours. I'm running:

[vyktor@machine ~]$ uname -a
Linux machine 3.17.4-1-ARCH #1 SMP PREEMPT Fri Nov 21 21:14:42 CET 2014 x86_64 GNU/Linux
[vyktor@machine ~]$ pacman -Ss vlc
extra/phonon-qt4-vlc 0.8.2-1
    Phonon VLC backend for Qt4
extra/phonon-qt5-vlc 0.8.2-1
    Phonon VLC backend for Qt5
extra/vlc 2.1.5-5 [installed]
    A multi-platform MPEG, VCD/DVD, and DivX player
[vyktor@machine ~]$ pacman -Ss ffmpeg
extra/ffmpeg 1:2.5-1 [installed]
    Complete and free Internet live audio and video broadcasting solution
extra/ffmpeg-compat 1:0.10.15-1 [installed]
    Complete and free Internet live audio and video broadcasting solution
extra/ffmpegthumbnailer 2.0.9-2 [installed]
    Lightweight video thumbnailer that can be used by file managers.
extra/gst-libav 1.4.4-1 [installed]
    Gstreamer libav Plugin
extra/gstreamer0.10-ffmpeg 0.10.13-2 (gstreamer0.10-plugins) [installed]
    Gstreamer FFMpeg Plugin
extra/kdemultimedia-ffmpegthumbs 4.14.3-1 (kde kdemultimedia)
    FFmpeg-based thumbnail creator for video files
community/ffmpeg2theora 0.29-6
    Simple converter to create Ogg Theora files
community/ffms2 2.20-2
    A libav/ffmpeg based source library and Avisynth plugin for easy frame accurate access
community/winff 1.5.3-2
    GUI for ffmpeg
[vyktor@machine ~]$ pacman -Ss chromium
extra/chromium 39.0.2171.95-1 [installed]
    The open-source project behind Google Chrome, an attempt at creating a safer, faster, and more stable browser
community/chromium-bsu 0.9.15.1-1
    A fast paced top scrolling shooter
community/fcitx-mozc 1.15.1917.102-1
    Fcitx Module of A Japanese Input Method for Chromium OS, Windows, Mac and Linux (the Open Source Edition of Google Japanese Input)

VLC opens and runs audio but with no video.

In chromium, video runs just fine.

I think (I'm not sure) that first youtube video stops vlc/ffplay from working properly.

Further more, after setting video output to X11 instead of "Default" in VLC videos start playing again, but still no luck with ffplay.

Output device set to X11 works (although with some errors):

[vyktor@machine ~]$ vlc --vout X11 file.mp4 -v
VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5)
[0x1344118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libvcdx_plugin.so' (libvcdinfo.so.0: cannot open shared object file: No such file or directory)
[0x1344118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libprojectm_plugin.so' (libprojectM.so.2: cannot open shared object file: No such file or directory)
[0x1344118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libgoom_plugin.so' (libgoom2.so.0: cannot open shared object file: No such file or directory)
[0x1344118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/codec/libtwolame_plugin.so' (libtwolame.so.0: cannot open shared object file: No such file or directory)
[0x1414c38] pulse audio output error: PulseAudio server connection failure: Connection refused
[0x1344118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x7f4c80c01598] mp4 stream warning: unknown box type btrt (incompletely loaded)
[0x7f4c80c01828] mp4 demux warning: CTTS table
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7f4c81601b08] faad decoder warning: decoded zero sample
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7f4c8155a5f8] avcodec decoder warning: disabling direct rendering
[0x7f4c64001248] main vout display warning: VoutDisplayEvent 'pictures invalid'
[0x7f4c64001248] main vout display warning: VoutDisplayEvent 'pictures invalid'
[0x7f4c64001248] main vout display error: Failed to resize display
[0x1414c38] alsa audio output warning: device cannot be paused

With XVideo:

[vyktor@machine ~]vlc --vout XVideo file.mp4 -v
VLC media player 2.1.5 Rincewind (revision 2.1.4-49-gdab6cb5)
[0x1bd9118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/access/libvcdx_plugin.so' (libvcdinfo.so.0: cannot open shared object file: No such file or directory)
[0x1bd9118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libprojectm_plugin.so' (libprojectM.so.2: cannot open shared object file: No such file or directory)
[0x1bd9118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/visualization/libgoom_plugin.so' (libgoom2.so.0: cannot open shared object file: No such file or directory)
[0x1bd9118] main libvlc warning: cannot load module `/usr/lib/vlc/plugins/codec/libtwolame_plugin.so' (libtwolame.so.0: cannot open shared object file: No such file or directory)
[0x1ca9c38] pulse audio output error: PulseAudio server connection failure: Connection refused
[0x1bd9118] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[0x7f2f98c01598] mp4 stream warning: unknown box type btrt (incompletely loaded)
[0x7f2f98c01808] mp4 demux warning: CTTS table
[0x7f2f99601908] faad decoder warning: decoded zero sample
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
Fontconfig warning: FcPattern object size does not accept value "0"
[0x7f2f9955a668] avcodec decoder warning: disabling direct rendering
[0x7f2f78001248] main vout display error: Failed to resize display
[0x1ca9c38] alsa audio output warning: device cannot be paused


With -vv:
...
[0x7f7a30001248] xcb_xv vout display debug: cannot put image: X11 error 1
[0x7f7a30001248] xcb_xv vout display debug: cannot put image: X11 error 1
[0x7f7a30001248] xcb_xv vout display debug: cannot put image: X11 error 1
[0x7f7a30001248] xcb_xv vout display debug: cannot put image: X11 error 1
[0x7f7a30001248] xcb_xv vout display debug: cannot put image: X11 error 1
[0x7f7a30001248] xcb_xv vout display debug: cannot put image: X11 error 1
...

Last edited by vyktor (2014-12-11 11:33:12)

Offline

#2 2014-12-11 11:14:21

Henrikx
Member
From: https://bbs.archlinux.de/
Registered: 2014-02-06
Posts: 22

Re: ffplay doesn't play video after using chromium

Mabey you try another output device? xv, gl, etc.

Maybe the problem is mp4.mp4 often makes problems..

Try Matroska

ffmpeg -fflags genpts -i "file.mp4" -acodec copy -vcodec copy "file.mkv"

Offline

#3 2014-12-11 11:36:25

vyktor
Member
From: Slovakia
Registered: 2011-06-07
Posts: 12

Re: ffplay doesn't play video after using chromium

I have few mkv files and the result is the same.

ffplay -vn works, with video I get Major opcode of failed request:  151 (XVideo)

I've added output from VLC to original post with output out of different VLCs --vouts...

Offline

#4 2015-08-21 04:54:05

gajjanag
Member
From: Cambridge, MA
Registered: 2015-05-10
Posts: 17
Website

Re: ffplay doesn't play video after using chromium

@vyktor: Bug report is welcome at https://trac.ffmpeg.org

Please read https://www.ffmpeg.org/bugreports.html before submitting.


"Behind every theorem lies an inequality" - A N Kolmogorov

Offline

Board footer

Powered by FluxBB