[FFmpeg-user] IP camera recording via RTSP: audio/video desync (dropped frames?)

2022-07-12 Thread Vladimir Mishonov via ffmpeg-user
Hello everyone. I've been having some problems with recording video from an IP camera that transmits a live feed over RTSP. I've searched a lot for potential solutions, but none helped so far. I've been going crazy trying to fix this for days, so now I'm asking here as a last resort. This is

Re: [FFmpeg-user] IP camera recording via RTSP: audio/video desync (dropped frames?)

2022-07-13 Thread Vladimir Mishonov via ffmpeg-user
Here's some additional information that may or may not be useful in solving this: 1. I removed the "+genpts+igndts+ignidx" from "fflags". From what I could understand, it wasn't necessary to use them, and removing them didn't make anything better or worse. 2. I tried to find out why the vide

Re: [FFmpeg-user] IP camera recording via RTSP: audio/video desync (dropped frames?)

2022-07-16 Thread Vladimir Mishonov via ffmpeg-user
After another day of searching for solutions, I finally managed to come up with one. Remember I said that "-use_wallclock_as_timestamps 1" fixes the sync issues but causes the video to stutter? So I attempted to fix the stuttering with the following filter: setts='max(floor(PTS/X)*X,if(N,PREV

Re: [FFmpeg-user] overlay_qsv with hardware decode and encode

2025-02-28 Thread Vladimir Mishonov via ffmpeg-user
ull - And no, putting "scale_vaapi" before overlay here does not help. P.S. I'm wondering if this recommendation was written by AI, by the way. Regards Dragan Randelovic On Fri, Feb 28, 2025 at 6:37 PM Vladimir Mishonov via ffmpeg-user wrote: On 2025-02-28 19:53, Greg Olive

Re: [FFmpeg-user] overlay_qsv with hardware decode and encode

2025-02-28 Thread Vladimir Mishonov via ffmpeg-user
On 2025-02-28 23:26, BloodMan wrote: Hi Vladimir, W dniu 2025-02-28 o 20:21, Vladimir Mishonov via ffmpeg-user pisze: ffmpeg \  -hwaccel vaapi -hwaccel_output_format vaapi -i rtmp://localhost/stream1 \  -hwaccel vaapi -hwaccel_output_format vaapi -i rtmp://localhost/stream2

Re: [FFmpeg-user] overlay_qsv with hardware decode and encode

2025-02-27 Thread Vladimir Mishonov via ffmpeg-user
On 2025-02-28 02:36, Greg Oliver wrote: On Thu, Feb 27, 2025 at 11:25 AM Vladimir Mishonov via ffmpeg-user < ffmpeg-user@ffmpeg.org> wrote: https://ffmpeg.org/pipermail/ffmpeg-user/2024-August/058638.html Thanks for the link. Unfortunately, that seems to be only tangentially related

Re: [FFmpeg-user] overlay_qsv with hardware decode and encode

2025-02-27 Thread Vladimir Mishonov via ffmpeg-user
t/stream2 \ -filter_complex "[0:v][1:v]overlay_vaapi=w=500" \ -c:v h264_vaapi -global_quality 25 -g 50 -r 25 -an test.h264 It says: "The filters 'graph 0 input from stream 1:1' and 'Parsed_overlay_vaapi_0' do not have a common format and automatic conversi

Re: [FFmpeg-user] overlay_qsv with hardware decode and encode

2025-02-28 Thread Vladimir Mishonov via ffmpeg-user
On 2025-02-28 19:53, Greg Oliver wrote: On Thu, Feb 27, 2025 at 11:49 PM Vladimir Mishonov via ffmpeg-user < ffmpeg-user@ffmpeg.org> wrote: Sorry - that link I referenced actually did not have the whole thread. The piece I intended to be included was: https://lists.ffmpeg.org/pip

Re: [FFmpeg-user] overlay_qsv with hardware decode and encode

2025-03-01 Thread Vladimir Mishonov via ffmpeg-user
On 2025-03-01 11:28, BloodMan wrote: I suspect colorspace, so try explicitly set on input (or convert) colorspace maybe... There is a lot of options -vf, -pix_fmt, -sws_flags etc. you can test - find them on ffmpeg wiki here https://trac.ffmpeg.org/wiki/colorspace Finally, managed to get

Re: [FFmpeg-user] overlay_qsv with hardware decode and encode

2025-02-28 Thread Vladimir Mishonov via ffmpeg-user
On 2025-03-01 00:36, Vladimir Mishonov via ffmpeg-user wrote: On 2025-02-28 23:26, BloodMan wrote: Hi Vladimir, I see on previous posts that resolutions are different, but also frame rates are different and colour spaces (bt709 vs "") are different. Are you really sure the prob

[FFmpeg-user] overlay_qsv with hardware decode and encode

2025-02-20 Thread Vladimir Mishonov via ffmpeg-user
Greetings everyone. I am attempting to overlay 2 video streams in real-time with QuickSync hardware acceleration. I want to use both hardware decode and encode to make the most use out of the GPU and avoid excessive CPU usage. I've found an example command-line here: https://github.com/intel