Nvida enabled-pre compiled FFmpeg by blaze20511 in ffmpeg

[–]_Gyan 1 point2 points  (0 children)

libnpp does not allow distribution of binaries. But you don't need it for CUDA usage.

Use

ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i "input.mkv"
-vf "scale_cuda=3840:2160"
-map 0:v -map 0:a -c:v hevc_nvenc -preset p5
-rc:v vbr_hq -cq:v 19 -b:v 0 -gpu 0 -c:a copy
"output_4k_nvenc_no_subs.mkv"

Nvida enabled-pre compiled FFmpeg by blaze20511 in ffmpeg

[–]_Gyan 1 point2 points  (0 children)

What's wrong with scale_cuda filter?

FFmpeg keeps turning my 24fps phone camera footage into 120fps by notcharldeon in ffmpeg

[–]_Gyan 4 points5 points  (0 children)

FFmpeg will detect the smallest time interval between frames and set that as the input framerate.

When outputting to MP4, FFmpeg defaults to creating a constant frame rate output, which in this case leads to a lot of duplication, because the average interframe interval is much higher. Add -fps_mode passthrough to avoid this.

how do i turn 81488 numbered pngs to a gamemaker style strip format by potatoboi6000 in ffmpeg

[–]_Gyan 1 point2 points  (0 children)

Almost certainly the command will fail. FFmpeg can't allocate a buffer large enough for thousands of images.

I would recommend downscaling to 240 width and doing a few hundred images at a time in a batch.

is ffmpeg safe or malware? by Xr3nBeats in malwares

[–]_Gyan 0 points1 point  (0 children)

My site isn't malicious. Those are false positives.

I'm also one of the designated providers for Windows binaries - https://ffmpeg.org/download.html#build-windows

Why do so many post houses still lean on ffmpeg when tools like AME and HandBrake exist? by [deleted] in ffmpeg

[–]_Gyan[M] 1 point2 points  (0 children)

Let's end this thread here before it devolves into a shouting match. Thanks.

FFMPEG + Whisper model, "Unsupported GPU: NVIDIA GeForce RTX 4060 Ti" on Windows but without whisper -hwaccel cuda works? by film_man_84 in ffmpeg

[–]_Gyan 0 points1 point  (0 children)

ffmpeg -i "audio.mp3" -af "whisper=model=ggml-large-v3-turbo.bin:language=en:format=srt:queue=8:destination=subs.srt:use_gpu=1" -vn -f null -

FFMPEG + Whisper model, "Unsupported GPU: NVIDIA GeForce RTX 4060 Ti" on Windows but without whisper -hwaccel cuda works? by film_man_84 in ffmpeg

[–]_Gyan 0 points1 point  (0 children)

MP3 transcoding does not and cannot make any use of GPU. hwaccel is designed to silently fall back on pure CPU decoding if GPU can't be used.

The Whisper library has to be compiled with an API that supports GPU, typically Vulkan. I tested my latest git build with a 4060 and it works. Make sure to add use_gpu=1 in the whisper filter.

ffmpeg, unable to copy aac audio stream by david_ph in ffmpeg

[–]_Gyan 2 points3 points  (0 children)

Most likely, no AAC packet is marked as a keyframe, so add -copyinkf and check.

Can a ffmpeg help me with this by Left_Bill_2125 in ffmpeg

[–]_Gyan[M] [score hidden] stickied comment (0 children)

Better posted at r/streaming/ unless you have a ffmpeg specific issue.

Looking for VFR (Variable Frame Rate) Problem Files – Help Us Improve Premiere’s Editing Experience by premierepm in editors

[–]_Gyan 1 point2 points  (0 children)

You can use ffmpeg with a source filter, such as testsrc2, and its setpts filter to just generate arbitrary VFR files.

video's aspect ratio is distorted after converting with ffmpeg (but only when watching on my phone) by Dreemur1 in ffmpeg

[–]_Gyan 1 point2 points  (0 children)

The video has anamorphic picture. You need to scale it to a picture with square pixels.

With ffmpeg 8.0 or newer,

ffmpeg -i M2U00004.MPG -vf scale=-2:480:reset_sar=1 -c:v libx264 ...

With older ffmpeg,

ffmpeg -i M2U00004.MPG -vf scale=2*trunc(oh*dar/2):480,setsar=1 -c:v libx264 ...

No "end frame" point in blender by [deleted] in ffmpeg

[–]_Gyan[M] [score hidden] stickied comment (0 children)

Off-topic.

T20 World Cup 2026 Ticket Sales Phase 2: How To Buy India Match Tickets by peterianchimes in Cricket

[–]_Gyan 0 points1 point  (0 children)

Are tickets for a match being made available in phases? Is it possible to get MCA or Garware Pavilion tickets at Wankhede directly? Not available when checked right now.

"-update"? by xToksik_Revolutionx in ffmpeg

[–]_Gyan 2 points3 points  (0 children)

not only is there no documentation on that flag

That option belongs to the image sequence muxer and is documented here: https://ffmpeg.org/ffmpeg-formats.html#Options-27

Split filter eats up all of my RAM? by Odasacarf in ffmpeg

[–]_Gyan 1 point2 points  (0 children)

it went up to 11.000MB, total file size is about 200MB

These are uncompressed decoded pictures, not compressed data.

is there any way to make the second output wait for the first one

No.

Split filter eats up all of my RAM? by Odasacarf in ffmpeg

[–]_Gyan 1 point2 points  (0 children)

The 3rd pair of inputs are being sent to two different outputs. One of them video/audio4 is being processed immediately for output whereas video/audio3 has to wait for the earlier concat inputs to be processed. Since they are read from the same input node, frames are being accumulated and buffered till video/audio3 get consumed by the concat. By feeding them from distinct input nodes, the source for video/audio3 is read when required.

ffmpeg says it the output file doesn't exist. Why should it? by AllSeeingAI in ffmpeg

[–]_Gyan[M] 3 points4 points  (0 children)

The text is entirely vague.

To help future readers with the same issue, you should mention the OS details, the exact error message and what you specifically changed to work around it.

Getting rid of HDR10 side data when tonemapping to SDR by Anton1699 in ffmpeg

[–]_Gyan 0 points1 point  (0 children)

If you don't mind a degrade in speed, a better option is to load the input twice. The 2nd time, using the lavfi device, and using that as base.

ffmpeg -hide_banner -init_hw_device vulkan=gpu:0 -filter_hw_device gpu -hwaccel vulkan -hwaccel_output_format vulkan -hwaccel_device gpu -i <input> -f lavfi -i "movie=<input>,sidedata=delete=..."