All Questions
61
questions
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 ...
1
vote
2
answers
5k
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:
...
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 ...
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 ...
12
votes
1
answer
80k
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 ...
1
vote
0
answers
410
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 ...
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 ...
0
votes
1
answer
2k
views
FFmpeg RTSP to HLS Conversion is causing random freezes and errors
So, I have a command that converts RTSP to HLS for me:
sudo ffmpeg -fflags nobuffer -rtsp_transport udp -i rtsp://admin:'password'@10.2.10.201/video1 -vsync 0 -copyts -vcodec copy -movflags ...
4
votes
1
answer
6k
views
Reolink RTSP-->ffmpeg, RTP: PT=xx: bad cseq if stopped/restarted quickly
My BeeCam is a Raspberry Pi3/Raspbian Stretch w/freshly compiled ffmpeg version N-89882-g4dbae00bac running this as a service:
#!/bin/bash
cd /usr/local/bin/
while true
do
./ffmpeg -re -...
0
votes
0
answers
4k
views
ffmpeg: Record rtsp stream to disk in realtime and put black frames when rtsp times out
I need to record a rtsp video stream to disk in real time. This works nice and well with something like this(tcp not udp):
ffmpeg -i rtsp://@stream -acodec copy -vcodec copy -movflags frag_keyframe+...
2
votes
1
answer
10k
views
Ffmpeg how to limit input fps
I save rtsp stream to file with ffmpeg.
I see that even the stream is 30 fps, ffmpeg download it on 40-50-33 fps.
How can i limit the input frame per sec?
I tried ffmpeg -r 30 -i rtsp://ipVideo out....
0
votes
2
answers
2k
views
How to draw a reticle over live video with ffmpeg?
I'm trying to add a reticle to a live video feed, and need the reticle to be able to move based on some external data.
I can draw a box on the video with ffmpeg:
ffmpeg -i input.mpg -vf drawbox=x=...
3
votes
1
answer
11k
views
FFmpeg raw audio and H264 in RTSP
Trying to grab correctly video and audio data from an IP camera Hikvision.
Everything works like a charm when doing so for H264 + MP2 for example.
When trying to grab RAW audio in PCM s16le - smile ...
0
votes
1
answer
2k
views
ffmpeg rtsp error: Nonmatching transport in server reply
I'm using ffmpeg to read an rtsp camera. I'm getting these errors:
Nonmatching transport in server reply in c++ and Invalid data found when processing input.
I can play this in VLC in Windows. I'm ...
7
votes
2
answers
14k
views
RTSP -> HLS using FFMPEG
I'm using FFMPEG to convert my rtsp stream into an HLS stream so it can be played on all browsers on my website using player js. I'm having an issue with FFMPEG dying if the internet connection to ...