[FFmpeg-user] libopus encoder problem.

bat guano batguano999 at hotmail.com
Fri Oct 5 00:11:20 CEST 2012





> Hi
> libopus encoder has been added to FFmpeg git, but it doesn't seem to be working properly.
>
> $ ffmpeg -i foo.wav -c:a libopus -b:a 64k foo.opus
>
> Gives error "Trying to remove 480 samples, but que empty"
>
> Is this an FFmpeg bug, or is the libopus encoder still "work in progress"?
>
>


Hi
It's been fixed. :-)

@ubuntu:~$ ffmpeg -i foo.wav -c:a libopus -b:a 64k foo.opus
ffmpeg version git-2012-10-04-60b433d Copyright (c) 2000-2012 the FFmpeg developers
  built on Oct  4 2012 22:45:39 with gcc 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4)
  configuration: --enable-gpl --enable-libaacplus --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-nonfree --enable-version3 --enable-x11grab
  libavutil      51. 73.102 / 51. 73.102
  libavcodec     54. 63.100 / 54. 63.100
  libavformat    54. 29.105 / 54. 29.105
  libavdevice    54.  3.100 / 54.  3.100
  libavfilter     3. 19.102 /  3. 19.102
  libswscale      2.  1.101 /  2.  1.101
  libswresample   0. 16.100 /  0. 16.100
  libpostproc    52.  1.100 / 52.  1.100
[wav @ 0x9fbe520] max_analyze_duration 5000000 reached at 5015510
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, wav, from 'foo.wav':
  Duration: 00:01:00.41, bitrate: 1411 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
Output #0, ogg, to 'foo.opus':
  Metadata:
    encoder         : Lavf54.29.105
    Stream #0:0: Audio: opus, 48000 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le -> libopus)
Press [q] to stop, [?] for help
size=     464kB time=00:01:00.42 bitrate=  62.8kbits/s    
video:0kB audio:457kB subtitle:0 global headers:0kB muxing overhead 1.453547%


@ubuntu:~$ mediainfo foo.opus
General
Complete name                            : foo.opus
Format                                   : OGG
File size                                : 464 KiB
Duration                                 : 1mn 0s
Overall bit rate                         : 62.8 Kbps
Writing application                      : Lavf54.29.105

Audio
ID                                       : 1250288664 (0x4A85E418)
Format                                   : Opus
Duration                                 : 1mn 0s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Writing library                          : Lavf54.29.105
 		 	   		  


More information about the ffmpeg-user mailing list