Getting Raw data from Raspberry pi

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Getting Raw data from Raspberry pi

Aditya Oza
hello,

I used raspberry pi 3b+ camera for streaming and recording .

My goal Is I want  raw data.

I used following pipeline :
 
gst-launch-1.0 --gst-debug-level=3 -e v4l2src device=/dev/video0 ! videoconvert ! video/x-raw,width=640,height=480,framerate=30/1 ! tee name=tee0 ! queue ! omxh264enc ! h264parse ! mp4mux ! filesink location=raw.mp4 tee0. ! queue ! appsink

After run this pipeline I did not get proper data.. Just create 4kb mp4 file. when I try to play a file(4 kb)they could not be open. 

my log:

Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.204640260  1736  0x1bd7e60 WARN          v4l2bufferpool gstv4l2bufferpool.c:748:gst_v4l2_buffer_pool_start:<v4l2src0:pool:src> Uncertain or not enough buffers, enabling copy threshold
0:00:00.621819270  1736 0x70a02780 FIXME               basesink gstbasesink.c:3077:gst_base_sink_default_event:<filesink0> stream-start event without group-id. Consider implementing group-id handling in the upstream elements
0:00:00.623566510  1736 0x70a02780 WARN                   qtmux gstqtmux.c:3391:gst_qt_mux_add_buffer:<mp4mux0> error: Buffer has no PTS.
ERROR: from element /GstPipeline:pipeline0/GstMP4Mux:mp4mux0: Could not multiplex stream.
Additional debug info:
gstqtmux.c(3391): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstMP4Mux:mp4mux0:
Buffer has no PTS.
EOS on shutdown enabled -- waiting for EOS after Error
Waiting for EOS...
0:00:00.625792395  1736 0x70a02780 WARN             omxvideoenc gstomxvideoenc.c:883:gst_omx_video_enc_loop:<omxh264enc-omxh264enc0> error: Internal data stream error.
0:00:00.625855781  1736 0x70a02780 WARN             omxvideoenc gstomxvideoenc.c:883:gst_omx_video_enc_loop:<omxh264enc-omxh264enc0> error: stream stopped, reason error
ERROR: from element /GstPipeline:pipeline0/GstOMXH264Enc-omxh264enc:omxh264enc-omxh264enc0: Internal data stream error.
Additional debug info:
gstomxvideoenc.c(883): gst_omx_video_enc_loop (): /GstPipeline:pipeline0/GstOMXH264Enc-omxh264enc:omxh264enc-omxh264enc0:
stream stopped, reason error
0:00:00.682079687  1736  0x1bd7e60 WARN                 basesrc gstbasesrc.c:2950:gst_base_src_loop:<v4l2src0> error: Internal data stream error.
0:00:00.682157447  1736  0x1bd7e60 WARN                 basesrc gstbasesrc.c:2950:gst_base_src_loop:<v4l2src0> error: streaming stopped, reason error (-5)
0:00:00.682393385  1736  0x1bd7e60 WARN                   queue gstqueue.c:989:gst_queue_handle_sink_event:<queue0> error: Internal data stream error.
0:00:00.682428020  1736  0x1bd7e60 WARN                   queue gstqueue.c:989:gst_queue_handle_sink_event:<queue0> error: streaming stopped, reason error (-5)
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(2950): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason error (-5)
ERROR: from element /GstPipeline:pipeline0/GstQueue:queue0: Internal data stream error.
Additional debug info:
gstqueue.c(989): gst_queue_handle_sink_event (): /GstPipeline:pipeline0/GstQueue:queue0:
streaming stopped, reason error (-5)



Please suggest me when I am wrong?
 
suggest me a better way to get raw data from my camera.






_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel