[Libav-user] Could not find tag for codec pcm_s16be in stream using ffmpeg

qw applemax82 at 163.com
Wed Jan 13 09:29:41 CET 2016


Hi,


I built ffmpeg in my PC, and confirmed my built ffmpeg supported pcm_s16be codec using the command of 'ffmpeg -codecs | grep pcm_s16be'.


ffmpeg -codecs | grep pcm_s16be
ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-54)
  configuration: --enable-libx264 --enable-libvpx --enable-gpl --enable-libvorbis --enable-libfaac --enable-nonfree
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
 DEA..S pcm_s16be            PCM signed 16-bit big-endian
 DEA..S pcm_s16be_planar     PCM signed 16-bit big-endian planar




But the following command reports '[mp4 @ 0xaed3dc0] Could not find tag for codec pcm_s16be in stream #1, codec not currently supported in container'.


ffmpeg -i xxx.mov -y -vcodec copy -acodec copy -movflags faststart xxx.mov.mp4
ffmpeg version 2.6.2 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-54)
  configuration: --enable-libx264 --enable-libvpx --enable-gpl --enable-libvorbis --enable-libfaac --enable-nonfree
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Guessed Channel Layout for  Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'xxx.mov':
  Metadata:
    creation_time   : 2016-01-11 16:05:42
  Duration: 00:22:59.56, start: 0.000000, bitrate: 12632 kb/s
    Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720, 11219 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2016-01-11 16:05:42
      handler_name    : Apple Alias Data Handler
      encoder         : H.264
    Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 44100 Hz, 2 channels, s16, 1411 kb/s (default)
    Metadata:
      creation_time   : 2016-01-11 16:05:42
      handler_name    : Apple Alias Data Handler
[mp4 @ 0xaed3dc0] Could not find tag for codec pcm_s16be in stream #1, codec not currently supported in container
Output #0, mp4, to 'xxx.mov.mp4':
  Metadata:
    encoder         : Lavf56.25.101
    Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720, q=2-31, 11219 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2016-01-11 16:05:42
      handler_name    : Apple Alias Data Handler
      encoder         : H.264
    Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 44100 Hz, stereo, 1411 kb/s (default)
    Metadata:
      creation_time   : 2016-01-11 16:05:42
      handler_name    : Apple Alias Data Handler
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


why ffmpeg fails to run the task of format conversion.







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20160113/0af67265/attachment.html>


More information about the Libav-user mailing list