Hot answers tagged

12 votes

Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly

The usual solution for this situation: -fflags +genpts It should eliminate the warning, but there's no guarantee your sync issues will be solved.
Mike Brown's user avatar
8 votes
Accepted

ffmpeg: how to convert to DNxHR in Windows 10?

There's a single decoder/encoder which reads/converts to both DNxHD and DNxHR. You have to set the correct profile switch. Available options are dnxhd E..V.... dnxhr_444 ...
Gyan's user avatar
  • 32.7k
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
6 votes

How can encode video with images like these (overlay a video over a fixed image) with ffmpeg?

To overlay a half-sized version of a video in the center of an image, use ffmpeg -loop 1 -i image -i video -filter_complex "[1]scale=iw/2:-1[ovrl]; [0][ovrl]overlay=(main_w-overlay_w)...
Gyan's user avatar
  • 32.7k
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
  • 32.7k
4 votes
Accepted

Streamable Container for HEVC (H.265)

MPEG -TS. See here: All MPEG-2 TS operations from GPAC (client and MP42TS) are supported on HEVC. MP42TS can be used to generate TS files usable for DASH or for injection in modulation ...
Gyan's user avatar
  • 32.7k
4 votes
Accepted

Do a sort of HEAC - High Efficiency Audio Codec exists?

I think HE-AAC fits that bill. High-Efficiency Advanced Audio Coding (HE-AAC) is an audio coding format for lossy data compression of digital audio defined as an MPEG-4 Audio profile in ISO/IEC ...
Gyan's user avatar
  • 32.7k
4 votes
Accepted

.mkv file not playing in HEVC/H.265 supported player

Both files that don't play feature Opus as the audio codec. As per this site, Opus is not one of the supported audio codecs. Transcode the audio: ffmpeg -i in.mkv -c:v copy out.mkv
Gyan's user avatar
  • 32.7k
4 votes
Accepted

What does codec stand for?

One of the earliest articles in the IEEE database that uses the term, defines it as "coders and decoders." However, newer material does not seem to be consistent. One of the Wikipedia page's sources (...
Michael Liebman's user avatar
4 votes
Accepted

Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly

this worked for me as an option to ffmpeg: -use_wallclock_as_timestamps 1
shafi's user avatar
  • 323
4 votes
Accepted

Is MP4 a valid or common container for ProRes?

No, officially, ProRes is not a registered codec for the ISOBMFF family, of which MP4 is a member.
Gyan's user avatar
  • 32.7k
4 votes
Accepted

Smallest Possible Video File in H.264 Format

A one frame H264 stream would have to consist of an intra-coded frame, so there is a size floor in effect. This ffmpeg command produces a 1.7 kiB file ffmpeg -f lavfi -i color=blue:s=1280x720 -...
Gyan's user avatar
  • 32.7k
4 votes

How to make video play with correct aspect ratio

For a H264 stream, use the h264_metadata bitstream filter ffmpeg -i in.mp4 -c copy -bsf:v "h264_metadata=sample_aspect_ratio=4/3" out.mp4
Gyan's user avatar
  • 32.7k
4 votes
Accepted

How can I find out which chroma subsampling (if any) is used in a video file?

Mediainfo is a free, open source, cross-platform solution, available in 37 languages. https://en.m.wikipedia.org/wiki/MediaInfo When run from the command line it outputs chrome subsampling info by ...
Jason Conrad's user avatar
  • 4,444
4 votes

How can I find out which chroma subsampling (if any) is used in a video file?

Using the ffprobe command (part of FFmpeg, also a command line tool) ffprobe -show_entries stream=pix_fmt <VIDEO FILE> The output will look like this: ... [STREAM] pix_fmt=yuv420p [/STREAM] [...
Duvrai's user avatar
  • 803
3 votes

Reduce render file size in After Effects

You need to change the encoding settings. By default, AE uses the AVI animation codec, which is very good at retaining quality but creates incredibly large files. Using an intermediary codec like ...
KC McLaughlin's user avatar
3 votes

ffv1 realtime capture throws out a lot of frame dropped messages!

I get the same result with your commands, however if I skip the pixel format conversion and use the input pixel format 'bgr0', then except for an initial frame drop, I get no further drops. Note that ...
Gyan's user avatar
  • 32.7k
3 votes
Accepted

ffmpeg bgr vs rgb and other similiar pixel formats

The order of the components in RGB32 seems to do with endianness: PIX_FMT_RGB32 is handled in an endian-specific manner. An RGBA color is put together as: (A << 24) | (R << 16) | (G &...
Gyan's user avatar
  • 32.7k
3 votes

ffmpeg bgr vs rgb and other similiar pixel formats

While I always guessed that the big / little endian was more a matter of patents rather than performance, Nope little endian was developed as a performance optimization whern moving to multi byte ...
SlimSCSI's user avatar
  • 1,060
3 votes
Accepted

Predict file size of a Huffyuv codec video stream

The answer is No. Besides the frame dimensions, there's the matter of content complexity. Without scanning the video and doing a first-pass as it were, it's not possible to predict the output size. A ...
Gyan's user avatar
  • 32.7k
3 votes

VLC Alternative for fine review media with possibly frames control and detailed codec informations

I haven't used VLC as my primary player since 2007. I switched over initially to KMPlayer and then Potplayer. Potplayer allows fairly flexible splitter and codec assignment for decoding. It also ...
Gyan's user avatar
  • 32.7k
3 votes

How to encode Apple ProRes on Windows or Linux?

This is the command line I have used to encode ProRes 4444. If you do not include -bits_per_mb you will get low res results in Windows 10. Many posts do not mention this little aspect. ffmpeg -y -f ...
vjgalaxy's user avatar
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

Video format can't be played or converted

Use this ffmpeg* command: ffmpeg -i "20151105-175532.dad" -c:v copy "20151105-175532.mp4" *get 32-bit static build.
Gyan's user avatar
  • 32.7k
3 votes

Record desktop at 1080p60 in high quality

Try lossless encoding with ffmpeg First, with YUV444P ffmpeg -f gdigrab -framerate 60 -i desktop -crf 0 -pix_fmt yuv444p -preset ultrafast yuv-cap.mp4 If not clear enough, ffmpeg -f gdigrab -...
Gyan's user avatar
  • 32.7k
3 votes

Is there something like nvenc for free codecs (VP8/9)?

There is a hardware-accelerated VP8 encoder recently released by the University of Milan. Source and standalone binary for 64-bit Linux and compute 3.5, 5.0 and 5.2 capable NVidia GPU cards available ...
Gyan's user avatar
  • 32.7k
3 votes

ffmpeg convert mp4 to mov with dnxhd codec

Your output has to match one of the requested profiles. For the 5th profile listed, [dnxhd @ 0000000002be23a0] Frame size: 1920x1080p; bitrate: 115Mbps; pixel format: yuv422p; framerate: 24000/1001 ...
Gyan's user avatar
  • 32.7k
3 votes
Accepted

encoding with ffmpeg libx265 -pix_fmt gray gives unplayable vid

Plays fine here in VLC, ffplay and Potplayer. Doesn't play with mplayer. Its H265 decoder probably doesn't support gray. Workaround is to store it as YUV420P after discarding the chroma. ffmpeg -i ...
Gyan's user avatar
  • 32.7k

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