VLC and mp4 playback problems

Hi all,

I have been using ubuntu mate for a while on raspberry pi 2 as a audio / video / web host in a coffee table.

Plays music ( via mopidy ) and video on demand via a web server front end.

I had been using omxplayer as the video player as it has hardware acceleration and happily played full screen, loop etc.

I have a selection of mp4 files that I transcoded for the purpose.

I have had no issue with playback on omxplayer, but now I have to move to a USB audio output, which I understand omxplayer simply does not support.

So I would like to move to VLC.

I understand that VLC should have Pi HW acceleration and support USB audio.

I have been trying to launch cvlc with little luck ( how do you launch from a remote ssh terminal and still get it to play on the server side? )

The video playback locks up in the first frame, though I can hear good audio.

As a sanity I set up a completely fresh install on a new SD card, and attempted to play from the gui version of vlc opened via the desktop. The file still locks up video in the first frame.

So any thoughts on VLC hw accelerated mp4 playback, should it work happily on a fresh install?

Meanwhile I am working on the command line my web application calls, but not with great success. Anything look suspicious here? Are the complaints on VDPAU and xcb_xv passive?

cvlc --loop --fullscreen --video-on-top --no-osd --x11-display :0 "/home/big_red_frog/Videos/BonkersInside.mp4"

big_red_frog@bonkers:/var/www/html/tools$ cvlc --loop --fullscreen --video-on-top --no-osd --x11-display :0 "/home/big_red_frog/Videos/BonkersInside.mp4"
    VLC media player 2.2.2 Weatherwax (revision 2.2.2-0-g6259d80)
    [01475a88] dummy interface: using the dummy interface module...
    Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
    [6a700c58] xcb_xv vout display error: no available XVideo adaptor

I get the following when I close the VLC instance, so I assume this is all passive

[6a7016c8] xcb_window window error: X server failure
    X Error of failed request:  BadDrawable (invalid Pixmap or Window parameter)
      Major opcode of failed request:  72 (X_PutImage)
      Resource id in failed request:  0x3000000
      Serial number of failed request:  919
      Current serial number in output stream:  927

You have to set in preference the video output to omx.

1 Like

Oh wow, just like that…

Is it myself missing something or should that be default then, seems strange it doesn’t play straight out of the box…

I am now trying to descern how to enforce that via a command line call, or do I have to depend on gui configuration at some point in the past, and assume it is a sticky setting?..

Hello @big_red_frog

From my end it was VLC player that failed to default onto HDMI sound so I had to select it every time that I wanted to play something.

After checking under my sounds settings (Under the System menu) I was able to default to the HDMI output.

Hopefully you can also find your answer somewhere in there.