diff options
author | Stephane Desneux <stephane.desneux@open.eurogiciel.org> | 2015-03-02 14:07:07 +0100 |
---|---|---|
committer | Stephane Desneux <stephane.desneux@open.eurogiciel.org> | 2015-03-02 14:07:07 +0100 |
commit | 7c59e1de7c9ea52e468875bba1e7d612b1e4376d (patch) | |
tree | 1c0c2879db8f24cbb21d511293253e4d846285f7 /Script/launch_video2.sh | |
parent | e17967a3e09f89ec7621ec8f50b8cce41f1cff85 (diff) | |
download | desktop-skin-tizen_5.5_wearable_hotfix.tar.gz desktop-skin-tizen_5.5_wearable_hotfix.tar.bz2 desktop-skin-tizen_5.5_wearable_hotfix.zip |
Fix video playing when VA-API is not availabletizen_5.5.m2_releasetizen_4.0.m2_releasetizen_4.0.m1_releasetizen_4.0.IoT.p2_releasetizen_4.0.IoT.p1_releasesubmit/tizen_unified/20170310.112129submit/tizen_common/20150302.130730submit/tizen_5.5_wearable_hotfix/20201026.184309submit/tizen_5.5_mobile_hotfix/20201026.185109submit/tizen_5.5/20191031.000013submit/tizen_5.5/20191031.000011submit/tizen_5.5/20191031.000009submit/tizen_5.0/20181106.000001submit/tizen_5.0/20181101.000008submit/tizen_4.0_unified/20170814.115522submit/tizen_4.0/20170828.100008submit/tizen_4.0/20170814.115522submit/tizen_4.0/20170811.094300submit/tizen_3.0.2014.q4_common/20150302.130804accepted/tizen/unified/20170310.112557accepted/tizen/common/20150302.131006accepted/tizen/5.5/unified/wearable/hotfix/20201027.094936accepted/tizen/5.5/unified/mobile/hotfix/20201027.071053accepted/tizen/5.5/unified/20191031.033816accepted/tizen/5.0/unified/20181106.202219accepted/tizen/4.0/unified/20170828.221930accepted/tizen/4.0/unified/20170816.015956accepted/tizen/3.0.2014.q4/common/20150302.130953tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5tizen_5.0tizen_4.0tizen_3.0.2015.q1_commontizen_3.0.2014.q4_commonaccepted/tizen_unifiedaccepted/tizen_commonaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unifiedaccepted/tizen_5.0_unifiedaccepted/tizen_4.0_unifiedaccepted/tizen_3.0.2014.q4_common
Change-Id: Ic0b318da3d14041a64209a4f176b174973a13e6c
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
Diffstat (limited to 'Script/launch_video2.sh')
-rwxr-xr-x | Script/launch_video2.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/Script/launch_video2.sh b/Script/launch_video2.sh index 6402784..24d4107 100755 --- a/Script/launch_video2.sh +++ b/Script/launch_video2.sh @@ -13,10 +13,14 @@ video=/usr/share/media/videos/Caminandes_1080p.mp4 if [ $(echo $alreadyrunning | wc -w) -lt 1 ] ; then echo "create new" - #gst-launch-1.0 playbin uri=$URL & - gst-launch-1.0 filesrc location=$video ! qtdemux name=demux \ - demux.audio_0 ! queue ! decodebin ! audioconvert ! audioresample ! autoaudiosink \ - demux.video_0 ! queue ! vaapidecode ! vaapisink fullscreen=1 & + if gst-inspect-1.0 | grep ^vaapi &>/dev/null; then + gst-launch-1.0 filesrc location=$video ! qtdemux name=demux \ + demux.audio_0 ! queue ! decodebin ! audioconvert ! audioresample ! autoaudiosink \ + demux.video_0 ! queue ! vaapidecode ! vaapisink fullscreen=1 & + else + echo "Playing without VA-API" + gst-launch-1.0 playbin uri=file://$video video-sink=waylandsink & + fi echo $! >> $pidfile else echo "already running" for x in $alreadyrunning; do kill -9 $x; done |