Skip to main content
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, ...
whmiao's user avatar
  • 131
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 ...
Gyan's user avatar
  • 33.4k
2 votes
Accepted

How do I avoid objects having flickering edges when I encode a screen recording to mp4 using x264 and ffmpeg?

The parameter that seems to have the greatest impact on removing this artifact (for the type of content in the original post), while allowing higher CRF values is deblock. Using -deblock -3,-3 allowed ...
Framerate's user avatar
2 votes
Accepted

Using FFMPEG to convert an MKV with multiple subtitles, audio tracks and chapters to a plain mp4

There are multiple questions; I'll try to answer them separately for simplicity. First of all, converting from mkv to mp4: The easiest way would be something like this ffmpeg -i input.mkv output.mp4 ...
Euklios's user avatar
  • 166
1 vote
Accepted

Encoding to the same H.264 size as YouTube

I was able to produce the same size as Youtube by varying the qp option for x264. The value that worked to approximately the same size was qp=20.
er0's user avatar
  • 111
1 vote

Compiling x264 in MinGW

The included x264 cli app may depend on libavformat and libswscale, which is where the ffmpeg dependency comes in. The libx264 wrapper in libavcodec depends on x264.
Gyan's user avatar
  • 33.4k
1 vote

Multiple FFmpeg input & output

To pipe to x264 and encode to AAC file in the same command, use ffmpeg -i in.mp4 -map v -f yuv4mpegpipe - -map a -c:a libfaac v.aac | x264 --demuxer y4m --crf 18 --output "v.mp4" - Then you can mux ...
Gyan's user avatar
  • 33.4k
1 vote

x264 quality results based on source

A lower-than-optimal bitrate video with higher resolution could easily look worst than a smaller one with proper bit per pixel dedication. Of course a very important fact is the viewing device and ...
Behnam Kakavand's user avatar
1 vote

OBS (Encoding X264) fails

Here are some things to try: Switch to OBS Studio. OBS classic is no longer supported and has been replaced by the "studio" version. Tell your OS to run OBS in "high priority" mode. Set your encoding ...
Lucien's user avatar
  • 11
1 vote

encoding 4:2:2 in 10-bit with libx264

I downloaded the ffmpeg from the link https://sourceforge.net/projects/ffmpeg-hi/?source=typ_redirect And entered the below command to create 4:2:2 10bit h.264 file: ffmpeg-hi10-heaac.exe -i "im....
user19639's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible