Difference between revisions of "How to Play Video For RK Platform"

From ESS-WIKI
Jump to: navigation, search
 
Line 1: Line 1:
List Video files (eg: U disk) to get video file name:
+
'''Step 1:'''
<pre>ls /run/media/sda1/*.mp4
+
 
 +
Get where U disk mount:
 +
<pre>
 +
mount | grep sda
 +
/dev/sda1 on /run/media/sda1
 
</pre>
 
</pre>
  
Play Video:
+
'''Step 2:'''
 +
 
 +
List Video files to get video file name, eg: U disk("/run/media/sda1" is what you get in step 1 ):
 +
<pre>
 +
ls /run/media/sda1/*.mp4 -al
 +
/run/media/sda1/YourVideoName.mp4
 +
</pre>
 +
 
 +
'''Step 3:'''
 +
 
 +
Play Video("/run/media/sda1/YourVideoName.mp4" is what you get in step 2 ):
 
<pre>export DISPLAY=:0.0
 
<pre>export DISPLAY=:0.0
 
gst-play-1.0 --flags=3 --videosink=xvimagesink "/run/media/sda1/YourVideoName.mp4"
 
gst-play-1.0 --flags=3 --videosink=xvimagesink "/run/media/sda1/YourVideoName.mp4"
 
</pre>
 
</pre>

Latest revision as of 03:00, 24 June 2022

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"