bcadej
Posts: 10
Joined: Sat May 04, 2019 7:35 pm

Raspberry Pi 4 can't play video

Fri Jun 28, 2019 9:16 pm

I've tried to play .mov file in VLC. It is just a black screen. I can hear audio.
Any suggestions how to successfully play video?
video.png
video.png (96.31 KiB) Viewed 438 times

gkreidl
Posts: 5951
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: Raspberry Pi 4 can't play video

Fri Jun 28, 2019 9:18 pm

The H264 decoder only supports resolutions up to 1920x1080.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

bcadej
Posts: 10
Joined: Sat May 04, 2019 7:35 pm

Re: Raspberry Pi 4 can't play video

Fri Jun 28, 2019 9:21 pm

Is there any software fix?

wren
Posts: 49
Joined: Mon May 28, 2018 9:06 pm

Re: Raspberry Pi 4 can't play video

Fri Jun 28, 2019 9:25 pm

Try it as an mp4.
ffmpeg -i your.mov -c:v copy -c:a copy new.mp4

Even if it can't use hardware acceleration to playback larger video, it should still be able to do it in software.

gtechn
Posts: 156
Joined: Thu Jan 07, 2016 5:32 pm

Re: Raspberry Pi 4 can't play video

Fri Jun 28, 2019 10:39 pm

The Raspberry Pi 4 has two video decode blocks:

- H.264 @ 1920x1080 max
- H.265 @ 4K max

To watch your video, you will need to re-encode it. Using ffmpeg or (on a desktop) the easy-to-use Handbrake, you must re-encode your video to H.264 @ 1920x1080 (shrinking it from 4K to 1080p), or re-encoding your video into H.265, which can keep your 4K resolution at a slight quality loss (converting any file can lose quality).

Also, even though more software support is coming soon, only the LibreELEC distribution (which you can download on the main Pi website) supports the [email protected] decode system for the time being. This will expand hopefully soon.

This is a bit of work, but the good news is that once set up, the Raspberry Pi can play 4K, 60fps, H.265 video flawlessly.
Last edited by gtechn on Fri Jun 28, 2019 10:43 pm, edited 1 time in total.

gtechn
Posts: 156
Joined: Thu Jan 07, 2016 5:32 pm

Re: Raspberry Pi 4 can't play video

Fri Jun 28, 2019 10:41 pm

wren wrote:
Fri Jun 28, 2019 9:25 pm
Try it as an mp4.
ffmpeg -i your.mov -c:v copy -c:a copy new.mp4

Even if it can't use hardware acceleration to playback larger video, it should still be able to do it in software.
Software decoding is, except for MPEG-2 and VC1, way too slow and unwatchable on a Pi. I wouldn't recommend it. I would recommend converting to a different file format as above. There is no difference between MP4 and MOV file formats, because they are just containers for H.264 or H.265. Thus, from the Pi's perspective, this won't do anything.

wren
Posts: 49
Joined: Mon May 28, 2018 9:06 pm

Re: Raspberry Pi 4 can't play video

Fri Jun 28, 2019 11:22 pm

gtechn wrote:
Fri Jun 28, 2019 10:41 pm
Software decoding is, except for MPEG-2 and VC1, way too slow and unwatchable on a Pi. I wouldn't recommend it. I would recommend converting to a different file format as above.
Quite possibly, but he would see more than a black screen with audio
.
gtechn wrote:
Fri Jun 28, 2019 10:41 pm
There is no difference between MP4 and MOV file formats, because they are just containers for H.264 or H.265. Thus, from the Pi's perspective, this won't do anything.
The codecs are the same, but the format is different. Mpeg4 in a mov container is non standard.

http://jell.yfish.us/
You can test it out here. 3840x2160 H.264 high profile does indeed playback using MPV albeit slowly. I have no desire to download or try it in VLC.

edit: Now that I think of it, it's entirely possible that VLC is your problem. Try the video in MPV.

Return to “General discussion”