[FFmpeg-trac] #11696(undetermined:new): ffmpeg unable to parse full runtime of wav file
FFmpeg
trac at avcodec.org
Thu Jul 31 04:33:33 EEST 2025
#11696: ffmpeg unable to parse full runtime of wav file
--------------------------------------+----------------------------------
Reporter: wavybaby | Type: defect
Status: new | Priority: minor
Component: undetermined | Version: 7.1
Keywords: wav | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+----------------------------------
**Goal**: I am attempting to load an audio recording made with my phone. I
want to load the audio file in complete, using audacity and/or using
ffmpeg to compress the full raw .WAV file to .FLAC or other format, for
further processing.
**Problem**: Audacity, by extension ffmpeg (which I believe audacity uses
under the hood), only parse up to 37/38 minutes of content, out of the
full 2h11m of content. I am not sure if this is a bug, but I am generally
unsure where else to inquire about this kind of lower-level file
modification and access.
**Command**:
{{{
ffmpeg -i "2025-07-22 21.39.41.wav" 2025-07-22_21.39.41.flac
}}}
**Verbose initial output**:
{{{
$ ffmpeg -v 9 -loglevel 99 -i "2025-07-22 21.39.41.wav"
ffmpeg version n7.1.1 Copyright (c) 2000-2025 the FFmpeg developers
built with gcc 15.1.1 (GCC) 20250425
configuration: --prefix=/usr --disable-debug --disable-static --disable-
stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto
--enable-fontconfig --enable-frei0r --enable-gmp --enable-gnutls --enable-
gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray
--enable-libbs2b --enable-libdav1d --enable-libdrm --enable-libdvdnav
--enable-libdvdread --enable-libfreetype --enable-libfribidi --enable-
libglslang --enable-libgsm --enable-libharfbuzz --enable-libiec61883
--enable-libjack --enable-libjxl --enable-libmodplug --enable-libmp3lame
--enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-libplacebo --enable-libpulse
--enable-librav1e --enable-librsvg --enable-librubberband --enable-
libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-
libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-
libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpl --enable-
libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb
--enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq
--enable-nvdec --enable-nvenc --enable-opencl --enable-opengl --enable-
shared --enable-vapoursynth --enable-version3 --enable-vulkan
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.101 / 61. 19.101
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with
argument '9'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument '99'.
Reading option '-i' ... matched as input url with argument '2025-07-22
21.39.41.wav'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument 9.
Successfully parsed a group of options.
Parsing a group of options: input url 2025-07-22 21.39.41.wav.
Successfully parsed a group of options.
Opening an input file: 2025-07-22 21.39.41.wav.
[AVFormatContext @ 0x57a35d09bc00] Opening '2025-07-22 21.39.41.wav' for
reading
[file @ 0x57a35d09c2c0] Setting default whitelist 'file,crypto,data'
Probing wav score:99 size:2048
[wav @ 0x57a35d09bc00] Format wav probed with size=2048 and score=99
[wav @ 0x57a35d09bc00] Before avformat_find_stream_info() pos: 44 bytes
read:196608 seeks:6 nb_streams:1
[wav @ 0x57a35d09bc00] parser not found for codec pcm_f32le, packets or
times may be invalid.
Last message repeated 1 times
[wav @ 0x57a35d09bc00] All info found
[wav @ 0x57a35d09bc00] stream 0: start_time: NOPTS duration: 2271.044667
[wav @ 0x57a35d09bc00] format: start_time: NOPTS duration: 2271.044667
(estimate from stream) bitrate=21273 kb/s
[wav @ 0x57a35d09bc00] After avformat_find_stream_info() pos: 3276844
bytes read:3473408 seeks:6 frames:50
[aist#0:0/pcm_f32le @ 0x57a35d0a30c0] Guessed Channel Layout: stereo
Input #0, wav, from '2025-07-22 21.39.41.wav':
Duration: 00:37:51.04, bitrate: 21273 kb/s
Stream #0:0, 50, 1/96000: Audio: pcm_f32le ([3][0][0][0] / 0x0003),
96000 Hz, stereo, flt, 6144 kb/s
Successfully opened the file.
At least one output file must be specified
[AVIOContext @ 0x57a35d0a44c0] Statistics: 3473408 bytes read, 6 seeks
}}}
''Full processing log attached/to-be-attached.
ffmpeg-20250730-211000.log.zip''
(It might be difficult to offer an audio sample, however perhaps something
closer to the "reported" end would be better?)
**Extra info**: I noticed that mediainfo can parse the file in full, and
reports the complete duration of the file... not sure what to make of
this.
{{{
MediaInfoLib v25.04
General
Complete name : 2025-07-22 21.39.41.wav
Format : Wave
Format settings : PcmWaveformat
File size : 5.62 GiB
Duration : 2 h 11 min
Overall bit rate mode : Constant
Overall bit rate : 6 144 kb/s
Audio
Format : PCM
Format profile : Float
Codec ID : 3
Codec ID/Hint : IEEE
Duration : 2 h 11 min
Bit rate mode : Constant
Bit rate : 6 144 kb/s
Channel(s) : 2 channels
Sampling rate : 96.0 kHz
Bit depth : 32 bits
Stream size : 5.62 GiB (100%)
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/11696>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list