Opened 2 years ago

Closed 2 years ago

#9572 closed defect (invalid)

ffmpeg creating broken 0 byte files

Reported by: Joe Owned by:
Priority: important Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I am not super technical, but I will try and provide the best description of the issue below.

Summary of the bug:
How to reproduce: I am trying to reduce a large wav audio file (792MB). I use powershell to run the below command.

% ffmpeg -i input audiofile.wav -acodec libvorbis -b:a 320k output.ogg

ffmpeg version 4.4.1-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11.2.0 (Rev1, Built by MSYS2 project)

The Full output I get is this

Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, wav, from 'Forest.wav':
  Metadata:
    encoder         : Adobe Audition 22.1 (Windows)
    date            : 2021-12-26
    creation_time   : 21:25:15
    time_reference  : 0
  Duration: 00:18:02.06, bitrate: 6144 kb/s
  Stream #0:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 96000 Hz, stereo, flt, 6144 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_f32le (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
[libvorbis @ 000001492f617e40] 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
Conversion failed!

The file it creates is a 0 byte file that can't be deleted except for cmd admin commands.

Change History (2)

comment:1 by Balling, 2 years ago

can't be deleted except for cmd admin commands.

What this has to do with anything?

comment:2 by Marton Balint, 2 years ago

Resolution: invalid
Status: newclosed

The error message you are getting is accurate, you have provided an invalid combination of parameters which libvorbis does not support. Either use a sample rate less than 50000 or a non-fixed bitrate.

Note: See TracTickets for help on using tickets.