[FFmpeg-user] pcm in mp4

Robert Kr├╝ger krueger at lesspain.de
Mon Mar 21 15:59:04 CET 2016


Hi,

the mp4 muxer currently does not accept pcm in mp4. However, there are
several cameras out there, that produce such files. Would it be possible to
support this option when using -strict -2? This way a user could create
non-spec-conformant files but it would not happen, when not explicitly
overriding the default. Is this not the way this is handled in other
places?

If you are interested in a sample file, I can provide one.

Command line and output:

ffmpeg -i
/Users/krueger/lesspain/samples/cameras/panasonic/gh4/panasonic_gh4_1080p_24_100mbit_lpcm_14s.MP4
-strict -2 -c copy -y ~/tmp/gh4_lpcm_remuxed.mp4
ffmpeg version N-79103-gd4773c9 Copyright (c) 2000-2016 the FFmpeg
developers
  built with Apple LLVM version 7.0.2 (clang-700.1.81)
  configuration:
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 28.103 / 57. 28.103
  libavformat    57. 28.102 / 57. 28.102
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 39.102 /  6. 39.102
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
[h264 @ 0x7fa896003c00] Increasing reorder buffer to 1
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from
'/Users/krueger/lesspain/samples/cameras/panasonic/gh4/panasonic_gh4_1080p_24_100mbit_lpcm_14s.MP4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1
    creation_time   : 2015-08-02 17:43:47
  Duration: 00:00:14.50, start: 0.000000, bitrate: 86357 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc,
bt709), 1920x1080 [SAR 1:1 DAR 16:9], 84676 kb/s, 24 fps, 24 tbr, 360k tbn,
48 tbc (default)
    Metadata:
      creation_time   : 2015-08-02 17:43:47
      timecode        : 14:21:03:11
    Stream #0:1(und): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2
channels, s16, 1536 kb/s (default)
    Metadata:
      creation_time   : 2015-08-02 17:43:47
      timecode        : 14:21:03:11
    Stream #0:2(und): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
    Metadata:
      creation_time   : 2015-08-02 17:43:47
      timecode        : 14:21:03:11
[mp4 @ 0x7fa896009000] Could not find tag for codec pcm_s16be in stream #1,
codec not currently supported in container
Output #0, mp4, to '/Users/krueger/tmp/gh4_lpcm_remuxed.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 1
    compatible_brands: mp42avc1
    encoder         : Lavf57.28.102
    Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuvj420p,
1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 84676 kb/s, 24 fps, 24 tbr, 360k tbn,
360k tbc (default)
    Metadata:
      creation_time   : 2015-08-02 17:43:47
      timecode        : 14:21:03:11
    Stream #0:1(und): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz,
stereo, 1536 kb/s (default)
    Metadata:
      creation_time   : 2015-08-02 17:43:47
      timecode        : 14:21:03:11
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Could not write header for output file #0 (incorrect codec parameters ?):
Invalid argument

Best regards,

Robert


More information about the ffmpeg-user mailing list