14 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
12 votes
Accepted

Big difference in the video file size after the conversion (.mov to .mp4)

Let me explain you from scratch. MOV, MP4, AVI, MKV etc all these are just containers, It is just kind of wrapper which contains audio, video, text, metadata file together as one file. It does not ...
Unstoppable's user avatar
7 votes

Is there a video type for vector animation?

SVG supports animation using JavaScript and the animate element. That means using a browser or embeddable renderer like WebKit to render it, though. Older games often used their own vector animation ...
Sean Lynch's user avatar
7 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.7k
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
  • 33k
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
  • 10k
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
  • 33k
4 votes

Corrupt MP4 [recording interrupted]

Updated: this tool can now recover files from more sources. Try with recover_mp4_to_h264. It's a command line program, and will require a good reference file. Usage as indicated: recover_mp4 ...
Gyan's user avatar
  • 33k
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
  • 33k
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
  • 760
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
  • 33k
4 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
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
  • 171
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
Accepted

Is there a video container which is able to handle segments of different video quality (or even size)?

If the only difference is bitrate, then any container which accepts variable bitrate streams, will fulfill your requirement e.g. MP4, MKV..etc Step 1 is to encode your segments, ideally using the ...
Gyan's user avatar
  • 33k
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

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
  • 33k
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
  • 33k
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
  • 33k
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.7k
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,411
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
2 votes

Is it possible to store subtitle srt files in an m3u playlist file?

yes, VLC supports that with the EXTVLCOPT custom tag. example: #EXTINF:-1,Abenobashi ED - Anata No Kokoro Ni (In Your Heart) #EXTVLCOPT:sub-file=/p/Documents/mus/lyrics/Abenobashi ED - Anata No ...
eadmaster's user avatar
  • 121
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
Accepted

Canon Vixia HF R600 - MP4 vs AVCHD

Generally, MP4 is better for compatibility, whereas AVCHD provides the better quality. MP4 (which by the way can mean a million different things, in this case it probably refers to MPEG-4 Part 14) ...
MoritzLost's user avatar
  • 5,412
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
  • 33k
2 votes
Accepted

MKV to WMV conversion and the size difference

Using ffmpeg, a free command-line tool, you should be able to run ffmpeg -i input.mkv -c copy input.mp4 Vegas might not load the audio, since it's HE-AAC. In which case, run ffmpeg -i input.mkv -c:...
Gyan's user avatar
  • 33k
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,412

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