You are not logged in.

#1 2015-05-15 13:34:28

shaief
Member
Registered: 2014-10-29
Posts: 8

Can't play some h264 movies using ffmpeg / vlc / mplayer

kernel version: 4.0.2 Graphic card: Intel Graphics. I can't play h264 videos using ffmpeg / vlc / mplayer:

I have two bulks of movies from the same camera:
I can play movies from one bulk (they randomly work and sometime they present black screen).

The other bulk play scrmbled picture and annyoing noises.

Here are the logs:

ffplay:

ffplay version 2.6.2 Copyright (c) 2003-2015 the FFmpeg developers
  built with gcc 4.9.2 (GCC) 20150304 (prerelease)
  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-libschroedinger --enable-libspeex --enable-libssh --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. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  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
[h264 @ 0x7ff028004f40] AVC: nal size -1485761236 sq=    0B f=0/0   
[h264 @ 0x7ff028004f40] no frame!
[h264 @ 0x7ff028004f40] AVC: nal size 1009942102
[h264 @ 0x7ff028004f40] no frame!

vlc:

VLC media player 2.2.1 Terry Pratchett (Weatherwax) (revision 2.2.1-0-ga425c42)
[0000000001c19118] core 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)
[0000000001c19118] core 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)
[0000000001c19118] core 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)
[0000000001c19118] core libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00007f76f0c015d8] mp4 stream warning: unknown box type alis (incompletely loaded)
[00007f76f0c015d8] mp4 stream warning: unknown box type hdlr (incompletely loaded)
[00007f76f0c015d8] mp4 stream warning: unknown box type alis (incompletely loaded)
[00007f76f0c015d8] mp4 stream warning: unknown box type hdlr (incompletely loaded)
[00007f76f0c015d8] mp4 stream warning: unknown box type TAGS (incompletely loaded)
[00007f76f0c015d8] mp4 stream warning: unknown box type U (incompletely loaded)
[00007f76f0c01878] mp4 demux warning: elst box found
[00007f76f0c01878] mp4 demux warning: STTS table of 1 entries
[00007f76f0c01878] mp4 demux warning: elst box found
[00007f76f0c01878] mp4 demux warning: STTS table of 1 entries
[h264 @ 0x7f76f0cceb80] AVC: nal size -1485761236
[h264 @ 0x7f76f0cceb80] AVC: nal size -1485761236
[h264 @ 0x7f76f0cceb80] no frame!
[00007f76f0c14048] avcodec decoder warning: cannot decode one frame (71453 bytes)

I'll be happy to supply additional information.

Thanks!

Last edited by shaief (2015-05-15 14:01:56)

Offline

#2 2015-05-15 14:54:40

Malkymder
Member
Registered: 2015-05-13
Posts: 258

Re: Can't play some h264 movies using ffmpeg / vlc / mplayer

Offline

#3 2015-05-15 17:09:11

shaief
Member
Registered: 2014-10-29
Posts: 8

Re: Can't play some h264 movies using ffmpeg / vlc / mplayer

Thanks Malkymder.
I'm  not sure why you've sent me to these threads, but they are only randomly j related to my issue.

Last edited by shaief (2015-05-15 17:09:28)

Offline

#4 2015-05-16 19:45:15

Malkymder
Member
Registered: 2015-05-13
Posts: 258

Re: Can't play some h264 movies using ffmpeg / vlc / mplayer

Which ffmpeg package do you have installed ... if your using ffmpeg-full i believe it has issues with vlc ...

sudo pacman -R ffmpeg-full && sudo pacman -S ffmpeg

Offline

#5 2015-05-16 21:53:57

shaief
Member
Registered: 2014-10-29
Posts: 8

Re: Can't play some h264 movies using ffmpeg / vlc / mplayer

Malkymder wrote:

Which ffmpeg package do you have installed ... if your using ffmpeg-full i believe it has issues with vlc ...

sudo pacman -R ffmpeg-full && sudo pacman -S ffmpeg

Thanks. I had ffmpeg installed (not ffmpeg-full).

Offline

#6 2015-05-18 20:13:16

shaief
Member
Registered: 2014-10-29
Posts: 8

Re: Can't play some h264 movies using ffmpeg / vlc / mplayer

An update - i wanted to check in depth, so i reinstalled Arch. The same symptoms were there, this time i was unable to load gnome-terminal.

So i tried again and installed Ubuntu 14.04 instead: on Ubuntu everything works. This way i rejected my assumption of hardware failure.

I wonder what in my Arch installation went wrong and created this random behaviour.

Any ideas?

Offline

#7 2015-05-19 02:58:08

Malkymder
Member
Registered: 2015-05-13
Posts: 258

Re: Can't play some h264 movies using ffmpeg / vlc / mplayer

Double check which gstreamer0.10 versions you have installed (gstreamer0.10-good gstreamer0.10-bad gstreamer0.10-ugly)

also try running vlc with

vlc -vvv my_file.mp4

also look at what codec is being selected in VLC, mplayer and mediainfo

Offline

#8 2015-08-21 04:50:31

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

Re: Can't play some h264 movies using ffmpeg / vlc / mplayer

@shaief: From the thread it seems like it is a lower level issue that is not related to the media libraries per se (since you claim gnome-terminal does not work).

If you can reasonably rule out a lower level issue, and are convinced that it lies with the media libraries,
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

#9 2015-09-14 18:10:58

lesto
Member
Registered: 2010-07-13
Posts: 115

Re: Can't play some h264 movies using ffmpeg / vlc / mplayer

exactly same problem here, solved disabling the HW acceleration for decoding (under preferenes -> codec).

I've tested using intel decoder from AUR (aur/libva-intel-driver-g45-h264) AND from extra (extra/libva-intel-driver) same issue.

ope at least you will finally see you video (mplayer was always working fine for me, but i don't know if was using HW for decoding)

Offline

Board footer

Powered by FluxBB