extremen00b
Posts: 8
Joined: Mon Dec 28, 2020 7:11 pm

Video Plays on omxplayer but not VLC

Wed Apr 21, 2021 1:12 pm

Hi everyone,

I have a video file (.mp4) which plays properly on omxplayer.

When I try to open the same with vlc, I am unable to get the video stream (audio can be heard, and I can seek to different parts of file).

The video details that mediainfo provided below.
Would it be possible to share any troubleshooting tips?

Code: Select all

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings                          : CABAC / 8 Ref Frames
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 8 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 49 min 17 s
Bit rate                                 : 1 329 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 23.976 (24000/1001) FPS
Minimum frame rate                       : 23.974 FPS
Maximum frame rate                       : 23.981 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.027
Stream size                              : 469 MiB (89%)
Writing library                          : x264 core 148 r2708 86b7198
Encoding settings                        : cabac=1 / ref=9 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=0.00:0.10 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=48 / lookahead_threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=9 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=240 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=62500 / vbv_bufsize=78125 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.00 / aq=3:1.00
Encoded date                             : UTC 2017-04-16 16:49:49
Tagged date                              : UTC 2017-04-16 16:49:49
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Menus                                    : 3
Codec configuration box                  : avcC

Moonmarch
Posts: 654
Joined: Thu Mar 07, 2019 1:34 am

Re: Video Plays on omxplayer but not VLC

Thu Apr 22, 2021 9:51 pm

Not all video streams will be watchable with the VLC Media Player on the Raspberry Pi Computer. You can watch online videos using the Chromium Web Browser. You can watch online videos using either the VLC Media Player or the Chromium Web Browser. You can watch YouTube videos with hardware acceleration with the Chromium Web Browser if you use the h264ify extension. The h264ify extension is very useful for computers with slower computer processors. You will need to activate the Full KMS drivers in the Raspi-Config utility before using hardware acceleration on the Raspberry Pi.

extremen00b
Posts: 8
Joined: Mon Dec 28, 2020 7:11 pm

Re: Video Plays on omxplayer but not VLC

Fri Apr 23, 2021 10:20 am

Thanks Moonmarch for a prompt response !

The media I am trying to play is a local file on my microSD card.

I am running it on a Raspberry Pi4.
I do not know what KMS drivers are (as a matter of fact I am such a novice that I did not know what raspi-config was), and some searching tells me only Fake KMS exists for Pi4.

Could you provide additional guidance?

Moonmarch
Posts: 654
Joined: Thu Mar 07, 2019 1:34 am

Re: Video Plays on omxplayer but not VLC

Fri Apr 23, 2021 9:49 pm

If I was not able to play a video file using the VLC Media Player on the Raspberry Pi computer. I would recommend using a different media player. There are numerous media players you can install on a Linux computer. Here is a list of media players you can install on a Linux PC:

16 Best Open Source Video Players For Linux in 2020
https://www.tecmint.com/best-open-sourc ... for-linux/

To open the Raspi-Config utility, run the command in the terminal:

Code: Select all

sudo raspi-config
In the raspi-config menu, choose option 6 Advanced Options. In Advanced Options, choose option A2 GL Driver. Then choose option G3 GL (Full KMS) OpenGL desktop driver with full kms to activate the OpenGL drivers, and video hardware acceleration. You will need OpenGL for programs that use 3D graphics, and programs that require OpenGL libraries.

Return to “General discussion”