Skip to main content

All Questions

Tagged with
0 votes
0 answers
70 views

Green screen on RTSP stream from USB camera using mediamtx (ffmpeg)

I need to cast a stream from a USB camera via RTSP as stable as possible (at any moment i need to be able to get a static picture on a remote host, reflecting the real state of affairs in front of the ...
Pavel's user avatar
  • 1
0 votes
0 answers
112 views

FFmpeg RTSP Recording: Video Timestamp Does not Match With Recorded MP4 File Timestamp

I'm currently testing by streaming a 30 fps example flv video using a local Happy-Time RTSP server. This is the flv file i am streaming with RTSP: I recorded the video with below ffmpeg command: ...
lastpeony4's user avatar
0 votes
0 answers
161 views

FFMPEG unexpectedly stops any stream

I am trying to stream my webcams (32+ pcs) with ffmpeg -hide_banner -y -v verbose -rtsp_transport tcp -fflags +genpts -i "{SOME RTSP URL}" -c:v copy -an -threads auto -f hls -hls_time 3 ...
Matew Sticker's user avatar
0 votes
1 answer
55 views

Nmap does not show open RTP and RTCP ports

I am running ffmpeg as in: ffmpeg -t 00:05:00 -i rtsp://admin:[email protected]:554 -c:v copy -an output2.mp4 While ffmpeg is running, I run nmap as in: nmap -p1-65535 192.168.1.64 I see the ...
Sunny's user avatar
  • 369
0 votes
0 answers
3k views

How can I publish an RTSP stream to a MediaMTX instance with TLS encryption configured?

I have an instance of (MediaMTX) running on my laptop. I have an Amcrest IP camera. I can publish the camera's RTSP stream to the server so that the stream can be accessed from the MediaMTX instance. ...
cmd's user avatar
  • 1
2 votes
0 answers
358 views

I am unable to play the RTSP stream using ffmpeg

I have two computers with Ubuntu 20.04.5 LTS installed, and one virtual machine with Ubuntu 22.04.3 LTS. I have a docker container with mediamtx installed on one of the computers, let's call it server....
PiotrKulesza's user avatar
0 votes
1 answer
255 views

ffmpeg streaming UDP port is closed

I'm trying to use ffmpeg in order to transcode RTSP stream from CCTV to HLS stream so it could be accessed through a web server. ffmpeg used to stream video from CCTV with following command $ ffmpeg -...
BrilliantContract's user avatar
0 votes
0 answers
389 views

using ffmpeg to fix a mp4 with dropped/skipped frames due to dropped stream

the output stream from my security cameras (EufyCam) will occasionally drop the rtsp stream, sometimes up to 10s of seconds at a time, if the network connection (wifi) signal is poor. the stream ...
traycerb's user avatar
2 votes
0 answers
538 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
  • 121
1 vote
0 answers
80 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
206 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
768 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
573 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
2 votes
1 answer
2k 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
857 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
1 answer
293 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
0 votes
0 answers
623 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
3k 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
0 votes
2 answers
4k 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
7k 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
1 vote
0 answers
483 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
1k 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
528 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
0 votes
1 answer
2k 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
232 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
94 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
366 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
1 vote
1 answer
3k 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
  • 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
  • 161
1 vote
0 answers
2k 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

15 30 50 per page