mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
examples: check for uri argument in decodebin-h264p-amr server example
Otherwise people get a rather confusing error message.
This commit is contained in:
parent
95a37196b3
commit
1a073355bc
1 changed files with 8 additions and 1 deletions
|
@ -14,7 +14,8 @@
|
||||||
AOFFSET=0
|
AOFFSET=0
|
||||||
VOFFSET=0
|
VOFFSET=0
|
||||||
|
|
||||||
VCAPS="video/x-raw,width=352,height=288,framerate=15/1"
|
# encoder seems to be picky about PAR, so force one that should work
|
||||||
|
VCAPS="video/x-raw,width=352,height=288,framerate=15/1,pixel-aspect-ratio=1/1"
|
||||||
|
|
||||||
# video and audio encoding and payloading
|
# video and audio encoding and payloading
|
||||||
VENCPAY="avenc_h263p ! rtph263ppay"
|
VENCPAY="avenc_h263p ! rtph263ppay"
|
||||||
|
@ -28,6 +29,12 @@ ACONV="audioconvert ! audioresample"
|
||||||
#HOST=192.168.1.126
|
#HOST=192.168.1.126
|
||||||
HOST=127.0.0.1
|
HOST=127.0.0.1
|
||||||
|
|
||||||
|
if test -z "$1"; then
|
||||||
|
echo "No URI argument.";
|
||||||
|
echo "Usage: $0 file:///path/to/video.file";
|
||||||
|
exit 1;
|
||||||
|
fi
|
||||||
|
|
||||||
gst-launch-1.0 -v rtpbin name=rtpbin \
|
gst-launch-1.0 -v rtpbin name=rtpbin \
|
||||||
uridecodebin uri="$1" name=decode \
|
uridecodebin uri="$1" name=decode \
|
||||||
decode. ! $VCONV ! $VENCPAY ! rtpbin.send_rtp_sink_0 \
|
decode. ! $VCONV ! $VENCPAY ! rtpbin.send_rtp_sink_0 \
|
||||||
|
|
Loading…
Reference in a new issue