Opened 5 years ago

Last modified 4 years 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: Steven Liu 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 (3)

comment:2 by kmamal, 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!

Last edited 5 years ago by kmamal (previous) (diff)

comment:3 by Carl Eugen Hoyos, 4 years ago

Cc: Steven Liu added

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.

Note: See TracTickets for help on using tickets.