Ticket #847 (closed defect: fixed)
vorbis encoder is broken
| Reported by: | ami_stuff | Owned by: | |
|---|---|---|---|
| Priority: | normal | Component: | undetermined |
| Version: | unspecified | Keywords: | |
| Cc: | Blocked By: | ||
| Blocking: | Reproduced by developer: | yes | |
| Analyzed by developer: | no |
Description
C:\ffmpeg -i test.wav -acodec vorbis -strict experimental out.ogg
ffmpeg version N-36193-gf514695, Copyright (c) 2000-2011 the FFmpeg developers
built on Dec 26 2011 17:50:37 with gcc 4.6.2
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-ru
ntime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libope
ncore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --en
able-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger -
-enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwben
c --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-
libxvid --enable-zlib
libavutil 51. 33.100 / 51. 33.100
libavcodec 53. 48.100 / 53. 48.100
libavformat 53. 28.100 / 53. 28.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 54.100 / 2. 54.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 5.100 / 0. 5.100
libpostproc 51. 2.100 / 51. 2.100
[wav @ 020E2320] max_analyze_duration 5000000 reached at 5015510
Input #0, wav, from 'test.wav':
Duration: 00:00:05.07, bitrate: 1411 kb/s
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 2 channels,
s16, 1411 kb/s
Output #0, ogg, to 'out.ogg':
Metadata:
encoder : Lavf53.28.100
Stream #0:0: Audio: vorbis, 44100 Hz, 2 channels, s16, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16le -> vorbis)
Press [q] to stop, [?] for help
size= 14kB time=00:00:05.08 bitrate= 22.1kbits/s
video:0kB audio:10kB global headers:3kB muxing overhead 2.567666%
Attachments
Change History
comment:1 Changed 17 months ago by ami_stuff
this "sonic" thing doesn't work as well
ffmpeg -i test.wav -acodec sonic out.wav
comment:2 Changed 17 months ago by ami_stuff
vorbis
Date: Fri Jun 4 01:53:10 2010
New Revision: 23460
Log:
Raise default vorbis encoding quality.
Patch by Frank Barchard, fbarchard google com
Modified:
trunk/libavcodec/vorbis_enc.c
Modified: trunk/libavcodec/vorbis_enc.c
==============================================================================
--- trunk/libavcodec/vorbis_enc.c Fri Jun 4 00:20:07 2010 (r23459)
+++ trunk/libavcodec/vorbis_enc.c Fri Jun 4 01:53:10 2010 (r23460)
@@ -955,7 +955,7 @@ static av_cold int vorbis_encode_init(AV
if (avccontext->flags & CODEC_FLAG_QSCALE)
venc->quality = avccontext->global_quality / (float)FF_QP2LAMBDA / 10.;
else
- venc->quality = 1.;
+ venc->quality = 0.03;
venc->quality *= venc->quality;
avccontext->extradata_size = put_main_header(venc, (uint8_t**)&avccontext->extradata);
Note: See
TracTickets for help on using
tickets.



