STM32MP157 uses gstreamer to play video

Adjust resolution

Because the screen I use is 800*480, so first convert the prepared video into the format we need

install ffmpeg

sudo apt-get install ffmpeg

Convert the source video watch.mp4 to Apple.mp4 that we can use

sudo ffmpeg -i watch.mp4 -s 800*480 Apple.mp4

insert image description here
Here I am using Tencent Cloud

2. STM32MP157-DK2 plays video

First of all, make sure that our development board is connected to the network
Note: replace the url with your own resource location path

gst-launch-1.0  playbin uri=http://82.157.XXX.XX/Apple.mp4

Then you should be able to see this picture
insert image description here
Play local video resources

gst-launch-1.0 playbin uri=file:///home/root/watch.mp4

Play in the background, and the process can continue to run after ssh exits

nohup gst-launch-1.0 playbin uri=http://82.157.XX.XX/watch.mp4 &

Guess you like

Origin blog.csdn.net/Cloud_1234_5678/article/details/120665726