[FFmpeg-user] Tag mp4s incompatible with output codec ?

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed May 30 21:03:04 EEST 2018


2018-05-30 19:55 GMT+02:00, Gabriel Zachmann <zach at cs.uni-bremen.de>:
> Sorry about that.
>
> Here is the full command line and the output:
>
> % ffmpeg -nostats -nostdin -i "Neuroscience of VR, Congruency, pain
> distraction, presence, Enfacement effect, rubber hand, tools as part of the
> body, redirected walking - Bruno Herbelin, CERN, 2017.mp4" -map 0 -c:s copy
> -map_metadata 0 -map_metadata:s:v 0:s:v -map_metadata:s:a 0:s:a -c:a aac
> -b:a 128k -codec:v hevc -tag:v hvc1 -preset faster -crf 25 -x265-params
> "profile=main:me=umh:subme=5:ref=4:aq-mode=2:aq-strength=1.0:psy-rd=2.0:psy-rdoq=1.0:rd=6:log-level=1"
> -f mp4 "Neuroscience of VR, Congruency, pain distraction, presence,
> Enfacement effect, rubber hand, tools as part of the body, redirected
> walking - Bruno Herbelin, CERN, 2017.mp4_converting"
> ffmpeg version N-87824-g25bd2f4 Copyright (c) 2000-2017 the FFmpeg
> developers
>  built with Apple LLVM version 9.0.0 (clang-900.0.37)
>  configuration: --enable-swscale --enable-avfilter --enable-avresample
> --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora
> --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libsoxr
> --enable-libspeex --enable-libass --enable-libbluray --enable-lzma
> --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi
> --disable-indev=jack --disable-outdev=xv --enable-audiotoolbox --enable-sdl2
> --enable-shared --enable-pthreads --enable-videotoolbox --arch=x86_64
> --enable-x86asm --enable-libx265 --enable-gpl --enable-postproc
> --enable-libx264 --enable-libxvid --extra-ldflags='-L /opt/local/lib
> -framework CoreVideo -lfribidi' --extra-cflags='-I /opt/local/include/
> -framework CoreVideo'
>  libavutil      55. 79.100 / 55. 79.100
>  libavcodec     57.108.100 / 57.108.100
>  libavformat    57. 84.100 / 57. 84.100
>  libavdevice    57. 11.100 / 57. 11.100
>  libavfilter     6.108.100 /  6.108.100
>  libavresample   3.  8.  0 /  3.  8.  0
>  libswscale      4.  9.100 /  4.  9.100
>  libswresample   2. 10.100 /  2. 10.100
>  libpostproc    54.  8.100 / 54.  8.100
> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Neuroscience of VR, Congruency,
> pain distraction, presence, Enfacement effect, rubber hand, tools as part of
> the body, redirected walking - Bruno Herbelin, CERN, 2017.mp4':
>  Metadata:
>    major_brand     : mp42
>    minor_version   : 0
>    compatible_brands: mp42isomavc1
>    creation_time   : 2017-11-09T15:56:49.000000Z
>    compilation     : 0
>    encoder         : Sorenson Squeeze
>  Duration: 00:26:06.00, start: 0.000000, bitrate: 5280 kb/s
>    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo,
> fltp, 96 kb/s (default)
>    Metadata:
>      creation_time   : 2017-11-09T15:56:49.000000Z
>      handler_name    : soun
>    Stream #0:1(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv,
> bt709/bt709/unknown), 1920x1080, 5002 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
> (default)
>    Metadata:
>      creation_time   : 2017-11-09T15:56:49.000000Z
>      handler_name    : vide
>      encoder         : AVC Coding
>    Stream #0:2(und): Data: none (mp4s / 0x7334706D) (default)
>    Metadata:
>      creation_time   : 2017-11-09T15:56:58.000000Z
>      handler_name    : sdsm
>    Stream #0:3(und): Data: none (mp4s / 0x7334706D) (default)
>    Metadata:
>      creation_time   : 2017-11-09T15:56:58.000000Z
>      handler_name    : odsm
>    Stream #0:4(eng): Data: none (rtp  / 0x20707472), 13 kb/s
>    Metadata:
>      creation_time   : 2017-11-10T15:56:58.000000Z
>    Stream #0:5(eng): Data: none (rtp  / 0x20707472), 162 kb/s
>    Metadata:
>      creation_time   : 2017-11-10T15:57:00.000000Z
> Stream mapping:
>  Stream #0:0 -> #0:0 (aac (native) -> aac (native))
>  Stream #0:1 -> #0:1 (h264 (native) -> hevc (libx265))
>  Stream #0:2 -> #0:2 (copy)
>  Stream #0:3 -> #0:3 (copy)
>  Stream #0:4 -> #0:4 (copy)
>  Stream #0:5 -> #0:5 (copy)
> [libx265 @ 0x7fef4901c800] Unknown option: profile.
> [mp4 @ 0x7fef4901a400] Tag mp4s incompatible with output codec id '0'
> ([0][0][0][0])
> Could not write header for output file #0 (incorrect codec parameters ?):
> Invalid data found when processing input
> Error initializing output stream 0:1 --
> [aac @ 0x7fef4901b600] Qavg: 9753.293
> [aac @ 0x7fef4901b600] 2 frames left in the queue on closing
> Conversion failed!
>
>
> Any ideas?

Either remove -map 0 as some data streams cannot be written
by FFmpeg or try current FFmpeg git head as I believe some
changes in this regard were made.

Please do not top-post here, Carl Eugen


More information about the ffmpeg-user mailing list