.flv files not displaying video while audio works fine

I have followed the guide and most everything else works fine but for .flv files. Anyone have a beginning point for me to start? Thanks.

Well, first you should tell what player you are trying to use, and which guide you followed. (can you provide a link?)

And maybe your openSUSE version would be good to know as well. (IIRC it was 13.1, right?)

VLC, SMPlayer & Kaffeine.

https://forums.opensuse.org/blogs/caf4926/opensuse-13-1-multi-media-restricted-format-installation-guide-149/

13,1, yes.

This can’t really be a codec installation issue in this case, because MPlayer doesn’t use the system codecs but brings its own.

Maybe those files are encoded with something that’s not supported (yet) by ffmpeg?

Can you please post the content of the “Codec Information” window in VLC (see the “Tools” menu), or mplayer’s console output.

Maybe you would need the win32 codecs for those specific files… this only works for the 32bit versions of the players though.

Can’t cut and paste so I’ll type in the relevant, I think, information about the video:

Codec: H264 - MPEG-4 AVC (part 10)(avc1)
|
Decoded format: Planar 4:2:0 YUV

Codec: MPEG AAC Audio (mp4a)

That’s from VLC. I see something already in that the H264 format may be troublesome, huh? Also, I’m on a 32-bit machine, FYI.

Thanks!

No, H264 should work fine.

Hm.
Please check again that you really have “vlc-codecs” and “libxine2-codecs” installed.

Do you maybe have the VideoLAN repo added to your system as well?
This can lead to such problems.
Please post the output of “zypper lr -d”.

I just created a .flv video with ffmpeg that shows the exact same properties in VLC’s codec information, and it plays fine here (with MPlayer, Kaffeine and VLC).

Also, I’m on a 32-bit machine, FYI.

OK, in that case you could try to install the package “w32codec-all” from Packman. This contains additional Windows codecs.
But again, H264/mpeg4 should work fine without that. Those Windows codecs were only needed years ago, when most codecs didn’t have working opensource decoders.
And since they are quite old, I don’t think they even include a H264/MPEG4/AAC codec.

I’ll await further observations before applying what may be unnecessary codecs, if you think that advisable.

Your repo list looks ok.

Could you post a list of all your installed packages then please?

rpm -qa | egrep "vlc|mplayer|xine"

Maybe there is something missing…

Could you run mplayer (or vlc or kaffeine) directly in a terminal window and post the output?

mplayer xxx.flv

You should close the window or press Ctrl+C as soon as possible, so that the output doesn’t get too long.

Well, I just had a look, win32codec-all does contain an H264 codec apparently.
So you could try to install it (just search for it in YaST). If it doesn’t help, you can uninstall it easily again anyway…

linux-uc1g:/home/charles # rpm -qa | egrep “vlc|mplayer|xine”
gmplayer-1.1.1+r36500-6.1.i586
vlc-codecs-2.1.1-185.9.i586
xine-ui-0.99.7-8.1.3.i586
gnome-mplayer-1.0.8-1.3.i586
libxine2-1.2.3-89.2.i586
vlc-qt-2.1.1-185.9.i586
vlc-noX-2.1.1-185.9.i586
xinetd-2.3.15-2.1.2.i586
libvlccore7-2.1.1-185.9.i586
libvlc5-2.1.1-185.9.i586
vlc-noX-lang-2.1.1-185.9.noarch
vlc-2.1.1-185.9.i586
libxine2-pulse-1.2.3-89.2.i586
libxine2-codecs-1.2.3-89.2.i586
smplayer-skins-20130605-1.1.noarch
smplayer-0.8.6-1.1.i586
linux-uc1g:/home/charles #

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

charles@linux-uc1g:/var/run/media/charles/SCRATCH/video> mplayer pd.flv
MPlayer -4.8 (C) 2000-2013 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 pd.flv.
libavformat version 55.19.104 (internal)
libavformat file format detected.
[flv @ 0xb7485760]Stream discovered after head already parsed
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0
VIDEO: [H264] 600x480 0bpp 29.970 fps 768.4 kbps (93.8 kbyte/s)
Clip info:
starttime: 0
totalduration: 387
totaldatarate: 888
bytelength: 42901679
canseekontime: true
sourcedata: B4A7DD888HM1385488665310303
purl:
pmsg:
Load subtitles in ./

Opening video decoder: [ffmpeg] FFmpeg’s libavcodec codec family
libavcodec version 55.39.101 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)

==========================================================================
Trying to force audio codec driver family libmad…
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 131.7 kbit/4.66% (ratio: 16457->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))

AO: [pulse] 44100Hz 2ch floatle (4 bytes per sample)
Starting playback…
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 600x480 => 600x480 Planar YV12 [zoom]
A: 0.2 V: 0.0 A-V: 0.249 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
A: 0.2 V: 0.0 A-V: 0.217 ct: 0.003 0/ 0 ??% ??% ??,?% 1 0
X11 error: BadAlloc (insufficient resources for operation)
A: 0.2 V: 0.1 A-V: 0.183 ct: 0.006 0/ 0 ??% ??% ??,?% 2 0
X11 error: BadAlloc (insufficient resources for operation)
A: 0.2 V: 0.1 A-V: 0.150 ct: 0.009 0/ 0 ??% ??% ??,?% 2 0
X11 error: BadAlloc (insufficient resources for operation)
A: 0.2 V: 0.2 A-V: 0.050 ct: 0.016 0/ 0 ??% ??% ??,?% 3 0
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
A: 0.2 V: 0.2 A-V: 0.016 ct: 0.017 0/ 0 ??% ??% ??,?% 3 0
X11 error: BadAlloc (insufficient resources for operation)
A: 0.2 V: 0.3 A-V: -0.017 ct: 0.016 0/ 0 ??% ??% ??,?% 3 0
X11 error: BadAlloc (insufficient resources for operation)
A: 0.2 V: 0.3 A-V: -0.050 ct: 0.012 0/ 0 ??% ??% ??,?% 3 0
X11 error: BadAlloc (insufficient resources for operation)
A: 0.5 V: 0.5 A-V: 0.019 ct: 0.020 0/ 0 56% 30% 0.9% 3 0
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
A: 0.5 V: 0.5 A-V: 0.019 ct: 0.022 0/ 0 53% 28% 0.8% 3 0
X11 error: BadAlloc (insufficient resources for operation)
A: 0.6 V: 0.5 A-V: 0.016 ct: 0.023 0/ 0 50% 27% 0.8% 3 0
X11 error: BadAlloc (insufficient resources for operation)
A: 0.6 V: 0.6 A-V: 0.014 ct: 0.027 0/ 0 44% 25% 0.8% 3 0
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
A: 0.7 V: 0.7 A-V: 0.012 ct: 0.029 0/ 0 42% 24% 0.7% 3 0
X11 error: BadAlloc (insufficient resources for operation)
A: 0.7 V: 0.7 A-V: 0.012 ct: 0.030 0/ 0 41% 23% 0.7% 3 0
X11 error: BadAlloc (insufficient resources for operation)
A: 0.7 V: 0.7 A-V: 0.009 ct: 0.031 0/ 0 39% 22% 0.7% 3 0
X11 error: BadAlloc (insufficient resources for operation)
A: 0.8 V: 0.8 A-V: 0.009 ct: 0.032 0/ 0 37% 20% 0.7% 3 0
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
A: 0.8 V: 0.8 A-V: 0.007 ct: 0.033 0/ 0 36% 20% 0.7% 3 0
X11 error: BadAlloc (insufficient resources for operation)
A: 0.9 V: 0.9 A-V: 0.006 ct: 0.034 0/ 0 34% 19% 0.6% 3 0
X11 error: BadAlloc (insufficient resources for operation)

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

win32codec-all was NOT found in YaST. FYI.

That looks ok as well.

charles@linux-uc1g:/var/run/media/charles/SCRATCH/video> mplayer pd.flv
MPlayer -4.8 (C) 2000-2013 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 pd.flv.
libavformat version 55.19.104 (internal)
libavformat file format detected.
[flv @ 0xb7485760]Stream discovered after head already parsed
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0
VIDEO: [H264] 600x480 0bpp 29.970 fps 768.4 kbps (93.8 kbyte/s)
Clip info:
starttime: 0
totalduration: 387
totaldatarate: 888
bytelength: 42901679
canseekontime: true
sourcedata: B4A7DD888HM1385488665310303
purl:
pmsg:
Load subtitles in ./

Opening video decoder: [ffmpeg] FFmpeg’s libavcodec codec family
libavcodec version 55.39.101 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)

==========================================================================
Trying to force audio codec driver family libmad…
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 131.7 kbit/4.66% (ratio: 16457->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))

AO: [pulse] 44100Hz 2ch floatle (4 bytes per sample)
Starting playback…
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 600x480 => 600x480 Planar YV12 [zoom]
A: 0.2 V: 0.0 A-V: 0.249 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)

So apparently the codec is correctly identified.
But I think those X11 errors are the problem, i.e. it’s not the decoding but the playback.

Mplayer (or ffmpeg to be exact) tries to use the hardware acceleration of your gfx card but that doesn’t support H264. And the fallback of xv doesn’t seem to be working.
What graphics card do you have and which driver are you using?

Try this to see if that shows the video:

mplayer -vo x11 pd.flv

win32codec-all was NOT found in YaST. FYI.

Right, it’s called “w32codec-all”. I wrote it correctly in my first post…

But I’m quite sure now that this won’t help, since the problem doesn’t seem to be on the software codec side.

>> mplayer -vo x11 pd.flv

That did it. Is there a setting that I can assign in VLC that will accomplish the same thing?

So, I apparently don’t need to worry about the Windows codecs after all.

Thanks again for your persistence.

Also, I have a Matrox Marvel G550 video adapter in the box with apparently the “mga” driver included with the distro.

Here’s something interesting, the output from the MPlayer command. But even though it displayed this, it played the video/audio just fine without any degradation that I can tell.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

linux-uc1g:/var/run/media/charles/SCRATCH/video # mplayer -vo x11 pd.flv
Creating config file: /root/.mplayer/config
MPlayer -4.8 (C) 2000-2013 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 pd.flv.
libavformat version 55.19.104 (internal)
libavformat file format detected.
[flv @ 0xb74f7760]Stream discovered after head already parsed
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0
VIDEO: [H264] 600x480 0bpp 29.970 fps 768.4 kbps (93.8 kbyte/s)
Clip info:
starttime: 0
totalduration: 387
totaldatarate: 888
bytelength: 42901679
canseekontime: true
sourcedata: B4A7DD888HM1385488665310303
purl:
pmsg:
Load subtitles in ./

Opening video decoder: [ffmpeg] FFmpeg’s libavcodec codec family
libavcodec version 55.39.101 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)

==========================================================================
Trying to force audio codec driver family libmad…
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, floatle, 131.7 kbit/4.66% (ratio: 16457->352800)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))

AO: [pulse] 44100Hz 2ch floatle (4 bytes per sample)
Starting playback…
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
[VD_FFMPEG] Trying pixfmt=0.
[VD_FFMPEG] XVMC-accelerated MPEG-2.
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
Movie-Aspect is undefined - no prescaling applied.
VO: [x11] 600x480 => 600x480 Planar YV12 [zoom]
[swscaler @ 0xb7681a80]using unscaled yuv420p → bgra special converter
A: 3.2 V: 2.4 A-V: 0.754 ct: 0.058 0/ 0 25% 101% 0.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: 386.6 V: 386.6 A-V: -0.034 ct: 0.030 0/ 0 20% 42% 0.7% 1848 0

Exiting… (End of file)
linux-uc1g:/var/run/media/charles/SCRATCH/video #

Don’t know what I’m viewing here but thought it may be even more revealing to you.

Yes, you can choose the video output device in VLC’s settings.
But actually you shouldn’t really, since x11 is one of the worst choices anyway (no hardware acceleration at all). I just suggested it to see if that’s really the problem.

Please answer my question for further advice:
What graphics card do you have and what driver you are using?

Well, in that case you don’t really have much choice driver-wise.
Since apparently xv is not working at all (bug in the driver?), you have to choose a different video output.
As I said, x11 is probably the worst choice, so try the other possibilities as well and see which one’s working best for you.

You can choose that in VLC’s setting as I wrote, SMPlayer should have some similar settings as well.

For Kaffeine it’s a bit more difficult since it doesn’t offer any settings regarding this.
You have to edit the file ~/.kde4/share/apps/kaffeine/xine.config with a text editor. Look for the line:

#video.driver:auto

Remove the ‘#’ and exchange auto with one of the other choices listed in the line above that. I guess “xshm” would be the best for you.

And maybe you should file a bug report against the mga driver.

As an aside, I’ve been in contact with Fluendo’s support and my next post was suggested that I find out “how to properly configure XVideo support on that GPU.” So, I suppose this is all the same issue being the mga driver. If I remember correctly, I was told earlier here that my hardware is probably too old and that there may not be much interest in providing additional support for it in the future either.

Again, I will try as you’ve suggested and make changes to the individual players and live with the output I have until I can opt for another video adapter or just leave the issue alone. Something about OpenGL was mentioned as being the next generation Fluendo DVD Player but that’s a waiting game. Should I need any further help, I’ll reply back and want to say thanks again for your help.

Well, XVideo is the same as xv.
And that apparently does not work anymore with the mga driver…

Something about OpenGL was mentioned as being the next generation Fluendo DVD Player but that’s a waiting game

You could of course also try to select OpenGL output in your players instead of x11 or xshm.
But I doubt that the mga driver has working OpenGL support now, or ever had.
And software rendering would be much too slow I guess. I’m speaking of experience here, since I had a SiS gfxchip for a while…:frowning:
But the software rendering has improved with llvm AFAIK, so maybe it is even worth a try.

Should I need any further help, I’ll reply back and want to say thanks again for your help.

You’re welcome.