Opened 9 years ago

Closed 8 years ago

#4265 closed enhancement (invalid)

encode pcm_s16be in AVI format

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

Description

When I try to encode audio with pcm_s16be codec in an AVI container, I get an error. I first noticed this when trying to change the frame rate of an MP4 without re-encoding, by changing to an AVI container, as suggested in this thread: http://comments.gmane.org/gmane.comp.video.ffmpeg.user/53700

I used "-acodec copy -vcodec copy", and that gave the error. More investigating shows that encoding any type of audio source as pcm_s16be doesn't work in AVI.

$ ffmpeg -i C0007.MP4 -acodec pcm_s16be -vn C0007-audio.avi
ffmpeg version 2.4.git-e113692 Copyright (c) 2000-2014 the FFmpeg developers

built on Oct 4 2014 21:20:35 with Apple LLVM version 6.0 (clang-600.0.51) (based on LLVM 3.5svn)
configuration: --prefix=/opt/local --enable-swscale --enable-avfilter --enable-avresample --enable-libmp3lame --enable-libvorbis --enable-libopus --enable-libtheora --enable-libschroedinger --enable-libopenjpeg --enable-libmodplug --enable-libvpx --enable-libspeex --enable-libass --enable-libbluray --enable-lzma --enable-gnutls --enable-fontconfig --enable-libfreetype --enable-libfribidi --disable-indev=jack --disable-outdev=xv --mandir=/opt/local/share/man --enable-shared --enable-pthreads --cc=/usr/bin/clang --enable-vda --arch=x86_64 --enable-yasm --enable-gpl --enable-postproc --enable-libx264 --enable-libxvid --enable-nonfree --enable-libfdk-aac --enable-libfaac
libavutil 54. 7.101 / 54. 7.101
libavcodec 56. 1.101 / 56. 1.101
libavformat 56. 5.100 / 56. 5.100
libavdevice 56. 1.100 / 56. 1.100
libavfilter 5. 1.102 / 5. 1.102
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.100 / 3. 1.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 1.100 / 53. 1.100

Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C0007.MP4':

Metadata:

major_brand : XAVC
minor_version : 16785407
compatible_brands: XAVCmp42iso2
creation_time : 2015-01-15 20:12:27

Duration: 00:00:08.01, start: 0.000000, bitrate: 53061 kb/s

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 51029 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)
Metadata:

creation_time : 2015-01-15 20:12:27
handler_name : Video Media Handler
encoder : AVC Coding

Stream #0:1(und): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, 2 channels, s16, 1536 kb/s (default)
Metadata:

creation_time : 2015-01-15 20:12:27
handler_name : Sound Media Handler

Stream #0:2(und): Data: none (rtmd / 0x646D7472), 491 kb/s (default)
Metadata:

creation_time : 2015-01-15 20:12:27
handler_name : Non-Real Time Metadata

File 'C0007-audio.avi' already exists. Overwrite ? [y/N] y
Output #0, avi, to 'C0007-audio.avi':

Metadata:

major_brand : XAVC
minor_version : 16785407
compatible_brands: XAVCmp42iso2
encoder : Lavf56.5.100
Stream #0:0(und): Audio: pcm_s16be, 48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:

creation_time : 2015-01-15 20:12:27
handler_name : Sound Media Handler
encoder : Lavc56.1.101 pcm_s16be

Stream mapping:

Stream #0:1 -> #0:0 (pcm_s16be (native) -> pcm_s16be (native))

Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted

Change History (1)

comment:1 by Carl Eugen Hoyos, 8 years ago

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.