Problem with rpicamsrc and shmsink/shmsrc on Raspberry Pi 2

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

Problem with rpicamsrc and shmsink/shmsrc on Raspberry Pi 2

Mandar Joshi
Hello everyone,
I am trying to use rpicamsrc with shmsink and then use shmsrc to with
test-launch (gst-rtsp-server)
Here are the pipelines


On Raspberry Pi 2
gst-launch-1.0 -vvv rpicamsrc preview=0 fullscreen=0 vflip=true
image-effect=12 ! video/x-h264,width=640,height=480 ! h264parse !
rtph264pay ! shmsink socket-path=/tmp/camera0
wait-for-connection=false shm-size=10000000

./test-launch "( shmsrc socket-path=/tmp/camera0 do-timestamp=true !
application/x-rtp,clock-rate=90000 ! rtph264depay ! rtph264pay
name=pay0 pt=96 )" 10.0.0.2 <--my addition to bind to a particular
interface


On x86_64
gst-launch-1.0 rtspsrc location=rtsp://10.0.0.2:8554/test !
rtph264depay ! avdec_h264 !  xvimagesink sync=false

This doesn't work.

But if I just decode and re-encode the video on Raspberry Pi 2, It works.

gst-launch-1.0 -vvv rpicamsrc preview=0 fullscreen=0 vflip=true
image-effect=12 ! video/x-h264,width=640,height=480,profile=high !
omxh264dec ! omxh264enc ! rtph264pay ! shmsink
socket-path=/tmp/camera0 wait-for-connection=false shm-size=10000000

What am I doing wrong?


Regards
Mandar Joshi
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem with rpicamsrc and shmsink/shmsrc on Raspberry Pi 2

Mandar Joshi
>
> What am I doing wrong?
>
Seems to have been fixed by adding "config-interval=1" to the rpicamsrc pipeline

gst-launch-1.0 -vvv rpicamsrc  !
video/x-h264,width=640,height=480,profile=high ! rtph264pay
config-interval=1 ! shmsink socket-path=/tmp/camera0
wait-for-connection=false shm-size=10000000


I would really appreciate inputs from you guys about this approach.
For example, is there a way around rtph264pay in the above pipeline.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Problem with rpicamsrc and shmsink/shmsrc on Raspberry Pi 2

bomba
Sending pipeline:

gst-launch-1.0 -v \
rpicamsrc preview=0 ! \
video/x-h264,width=640,height=480,framerate=15/1 ! \
h264parse config-interval=1 ! \
shmsink socket-path=/tmp/video-sock shm-size=10000000 wait-for-connection=0 sync=false


RTSP server:

shmsrc socket-path=/tmp/video-sock do-timestamp=true name=video-sock !
video/x-h264,stream-format=byte-stream,alignment=au !
rtph264pay config-interval=1 name=pay0 pt=96


J