Hi.
First, sorry to my poor grammer. I have a problem about gstreamer. My goal is record streaming video data. I use raspberry pi and Pi cam, so my pipeline is -host(Raspberry) : raspivid -t 0 -h 720 -w 1280 -fps 25 -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=192.168.20.8 port=5000 -client(Windows) : gst-launch-1.0 -v tcpclientsrc host=192.168.20.8 port=5000 ! gdpdepay ! rtph264depay ! avdec_h264 ! videoconvert ! filesink location=test.mp4 I think this pipeline are working. but I can not play that "test.mp4" I use VLC player, and setting h264 video demuxer. but cant play that file. so I tset this code -raspberry : gst-launch-1.0 -v -e videotestsrc ! omxh264enc ! 'video/x-h264, stream-format=(string)byte-stream' ! h264parse ! filesink location=test1.mp4 this code is work well. and can play that "test1.mp4" I can't understand about these two pipeline's difference. I am beginner of gstreamer and first time about video part. Plaese, give me advice. I really want to solve this problem. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
You are decoding your video on the client (windows side). Your pipeline
should read: -client(Windows) : gst-launch-1.0 -v tcpclientsrc host=192.168.20.8 port=5000 ! gdpdepay ! rtph264depay ! queue ! h264parse ! mp4mux ! filesink location=test.mp4 You should also consider using udpsink and udpsrc, allowing you to get rid of gdppay and gdpdepay elements. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Raspberry pi did a hell of a lot of work getting oxmplayer to work. Oxmplayer is heavily optimized and heavily tested on the raspberry pi. I might suggest using it over gstreamer. I never got VLC to work on my pi3. The video was always choppy. On my rockchip board, I couldn't get gstreamer to work either but that was due to the drm library not working. Have you tried to use ffplay and if so, does that work? If your ffplay doesn't work, oxmplayer doesn't work, and gstreamer doesn't work, you might have a problem with your kernel libraries. Thanks, ~Ben On Mon, Apr 9, 2018 at 10:45 AM, Arjen Veenhuizen <[hidden email]> wrote: You are decoding your video on the client (windows side). Your pipeline _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Arjen Veenhuizen
Thank you so much for your advice.
but still can't play output file. streaming is work very well. I really don't know what's wrong. Thanks for your help. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by Benedict Holland
Thank you so much for your help.
I use VLC player in Windows desktop. no raspberry pi. Your advice is so high level. I can't check my kernel libraries. I don't know about ffplay, If you can give me a inform about ffplay. Thank you for your help. -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |