summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e6651c1)
raw | patch | inline | side by side (parent: e6651c1)
author | Hongmei Gou <h-gou@ti.com> | |
Thu, 1 Sep 2016 22:08:22 +0000 (18:08 -0400) | ||
committer | Hongmei Gou <h-gou@ti.com> | |
Thu, 1 Sep 2016 22:08:22 +0000 (18:08 -0400) |
Signed-off-by: Hongmei Gou <h-gou@ti.com>
multimedia_apps/ivahd_multimedia_h264dec/runIvahdH264Dec.sh | patch | blob | history |
diff --git a/multimedia_apps/ivahd_multimedia_h264dec/runIvahdH264Dec.sh b/multimedia_apps/ivahd_multimedia_h264dec/runIvahdH264Dec.sh
index 393cb733bc2ef038627b3dd6b8fd317d1d36b0e1..cb1b31b7f0b529bee9fbaefc458fad2b3376b623 100644 (file)
machine_type="`cat /etc/hostname`"
-if [ "$machine_type" = "am57xx-evm" ]
-then
- filename="/usr/share/ti/video/TearOfSteel-Short-1920x800.mov"
-
- amixer cset -c 1 name='Line Playback Switch' On
- amixer cset -c 1 name='PCM Playback Volume' 127
-fi
+filename="/usr/share/ti/video/TearOfSteel-Short-1920x800.mov"
AUDIO_SINK="alsasink"
AUDIO_CARD=$(aplay -l | grep -i hdmi | grep -i -o 'card [0-9]*' | grep -o [0-9])
else
AUDIO_CARD=$(aplay -l | grep -i -v hdmi | grep -i -o 'card [0-9]*' | grep -o [0-9])
+ amixer cset -c $AUDIO_CARD name='Line Playback Switch' On
+ amixer cset -c $AUDIO_CARD name='PCM Playback Volume' 127
fi
fi
AUDIO_SINK="$AUDIO_SINK device=hw:$AUDIO_CARD,0"
echo ""
echo "Run H.264 Decoding on IVAHD"
echo ""
-gst-launch-1.0 filesrc location=$filename ! qtdemux name=demux demux.audio_0 ! queue ! decodebin ! $AUDIO_SINK demux.video_0 ! queue ! h264parse ! ducatih264dec ! kmssink scale=true
+gst-launch-1.0 playbin uri=file://$filename audio-sink=$AUDIO_SINK video-sink="kmssink scale=true"