Opened 2 months ago

Last modified 7 weeks ago

#7504 new defect

No audio when creating HLS from AVI

Reported by: kmamal Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: No audio when creating HLS from AVI

How to reproduce:

I'm using 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) ([15][0][0][0] / 0x000F), 0 channels, fltp): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options

Note:

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 (2)

comment:1 Changed 7 weeks ago by stevenliu

comment:2 Changed 7 weeks ago by kmamal

I have tried the patch and I can confirm that the produced HLS has audio and the error is gone. Thank you very much!

Last edited 7 weeks ago by kmamal (previous) (diff)
Note: See TracTickets for help on using tickets.