Specific issues with encoding video to a certain format, also related to [video-conversion]
Questions tagged [video-encoding]
411 questions
99
votes
9 answers
Can HandBrake flip/rotate a video?
I'd like to use HandBrake to compress some video that was taken via a camera that was mounted upside down.
I found a reference to a command-line rotate option, but I can't find it in the GUI.
Am I just missing it?
nonot1
- 1,669
78
votes
1 answer
How to specify audio and video bitrate
I have a mov file with the following media information:
Stream 0
Type: Video
Codec: H264-MPEG-4 AVC (part 10)avc1
Language: English
Resolution: 1280x720
Frame rate: 24
Stream 1
Type: Audio
Codec: MPEG AAC Audio (mp4a)
Language: English
Channels:…
michael
- 6,215
71
votes
2 answers
How do I convert 10-bit H.265 / HEVC videos to H.264 without quality loss?
My laptop can't handle 10bit H.265 / HEVC videos, so I'm looking to convert them to 10bit H.264. How do I do this using, say, ffmpeg, with the least quality loss? And how can I convert 10-bit H.265 to 8-bit H.265?
HappyFace
- 1,389
62
votes
1 answer
Convert AVI (Xvid) to MP4 (H.264) keeping the same quality
I want to compress an AVI file to MP4 using an h.264 codec. I could not get the same quality. How can I compress it?
Original Video:
Original Video Screen:
FFmpeg console output (ffmpeg -i input.avi):
FFmpeg version SVN-r26402, Copyright (c)…
user183129
60
votes
4 answers
How do I reduce the size of a huge MP4 video?
I have a 4GB MP4 video file that I shot with the HD Flip Mino. How do I reduce it to no more than 1GB without losing too much quality?
user1413
- 4,494
56
votes
3 answers
Cheat sheets and -preset settings that actually work with FFmpeg 1.0+
I have looked at various cheatsheets, but they were outdated. What preset settings work well with the latest versions of FFmpeg?
I'm primarily interested in the H.264 and ProRes codecs for low, medium, and high quality presets.
Bachalo
- 2,857
51
votes
3 answers
How to generate an MP4 with H.265 codec using FFmpeg?
I want to encode a video file to H.265. The last version of ffmpeg should be support H.265 (Source).
However, I could not find any information about the exact command.
I do not know, which library I should indicate after -vcodec.
I use the lastest…
skull3r7
- 613
49
votes
5 answers
How can I use CRF encoding with nvenc in ffmpeg?
This is my current command for resizing videos (1080p) from 2GB to 300MB, but it takes a lot of time:
mkdir newfiles
for %%a in ("*.mp4") do ffmpeg -i "%%a" -c:v libx264 -preset slow -crf 21 -c:a aac -b:a 128k -vf scale=678:-2…
hongducwb
- 593
36
votes
3 answers
Convert from MOV to MP4 Container format
I have a digital camera that records nice 1080p H.264 format but unfortunately it uses the MOV container format. Basically I have nothing but the camera and VLC that play this format natively.
Is there a tool out there to convert the video to a…
Jeremy Edwards
- 543
31
votes
1 answer
What ffmpeg command line produces video more compatible across all devices?
So I have users saying H264 videos MP4's don't play audio on Apple's iPad and I struggle to get MP4 videos to play properly on Android too.
There are two different command lines what command line is the one that I should be using.
-profile:v…
C0nw0nk
- 639
31
votes
4 answers
How do I replace the audio in an MP4 file without re-encoding?
I've got a video in an MP4 container that I would like to replace the audio track in (not add another audio stream to, nor convert the audio format of).
Someone elsewhere online suggested to use VirtualDub to replace the audio track, but it…
nc4pk
- 9,257
- 14
- 61
- 71
31
votes
9 answers
Is there any way to distribute x264 encoding jobs across multiple computers (to increase the encoding speed)?
Does anyone know of a current, active solution to encoding x264 videos across many computers (via the network) to increase encoding FPS?
Brownie points for cross-platform and open source, but just so you all know, I usually use Windows.
Programs…
Breakthrough
- 34,847
28
votes
4 answers
Shouldn't we always use Web Optimized for Handbrake?
I use Handbrake sometimes to compress video files, and notice that the "Web Optimized" option is not chosen by default, and cannot be set to the default in Options either.
But I tried both Web Optimized and non-Web-optimized. Turns out both the…
nonopolarity
- 9,886
27
votes
3 answers
Which resize algorithm to choose for videos?
I'm using VirtualDub for encoding with those settings.
However I record my stuff in 1920x1080 and resize it down to 1280x720. Now the question: which algorithm should I choose when making a balanced quality vs. file-size decision?
I always went…
Grumpy ol' Bear
- 6,667
25
votes
1 answer
FFmpeg split video and merge back
I'm trying to use FFmpeg to split video based on some start_time and end_time inputs, and replace those with other video files. For instance, for input 10 15 I will need to replace EXACT seconds 10 to 15 with another video.
OK. What comes into my…
user608414