how to play h.264 video recording file?

dhkdlasdnr alsdnr4874 at gmail.com
Mon Apr 9 01:45:03 UTC 2018


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/


More information about the gstreamer-devel mailing list