Skip to main content
17 votes

How to downsample 4k to 1080p using ffmpeg while maintaining the quality?

Convert 4k to 1080 (no change in codec) ffmpeg -i input4kvid.mp4 -vf scale=1920:1080 -c:a copy output1080vid.mp4 Convert h.264 to h.265 (no change in resolution) ffmpeg -i input.mp4 -c:v libx265 -...
KeshavDulal's user avatar
8 votes

What is the most basic standard raw video format?

The reason there is no widely used uncompressed video format, as there is for audio is that the data rate for uncompressed video is so colossal that uncompressed video is kinda useless. While a ...
stib's user avatar
  • 13.8k
6 votes

Corrupt MP4 [recording interrupted]

I recently encountered this exact problem and I was able to repair the file using Untrunc, a program created specifically to solve this problem, as suggested by sparrowt on SuperUser: For this ...
Ajedi32's user avatar
  • 161
6 votes
Accepted

Understanding containers and codecs

MPEG-4 is not a container specification. It's a suite of specifications. Parts 12 and 14 define containers (MP4). Part 2 defines a video codec, whose encoder implementations are DivX and Xvid. Part 10 ...
Gyan's user avatar
  • 33.6k
6 votes
Accepted

What is the difference between VP9 and ​WebM?

VP9 is a video format. Another example is H.264. WebM is a container format that VP9 goes into. It is equivalent to the MP4 container format for the H.264 video format. libvpx is a video encoder (or ...
llogan's user avatar
  • 10.2k
6 votes

Need help to fix a broken MP4 which lacks a MOOV atom

As you said you have similar files, you may try the following: 1) any good mp4 file with the same resolution and bitrate to generate the header files: recover_mp4.exe good.mp4 --analyze 2) recover ...
user000001's user avatar
5 votes

Easily convert & archive a bunch of low res Video CD DAT files MPEG 1/2 to newer better format such as MKV or others?

Using ffmpeg, a free command-line tool, you can convert these DATs to MP4 (or MKV): ffmpeg -i input.dat -c:v libx264 -crf 20 -c:a aac -b:a 128k -movflags +faststart output.mp4 Your VLC output doesn'...
Gyan's user avatar
  • 33.6k
4 votes

Why does a video file that appears to be an MP4 not play in Windows Media Player?

Probably a fragmented MP4. Remux it using ffmpeg. ffmpeg -i filename -c copy out.mp4
Gyan's user avatar
  • 33.6k
4 votes
Accepted

What it means "a royalty free alternative" to video/audio (WebM format)

It's a quite complex topic, but yes, when dealing with non-royalty-free technologies you are in some cases required to pay royalties to the patent holders, depending on your usage. This usually ...
mcont's user avatar
  • 770
4 votes
Accepted

Errors in converting mp4 to ts with FFmpeg

a) -bsf h264_mp4toannexb applies the filter to all output streams but it has to be applied to only video streams. b) In any case, newer versions of ffmpeg, like the one you have, will automatically ...
Gyan's user avatar
  • 33.6k
4 votes

What is the video equivalent of vector graphics?

The whole premise of vector graphics is that there is a drawing engine in the output device that can interpret graphical commands and output shapes and fonts at the maximum resolution of its ...
user8356's user avatar
  • 181
3 votes
Accepted

Do I have any sort of loss converting an M4V file to MKV?

Your command ffmpeg -i "path/to/file.m4v" -c:v copy -c:a copy "path/to/file.mkv" does do a lossless copy since no recompression occurs. You have to note all warning or error messages during the ...
Gyan's user avatar
  • 33.6k
3 votes

How to: Add Chapters, Sections, markers to video files to help direct access, skipping/ fast forwarding?

MP4 format does support chapters. You can use free Drax utility to create them. Please note that not all video players support MP4 chapters. You need to find one that does (VLC ?)
altarvic's user avatar
  • 1,139
3 votes

Is there a video type for vector animation?

Here is some research about this topic: Resolution Independent 2D Cartoon Video Conversion https://www.researchgate.net/publication/305390110_Resolution_Independent_2D_Cartoon_Video_Conversion Video ...
masterxilo's user avatar
3 votes
Accepted

Lossless color compression

Without knowing the video properties, my generic answer is ffmpeg -i in.mp4 -vf geq=lum='p(X,Y)':cb=128:cr=128 out.mp4 This will reset the color information, but pass the luma plane intact. Add -crf ...
Gyan's user avatar
  • 33.6k
3 votes

How to convert a 720° ".ts" video recorded with an AllieCam360?

FFmpeg can see both views as separate video streams. You can remux the file to MP4 simply by using ffmpeg -i input.ts -c copy -map 0 output.mp4 Hopefully, your video editor can work with distinct ...
Gyan's user avatar
  • 33.6k
3 votes

What is the best format for archiving digital movies?

Ah yes, the age-old question without a definitive answer that is straightforward and cost-effective. In short, you want to store them in the highest-quality you can, in a format that you'll hopefully ...
daniel's user avatar
  • 121
3 votes

What is the best format for archiving digital movies?

If you're looking for an open source codec that is finding favour in archives and museums as an archival format, you might want to look at FFV1 from the FFMPEG project. https://en.wikipedia.org/wiki/...
stib's user avatar
  • 13.8k
3 votes
Accepted

How does ffmpeg record -timecode in different file formats?

FFmpeg only supports timecode in a limited set of formats. They are the MOV family (MOV/MP4/3GP..), MXF family, raw DV and Grass Valley GXF. How the timecode is stored and flagged is specific to the ...
Gyan's user avatar
  • 33.6k
3 votes
Accepted

Need help to fix a broken MP4 which lacks a MOOV atom

duplicate of How to recover a broken mp4 file: moov atom not found at unix.stackexchange.com - especially since you're looking for a linux/macos solution limitation: the untrunc tool needs a working ...
user14984725's user avatar
3 votes

Need help to fix a broken MP4 which lacks a MOOV atom

The mdat box in a MP4 contains the media payload but it is freeform. It is as good as gibberish on its own. The moov box identifies how many tracks there are, which codecs and their parameters those ...
Gyan's user avatar
  • 33.6k
3 votes

What is the most basic standard raw video format?

This topic is really complex and you have confused some things. WAV and mp4 are container formats, they can contain compressed or uncompressed data, while WMV is a series of codecs and formats. TXT ...
Matt's user avatar
  • 1,421
2 votes
Accepted

Motion capture and 3D model formats

You are a little confused in the MoCap process. Most mocap is captured live on either a soundstage or direct to your computer with a webcam/video camera with specialized software. This software ...
mcculleymike's user avatar
2 votes

How should I understand audio levels in FCP7 xml?

How can a keyframe occur at 1252.57 for a clip that has a duration of 766 frames? Because the user could have used a clip that was longer than 1252 frames, set a keyframe, then trimmed the clip down ...
user1118321's user avatar
  • 2,156
2 votes
Accepted

Camera configuration - Should I select an AVCHD interlaced format over MP4?

AVCHD as a format is a combination of containers, file naming conventions, and directory structure. It is not inherently better or worse than any other container types. Interlaced video is a thing of ...
Rusty Core's user avatar
2 votes

Camera configuration - Should I select an AVCHD interlaced format over MP4?

I will answer only to the 'interlaced' part. Yes, it's a thing from the past. Deinterlaced video always will be looking worse than progressive. It's like shooting through the cracked lens and then ...
Sergey's user avatar
  • 126
2 votes
Accepted

How can a GIF made from a vid be larger than the vid itself?

There are several factors at play here. For example, your gif creation app may have a quality slider/setting that influences the size of the output. However, the most likely cause is the difference in ...
MoritzLost's user avatar
  • 5,452
2 votes
Accepted

What is the best way to convert .vob files copied directly from a DVD into a format usable by Premiere Pro?

Using ffmpeg, cat and remux all the VOBs together to a MPEG program stream. ffmpeg -i "concat:vts01_1.vob|vts01_2.vob|vts01_3.vob" -c copy -f dvd dvd.mpg (You may have to escape the | character i.e. ...
Gyan's user avatar
  • 33.6k
2 votes

Easily convert & archive a bunch of low res Video CD DAT files MPEG 1/2 to newer better format such as MKV or others?

When you say archive, do you mean for long-term storage, such as in a library or museum? If that's the case a lossless, well-documented, open-source codec and container is what you want. FFV1 in a ...
stib's user avatar
  • 13.8k
2 votes

Recreate basic AVCHD from MTS files

I had the same problem - wanting to recreate the AVCHD folder structure & metadata files starting with a simple folder of only *.MTS files. After a lot of hunting, I discovered this post that ...
Buxtor's user avatar
  • 21

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