[FFmpeg-trac] #5340(undetermined:closed): ffmpeg with WMV input renders incorrect audio length (with some codecs)
FFmpeg
trac at avcodec.org
Thu Mar 17 15:57:19 CET 2016
#5340: ffmpeg with WMV input renders incorrect audio length (with some codecs)
-------------------------------------+-------------------------------------
Reporter: veganaiZe | Owner:
Type: defect | Status: closed
Priority: normal | Component:
Version: unspecified | undetermined
Keywords: | Resolution:
Blocking: | worksforme
Analyzed by developer: 0 | Blocked By:
| Reproduced by developer: 0
-------------------------------------+-------------------------------------
Changes (by cehoyos):
* status: reopened => closed
* resolution: => worksforme
Comment:
Replying to [comment:5 veganaiZe]:
> So should I manually specific the duration?
You cannot specify the duration: It is just shown as an information for
the user, FFmpeg ignores it.
> My playback time matches the "estimated" duration.
I still cannot reproduce:
{{{
$ ffmpeg -i ScreenCapture_2-28-2016\ 12.45.57\ PM.wmv out.aac
}}}
{{{
$ time ffplay -autoexit out.aac
ffplay version N-79068-g6b7ce0e Copyright (c) 2003-2016 the FFmpeg
developers
built with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 28.103 / 57. 28.103
libavformat 57. 28.102 / 57. 28.102
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 39.102 / 6. 39.102
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[aac @ 0x7fde3c000920] Estimating duration from bitrate, this may be
inaccurate
Input #0, aac, from 'out.aac':
Duration: 00:10:44.61, bitrate: 119 kb/s
Stream #0:0: Audio: aac (LC), 44100 Hz, stereo, fltp, 119 kb/s
591.32 M-A: 0.000 fd= 0 aq= 0KB vq= 0KB sq= 0B f=0/0
real 9m51.589s
user 0m12.173s
sys 0m7.817s
}}}
{{{
$ ffmpeg -i out.aac -f null -
ffmpeg version N-79068-g6b7ce0e Copyright (c) 2000-2016 the FFmpeg
developers
built with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl
libavutil 55. 19.100 / 55. 19.100
libavcodec 57. 28.103 / 57. 28.103
libavformat 57. 28.102 / 57. 28.102
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 39.102 / 6. 39.102
libswscale 4. 0.100 / 4. 0.100
libswresample 2. 0.101 / 2. 0.101
libpostproc 54. 0.100 / 54. 0.100
[aac @ 0x386c3c0] Estimating duration from bitrate, this may be inaccurate
Input #0, aac, from 'out.aac':
Duration: 00:10:44.61, bitrate: 119 kb/s
Stream #0:0: Audio: aac (LC), 44100 Hz, stereo, fltp, 119 kb/s
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf57.28.102
Stream #0:0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
Metadata:
encoder : Lavc57.28.103 pcm_s16le
Stream mapping:
Stream #0:0 -> #0:0 (aac (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
size=N/A time=00:09:51.38 bitrate=N/A speed=1.16e+03x
video:0kB audio:101876kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: unknown
}}}
Which application plays the aac file for ten minutes?
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5340#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list