[FFmpeg-user] Create hvc1 mp4 with ffmpeg only

桃源老師 xanadu6291 at dream.jp
Mon Jul 3 10:31:22 EEST 2017


Hello Cley -san,

Thanks for reply...

> 2017/07/03 午後4:14、Cley Faye <cleyfaye at gmail.com>のメール:
> 
> 2017-07-03 5:43 GMT+02:00 桃源老師 <xanadu6291 at dream.jp>:
> 
>> But if it is possible, I'd like to create hvc1 mp4 using ffmpeg only.  Is
>> it possible?
>> 
> 
> ​No idea, but have you *tried* doing this:
> ffmpeg -i hev1.mp4 -c:copy -tag:v hvc1 hvc1.mp4​

Here's the result:

$ ffmpeg -i /Volumes/SA25-TR1-U3SV-5/hev1.mp4 -t 00:02:00 -c: copy -tag:v hvc1 hvc1.mp4
ffmpeg version N-86608-g22a03c2900 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.1.0 (clang-802.0.42)
  configuration: --prefix=/Volumes/ffmpeg_compile --pkg-config-flags=--static --disable-ffserver --enable-gpl --enable-version3 --enable-nonfree --enable-libmp3lame --enable-libfdk-aac --enable-libvo-amrwbenc --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvorbis --enable-libspeex --enable-libopus --enable-libgsm --enable-libtwolame --enable-libsoxr --enable-libwavpack --enable-libmodplug --enable-libopenjpeg --enable-libwebp --enable-libtheora --enable-libx264 --enable-libopenh264 --enable-libx265 --enable-libxvid --enable-libvpx --enable-libxavs --enable-libfreetype --enable-fontconfig --enable-libfribidi --enable-libass --enable-libbluray --enable-libvidstab --enable-libsnappy --enable-libzmq --enable-libzvbi
  libavutil      55. 66.100 / 55. 66.100
  libavcodec     57. 99.102 / 57. 99.102
  libavformat    57. 75.100 / 57. 75.100
  libavdevice    57.  7.100 / 57.  7.100
  libavfilter     6. 94.100 /  6. 94.100
  libswscale      4.  7.101 /  4.  7.101
  libswresample   2.  8.100 /  2.  8.100
  libpostproc    54.  6.100 / 54.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Volumes/SA25-TR1-U3SV-5/hev1.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf57.75.100
  Duration: 00:48:28.04, start: 0.000000, bitrate: 593 kb/s
    Stream #0:0(und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, top coded first (swapped)), 1280x720 [SAR 1:1 DAR 16:9], 457 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 29.97 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
[mp4 @ 0x7febaa001c00] Tag hvc1 incompatible with output codec id '174' ([35][0][0][0])
Could not write header for output file #0 (incorrect codec parameters ?): Invalid data found when processing input
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
    Last message repeated 1 times


Seems that ffmpeg does not accept to use hvc1 for mp4...


Best Regards,

// Miya aka. TougenRoushi

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3573 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20170703/39191895/attachment.bin>


More information about the ffmpeg-user mailing list