Opened 5 years ago
Last modified 3 years ago
#7504 new defect
No audio when creating HLS from AVI
|Reported by:||kmamal||Owned by:|
|Cc:||Steven Liu||Blocked By:|
|Blocking:||Reproduced by developer:||no|
|Analyzed by developer:||no|
Summary of the bug: No audio when creating HLS from AVI
How to reproduce:
ffmpeg version N-92215-g8baaed7889 built with gcc 7 (Ubuntu 7.3.0-27ubuntu1~18.04)
The command I used is:
ffmpeg -i dev.avi -f hls out.m3u8
The input file can be found here: https://signalratio.ddns.net/fileserver/ffmpeg-files/dev.avi
The output file can be found here: https://signalratio.ddns.net/fileserver/ffmpeg-files/out.m3u8
Here is a log produced by "-report": https://signalratio.ddns.net/fileserver/ffmpeg-files/ffmpeg-master.log
The output file appears to have some problem with its audio stream. When trying to play it using
ffplay out.m3u8 I hear no audio and in the logs I see:
[hls,applehttp @ 0x7f518c000b80] Could not find codec parameters for stream 1 (Audio: aac (LC) ( / 0x000F), 0 channels, fltp): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
This does not happen using older versions of ffmpeg. I tried using the one packaged for ubuntu by default:
ffmpeg version 3.4.4-0ubuntu0.18.04.1 built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
The command and input file are the same.
The output file can be found here: https://signalratio.ddns.net/fileserver/ffmpeg-files/out3.m3u8
Here is a log produced by "-report": https://signalratio.ddns.net/fileserver/ffmpeg-files/ffmpeg-ubuntu.log
This file produced by the old ffmpeg plays fine with both the old and the new ffplay.
This file produced by the new ffmpeg fails with both the old and the new ffplay.
Change History (3)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
I have tried the patch and I can confirm that the produced HLS has audio and the error is gone. Thank you very much!
comment:3 by , 3 years ago
Please provide the input file for this ticket and post the command line you tested together with the complete, uncut console output here to make this a valid ticket.
try this patch please