RTSP streaming using rtsp server

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RTSP streaming using rtsp server

dforer
Hello everyone.
I have read a lot and decided to use the rtsp server to stream my h264
camera via rtsp.

I have a h264 camera with this spec:

ioctl: VIDIOC_ENUM_FMT
        Index       : 0
        Type        : Video Capture
        Pixel Format: 'H264' (compressed)
        Name        : H.264

And I tried to stream my camera with this line of code:
./test-launch --gst-debug=3 "( v4l2src device=/dev/video1 !
video/x-h264,width=640,height=480,framerate=30/1 ! h264parse ! rtph264pay
name=pay0 pt=96 )"

When I do so, it seems to work, but when I try to show it on another device
usinf ffplay or vlc, I get a lot of:

RTP: missed 1 packets
errors in P frame

And the live video playing is not smooth and get stuck alot.

I feels like I'm missing something in the h264 encoding because I'm using a
camera with hardware endcofing.

BTW, when I try to use vlc rtsp streaming everything works great.

What can it be?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: RTSP streaming using rtsp server

GStreamer-devel mailing list
Followup,
I've removed the h264parse and added config-interval, and now my pipe looks
like that:
./test-launch  "( v4l2src  io-mode=4 do-timestamp=true  device=/dev/video3 !
 video/x-h264,width=1920,height=1080,framerate=15/1 !
rtph264pay pt=96 name=pay0 config-interval=-1 )"

Which works almost perfect, but I still get smudge frames once in while when
I play this stream.

When I get smudged frames I get this error on ffplay:
RTP: missed 1 packets

But when I stream with vlc everything works good, I think it is something
related to the wrapping frames of the camera itself, because if I take the
h264 stream from the camera and re-encode it, everything works good.

Thanks.



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel