Batch Convert FLV to Video: Save Time and Preserve Audio
Why batch converting helps
- Efficiency: Convert many files at once instead of repeating steps per file.
- Consistency: Apply the same settings (codec, bitrate, resolution) across all videos.
- Automation: Schedule or script conversions to run overnight or on a server.
Recommended tools
- FFmpeg (free, cross-platform): Command-line, powerful batch scripting, full control over codecs and audio handling.
- HandBrake (free, Windows/macOS/Linux): GUI + CLI support, presets, queue for batch jobs.
- VLC (free, cross-platform): Basic batch conversion via media > convert/save queue.
- Paid GUI converters (e.g., Movavi, Wondershare UniConverter): Easier for non-technical users, batch features and presets.
Best settings to preserve audio
- Container & codec: Convert to MP4 (H.264 video + AAC audio) for wide compatibility.
- Audio bitrate: Keep same or choose 128–320 kbps for good quality (use original bitrate if unknown).
- Sample rate: Preserve original (commonly 44.1 or 48 kHz).
- Channels: Keep original channel count (stereo vs. mono).
- Avoid re-encoding audio when possible: use stream copy for audio (e.g., FFmpeg -c:a copy) if target container supports the audio codec.
FFmpeg batch example (Windows PowerShell)
Code
Get-ChildItem -Filter.flv | ForEach-Object { \(in = \)_.FullName \(out = [IO.Path]::ChangeExtension(\)in, ‘.mp4’) ffmpeg -i “\(in" -c:v libx264 -preset fast -crf 23 -c:a aac -b:a 192k "\)out” }
HandBrake queue tips
- Add multiple FLV files to the queue.
- Choose a preset (e.g., “Fast 1080p30”) and adjust audio bitrate/sample rate.
- Start queue; check output files for correct audio.
Quality & speed trade-offs
- CRF (FFmpeg/HandBrake): Lower CRF → higher quality and larger files (CRF 18–23 common).
- Preset: Faster presets reduce encoding time at cost of efficiency/quality.
- Hardware acceleration: Use NVENC/QuickSync for faster encodes, but slightly lower quality than CPU x264 at same bitrate.
Verification & metadata
- Verify audio synced and preserved by spot-checking outputs.
- Copy metadata if needed (FFmpeg: -map_metadata 0).
- For batch renaming or organizing, include original filename and timestamp in output.
Troubleshooting common issues
- Missing audio: inspect input codecs (ffmpeg -i file.flv) and use compatible audio codec or copy stream.
- A/V desync: try remuxing first (copy streams), or re-encode with ffmpeg -async 1 -vsync 1.
- Corrupt FLV: try repairing tools or ffmpeg -err_detect ignore_err.
If you want, I can generate a ready-to-run script for your OS (Windows/macOS/Linux) and preferred target format/settings.
Leave a Reply