The first test i did were with videotestsrc , and v4l2src ( usb webcam ) , encoded through gpu h264 encoder , and all was working.
videotestsrc pipeline( the same as usb webcam's pipeline)
Code: Select all
gst-launch-1.0 -v videotestsrc ! "video/x-raw",width=640,height=480,framerate=15/1 ! omxh264enc ! h264parse ! flvmux name=mux ! rtmpsink location='rtmp://localhost/rtmp/live live=1'
next , i decided to use the camera module , using raspivid
Raspivid pipeline
And here start the problem. I have no video streaming , and trying to save a recording with filesink , results in a bad recording ( weight of the file should be ok , but if you open it , it's like an empty recording )raspivid -t 0 -w 854 -h 480 -fps 30 -o -n | gst-launch-1.0 -v fdsrc ! h264parse ! flvmux ! rtmpsink location='rtmp://localhost/rtmp/live live=1'
Do you have any idea of this ?
thanks in advance
Note1 : My camera board is a rpi noir
Note2 : Raspivid , Raspistill and V4l2 driver work
Note3 : I tried many pipeline found in the forum and on other blog .Still not working
Edit : Raspivid seems to miss the timestamp , so to fix it I had to add
Code: Select all
do-timestamp=trueusing strobemediaplayback and nginx-rtmp I'm having ~200-500ms streaming ( 720p , 30fps , 3Mbit ) which is very good for a webpage streaming