[FFmpeg-user] HEVC trouble

Matti Haveri matti.haveri at gmail.com
Wed Dec 23 18:55:32 EET 2020


Add that '-pix_fmt yuv420p' if you want it to play on older QuickTime
Players (or just omit it) and use that '-b:v 100M' instead -crf if you
insist on some video bitrate, timecode is not so important so omit it.

ffmpeg -i input.mp4 -c:v libx265 -b:v 100M -pix_fmt yuv420p -preset medium
-tag:v hvc1 -c:a aac -b:a 128k output.mp4

- Matti

On Wed, Dec 23, 2020 at 6:24 PM Matti Haveri <matti.haveri at gmail.com> wrote:

> On Wed, Dec 23, 2020 at 5:42 PM Michael <michaelwatchulonis at gmail.com>
> wrote:
>
> > Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz,
> stereo, [mp4 @ 0x7fbabf811c00] Could not find tag for codec pcm_s16le in
> stream #1, codec not currently supported in container
> > Could not write header for output file #0 (incorrect codec parameters
> ?): Invalid argument
> > Error initializing output stream 0:0 --
>
> It seems the input is ProRes with PCM audio that mp4 does not support? So
> the copied audio might not work for mp4.
>
> Try this (modify -crf and -preset and audio options from their defaults if
> needed. Oh, YMMV if you insist on some bitrate):
>
> ffmpeg -i input.mov -c:v libx265 -crf 28 -preset medium -timecode
> 00:00:00:00 -tag:v hvc1 -c:a aac -b:a 128k output.mp4
>
> - Matti
>


More information about the ffmpeg-user mailing list