31
votes
Accepted
How to encode Apple ProRes on Windows or Linux?
As of December 2018, Adobe Creative Cloud aps, such as Premier, After Effects and Adobe Media Encoder give you the ability to encode in ProRes without any post-hoc conversion.
If you don't use Adobe ...
- 13.6k
28
votes
Accepted
Why processor is "better" for encoding than GPU?
The article you linked is not very good.
Normally, single pass bitrate encodings convert your bitrate into a RF
value with a maximum bitrate limit and takes it from there.
x264's one-pass ABR ...
- 2,690
22
votes
Accepted
How is this .mp4 file 596523 hours long?
There are several things we can note here:
The file stops playing after 0:05:30.
If you remux the file (mkvtools for example) you do have 5:30 displayed as the length.
The original file does in fact ...
- 840
13
votes
Accepted
H.264 or VP9 for encoding for YouTube?
tl;dr: Since Youtube reencodes all videos regardless of the upload format, it really isn't that important. Just export your video with a high bitrate to preserve quality. Also see my answer here ...
- 5,392
13
votes
Removing MP4 encoding information
Use bitstream filter filter_units with ffmpeg 4.0 or newer.
ffmpeg -i INPUT -c copy -bsf:v 'filter_units=remove_types=6' OUTPUT
P.S.
/* NAL unit types */
enum {
H264_NAL_SLICE = 1,
...
- 131
13
votes
Accepted
ffmpeg- What's the difference between "NN000/1000 fps" and "NN000/1001 fps"?
Yes, 24000/1000 is 24 fps and 24000/1001 is 23.976fps. Some refer to the X/1001 frame rates as "drop down" (as in "dropped down from the integer") but this is easy to confuse with "pull down" which ...
- 387
13
votes
Accepted
How to encode for YouTube with ffmpeg?
Use
ffmpeg -i in.mp4 -vf yadif,format=yuv420p -force_key_frames "expr:gte(t,n_forced/2)" -c:v libx264 -crf 18 -bf 2 -c:a aac -q:a 1 -ac 2 -ar 48000 -use_editlist 0 -movflags +faststart out....
- 31.4k
12
votes
Why processor is "better" for encoding than GPU?
2017 update:
ffmpeg supports h264 and h265 NVENC GPU-accelerated video encoding. You can do 1-pass or 2-pass encoding at the quality that you choose, for either hevc_nvenc or h264_nvenc, or and even ...
- 121
8
votes
8bit vs 10bit vs 12bit
I can answer your first question. At the same bitrate and transcoding from an 8-bit source 10-bit HEVC is better than 8-bit HEVC, because it hardcodes dither. archived version of https://gist.github....
- 89
7
votes
H.264 or VP9 for encoding for YouTube?
YouTube will re-encode whatever you give it. VP9 is currently too slow to encode. So the best choice is to either:
Give it the original footage, or if it is not accepted by YouTube or is too big to ...
- 9,624
7
votes
Accepted
Digitize a VHS tape with FFmpeg and get a live preview
The tee muxer is suitable for this.
ffmpeg \
-f v4l2 -standard PAL -thread_queue_size 2048 -i /dev/video1 \
-f alsa -thread_queue_size 2048 -i hw:2,0 \
-map 0 -map 1 \
-vf yadif=1 \
-vcodec libx264 -...
- 31.4k
6
votes
how to Rotate a 3gp video without re-encoding
Rotate without re-encoding
You can add rotation metadata:
ffmpeg -i input.3gp -c copy -metadata:s:v rotate=90 output.3gp
-c copy will enable stream copy mode, so it will just re-mux instead of re-...
- 9,624
6
votes
Faster deinterlacing with ffmpeg and yadif
Yes, you have the right idea. If stib's suggestion of making multiple outputs in parallel with the same ffmpeg commandline doesn't quite do the trick, then use a temp file to hold a lossless copy of ...
- 2,690
6
votes
How to force Adobe Media Encoder to use 100% CPU and memory?
I'm not happy when I'm rendering unless I can actually smell burning plastic, nothing is more frustrating than AE telling you that your render won't complete until the heat death of the universe, ...
- 13.6k
6
votes
Is there an existing video format that records per-frame metadata?
If the frame-rate is not too high and you can associate a frame with a precise timestamp then the easiest would be to add the metadata as textual subtitles.
The other option is to mux the metadata as ...
- 486
6
votes
Accepted
Removing MP4 encoding information
Regular ffmpeg won't do this. You'll need a combination of two tools to carry this out.
#1 Use ffmpeg from direct264, a modded version of an old ffmpeg build with a custom filter to modify H264 ...
- 31.4k
6
votes
Accepted
Mono to Stereo using FFMPEG
If you run ffmpeg -layouts, you will see that stereo indicates the presence of two channels, one assigned as Front Left and the other as Front Right. If you use -ac 2 in your encode, ffmpeg will ...
- 31.4k
6
votes
ffmpeg- What's the difference between "NN000/1000 fps" and "NN000/1001 fps"?
Those are rational numbers. So, 24000/1000 = 24.000 and 24000/1001 = 23.976. These are in fact the exact representations i.e. 23.976 is an approximation but 24000 divided by 1001 isn't.
As for why ...
- 31.4k
5
votes
How to losslessly encode a jpg image sequence to a video in ffmpeg?
To expand on LordNeckbeard's answer, yes, just mux the JPEG data into an MJPEG video stream. That will be the smallest representation of the exact sequence of output images, even though MJPEG is a ...
- 2,690
5
votes
Accepted
Encoding videos for MPEG-DASH
I would get as far away from EE as possible. Using the x264 tool, and mp4box, you can convert and segment out the files which are ready to be streamed to any dash compatible players. Especially since ...
- 111
5
votes
8bit vs 10bit vs 12bit
In my experience (using handbrake) increasing the bit depth increases the file size but not by much. However, lowering the CRF is what causes significantly larger files. I encoded several times the ...
- 51
5
votes
8bit vs 10bit vs 12bit
I've been running some tests lately (2H2020) concerning reducing the size of some high quality movies of my collection, just for PC to TV 1080p viewing, from 20-30mbps videos to 2-3mbps ones. To that ...
- 51
5
votes
What is the colour range of most videos?
Most videos are limited range i.e. luma goes from 16 to 235, and chroma from 16 to 240.
Unless expressly set, FFmpeg does not scale the range from one to another. Whatever the source is, that's the ...
- 31.4k
5
votes
4:3 video has 720x480 resolution
525/60 digitized SD video according to Rec. 601 is indeed 720 pixels wide, 480 pixels high, including some blanking on the sides. Digital equivalent of 625/50 is 720x576. In both cases, frame aspect ...
- 494
5
votes
Accepted
4:3 video has 720x480 resolution
There are 2 different things:
The real width and height of frames (in pixels) – see the green part of the following picture.
The displayed width and height (during the playback) – see the blue part ...
- 1,404
5
votes
Accepted
Call FFmpeg filter from source code (C API)
You can't just call a filter, You must instantiate a filter graph.
First you need to create a buffer and buffersink via:
AVFilterContext* source = 0;
AVFilterContext* sink = 0;
AVFilterGraph *graph =...
- 1,050
5
votes
Accepted
How to convert 10-bit H.265 videos to H.264 without losing quality
it looks like the Video is encoded in 4000 kbit/s, instead of a Rate Factor (RF).
But that isn't the issue here. The issue is: while 264 does support lossless encoding, it not widely compatible! (you ...
4
votes
How to encode Apple ProRes on Windows or Linux?
I've tried a bunch of front ends for ffmpeg and finally settled on Tencoder. Widows only. It has a preset for ProRes and is very easy to customize so you can crete setting for often used formats or ...
- 141
4
votes
How can I efficiently convert MOV / MPEG-4 files for long term storage?
Although @stib's advice is sound, I disagree with "to get an appreciable size reduction you would have to throw away a lot of quality". Cameras have to compress on-the-fly, so they use constrained ...
- 31.4k
4
votes
Accepted
Does repeatedly saving a video degrade its quality?
MP4 isn't an ideal format for intermediate saves. If you know you'll be re-opening the file, save it as losslessly as practicable, and use MP4 only for the final output.
That said, depending on the ...
- 4,674
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
encoding × 349ffmpeg × 159
video × 77
h.264 × 40
video-quality × 35
codec × 32
compression × 32
transcoding × 26
premiere × 20
mp4 × 20
streaming × 16
conversion × 14
file-formats × 14
video-editor × 13
adobe-media-encoder × 12
decoding × 12
audio × 11
libx264 × 11
software-recommendation × 10
youtube × 10
hardware × 10
bitrate × 10
framerate × 9
editing × 8
webvideos × 8