Skip to main content

Questions tagged [video-encoding]

Specific issues with encoding video to a certain format, also related to [video-conversion]

Filter by
Sorted by
Tagged with
98 votes
9 answers
145k views

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 ...
nonot1's user avatar
  • 1,659
73 votes
1 answer
273k views

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: ...
michael's user avatar
  • 5,985
65 votes
2 answers
135k views

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 ...
HappyFace's user avatar
  • 1,251
61 votes
1 answer
190k views

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....
user avatar
59 votes
4 answers
127k views

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's user avatar
  • 4,404
53 votes
3 answers
121k views

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,...
Bachalo's user avatar
  • 2,687
50 votes
3 answers
210k views

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 ...
skull3r7's user avatar
  • 603
46 votes
5 answers
82k views

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 ...
hongducwb's user avatar
  • 563
35 votes
3 answers
43k views

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 ...
Jeremy Edwards's user avatar
31 votes
4 answers
46k views

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 ...
nc4pk's user avatar
  • 9,157
31 votes
9 answers
31k views

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 ...
27 votes
1 answer
23k views

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 ...
C0nw0nk's user avatar
  • 589
27 votes
3 answers
49k views

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 ...
nonopolarity's user avatar
  • 9,696
26 votes
3 answers
61k views

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 ...
Grumpy ol' Bear's user avatar
24 votes
1 answer
30k views

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 ...
user avatar
23 votes
9 answers
44k views

How to make Handbrake preserve capture time / creation time?

Handbrake is an awesome video compression tool, but it doesn't seem to preserve the original capture time after a video is compressed. Any idea how to fix this?
pixelfreak's user avatar
23 votes
3 answers
50k views

How can I get high quality/low size MP4s like the LOL release group?

Release group LOL does an excellent job at encoding their releases on The Vampire Diaries (on other shows like How I Met Your Mother the bitrate is higher, so doesn't seem this effective). About 200 ...
thankyouinadv's user avatar
21 votes
6 answers
17k views

ffmpeg: limiting to single CPU core when encoding h264

I need to reduce the framerate of some H.264 videos in the background without maxing out my CPU (on Linux). Somehow -threads 1 has no effect at all: ffmpeg -threads 1 -i 50fps.mp4 -filter:v fps=30 ...
kontextify's user avatar
21 votes
3 answers
29k views

FFmpeg drops frames when encoding a png image sequence into an x264 mp4 video

I'm trying to encode an image-sequence (frame0001.png, frame0002.png, ... , frame0160.png) into an x264 video using the following command: ffmpeg -i frame%04d.png -sameq -r 24 out.mp4 After encoding,...
PtrFdr's user avatar
  • 591
20 votes
3 answers
64k views

How can I re-encode H.264 video with minimal quality loss?

I have a lot of MPEG-TS files (.TS container but H.264 video) and playback is fine except that when you skip forward/backward or fast forward it's very sluggish and gets pixelated, etc. I've been ...
SofaKng's user avatar
  • 1,235
20 votes
1 answer
21k views

How do I translate HandbrakeCLI options to FFmpeg options?

I have a bunch of commandline settings that work for handbrake, but sometimes on some videos (I have no idea why) handbrake throws "Out of memory exception". I was wondering if I can find the same ...
iLemming's user avatar
  • 667
18 votes
7 answers
2k views

What tool can I use to to rip DVD movies? [closed]

What tool can I use to to rip DVD movies? I have used "Dr. DivX" long back. Is there any better tool to rip DVDs?
15 votes
1 answer
27k views

Using ffmpeg to denoise (reduce film grain)

I have a large collection of movies I'd like to re-encode to both reduce size and improve picture quality. A large number are old black and white movies that are pretty grainy, but even titles through ...
jbbarnes77's user avatar
14 votes
1 answer
12k views

What bunch of ffmpeg scripts do I need to get HTML5-compatible "Video for everybody"?

What list of commands should I do in ffmpeg/mencoder/some_other_CLI_app to get a video in all the right formats to use Video for Everybody? i.e. Is there a subtlety that prevents there being a ...
John Baber-Lucero's user avatar
13 votes
3 answers
28k views

Will I get any visual benefit if I use CRF values below 17/18 in x264 (FFmpeg)?

Will I get any visual benefit if I use CRF (Constant Rate Factor) values below 17/18 in x264 (FFmpeg)? Will there be any differences other than size? CRF 17/18 are visually lossless. CRF 0 means, ...
RvidD's user avatar
  • 414
12 votes
1 answer
19k views

ffmpeg says that "'.mkv' is not a suitable output format"

I have trouble with ffmpeg, I want to do a two-pass encoding, plus denoise and deblock if possible. This is a command I thought would work but I am getting all sorts of problems: ffmpeg -y -i file....
Levan's user avatar
  • 1,199
12 votes
2 answers
16k views

What parameters should I be looking at to reduce the size of a .MOV file?

My Canon 60D creates .MOV files when recording video and I've found out that the .MOV container has an H264 video stream and a PCM audio stream. I've used ffmpeg and GSpot to look at some of my ...
Ward - Trying Codidact's user avatar
12 votes
2 answers
21k views

How to compile the best version of FFmpeg for Cygwin/Windows

It's generally accepted that, by default, FFmpeg comes packaged with lower-quality encoders - particularly when it comes to the default AAC encoder and the default resampler. According to these ...
Hashim Aziz's user avatar
11 votes
4 answers
46k views

How to losslessly combine multiple AVI files into a single file?

I would like to combine multiple movie clips with .mov and .avi extension into a single file. Is there any free software in the market that is good and able to perform that? Preferably that should ...
Lopper's user avatar
  • 277
10 votes
1 answer
4k views

How can I compress video by taking advantage of its static content?

I have an HD video that is a presentation, so it consists mostly of still images. It's a 50 minute, 200MB MP4 file, downloaded from YouTube. Is there a way to take advantage of the static nature of ...
Mark Evans's user avatar
9 votes
2 answers
31k views

AV1 encoding with ffmpeg

Since the newest version (4.0), ffmpeg supports the AV1 codec. VLC should also be able to play AV1 videos. Unfortunately I haven't found the syntax to encode existing videos to AV1. I use ffmpeg ...
Dr. Snail's user avatar
  • 707
8 votes
3 answers
695 views

Video encoding for archival

I would like to archive some home videos (DV). I don't need to save them losslessly, but I would like to encode them in something high-quality. What format is both pretty indistinguishable from the ...
Jim Hunziker's user avatar
  • 1,223
8 votes
2 answers
18k views

How to add additional key frames to video using ffmpeg?

I want to add key frames on the base of a specific interval (20 frames) to my video. Therefore I used the following command in ffmpeg: ffmpeg -i <input> -vcodec libx264 -x264-params keyint=20:...
Julian F.'s user avatar
  • 503
8 votes
2 answers
2k views

How do I use my GPU to accelerate video encoding?

I have an ATI Radeon HD 4870 graphics card. I have read that I can use this to significantly speed up encoding DVD to AVI. Does anyone know how this can be done?
Nifle's user avatar
  • 34.5k
8 votes
7 answers
45k views

Converting AVI encoded file with an IMM5 codec

As part of a legal matter, I received a copy of a security video encoded using what appears to be an 'IMM5' codec, apparently often used by police. I also received a copy of 'BackupPlayer', which can ...
ChrisInEdmonton's user avatar
7 votes
9 answers
2k views

Converting a video from VOB to AVI while making the file smaller

How do I convert a video from one format, in this case a .vob into another, say .avi? I have a DVD of 4.2 GB and would like to convert that to a smaller filesize and different format of an .avi file ...
MladenB's user avatar
  • 167
7 votes
4 answers
13k views

Get the list of I-Frames in a video in FFMPEG / Python

I'm trying to select say 10 frames from a given video, possibly with highest variety and scenes. I would like to experiment with various selection scenarios, but the good thing is that the notion of I-...
Tina J's user avatar
  • 539
7 votes
2 answers
5k views

What are the differences between the HuffYUV and ffvhuff codecs in FFmpeg?

Doing ffmpeg -codecs | grep -i huffyuv shows that my FFmpeg build supports three different versions of the HuffYUV lossless video codec: DEVI.S ffvhuff Huffyuv FFmpeg variant DEVI.S ...
Hashim Aziz's user avatar
7 votes
2 answers
16k views

Setting the profile level for libx265 using ffmpeg

I'm trying to set the profile level of libx265 to mainstillpicture using ffmpeg. But I can't seem to do so. I'm basically trying to encode every frame as intra frame (only spatial encoding) with no ...
Bubba's user avatar
  • 73
7 votes
1 answer
15k views

Video uploads to YouTube with no sound

I have a video camera which, when I try to upload the videos to Youtube taken with it, the sound is removed. I used to be able o upload sound but then something happened and ...now I can't. If ...
Brad's user avatar
  • 498
7 votes
1 answer
24k views

Handbrake: How to retain sharpness when down-sampling video during an encode?

I have a bunch of 1280x720 resolution videos, but I really don't need to have that high resolution, so I thought of re-encoding and resizing them to 852x480 to save some space, but I noticed Handbrake ...
Rookie's user avatar
  • 1,233
6 votes
2 answers
29k views

ffmpeg: how to create an interlaced h.264 video?

I would like to convert a high quality non interlaced input video into a less quality but wider distributable H.264/MP4 format. The output should have some constraints - in particular: it should be ...
Thomas R.'s user avatar
  • 121
6 votes
2 answers
27k views

Using CRF and setting a maximum bitrate with x264 in FFmpeg

I am trying to transcode a video to H.264/MP4. I am using the crf = 20 option but according to the requirements I also want to limit the maximum bitrate to 3 MBit/s. I was trying to cheat though it ...
hermit's user avatar
  • 91
6 votes
1 answer
8k views

How do I convert the format of an audio track inside an MP4 video?

I have an MP4 File with an AVC video track and an MP3 (not AAC) audio track. Video: MPEG4 Video (H264) 1920x1080 [Video] Audio: MPEG Audio 44100Hz stereo 192kbps [Audio] While some video players are ...
ArmlessJohn's user avatar
6 votes
3 answers
20k views

Best Intel Quick Sync software for h.264 transcoding

I would like to know the best (fast) software for video encoding and transcoding video into h.264 that makes use of Intel Quick Sync. I looked at Media Espresso by Cyberlink but it does not have many ...
Prakash's user avatar
  • 169
6 votes
1 answer
679 views

Does x264 support time-based rate control constraints?

I’m aware of techniques to give the encoder freedom to ramp up bitrate for relatively complex sequences, but this has the consequence of inflating the overall bitrate compared to whatever was desired ...
Louis Waweru's user avatar
  • 24.8k
6 votes
1 answer
12k views

Retrieve the HandBrakeCLI command from HandBrake GUI

I understand that the HandBrake application uses the HandBrakeCLI command-line application to do the actual encoding job From all the encoding settings I've set on the HandBrake UI, how can I ...
benoit's user avatar
  • 163
6 votes
1 answer
679 views

How to determine segments of footage held in common between different video files?

Context: Say I have two video files--rips from a DVD or DV tape. They are both MKV or AVI format, some standard container or other, but were ripped separately, with different encoders, different ...
Zac B's user avatar
  • 2,903
6 votes
1 answer
6k views

ffmpeg minimal requirements configuration for encoding and decoding h264 files

I'm trying to compile ffmpeg with minimal requirements in order to encode/decode with h264. So far my command line configuration is : ./configure --disable-yasm --disable-everything --enable-encoder=...
TheSquad's user avatar
  • 171
5 votes
1 answer
9k views

Lossless rotation of video (MPG, MP4)? [duplicate]

It is possible -- indeed, quite easy -- to rotate JPEG-files without re-encoding them, which means, no additional loss of quality is introduced in the process. Is the same possible for the similarly-...
Mikhail T.'s user avatar

1
2 3 4 5
8