ROM-6881 How to Play Video

From ESS-WIKI
Jump to: navigation, search

Step 1:

Get where U disk mount:

mount | grep sda 
/dev/sda1 on /run/media/sda1

Step 2:

List Video files to get video file name, eg: U disk("/run/media/sda1" is what you get in step 1 ):

ls /run/media/sda1/*.mp4 -al
/run/media/sda1/YourVideoName.mp4 

Step 3:

Play Video("/run/media/sda1/YourVideoName.mp4" is what you get in step 2 ):

export DISPLAY=:0.0
gst-play-1.0 --flags=3 --videosink=xvimagesink "/run/media/sda1/YourVideoName.mp4"