rexxster Posted March 21, 2017 Posted March 21, 2017 (edited) Anyone have success with GStreamer and Xenial Desktop? Once upon a time (mid 2015) gstreamer used to work like this: gst-launch-1.0 filesrc location=vid.mp4 ! qtdemux ! vaapidecode ! vaapisink Time has passed and the many parts that make up GStreamer (libva libcedrus vdpau-sunxi libvdpau gstreamer and gstreamer-vaapi) have evolved. I revisited this because I have recently stumbled upon an invocation that let's me play videos with hardware acceleration in gstreamer. I'm trying to stream h264 vid from my rpi-zero's camera to be saved/played/restreamed from my BPi ( i have both BananaPi and OrangePi+2e). This works--> rpi$ raspivid -t 0 -w 1280 -h 720 -fps 30 -b 2000000 -o - | gst-launch-1.0 -e -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=rpi port=5000 bpi$ gst-launch-1.0 -e -v tcpclientsrc host=rpi port=5000 ! gdpdepay ! rtph264depay ! h264parse ! vaapidecode ! vaapisink As you can see, the bpi invocation of gstreamer is very similar to the original way gst-launch was called. ps.. bpi$ export declare -x VDPAU_DRIVER="sunxi" declare -x VDPAU_OSD="1" declare -x LIBVA_DRIVER_NAME="vdpau" Edited March 21, 2017 by rexxster
Recommended Posts