Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#2643 closed defect (fixed)

HLS output file size chunk is degrading very fast

Reported by: vkroutik Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: hls
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no


We use the latest build from ffmpeg for windows
run this command line, rename dirs as needed

C:\Apps\MVP\Tools\ffmpeg\ffmpeg.exe -i "" -c:v copy -c:a copy -r 29.97 -hls_time 10 -hls_list_size 6 -hls_wrap 60 -start_number 1 -y "C:\Apps\MVP\Files\hls\test\stream.m3u8"

After about 5 min chunks produced go from being 10 seconds to 1-2 seconds. No good for playback.

Please review.

Attachments (1)

ffmpeg-20130605-004026.log (934.9 KB) - added by vkroutik 7 years ago.
Log output

Download all attachments as: .zip

Change History (8)

comment:1 Changed 7 years ago by vkroutik

By the way, using a traditional segmenter works fine...
C:\Apps\MVP\Tools\ffmpeg\ffmpeg.exe -re -i "" -c:v copy -c:a copy -r 29.97 -bsf:v h264_mp4toannexb -bsf:a aac_adtstoasc -flags -global_header -map 0 -f segment -segment_list "C:\Apps\MVP\Files\hls\test\stream.m3u8" -segment_time 10 -segment_format mpeg_ts -segment_list_type m3u8 -segment_list_flags +live -segment_list_size 6 ts/streamOutput%%05d.ts

comment:2 Changed 7 years ago by cehoyos

  • Component changed from FFmpeg to undetermined
  • Keywords hls added
  • Priority changed from critical to normal

Please provide the failing command line together with complete, uncut console output to make this a valid ticket (and please remove the path from the output file name).
Is this specific to stream copying or does it also happen if you reencode?

Did it work better with an older version of FFmpeg?

Changed 7 years ago by vkroutik

Log output

comment:3 Changed 7 years ago by vkroutik

I uploaded the log file. Not sure about previous version, first time trying to use command. It is broken for all different stream inputs, I tried 5. It does not matter a fortmat, rmtp, hls, rtsp, output chunks becoming smaller and smaller to 1 second, even so 10 is requested.

comment:4 Changed 7 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Reproduced by developer set
  • Status changed from new to open

Patch sent.

comment:5 Changed 7 years ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed

Should be fixed, thank you for the report!

comment:6 Changed 7 years ago by vkroutik

Great, thank you. How do I test it, is going to roll into the latest build?

comment:7 Changed 7 years ago by cehoyos

Simply compile current git head to test.

Note: See TracTickets for help on using tickets.