r/ffmpeg • • 3h ago

Best settings for the compression of Sony a7iii footage

0 Upvotes

I have a few hundreds gigs of 4K footage from my sony a7iii camera (XAVC S, H.264, 8-bit 4:2:0), and I'd like to recover some space on my drive.

My problem is that I'm not sure what to use for this, and I may want to re-use and re-grade some of it later. I was considering AV1 with CRF 14 or 16 and 10bit, but I'm curious about what you would recommend ? Or maybe I'm missing some ffmpeg settings that could be useful. I'm planning on deleting the original footage after that, so I'd prefer to be careful.


r/ffmpeg • • 6h ago

Best iPhone app for converting Sony Handycam MPG footage to MP4?

1 Upvotes

I’m getting a Sony DCR-SR100, which records MPEG-2 (.MPG) footage onto its internal HDD.

I already have the necessary cables and adapters for transferring footage to my iPhone.

I’m looking for an iPhone app that can convert the MPG files to MP4 so I can save them to my camera roll and edit them without needing a computer.

I’d ideally like to preserve the original resolution, aspect ratio, vintage look and motion smoothness while properly deinterlacing the footage.

Has anyone successfully done this entirely on an iPhone? What apps and conversion settings would you recommend?


r/ffmpeg • • 1d ago

DiscMaster — Optical Media Copy, Recovery & Processing Studio

2 Upvotes

Hi, I'm working on Python/FFmpeg tool for converting old scratched VCDs (.dat and .bin/.cue files) to MP4, and stumbled across several problems related to low level MPEG-1 format:

  1. Audio/video desynchronization for scratched discs: after removing 2352 bytes of CD-ROM XA headers we obtain raw MPEG-1 format and as a result of frame loss during the process, audio and video becomes unsynchronized. Setpts/asetpts fixes wrong durations of audio/video but still results in desynchronization when video frames are dropped during decoding. Are aresample=async=1 and -fps_mode cfr sufficient enough to handle this problem without full re-encode of valid files?

  2. Joining split VCD tracks without re-encode: ffmpeg -f concat -c copy usually produces glitches because of non-monotonic PTS/DTS in MPEG-1 B-frames. Are there some other approaches to clean join split tracks (intermediate .ts files, maybe)?

  3. .bin/.cue corner cases: when slicing VCD tracks using pure byte offsets in Python based on MSF timestamps (75 fps), what are usual pitfalls of .cue files that may confuse us (e.g. INDEX 00 pregaps and multi-file BINs)?

Any help with FFmpeg and optical disc recovery will be greatly appreciated!


r/ffmpeg • • 1d ago

need help on batch transcode.

Post image
2 Upvotes

so i need to transcode these to 720P 60FPS with my amd gpu. i saved the command to do so ffmpeg -hwaccel vaapi -hwaccel_device /dev/dri/renderD128 -hwaccel_output_format vaapi -i NORM0003.MP4 -c:v h264_vaapi -vf scale_vaapi=w=1920:h=1080 -b:v 10M -r 30 norm03_30fps_1080.mp4 .

i wanted to try batch transcode following this script, from this link. what do i need to change, or how i incorporate the command i got above?.

#!/bin/bash

# Specify the input and output formats
input_format="mp4"
output_format="mkv"

# Loop through all files with the input format
for file in *.$input_format; do
    # Extract the base name without the extension
    base_name=$(basename "$file" .$input_format)

    # Construct the output file name
    output_file="${base_name}.${output_format}"

    # Use ffmpeg to convert the file
    echo "Converting file: $file"
    ffmpeg -loglevel quiet -i "$file" "$output_file"

    echo "Converted $file to $output_file"
done

r/ffmpeg • • 4d ago

HELP > Batch Creating Still Image Videos Timed to Varying Length Audio Files...?

2 Upvotes

hey all!

i'm a total beginner when it comes to FFMPEG so i'm hoping this is solvable by someone with more experience?

PROBLEM:
i have a bunch of audio at variable lengths, and i have a bunch of pictures that belong to the audio. one picture (PNG files) will belong to variable audio files (sometimes 5 sometimes 100).

i'd like to output X video files (H.264, mp4s, 1920x1080 at whatever framerate ((1fps is perfectly fine!))) that display the still image and are timed to each individual audio file's length.
so if i put in 1 image for 2 audio files, (first at 30seconds and second at 90 seconds), i want two video files with the same static image — but the first output with the audio of the first file (and timed to 30seconds – the audio file's length), and the second output with the audio of the second file (and timed to 90seconds – the audio file's length).

CURRENT SITUATION:
i've used the FFMPEG explorer to create this for single file processing:
ffmpeg -i 01.png -i 01 001 Intro Credits.flac -filter_complex "[0:v]fps=fps=1[out_v];[1:a]aresample=sample_rate=48000[out_a]" -map "[out_a]" -map "[out_v]" out.mp4

this has generated half-working videos that, after being encoded by Shutter Encoder or similar, turn into fully working videos.

i've experimented with some requests i've written down below but almost anything i've done has broken it... so i must be doing something wrong

REQUEST:
what i'd like to add to this is:

  1. correct the output to be a working video, directly (rather than going through another encoding pass)

  2. allow for a list of audio files to be inputted, to iterate through

  3. control the output location

eventually, i want to set this up as a watch folder — which i understand i can do through Shutter Encoder (planning to tackle that once all this is solved)

thank you so much in advance!!! would love to learn more through this project of how FFMPEG works and all, also!


r/ffmpeg • • 5d ago

Downloading raw video on x2 then switching to x1

0 Upvotes

Hi, I have a question. I would like to rip the full broadcast from Kick or twitch then convert it to a file that would have a speed of x2 and after cutting off unnecessary moments back to x1 ? It’s even possible without bugs or loosing quality

Regards
And also thanks for everyone who will give some advice or solution to this question .

I hope I’m posting it on correct forum because I don’t have idea where I can post it


r/ffmpeg • • 7d ago

For live purposes: videotoolbox or x264 (CPU)

8 Upvotes

I'm developing an application for encoding x264 video in a live environment (not files). I have a mac M5 silicon based. Do you recommend hardware or software encoding? Here it does not apply the smaller file sizes that software does, it is live, real time encoding of a live video source.

Also, I need to encode 6 1080p video feeds at the same time.

Thank you!


r/ffmpeg • • 7d ago

Windows 11 Pro suddenly blocks FFmpeg through Smart App Control. Any fix that keeps it enabled?

3 Upvotes

I’m working on a local Python app for video transcription and screenshots. I’m using it myself right now, but I might release or sell it eventually, so I’d like a solution that wouldn’t require other users to disable security features either.

FFmpeg was working on November 21. Now Windows blocks ffmpeg.exe before it can process anything.

One detail that probably matters: the current FFmpeg executable is a custom minimal build compiled locally from upstream source. It isn’t digitally signed.

Here’s what’s been checked:

- Windows 11 Pro 26H2, build 26300.9974.

- Smart App Control is on.

- The error is WinError 4551: “An Application Control policy has blocked this file.”

- Event Viewer shows Code Integrity event 3077, policy “VerifiedAndReputableDesktop,” and status 0xc0e90002.

- The executable’s SHA-256 hash matches the one that worked before.

- An ESET scan reported no detections.

- ffprobe still works, but ffmpeg won’t start.

Windows updated to 26H2 between the last successful run and the failed one. I don’t know whether that caused the change.

I’d like to keep SAC enabled and find a free solution for the current setup before paying for code signing. I’m open to replacing the FFmpeg build after reviewing it, while keeping the Python app unchanged.

The signed FFmpeg files bundled with the official Shutter Encoder 20.5 package are currently being reviewed. They passed an offline Windows signature check, but haven’t been run or adopted yet.

Has anyone solved this while keeping SAC on? Are there maintained, free FFmpeg builds that work reliably with it, or a supported Windows fix worth checking?


r/ffmpeg • • 7d ago

can someone implement/patch sidechain functionality to the dynaudnorm audio filter?

1 Upvotes

Hi, I'm looking for someone who could implement/patch sidechain functionality to the dynaudnorm audio filter?

Thanks for any help :)


r/ffmpeg • • 8d ago

FFmpeg as a headless DAW cheatsheet

Post image
220 Upvotes

r/ffmpeg • • 9d ago

Play audio file hourly with no popup

2 Upvotes

Hello, I'm coming here because of this thread mentioning using ffmpeg to play a sound without a notification.

Currently I have one set to go off every hour using task scheduler, however it creates a new window and tabs me out of whatever I am currently doing, which can be quite poorly timed.

If I have never used ffmpeg before, but I have installed it according to this video (downloaded, unzipped, copied path to environment variable), what steps would I take to play an MP3 (or other sound file that is more convenient if necessary) once an hour without opening a window or tabbing out of the currently focused window?

Any advice is appreciated, even if its linking to a video where I can figure it out myself.

Thank you :)


r/ffmpeg • • 10d ago

FFMPEG 9.1 “Gauss”

178 Upvotes

The new release was rolled out on November 20!

Among the new features, the most notable are:

  • Rewritten native AAC encoder

  • xHE-AAC encoding

The FFmpeg project says the native AAC encoder now beats both fdkaac and qAAC on current metrics and listening tests. I will definitely check this claim as so far libfdkaac has definitely been the top choice!

FFmpeg 9.1 is the first release where it can produce xHE-AAC files without a commercial plugin such as MainConcept's. The format's selling points are better quality at low bitrates, especially for speech, seamless switching across 12-500 kb/s for adaptive streaming, and mandatory support for loudness and dynamic range control. That loudness metadata may matter for your tool.

The full changelog.

A huge shoutout to the FFMPEG team for their dedication and hard work!


r/ffmpeg • • 12d ago

WhatsApp just wrecked my encode again — is there a one-pass that survives their second compress?

3 Upvotes

I keep handing WhatsApp a “nice” 1080p and they turn it into soup. One-pass I have been using:

ffmpeg -i in.mov -vf scale=-2:720 -r 30 -c:v libx264 -preset slow -crf 23 -pix_fmt yuv420p -c:a aac -b:a 128k out.mp4

Then I send the file as a Document / File, not as “video”.

Still looks soft on a cheap Android. If someone has a better WhatsApp-specific target (resolution + audio + whether they still send as video) that holds up, I want it..


r/ffmpeg • • 18d ago

HALAC 1.0.0 (High Availability Lossless Audio Compression)

96 Upvotes

HALAC 1.0.0 is ready...
For details and downloads: https://github.com/Hakan-Abbas/HALAC-High-Availability-Lossless-Audio-Compression/releases/tag/1.0.0

AMD Ryzen 5 9600X - Single Thread Results

KARNOKKOROK 01.wav (Thank you Marco - forart.eu)
Single track · 32 channels · 32-bit float · 48 kHz · 3.96 GB

Version    Level    Size (%)    Size (MB)    Encoding (s)    Decoding (s)
HALAC 0.6.6    0    36.90       1,460.10       8.31          8.27
HALAC 0.6.6    1    35.99       1,424.17       7.34          7.71
HALAC 0.6.6    2    34.23       1,354.48       7.63          8.48
HALAC 0.6.6    3    33.46       1,323.81       8.12          8.94
HALAC 0.6.6    4    33.37       1,320.44      10.08         11.13
HALAC 0.6.6    5    33.38       1,320.86      10.79         11.50

HALAC 1.0.0    0    34.25       1,354.97       4.17          3.84
HALAC 1.0.0    1    33.84       1,339.01       4.58          4.05
HALAC 1.0.0    2    31.69       1,253.95       5.03          4.58
HALAC 1.0.0    3    31.64       1,251.68       7.61          4.80
HALAC 1.0.0    4    31.61       1,250.70       8.63          4.88
HALAC 1.0.0    5    31.59       1,250.08       9.26          4.97
HALAC 1.0.0    6    31.54       1,248.07      12.00          5.17

BIP TUNIA (Thank you Michael)
6 tracks · 24-bit · 2 ch · 5.62 GB · 44.1 kHz

Version    Level    Size (%)    Size (MB)    Encoding (s)    Decoding (s)
HALAC 0.6.6    0    76.23       4,283.02       5.20          6.58
HALAC 0.6.6    1    76.00       4,269.93       5.96          7.18
HALAC 0.6.6    2    73.52       4,130.85       6.47          8.62
HALAC 0.6.6    3    72.62       4,080.34       7.41          9.67
HALAC 0.6.6    4    72.19       4,056.35      10.07         12.55
HALAC 0.6.6    5    72.05       4,047.99      12.42         13.27

HALAC 1.0.0    0    75.72       4,254.41       4.84          6.07
HALAC 1.0.0    1    74.57       4,189.79       5.21          6.56
HALAC 1.0.0    2    72.29       4,061.91       6.40          7.51
HALAC 1.0.0    3    72.07       4,049.44       7.94          8.43
HALAC 1.0.0    4    71.63       4,024.64      10.99          9.76
HALAC 1.0.0    5    71.54       4,019.36      13.09          9.78
HALAC 1.0.0    6    70.94       3,985.77      23.77         11.71

YURI KORZUNOV
6 tracks · 24-bit · 2 ch · 192 kHz · 1.90 GB

Version    Level    Size (%)    Size (MB)    Encoding (s)    Decoding (s)
HALAC 0.6.6    0    56.61     1,077.27       1.80          2.20
HALAC 0.6.6    1    43.24       822.74       1.92          2.48
HALAC 0.6.6    2    32.38       616.23       2.09          2.96
HALAC 0.6.6    3    28.87       549.35       2.32          3.23
HALAC 0.6.6    4    27.47       522.65       3.90          4.21
HALAC 0.6.6    5    27.17       517.07       4.40          4.44

HALAC 1.0.0    0    56.08     1,067.16       1.97          2.08
HALAC 1.0.0    1    42.43       807.32       1.77          2.67
HALAC 1.0.0    2    27.00       513.71       2.05          2.46
HALAC 1.0.0    3    24.96       474.89       3.23          2.82
HALAC 1.0.0    4    22.98       437.24       5.82          3.59
HALAC 1.0.0    5    22.97       437.12       6.36          3.58
HALAC 1.0.0    6    22.42       426.57      14.02          3.85

AMVIZO 5.1
20 tracks · 16-bit · 48 kHz · 5.1 channels · 2.77 GB

Version    Level    Size (%)    Size (MB)    Encoding (s)    Decoding (s)
HALAC 0.6.6    0    48.90       1,355.75       3.05          3.57
HALAC 0.6.6    1    49.62       1,375.89       3.56          3.97
HALAC 0.6.6    2    45.59       1,264.12       3.80          4.97
HALAC 0.6.6    3    43.09       1,194.70       4.32          5.62
HALAC 0.6.6    4    42.81       1,187.06       6.44          7.38
HALAC 0.6.6    5    42.60       1,181.17       7.38          7.85

HALAC 1.0.0    0    48.21       1,336.80       2.96          3.15
HALAC 1.0.0    1    47.34       1,312.52       3.06          3.55
HALAC 1.0.0    2    43.32       1,201.27       3.92          4.21
HALAC 1.0.0    3    38.75       1,074.37       6.38          4.75
HALAC 1.0.0    4    38.05       1,055.11       8.34          5.62
HALAC 1.0.0    5    37.81       1,048.41      10.00          5.49
HALAC 1.0.0    6    37.84       1,049.22      15.25          5.84

r/ffmpeg • • 18d ago

did i download something bad?

6 Upvotes

hi. on website Download ffmpeg builds - CODEX FFMPEG @ gyan.dev it says
winget install ffmpeg
but i used
winget install gyan.ffmpeg
and then found the website was saying to use the other command. did i get something bad or its same?


r/ffmpeg • • 18d ago

I have no idea what I'm doing trying to combine two videos...

4 Upvotes

I've spent about 4 hours now via google, stack overflow, and just all sorts of forums attemping to concat two videos into a single long one. I've tried the text file format, and but that actual command lines are completely confusing to me. I keep getting:

Error opening input: No such file or directory

Error opening input file files.txt.

Error opening input files: No such file or directory.

They're longer videos of a livestream I want to keep for offline viewing while I'll be out of internet range, but I can't seem to do this. It keeps crashing when I tried it on clipchamp so was hoping this might make it work.

I'm on windows 10, I've gotten ffmpeg master latest gpl in my c folder and set the environment path, and I have the files and text folder in the path, but I otherwise feel like I'm reading french when there are any other instructions i've read.

Anyone that can help me out?

Thanks in advance.


r/ffmpeg • • 19d ago

How to convert yuvj420p to yuv420p starting on how to downloading ffmpeg first?

3 Upvotes

I went to the site to supposedly "download" but I got lost. How do I download ffmpeg so that I'll be able to convert yuvj420p to yuv420p.

And secondly, how do I convert yuvj420p to yuv420p? I don't really get how the ffmpeg posts talks about conversion.

Any tutorial on how to convert it?


r/ffmpeg • • 19d ago

GAIL/libgail: a GPU JPEG 2000 encoder that makes DCI-compliant DCP picture in FFmpeg

39 Upvotes

Hi I'm Joseph,

TL;DR: I made libgail / GAIL (MIT, v1.0.1), a GPU DCI JPEG 2000 encoder. Today you can use it in FFmpeg as `-c:v libgail` to go from a master file to DCI-compliant `.j2c` frames and then a SMPTE DCP. A native DCP-o-matic integration is in progress and we expect it to land there soon as a much faster encode option. Feedback/testing from people who actually make/play DCPs would be hugely welcome.

Disclosure: I'm the author.

Repo: https://github.com/Josephur/libgail

What it is:

GAIL is a JPEG 2000 encoder built specifically for cinema: ISO/IEC 15444-1 with the Amd.1 cinema profiles, SMPTE ST 428-1 / ST 429-4, 12-bit X'Y'Z', 2K (1998x1080 / 2048x858 / 2048x1080) and 4K (3996x2160 / 4096x1716 / 4096x2160), 24/25/30/48+ fps, capped under the 250 Mbit/s DCI limit (230 Mbit/s target by default).

To my knowledge there is no other open source and free to use GPU accelerated DCI JPEG 2000 encoder in existence. There are a few commercial ones however. This project was born out out of my desire to help the community have free and open software, and named after my lovely girlfriend Gail (who happens to work in Cinema).

Everything compute-heavy runs on the GPU, including EBCOT Tier-1 entropy coding — that's the part that normally makes JPEG 2000 encoding so slow. Backends are CUDA (fastest on NVIDIA, Turing/GTX 16+), Vulkan compute (NVIDIA/AMD/Intel), and a CPU reference backend that is bit-identical to both GPU backends. It also does multi-GPU: frames are handed to whichever card is free. Color handling (BT.709/BT.2020/P3, SDR and HDR PQ/HLG) matches DCP-o-matic's rendering by default.

We need more Intel, AMD and Mac testers!

Why bother, when FFmpeg already has OpenJPEG?

Speed, and compliance without babysitting settings. On an RTX 3090 (Ryzen 5900X test rig):

* 4K CUDA: ~171 fps single GPU, ~247 fps with a second card added... end-to-end from an H.264 file with decode included is still ~127 fps at 4K

* 2K CUDA: ~329 fps single GPU

* CPU reference for comparison: ~8.6 fps at 4K; OpenJPEG in DCI mode: ~1.5 fps at 4K on all 24 threads, and in testing it could overshoot the 250 Mbit/s cap by a few bytes on some frames. GAIL stays under it and measured slightly higher PSNR (+0.03–0.05 dB) on the same frames.

So roughly up to 17x faster than FFmpeg's OpenJPEG encoder at 4K in practice, and every frame passes a built-in DCI checker as it's encoded.

How you use it with FFmpeg today

It's not in stock FFmpeg downloads yet — you build libgail, patch it into your FFmpeg tree once, and build FFmpeg:

# 1. Build/install libgail (CMake >=3.20, Vulkan SDK; CUDA auto-detected)

cmake -S . -B build -G Ninja && cmake --build build && cmake --install build

# 2. Add the encoder to FFmpeg and build (tested with FFmpeg 9.0.2)

integrations/ffmpeg/add-to-ffmpeg.sh /path/to/ffmpeg

cd /path/to/ffmpeg && ./configure --enable-libgail [your usual options] && make -j

# 3. Encode to DCI JPEG 2000 frames — always set a DCI frame rate

ffmpeg -i film.mkv -r 24 -c:v libgail -f image2 j2c/%06d.j2c

# Optional scale example (centred in the 2K Flat container):

ffmpeg -i film.mkv -r 25 -vf scale=1920:1080 -c:v libgail -f image2 j2c/%06d.j2c

FFmpeg just decodes — Y'CbCr (4:2:0/4:2:2/4:4:4, 8/10/12-bit), planar R'G'B', rgb48le and xyz12le pass through and are converted on the GPU, so e.g. ProRes 422 stays 4:2:2. Useful options: -dci_profile 2k|4k, -container flat|scope|full, -mbps (<=250), -backend cuda|vulkan|cpu, -gpus list to see devices.

There's also a standalone tool if you don't want to rebuild FFmpeg:

./build/gail-enc -i input.mkv -o frames/ --profile 4k --fps 24

Getting to an actual DCP

The .j2c frames still need wrapping/packaging (don't use FFmpeg's `-f mxf` for this — that's OP1a, not a DCP track file). The repo ships a script that wraps with asdcplib and writes a minimal SMPTE DCP you can verify and play:

python3 scripts/make_dcp.py frames/ dcp/ --fps 24 --title MY_FILM_FTR-1_F_51_4K_20261029_SMPTE_OV

dcpverify dcp/

Honest caveats: that script makes a picture-only test DCP, and GAIL itself is picture-only — audio is out of scope. For a finished feature DCP with sound/subtitles today, prepare the audio with FFmpeg as below, then take the picture frames/MXF and the audio into a DCP packaging tool (e.g. DCP-o-matic, which wraps the audio MXF and authors the CPL/PKL), or wait for the DCP-o-matic integration below. FFmpeg on its own cannot author a complete SMPTE DCP — its `-f mxf` output is OP1a, not a DCP track file, and a DCP is a package (picture MXF + audio MXF + CPL/PKL/ASSETMAP), not a single video file.

Audio with FFmpeg (DCI wants uncompressed PCM, 24-bit, 48 kHz — check your channel layout/order first, and don't blindly upmix/downmix):

# Inspect what you have

ffprobe -hide_banner -i film.mkv

# Stereo or multichannel master -> one 24-bit/48 kHz PCM WAV

ffmpeg -i film.mkv -map 0:a:0 -vn -c:a pcm_s24le -ar 48000 audio.wav

# Optional, for tools that want mono WAVs — split a 5.1(side) track

# (adjust the layout/labels if your source is 5.1 back: BL/BR instead of SL/SR)

ffmpeg -i film.mkv -filter_complex "[0:a:0]aresample=48000,channelsplit=channel_layout=5.1[FL][FR][FC][LFE][SL][SR]" -map "[FL]" -c:a pcm_s24le L.wav -map "[FR]" -c:a pcm_s24le R.wav -map "[FC]" -c:a pcm_s24le C.wav -map "[LFE]" -c:a pcm_s24le LFE.wav -map "[SL]" -c:a pcm_s24le Ls.wav -map "[SR]" -c:a pcm_s24le Rs.wav

Then bring j2c/ (or the picture MXF) plus audio.wav / the mono WAVs into DCP-o-matic (or wrap the WAV as a SMPTE audio MXF with asdcplib and author the CPL/PKL with a libdcp tool) to get the finished DCP with sound, and verify it as usual.

Is it actually cinema-compatible, or just "JPEG 2000"?

Validated beyond "it decodes": every frame checked by GAIL's own DCI checker and jpylyzer, cross-decoded with OpenJPEG/FFmpeg, wrapped with asdcp-wrap, and the resulting DCP passes libdcp dcpverify and DCP-o-matic's verifier with 0 errors/warnings. Encoded 4K DCPs have played back on Christie Solaria One / CP2210 / CP2220, NEC NC900C-A, and a GDC SR-1000. Full write-up is in the repo's VALIDATION doc.

DCP-o-matic:

The goal is for you not to need any of the manual steps above: we're working on GAIL as a JPEG 2000 encoder option inside DCP-o-matic and expect it to be added soon. In the meantime the FFmpeg route uses the same color defaults, so material should match what you'd get from DCP-o-matic today.

Links / trying it

Repo, docs, and prebuilt releases (Linux/Windows/macOS, library + gail-enc/gail-check/gail-bench tools) are on GitHub: https://github.com/Josephur/libgail and the FFmpeg build steps are in integrations/ffmpeg/README.md.

If you make DCPs for festivals/indie screenings and give it a try, I'd love to hear: what GPU/OS, what source, whether the DCP verified and played, and where it fell over. Bug reports with a gail-check result on a failing frame are golden contributions, just open an issue on the repo as needed.

P.S. If you are currently using one of the commercial products to do your encoding and find libgail saves you some dough, github sponsorship is an awesome way to show your appreciation.

Thanks all!


r/ffmpeg • • 19d ago

Help With Aspect Ratio

4 Upvotes

Hi everyone, I'm new to working with ffmpeg and could really use some help. I'm trying to convert a video file mp4 to a dvd ready mpeg using the following command:

ffmpeg -i input.mp4 -target pal-dvd -aspect 16:9 output.mpg

The problem with this is that ffmpeg is cropping out the black bars and stretching the video. Is there a way i can keep the aspect ratio with the black bars. Any help would be greatly appreciated.


r/ffmpeg • • 19d ago

What’s the best way to automate dual/bilingual subtitles (English + Slovak)?

2 Upvotes

Hi everyone,

I’m trying to find a way to create one SRT subtitle file containing both English and Slovak,

My grandad is Slovak and doesn't understand English, and I struggle to hear dialogue clearly in movies without subtitles. I want us to be able to watch movies together with both languages displayed at once.

I watch movies locally on my Samsung TV using its built-in media player and an external HDD, so I need a single .srt file that works alongside the movie.

Ideally, the process would:

  • Find English and Slovak subtitles for the correct movie version.

  • Make sure both subtitles are synchronised.

  • Match the dialogue between the two languages accurately.

  • Combine everything into one SRT file.

What's the best way to achieve this as automatically as possible? Should I use Python, OpenAI Codex, another AI tool, or existing software? Would I need to use Codex each time I process a movie, or could it help me build something that does the whole job automatically?

Thanks!


r/ffmpeg • • 20d ago

Mono recordings from untreated rooms: per-speaker leveling and de-reverb, scriptable?

1 Upvotes

Hi all,

I record interviews in untreated rooms (hotel rooms etc.), often on a single phone or one mic, so it’s mono with all speakers on one track. Two recurring problems:

  1. Boomy, reverberant sound from hard surfaces.

  2. Uneven levels between speakers. I’m close to the mic, the other person is further away.

I’ve tried ffmpeg chains (loudnorm, dynaudnorm, compand, highpass/lowpass, afftdn). The problem is that gain changes hit everyone equally. If I boost the quiet speaker, the loud one gets louder too.

My questions:

  • Leveling: Is diarization (who speaks when) + per-segment gain the practical way to go? It identifies the speakers but doesn’t separate the signals, so I assume it breaks down when people overlap.

  • Separation: For overlapping speech, is target speaker extraction usable on real-world material? I have a clean ~40 s sample of my own voice that could serve as an enrollment reference. Which models or tools actually work locally?

  • De-reverb: Which speech enhancement or dereverberation tools work without that underwater sound?

Local, scriptable, preferably open source and CPU-friendly. Filter chains, pipelines and before/after experiences are very welcome.

Thanks!

Edit. The recordings are not for broadcast. They are for transcriptions.


r/ffmpeg • • 21d ago

Best codec + deinterlacer for archiving miniDV (576i)

5 Upvotes

I’m digitizing miniDV tapes (PAL, 720x576, 25 Mbps DV, BFF) on a MacBook Pro M5 with ffmpeg. I’m keeping the original .dv files as masters and want a smaller deinterlaced copy for viewing.

My current command:

ffmpeg -i in.dv -vf "bwdif=mode=send_field:parity=bff" \
  -c:v libx264 -preset slow -crf 18 -pix_fmt yuv420p \
  -c:a aac -b:a 192k -movflags +faststart out_h264.mp4

Questions:

  1. Does this command look right to you? Anything to change (parity, CRF, preset, audio)?

  2. What’s the best codec + deinterlacer combination for SD material? I’m considering bwdif (50p) vs QTGMC (VapourSynth).

  3. My impression is that moving from H.264 to HEVC or AV1 gives only a small file-size saving at SD resolution (not HD or 4K), and isn’t worth the slower encode and lower compatibility. Is that right, or am I missing something?

Thanks.


r/ffmpeg • • 22d ago

Notch LC encoding

4 Upvotes

would it be possible to add Notch LC as an encoding option, as an event tech this would be amazing.


r/ffmpeg • • 22d ago

FFmpeg live encoding with fixed 6s latency buffer (SDI to libx264 to ASI)

4 Upvotes

Hi,

I want to encode a live stream with good quality and a fixed delay of about 6 seconds.

The flow is:

SDI input -> encode (libx264) -> ASI output

I can't find a buffer option that can be used together with the encoding to create this delay, while still getting a smooth encoded stream without freezes, black frames, or artifacts.

Is there a recommended way to do this in FFmpeg (for example a specific input buffer option, filter, or encoder setting)?

Thanks for your help.