ogg to ogg : Error initializing output stream 0:0 @ 44999 b/s
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ffmpeg (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Ubuntu: 17.10 artful
ffmpeg:
Installed: 7:3.3.3-3
Candidate: 7:3.3.3-3
Linux aisha 4.12.0-11-generic #12-Ubuntu SMP Fri Aug 11 12:26:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
02plongerdansla
ffmpeg -v trace -i ./02plongerdans
fails citing "Error initializing output stream 0:0". According to ogg vorbis mailing list <=44999 bps bitrate is fine ( http://
ffmpeg -v trace -i ./02plongerdans
and above succeeds.
example:
z@aisha:
ffmpeg version 3.3.3-3 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7 (Ubuntu 7.1.0-13ubuntu1)
configuration: --prefix=/usr --extra-version=3 --toolchain=
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libavresample 3. 5. 0 / 3. 5. 0
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
libpostproc 54. 5.100 / 54. 5.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument 'trace'.
Reading option '-i' ... matched as input url with argument './02plongerdan
Reading option '-c:a' ... matched as option 'c' (codec name) with argument 'libvorbis'.
Reading option '-b:a' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '44999'.
Reading option 'test5.ogg' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument trace.
Successfully parsed a group of options.
Parsing a group of options: input url ./02plongerdans
Successfully parsed a group of options.
Opening an input file: ./02plongerdans
[NULL @ 0xbeec4bf8e0] Opening './02plongerdan
[file @ 0xbeec4c0140] Setting default whitelist 'file,crypto'
Probing mp3 score:1 size:2048
Probing ogg score:100 size:2048
[ogg @ 0xbeec4bf8e0] Format ogg probed with size=2048 and score=100
[ogg @ 0xbeec4bf8e0] ogg_packet: curidx=-1
[ogg @ 0xbeec4bf8e0] ogg_packet: idx=0 pstart=0 psize=0 segp=0 nsegs=1
[ogg @ 0xbeec4bf8e0] ogg_packet: curidx=-1
[ogg @ 0xbeec4bf8e0] ogg_packet: idx=0 pstart=30 psize=0 segp=0 nsegs=16
[ogg @ 0xbeec4bf8e0] ogg_packet: curidx=0
[ogg @ 0xbeec4bf8e0] ogg_packet: idx=0 pstart=229 psize=0 segp=1 nsegs=16
[ogg @ 0xbeec4bf8e0] ogg_packet: curidx=-1
[ogg @ 0xbeec4bf8e0] ogg_packet: idx=0 pstart=3992 psize=0 segp=0 nsegs=45
[ogg @ 0xbeec4bf8e0] found headers
[ogg @ 0xbeec4bf8e0] ogg_packet: curidx=-1
[ogg @ 0xbeec4bf8e0] ogg_packet: idx=0 pstart=0 psize=0 segp=0 nsegs=45
[ogg @ 0xbeec4bf8e0] Before avformat_
[ogg @ 0xbeec4bf8e0] ogg_packet: curidx=0
[ogg @ 0xbeec4bf8e0] ogg_packet: idx=0 pstart=3992 psize=0 segp=0 nsegs=45
[ogg @ 0xbeec4bf8e0] All info found
[ogg @ 0xbeec4bf8e0] stream 0: start_time: 0.000 duration: 220.516
[ogg @ 0xbeec4bf8e0] format: start_time: 0.000 duration: 220.516 bitrate=59 kb/s
[ogg @ 0xbeec4bf8e0] After avformat_
Input #0, ogg, from './02plongerdan
Duration: 00:03:40.52, start: 0.000000, bitrate: 59 kb/s
Stream #0:0, 1, 1/44100: Audio: vorbis, 44100 Hz, stereo, fltp, 64 kb/s
Metadata:
ENCODER : Lavc57.89.100 libvorbis
ARTIST : B?z?d'h
TITLE : Plonger dans la torpeur
ALBUM : Ton jour viendra
HTTP : //www.jamendo.com/
track : 2
DATE : 2002
Successfully opened the file.
Parsing a group of options: output url test5.ogg.
Applying option c:a (codec name) with argument libvorbis.
Applying option b:a (video bitrate (please use -b:v)) with argument 44999.
Successfully parsed a group of options.
Opening an output file: test5.ogg.
[file @ 0xbeec4c75c0] Setting default whitelist 'file,crypto'
Successfully opened the file.
Stream mapping:
Stream #0:0 -> #0:0 (vorbis (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
[ogg @ 0xbeec4bf8e0] ogg_packet: curidx=0
[ogg @ 0xbeec4bf8e0] ogg_packet: idx=0 pstart=4013 psize=0 segp=1 nsegs=45
detected 2 logical cores
[graph_0_in_0_0 @ 0xbeec4f1ee0] Setting 'time_base' to value '1/44100'
[graph_0_in_0_0 @ 0xbeec4f1ee0] Setting 'sample_rate' to value '44100'
[graph_0_in_0_0 @ 0xbeec4f1ee0] Setting 'sample_fmt' to value 'fltp'
[graph_0_in_0_0 @ 0xbeec4f1ee0] Setting 'channel_layout' to value '0x3'
[graph_0_in_0_0 @ 0xbeec4f1ee0] tb:1/44100 samplefmt:fltp samplerate:44100 chlayout:0x3
[format_out_0_0 @ 0xbeec4f2840] Setting 'sample_fmts' to value 'fltp'
[AVFilterGraph @ 0xbeec50b920] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed
[libvorbis @ 0xbeec4c6ea0] encoder setup failed
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[AVIOContext @ 0xbeec4c5980] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 0xbeec4c84a0] Statistics: 130843 bytes read, 3 seeks
Conversion failed!
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: ffmpeg 7:3.3.3-3
ProcVersionSign
Uname: Linux 4.12.0-11-generic x86_64
ApportVersion: 2.20.6-0ubuntu7
Architecture: amd64
Date: Sun Aug 27 20:24:09 2017
InstallationDate: Installed on 2016-05-07 (477 days ago)
InstallationMedia:
JournalErrors:
Error: command ['journalctl', '-b', '--priority=
Users in the 'systemd-journal' group can see all messages. Pass -q to
turn off this notice.
No journal files were opened due to insufficient permissions.
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: ffmpeg
UpgradeStatus: Upgraded to artful on 2017-05-08 (111 days ago)
I believe libvorbis does not support encoding at 44kHz with < 22500 bits/s/channel. If you want to reduce the bitrate that much then you'll have to resample your audio at a lower rate (use -ar <sample rate>).
James