Closed fevenor closed 1 year ago
Saw something that may have been a misstake from me in the generated pipeline.
If you exec into the container, does this command work? (You need to add in your user and password)
gstreamer_cctv_test --gst-debug-level=1 -q rtspsrc location=rtsp://*****:*****@10.0.7.4:554/Streaming/Channels/101 name=input_stream do-timestamp=true latency=0 protocols=tcp ! rtpjitterbuffer do-lost=true drop-on-latency=true ! rtph265depay ! tee name=depayed_stream ! queue ! nvv4l2decoder enable-max-performance=true drop-frame-interval=2 ! nvvidconv ! video/x-raw,format=(string)NV12 ! fdsink depayed_stream. ! queue ! h265parse ! splitmuxsink async-finalize=true send-keyframe-requests=true max-size-bytes=0 name=mux muxer=mp4mux max-size-time=5000000000 location=/segments/cctv_test/%01d.mp4 input_stream. ! queue ! decodebin ! audioconvert ! queue ! voaacenc ! mux.audio_0
Saw something that may have been a misstake from me in the generated pipeline.
If you exec into the container, does this command work? (You need to add in your user and password)
gstreamer_cctv_test --gst-debug-level=1 -q rtspsrc location=rtsp://*****:*****@10.0.7.4:554/Streaming/Channels/101 name=input_stream do-timestamp=true latency=0 protocols=tcp ! rtpjitterbuffer do-lost=true drop-on-latency=true ! rtph265depay ! tee name=depayed_stream ! queue ! nvv4l2decoder enable-max-performance=true drop-frame-interval=2 ! nvvidconv ! video/x-raw,format=(string)NV12 ! fdsink depayed_stream. ! queue ! h265parse ! splitmuxsink async-finalize=true send-keyframe-requests=true max-size-bytes=0 name=mux muxer=mp4mux max-size-time=5000000000 location=/segments/cctv_test/%01d.mp4 input_stream. ! queue ! decodebin ! audioconvert ! queue ! voaacenc ! mux.audio_0
The terminal keeps outputting, which seems to be normal.
I might be seeing a similar issue on my Jetson Nano as well. Both ffmpeg and gstreamer will not stream my Reolink cameras. I spent a while debugging but don't have enough knowledge about ffmpeg or gstreamer to know what is happening here.
Let me know if this should be opened as a new issue or anything.
When I run the ffmpeg command from the terminal it runs for a few seconds and then get a segmentation fault. If I modify the command and remove the "pipe:1" at the end it seems to work fine. I tried to remove it with output_args but then found those are only for the recorder settings so that didn't work.
Command used. I got this from catching the command Viseron is running. Error output is attached.
ffmpeg_back_porch -hide_banner -loglevel info -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts -use_wallclock_as_timestamps 1 -vsync 0 -stimeout 5000000 -c:v h264_nvv4l2dec -rtsp_transport tcp -i rtsp://user:pass@IPADDRESS:554/h264Preview_01_sub -f segment -segment_time 5 -reset_timestamps 1 -strftime 1 -c:v copy -c:a copy /tmp/back_porch/%Y%m%d%H%M%S.mp4 -vf fps=1.0 -f rawvideo -pix_fmt nv12 pipe:1
viseron ffmpeg error from docker.txt viseron ffmpeg error from terminal.txt
Saw something that may have been a misstake from me in the generated pipeline. If you exec into the container, does this command work? (You need to add in your user and password)
gstreamer_cctv_test --gst-debug-level=1 -q rtspsrc location=rtsp://*****:*****@10.0.7.4:554/Streaming/Channels/101 name=input_stream do-timestamp=true latency=0 protocols=tcp ! rtpjitterbuffer do-lost=true drop-on-latency=true ! rtph265depay ! tee name=depayed_stream ! queue ! nvv4l2decoder enable-max-performance=true drop-frame-interval=2 ! nvvidconv ! video/x-raw,format=(string)NV12 ! fdsink depayed_stream. ! queue ! h265parse ! splitmuxsink async-finalize=true send-keyframe-requests=true max-size-bytes=0 name=mux muxer=mp4mux max-size-time=5000000000 location=/segments/cctv_test/%01d.mp4 input_stream. ! queue ! decodebin ! audioconvert ! queue ! voaacenc ! mux.audio_0
The terminal keeps outputting, which seems to be normal.
Thanks, will make a fix and push to dev
soon, will let you know when you can test
I might be seeing a similar issue on my Jetson Nano as well. Both ffmpeg and gstreamer will not stream my Reolink cameras. I spent a while debugging but don't have enough knowledge about ffmpeg or gstreamer to know what is happening here.
Let me know if this should be opened as a new issue or anything.
When I run the ffmpeg command from the terminal it runs for a few seconds and then get a segmentation fault. If I modify the command and remove the "pipe:1" at the end it seems to work fine. I tried to remove it with output_args but then found those are only for the recorder settings so that didn't work.
Command used. I got this from catching the command Viseron is running. Error output is attached.
ffmpeg_back_porch -hide_banner -loglevel info -avoid_negative_ts make_zero -fflags nobuffer -flags low_delay -strict experimental -fflags +genpts -use_wallclock_as_timestamps 1 -vsync 0 -stimeout 5000000 -c:v h264_nvv4l2dec -rtsp_transport tcp -i rtsp://user:pass@IPADDRESS:554/h264Preview_01_sub -f segment -segment_time 5 -reset_timestamps 1 -strftime 1 -c:v copy -c:a copy /tmp/back_porch/%Y%m%d%H%M%S.mp4 -vf fps=1.0 -f rawvideo -pix_fmt nv12 pipe:1
viseron ffmpeg error from docker.txt viseron ffmpeg error from terminal.txt
ffmpeg
does not work very well with the Nano unfortunately, so i would suggest you use gstreamer
instead.
If you have problems with that, i think its best if you open a new issue since it seems your camera is using h264
Pushed to dev
tag now, try it out when you get the chance
Pushed to
dev
tag now, try it out when you get the chance
try with dev
, h265 works fine now
jetson nano has an error when processing h265
works fine if changed to rtsp encoded for h264