Opened 11 years ago

Closed 11 years ago

#2346 closed enhancement (invalid)

Can not copy pcm_s16le to container mp4 - OK with avi, mov, mkv

Reported by: feelart Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: mov
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Audio: pcm_s16le
Unable to copy to mp4 container, OK if output container is mkv, mov, avi

Non working mp4 container

F:\danses\Salsa\Salsa Odance>ffmpeg.exe -y -i s.mkv -vn -acodec copy audio.mp4
ffmpeg version N-50515-g28adecf Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar  6 2013 00:35:40 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig
--enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm -
-enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-li
bopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enabl
e-libxvid --enable-zlib
  libavutil      52. 17.103 / 52. 17.103
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.103 / 54. 63.103
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, matroska,webm, from 's.mkv':
  Metadata:
    MAJOR_BRAND     : qt
    MINOR_VERSION   : 537331968
    COMPATIBLE_BRANDS: qt  CAEP
    ENCODER         : Lavf54.63.103
  Duration: 00:00:01.08, start: 0.000000, bitrate: 4927 kb/s
    Stream #0:0(eng): Video: h264 (High), yuvj420p, 960x540, SAR 1:1 DAR 16:9, 50 fps, 50 tbr, 1k tbn, 100 tbc (default)
    Metadata:
      CREATION_TIME   : 2011-01-28 20:18:05
      LANGUAGE        : eng
    Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      CREATION_TIME   : 2011-01-28 20:18:05
      LANGUAGE        : eng
[mp4 @ 00000000023bf180] track 0: could not find tag, codec not currently supported in container
Output #0, mp4, to 'audio.mp4':
  Metadata:
    MAJOR_BRAND     : qt
    MINOR_VERSION   : 537331968
    COMPATIBLE_BRANDS: qt  CAEP
    encoder         : Lavf54.63.103
    Stream #0:0(eng): Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s (default)
    Metadata:
      CREATION_TIME   : 2011-01-28 20:18:05
      LANGUAGE        : eng
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted

Working mov container

F:\danses\Salsa\Salsa Odance>ffmpeg.exe -y -i s.mkv -vn -acodec copy audio.mov
ffmpeg version N-50515-g28adecf Copyright (c) 2000-2013 the FFmpeg developers
  built on Mar  6 2013 00:35:40 with gcc 4.7.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig
--enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm -
-enable-libilbc --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-li
bopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enabl
e-libxvid --enable-zlib
  libavutil      52. 17.103 / 52. 17.103
  libavcodec     54. 92.100 / 54. 92.100
  libavformat    54. 63.103 / 54. 63.103
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 42.103 /  3. 42.103
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, matroska,webm, from 's.mkv':
  Metadata:
    MAJOR_BRAND     : qt
    MINOR_VERSION   : 537331968
    COMPATIBLE_BRANDS: qt  CAEP
    ENCODER         : Lavf54.63.103
  Duration: 00:00:01.08, start: 0.000000, bitrate: 4927 kb/s
    Stream #0:0(eng): Video: h264 (High), yuvj420p, 960x540, SAR 1:1 DAR 16:9, 50 fps, 50 tbr, 1k tbn, 100 tbc (default)
    Metadata:
      CREATION_TIME   : 2011-01-28 20:18:05
      LANGUAGE        : eng
    Stream #0:1(eng): Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s (default)
    Metadata:
      CREATION_TIME   : 2011-01-28 20:18:05
      LANGUAGE        : eng
Output #0, mov, to 'audio.mov':
  Metadata:
    MAJOR_BRAND     : qt
    MINOR_VERSION   : 537331968
    COMPATIBLE_BRANDS: qt  CAEP
    encoder         : Lavf54.63.103
    Stream #0:0(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, 1536 kb/s (default)
    Metadata:
      CREATION_TIME   : 2011-01-28 20:18:05
      LANGUAGE        : eng
Stream mapping:
  Stream #0:1 -> #0:0 (copy)
Press [q] to stop, [?] for help
size=     189kB time=00:00:01.00 bitrate=1541.5kbits/s
video:0kB audio:188kB subtitle:0 global headers:0kB muxing overhead 0.356341%

F:\danses\Salsa\Salsa Odance>

Attachments (1)

s.mkv (647.2 KB ) - added by feelart 11 years ago.

Download all attachments as: .zip

Change History (2)

by feelart, 11 years ago

Attachment: s.mkv added

comment:1 by Carl Eugen Hoyos, 11 years ago

Keywords: mov added; pcm_s16le mp4 removed
Resolution: invalid
Status: newclosed

This is not a limitation of FFmpeg but isom does not allow pcm_s16le: http://www.mp4ra.org/codecs.html

Note: See TracTickets for help on using tickets.