[FFmpeg-devel] [PATCH] avcodec: add native Speex decoder
Michael Niedermayer
michael at niedermayer.cc
Sun Sep 19 21:54:53 EEST 2021
On Sun, Sep 19, 2021 at 12:01:06PM +0200, Paul B Mahol wrote:
> Signed-off-by: Paul B Mahol <onemda at gmail.com>
> ---
> libavcodec/Makefile | 1 +
> libavcodec/allcodecs.c | 1 +
> libavcodec/speexdata.h | 764 ++++++++++++++++++++
> libavcodec/speexdec.c | 1538 ++++++++++++++++++++++++++++++++++++++++
> tests/ref/fate/source | 2 +
> 5 files changed, 2306 insertions(+)
> create mode 100644 libavcodec/speexdata.h
> create mode 100644 libavcodec/speexdec.c
./ffmpeg -i ~/tickets/1873/zygoa8k_q10.mov -vn out.wav
Error while decoding stream #0:0: Invalid argument
[speex @ 0x560c7dc00540] get_buffer() failed
Error while decoding stream #0:0: Invalid argument
[abuffer @ 0x560c7dc17040] Value inf for parameter 'time_base' out of range [0 - 2.14748e+09]
Last message repeated 3 times
[abuffer @ 0x560c7dc17040] Error setting option time_base to value 1/0.
[graph_0_in_0_0 @ 0x560c7dbf7c80] Error applying options to the filter.
Error reinitializing filters!
Error while filtering: Numerical result out of range
Finishing stream 0:0 without any data written to it.
[abuffer @ 0x560c7dc08a40] Value inf for parameter 'time_base' out of range [0 - 2.14748e+09]
Last message repeated 3 times
[abuffer @ 0x560c7dc08a40] Error setting option time_base to value 1/0.
[graph_0_in_0_0 @ 0x560c7dc0c3c0] Error applying options to the filter.
Error configuring filter graph
Conversion failed!
before:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/michael/tickets/1873/zygoa8k_q10.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2012-10-30T15:26:21.000000Z
Duration: 00:01:12.00, start: 0.000000, bitrate: 61 kb/s
Stream #0:0[0x1](eng): Audio: speex (SPXN / 0x4E585053), 8000 Hz, mono, s16, 24 kb/s (default)
Metadata:
creation_time : 2012-10-30T15:26:21.000000Z
handler_name : Procedura obs³ugi dwiêku Apple
vendor_id : POPW
Stream #0:1[0x2](eng): Video: mjpeg (Baseline) (mjpa / 0x61706A6D), yuvj422p(pc, bt470bg/unknown/unknown, top first), 160x120 [SAR 72:72 DAR 4:3], 36 kb/s, 0.25 fps, 0.25 tbr, 1 tbn (default)
Metadata:
creation_time : 2012-10-30T15:26:21.000000Z
handler_name : Procedura obs³ugi wideo Apple
vendor_id : appl
encoder : Motion JPEG A
File 'out.wav' already exists. Overwrite? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (speex (libspeex) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to 'out.wav':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
ISFT : Lavf59.5.100
Stream #0:0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, mono, s16, 128 kb/s (default)
Metadata:
creation_time : 2012-10-30T15:26:21.000000Z
handler_name : Procedura obs³ugi dwiêku Apple
vendor_id : POPW
encoder : Lavc59.7.103 pcm_s16le
size= 1125kB time=00:01:12.00 bitrate= 128.0kbits/s speed=1.47e+03x
video:0kB audio:1125kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.006771%
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210919/dcd7f807/attachment.sig>
More information about the ffmpeg-devel
mailing list