raspberry pi 4 ubuntu Desktop 21.04 64bit video playback with ffplay
The Raspberry Pi OS 32bit has omxplayer and vlc for video playback.
omxplayer and vlc support hardware acceleration.
I wonder how can I play video on 64bit OS, since there are no omxplayer.
I found the ffplay in ffmpeg is very useful.
(Default ubuntu video player is not working)
Depending on a video, it plays well.
On Ubuntu Desktop 21.04 64bit
sudo apt install ffmpeg (ffplay is part of ffmpeg)
ffplay [file]
(v4l2 hardware acceleration supported for h264 and hevc)
If you use USB external sound card, then I recommend you do disable all other sound device except USB sound card. This way pi4 works more faster.
sudo apt-get install pavucontrol
run pavucontrol
go to Configuration, off all other audio devices.
I found that mpv is also good. it is faster than vlc for now.
sudo apt install mpv
(Only full-screen playback, vlc works fine.)
It seems mpv can be alternative for vlc.
(but ffplay is the fastest, since it is a command line tool.)
A h264 FHD video plays well.
A VP9 FHD video plays ok.
A HEVC video lightly encoded is ok. (if not light, flutters)
video resolution more than QHD(2K) and 10bit video are bad. (no good)
If you don't want to disable all other sound devices, but not happy with the default alsa device. Then below command may useful.
about hw:1,0 use "aplay -l" to get information.
Card 1: aaaa, device 0: bbbb will be printed. Focus to a Card and a device.
댓글
댓글 쓰기