Opened 13 years ago

Closed 12 years ago

#1119 closed defect (fixed)

voc enc: output frequency differs from input

Reported by: ami_stuff Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: voc
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

the same problem with "-ar 44100"

also only half of the input audio is in the output

C:\>ffmpeg -i in_48.wav out.voc
ffmpeg version N-39006-gf1fdd20 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar 22 2012 02:30:44 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc
14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil
d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b
uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n
onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor
e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      51. 44.100 / 51. 44.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 65.102 /  2. 65.102
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, wav, from 'in_48.wav':
  Duration: 00:00:01.01, bitrate: 1536 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels,
 s16, 1536 kb/s
Incompatible sample format 's16' for codec 'pcm_u8', auto-selecting format 'u8'
Output #0, voc, to 'out.voc':
  Metadata:
    encoder         : Lavf54.2.100
    Stream #0:0: Audio: pcm_u8, 48000 Hz, 2 channels, u8, 768 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le -> pcm_u8)
Press [q] to stop, [?] for help
size=      64kB time=00:00:01.01 bitrate= 514.9kbits/s
video:0kB audio:95kB global headers:0kB muxing overhead -32.958242%
C:\>ffmpeg -i out.voc
ffmpeg version N-39006-gf1fdd20 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar 22 2012 02:30:44 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc
14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil
d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b
uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n
onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor
e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      51. 44.100 / 51. 44.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 65.102 /  2. 65.102
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
Truncating packet of size 2048 to 1885
[voc @ 0x1da9be0] Estimating duration from bitrate, this may be inaccurate
Input #0, voc, from 'out.voc':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Audio: pcm_u8, 48012 Hz, 2 channels, u8, 768 kb/s
At least one output file must be specified

Attachments (1)

in_48.wav (191.0 KB ) - added by ami_stuff 13 years ago.

Download all attachments as: .zip

Change History (4)

by ami_stuff, 13 years ago

Attachment: in_48.wav added

comment:1 by Carl Eugen Hoyos, 13 years ago

Component: undeterminedavformat
Keywords: voc added
Version: unspecifiedgit-master

Isn't this a limitation of the voc container?

comment:2 by ami_stuff, 13 years ago

converts correctly with sox

C:\sox in_48.wav -V3 out.voc
sox:      SoX v14.4.0
sox INFO formats: detected file format type `wav'

Input File     : 'in_48.wav'
Channels       : 2
Sample Rate    : 48000
Precision      : 16-bit
Duration       : 00:00:01.02 = 48877 samples ~ 76.3703 CDDA sectors
File Size      : 196k
Bit Rate       : 1.54M
Sample Encoding: 16-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no

sox INFO sox: Overwriting `out.voc'

Output File    : 'out.voc'
Channels       : 2
Sample Rate    : 48000
Precision      : 16-bit
Duration       : 00:00:01.02 = 48877 samples ~ 76.3703 CDDA sectors
Sample Encoding: 16-bit Signed Integer PCM
Endian Type    : little
Reverse Nibbles: no
Reverse Bits   : no
Comment        : 'Processed by SoX'

sox INFO sox: effects chain: input        48000Hz  2 channels
sox INFO sox: effects chain: output       48000Hz  2 channels
C:\ffmpeg -i out.voc
ffmpeg version N-39006-gf1fdd20 Copyright (c) 2000-2012 the FFmpeg developers
  built on Mar 22 2012 02:30:44 with gcc 4.5.0 20100414 (Fedora MinGW 4.5.0-1.fc
14)
  configuration: --prefix=/var/www/users/research/ffmpeg/snapshots/build --arch=
x86 --target-os=mingw32 --cross-prefix=i686-pc-mingw32- --cc='ccache i686-pc-min
gw32-gcc' --enable-w32threads --enable-memalign-hack --enable-runtime-cpudetect
--enable-cross-compile --enable-static --disable-shared --extra-libs='-lws2_32 -
lwinmm' --extra-cflags='--static -I/var/www/users/research/ffmpeg/snapshots/buil
d/include' --extra-ldflags='-static -L/var/www/users/research/ffmpeg/snapshots/b
uild/lib' --enable-bzlib --enable-zlib --enable-gpl --enable-version3 --enable-n
onfree --enable-libx264 --enable-libspeex --enable-libtheora --enable-libvorbis
--enable-libfaac --enable-libxvid --enable-libopencore-amrnb --enable-libopencor
e-amrwb --enable-libmp3lame --enable-libvpx --disable-decoder=libvpx
  libavutil      51. 44.100 / 51. 44.100
  libavcodec     54. 12.100 / 54. 12.100
  libavformat    54.  2.100 / 54.  2.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 65.102 /  2. 65.102
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  7.100 /  0.  7.100
  libpostproc    52.  0.100 / 52.  0.100
[voc @ 0x1da9be0] Estimating duration from bitrate, this may be inaccurate
Input #0, voc, from 'out.voc':
  Duration: 00:00:01.01, bitrate: 1535 kb/s
    Stream #0:0: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
At least one output file must be specified

comment:3 by Michael Niedermayer, 12 years ago

Reproduced by developer: set
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.