Questions tagged [rtsp]

Real Time Streaming Protocol (RTSP) is a network control protocol designed for use in entertainment and communications systems to control streaming media servers.

Filter by
Sorted by
Tagged with
0 votes
0 answers
48 views

Exit on network or other failure when recording an RTSP stream

I am using ffmpeg on linux to record an rtsp stream from a cctv dvr. Sometimes the recording silently stops and ffmpeg just continues to run, and the only way I can detect this is that the output file ...
Pete's user avatar
  • 101
1 vote
0 answers
21 views

ffmpeg segments are not working as expected

Trying to record rstp stream from an IP camera into ~10 mins chunks. FFREPORT=file=$log_DIR/ffmpeg_recording.log \ ffmpeg -i "rtsp://$CAMERA_USERNAME:$CAMERA_PASSWORD@$IP:$PORT/stream1" \ -...
Sumit Dey's user avatar
  • 111
0 votes
0 answers
54 views

get, using ffmpeg, the RTSP response code

It's possible get using the ffmpeg the RTSP response code? I need collect the information from RTSP header, similar to the HTTP header. But using 'curl' i dont think it would be possible.
João Victor's user avatar
0 votes
0 answers
117 views

open Onvif rtsp recordings

I'm trying to export recordings from a NVT to a file (.mp4) using the Onvif protocol. Onvif relies in RTSP streams to access live video and recordings. Saving live video can be done with ffmpeg and it ...
Jorge Gonçalves's user avatar
1 vote
0 answers
173 views

Redirected RTSP video stream cannot connect to server

I have an Auvidea video encoder/decoder that allows me to stream video via RTSP. I would like to redirect the stream from it to another server. As a server I use MediaMtx software previously known as ...
PiotrKulesza's user avatar
0 votes
1 answer
463 views

How can cameras with RTSP like Tapo cameras be accessible from the outside?

I wanted to know how these cameras work when it comes to redirecting traffic outside the local area network (LAN) of your home. In other words, you connect them to your phone, configure them, connect ...
Tlaloc-ES's user avatar
  • 105
1 vote
1 answer
763 views

Trying to stream a video loop using FFMPEG. However, I keep getting the error "Cannot Write the Headers Server returned 400 Bad Request"

I am using mediamtx for starting RTSP server. The command that I am using for ffmpeg is as follows: ffmpeg -re -stream_loop -1 -i ./clouds.mp4 -f rtsp -rtsp_transport tcp rtsp://localhost:8554 The ...
lokit khemka's user avatar
0 votes
0 answers
383 views

A proper way to convert rtsp to rtmp with ffmpeg

I have a code that streams NVR camera to youtube. This code is done not by me and I don't completely understand what each option does ffmpeg -rtsp_transport tcp -i "rtsp://stream:Stream123@192....
viter.alex's user avatar
0 votes
0 answers
207 views

getting real-time buffer too full or near too full! frame dropped from ffmpeg while streaming video from camera

I'm trying to stream video from my camera with RTSP protocol locally using ffmpeg but I'm getting the error: [dshow @ 06464c00] real-time buffer [EasyCamera] [video input] too full or near too full (...
Jack's user avatar
  • 1,145
1 vote
0 answers
121 views

VLC player cannot read the stream broadcast set up by itself. What could go wrong?

I'm trying to set up a H264-encoded stream on rtp over a local area network. Starting from setting up a source on localhost (127.0.0.1): $ cvlc v4l2:///dev/video0:chroma=YUY2:width=640:height=480 --...
tribbloid's user avatar
  • 121
0 votes
0 answers
356 views

FFMPEG Multiple Input Synchronization When Each RTSP Input PTS at 0 from Time of Stream Play

I apologize in advance if my terminology is wrong or if my understanding is incorrect. I am new to FFMPEG and even understanding video codecs but I feel I am getting a grasp. I am trying to create an ...
Ben.in.the.cloud's user avatar
0 votes
1 answer
137 views

FFMPEG, producing stream, wish to write to disk while streaming, segmenting

) I have fought the long battle of getting somehow familiar with this wonderful beast of a thing, FFMPEG. I have coped with several things, learned that I will never get old enough to at least master ...
CSB's user avatar
  • 1
2 votes
2 answers
2k views

How can I determine an IP camera’s streaming URL using Wireshark?

I have an unknown Chinese brand IP camera and I need to determine its streaming (most likely RTSP) URL. Accessing the camera's IP address through a browser loads a web page including the settings and ...
Mohamed Atef's user avatar
0 votes
0 answers
119 views

Connecting IP Camera with YouTube using FFMPEG

I´m trying to connect my ip camera with Youtube using ffmpeg to convert the stream from RTSP to RTMP. rtsp_url="rtsp://xxxxxx" rtmp_url="rtmp://xxxxxx" ffmpeg -rtsp_transport tcp -...
vcima's user avatar
  • 101
0 votes
0 answers
330 views

No #EXT-X-ENDLIST in stream.m3u8

Having a ts file with 60s duration and this part of a config for rtsp-simple-server: ... ~archive/(.*)$: runOnDemand: ffmpeg -re -stream_loop 0 -i /cameras/$G1 -c copy -f rtsp rtsp://localhost:$...
Yerzhan Tulepov's user avatar
1 vote
1 answer
2k views

How to command ffmpeg to output metadata received on stream

I use ffmpeg to receive an RTSP stream from a security camera. There are 3 sub-streams from the camera: Stream #0:0: Video: h264 (High), yuvj420p(pc, bt709, progressive), 2592x1944 [SAR 1887:1888 ...
Mark W.'s user avatar
  • 13
2 votes
1 answer
11k views

How to stream via VLC with RTSP

I have a problem streaming video using VLC. I want to use RTSP protocol. I have set the streaming as follows: Open VLC; Press CTRL+S in order to open streaming options; Add the video file; Add ...
EnCoder's user avatar
  • 21
0 votes
2 answers
3k views

Using openRTSP to record from Eufy Cam 2 Pro

I have a couple of Eufy Cam 2 Pros. I want to record the RTSP streams to my NAS. I have tried the built-in NAS service, which only works with synology, as well as many open source video recording ...
user856111's user avatar
0 votes
1 answer
3k views

Recording IP camera RTSP stream to a .mp4 file

I was wondering if anybody can help me figure out what I am doing wrong in the following scenario. So my goal is to record an RTSP stream from an IP camera to a .mp4 file. I have 4 x Vstarcam-C7824 ...
Teymur Ahmadov's user avatar
0 votes
0 answers
342 views

Show stream of IP camera in modern browsers

My camera has RTSP and i know that RTSP cannot be played in modern browsers. What is the best way to show live stream from IP camera in my web application. I need open source solution and if it ...
jovan_jelic_dmv's user avatar
1 vote
0 answers
374 views

Converting RTSP to HLS as close to realtime as possible

What flags do I use to make ffmpeg convert RTSP into an HLS playlist with the video stream as close to realtime as possible? We would rather have instantaneous video, without regard for bandwidth, ...
Lennox's user avatar
  • 11
1 vote
0 answers
943 views

How to stream video capture in FFMPEG in RTSP?

Linux: ffmpeg -re -i /dev/video0 -f rtsp -muxdelay 0.1 rtsp://127.0.0.1:1234/live.sdp /usr/share/libdrm/amdgpu.ids: No such file or directory ffmpeg version n4.3.1 Copyright (c) 2000-2020 the FFmpeg ...
Alexandre Martins's user avatar
0 votes
0 answers
408 views

ffmpeg can't change number of B-frames

When streaming from a source I keep receiving frames following the same pattern: I-frame P-frame I-frame P-frame I-frame P-frame .... I tried many options and read as many questions here as I found, ...
user1315621's user avatar
1 vote
0 answers
151 views

Creating the onvif compliance camera using the GStreamer Pipeline

I have a camera and I am streaming the video data using the GStreamer. With below pipeline. gst-launch-1.0 -e camerasrc ! video/x-h264,width=1920,height=1080,framerate=30/1 ! h264parse config-interval=...
Mohan's user avatar
  • 111
0 votes
0 answers
60 views

RPI problems with surveillance on USB devices

I configured my raspberry 4B as a video surveillance system with ffmpeg that captures rtsp streams from 8 IP cameras set at 4Mb of bitrate. Before, I used a NAS, until the ethernet controller failed ...
Jax2171's user avatar
  • 53
0 votes
1 answer
1k views

Run ffmpeg in parallel for synchronization in rtsp streaming

I am trying to receive videos from three cameras via rtsp. We use ffmpeg with multiple outputs how ffmpeg explains, but the delay is worse than we run directly three different linux processes, is ...
carlos.baez's user avatar
1 vote
0 answers
734 views

Loop record RTSP stream with VLC

I am able to save an RTSP stream to a .mp4 file using the following command: /usr/bin/vlc -vvv rtsp://stream_address --sout=file/mp4:/home/test-$(date +"%Y%m%d%H%M%S").mp4 --intf dummy --...
jon_tea's user avatar
  • 11
1 vote
1 answer
570 views

How to stream RTSP behind firewall to server

I'm looking for a way to unicast the video stream of an IP camera to a VPS on the internet for recording and live viewing. Like on any network, the IP camera is behind a firewall, and also port ...
ekrekeler's user avatar
1 vote
0 answers
201 views

Building server that spawns ffmpeg instances to stream mp4 files to RTMP

We are building a server that streams a mp4 file to any RTMP server (Facebook, Twitch) and we might have several streams running at the same time. We plan to have up to 1080p 30fps videos ~ 5000 ...
Maurício Giordano's user avatar
1 vote
0 answers
58 views

Scaling Application for video decoding using ffmpeg

I am building an application to read multiple IP camera streams (rtsp) and run different Machine Learning Algorithms over it in real time. For each camera stream, I spawn an ffmpeg process which ...
jasoos's user avatar
  • 11
0 votes
1 answer
1k views

Add current date to a file via task scheduler

I need to automate some CCTV stuff, since the software of the manufacturer doesn't work properly. I found this: Automate VLC schedule recording I scheduled it daily and it works fine, but it ...
Irgen Dwehr's user avatar
0 votes
0 answers
3k views

buffer deadlock prevented error from RTSP streaming over UDP

I have an issue to view RTSP streaming over UDP in the open VPN connection. Our project is to integrate 360 degree IP camera in unity system. And we want to get the UDP streaming rather than TCP to ...
Seong Su  Byeon's user avatar
0 votes
1 answer
296 views

How do I split a video to 4 subpicture and serve them with rtsp?

I have one video, and need to split it to 4 videos, 2 x 2 by frame, then serve them with rtsp, rtsp://192.168.1.100/left-top rtsp://192.168.1.100/right-top rtsp://192.168.1.100/left-bottom rtsp://192....
Wiki Wang's user avatar
  • 103
0 votes
1 answer
3k views

Error trying to retrieve RTSP Stream from IP Camera (invalid data found when processing input)

i'm struggling trying to get FFMPEG working with a Chinese IP CAMERA (Brand: Victure, Model: PC730). I've been able to obtain and decode RTSP stream from this camera (url like rtsp://user:passw@IP:...
Alberto Marullo's user avatar
0 votes
1 answer
2k views

Why does ffmpeg record the wrong FPS when recording an rtsp feed?

I am using a Raspberry Pi 3B+ to record video from a ActiA31 security camera (connected vie a power-over-ethernet router). The camera is set to record at 29.97 fps. The command I am using is sudo /...
Bomhof's user avatar
  • 101
0 votes
0 answers
756 views

Issues when RTSP streaming from CCTV cameras over Wi-Fi

I'm working on a project where we will be using UniFI AC-HD and AC-Pro access points to RTSP stream CCTV video. But we are having issues... With the UniFI AC-Pro we are able to do two continues ...
Thomas Jensen's user avatar
0 votes
2 answers
953 views

RTSP address to Yale WIPC-303w camera

In order to use the Yale PTZ WIPC-303w camera with NVRs or simply stream the video to eg. VLC the RTSP address to it is required. How to get it or what is it? Ability to stream the video from the cam ...
a.key's user avatar
  • 21
0 votes
0 answers
417 views

GStreamer define port used for outgoing traffic (rtsp)

I try to get some custom rtsp software running that has an annoying quirk. It cannot negotiate the port on which it will send the video. It will always send the video to the port from which the ...
b0wter's user avatar
  • 111
0 votes
0 answers
3k views

Retrieving RTSP/RTP Timestamps

This is an update to my previous post. I am able to get the RTP timestamps by using ffmpeg and opencv currently, however, I am trying to actually get the timestamp at which the frame was captured. I ...
penguin's user avatar
  • 141
1 vote
0 answers
1k views

Trying to stream RTSP to Youtube via VLC

Kinda of a noob at ffmpeg but familiar enough with VLC. Trying to convert and stream RTSP to youtube live and having no luck. What am I missing? I know a lot of input in the empty fields and ...
Tater FTL's user avatar
0 votes
1 answer
96 views

Bundling AAC-LD with MPEG2-TS

While using a proprietary SDK I had the following observations: 1) Could hear audio (AAC-LD) and see video (H.264) during the playback of MP4 video file. 2) Could not hear audio (AAC-LD) but could ...
Khilav's user avatar
  • 21
0 votes
1 answer
4k views

Sync two rtsp stream with ffmpeg

Before creating the post I did several searches on the web without finding a solution to my problem. I have to capture two rtsp streams from 2 ipcam to be analyzed later with opencv. I use a ...
Jax2171's user avatar
  • 53
0 votes
1 answer
2k views

Why does OpenCV+GStreamer lags exactly two seconds behind real time?

I'm trying to capture live feed through an h264 camera on RTSP protocol. On a terminal, the following gst-launch-1.0 command gives almost real-time feed: gst-launch-1.0 playbin uri=rtsp://IP:PORT/...
Nikhil's user avatar
  • 1
1 vote
2 answers
4k views

ffmpeg to get an HEVC RTSP stream into an mkv container

I'm trying to copy an hevc video from an RTSP feed into an mkv container. This works: rtsp(hevc) -> out.hevc then out.hevc -> out.mkv This doesn't work rtsp(hevc) -> out.mkv Working below: ...
Imaginator's user avatar
1 vote
1 answer
2k views

ffmpeg to fix video playback speed without re-encoding?

What's the best way to fix incorrect timestamps on a network camera using ffmpeg? Running the camera in h264 mode with a 1fps correctly produces duration=1.000: ffmpeg -hide_banner -rtsp_transport ...
Imaginator's user avatar
1 vote
1 answer
3k views

FFMPEG Failed to open codec in avformat_find_stream_info for RTSP feed

I'm having an issue using FFMPEG when the version is greater than 2.8.15 (not a boundary - it's just that v3 and v4 do not work). ffprobe doesn't work either. Version 3: ffprobe -rtsp_transport tcp ...
James Jennett-Wheeler's user avatar
9 votes
1 answer
64k views

Streaming RTSP with ffmpeg?

So I have been able to successfully send an RTP video stream from my server to the client on another system on the LAN and play it using ffplay. I now want to send the video on the same network using ...
Candy's user avatar
  • 111
1 vote
1 answer
2k views

SSH reverse tunneling: Address family not supported by protocol

I am trying to create a reverse SSH tunnel to stream a RTSP stream. When I connect to my server with this command: ssh -Nf -R serverIP:serverPort:localhost:554 user@serverIP it seems to be working but ...
CFV's user avatar
  • 131
1 vote
0 answers
353 views

FFmpeg switch source RTSP in one contaier

I'm looking for a way to switch the rtsp input of two ipcam into the capture of a single mp4 file. At the moment I'm listening to: ffmpeg -re -i udp://127.0.0.1:20000 -c:v copy -an out.mp4 While in ...
Jax2171's user avatar
  • 53
0 votes
0 answers
2k views

FFmpeg capture RTSP stream only audio, black screen

I have a Foscam IP camera for which i have access to the RTSP address. If i use VLC, the stream is working fine. I wanted to capture it using FFmpeg, using the command ffmpeg -i <address> -codec ...
user3808318's user avatar