Opened 12 months ago

Last modified 12 months ago

#7438 new defect

Transcoding multiple HLS outputs causes corruption in m3u8 index filename — at Version 2

Reported by: ehollander Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: hls
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by cehoyos)

Summary of the bug:Encoding 1 input file to 4 different outputs causes 2nd and 3rd m3u8 index filenames to be corrupt (additional junk characters appended) on Windows 10. (Input file was a large 4K video)
How to reproduce:
issue the following command on Windows 10:

ffmpeg -i %video% -c:v libx264 -profile:v high -level 3.1 -s 1920x1080 -b:v 800k -maxrate 800k -bufsize 2M -flags +cgop -g 600 -hls_list_size 0 -hls_time 10 -f hls %folder%/out0800_.m3u8^
 -c:v libx264 -profile:v high -level:v 3.1 -s 1920x1080 -b:v 1000k -maxrate 1000k -bufsize 1M -flags +cgop -g 30 -hls_list_size 0 -hls_time 10 -f hls %folder%/out1000_.m3u8^
 -c:v libx264 -profile:v high -level:v 3.1 -s 1920x1080 -b:v 1500k -maxrate 1500k -bufsize 1M -flags +cgop -g 30 -hls_list_size 0 -hls_time 10 -f hls %folder%/out1500_.m3u8​^
 -c:v libx264 -profile:v high -level:v 3.1 -s 1920x1080 -b:v 2500k -maxrate 2500k -bufsize 1M -flags +cgop -g 30 -hls_list_size 0 -hls_time 10 -f hls %folder%/out2500_.m3u8​

Change History (2)

comment:1 Changed 12 months ago by stevenliu

try as this command:

ffmpeg -i in.ts -b:v:0 1000k -b:v:1 256k -b:a:0 64k -b:a:1 32k \
  -map 0:v -map 0:a -map 0:v -map 0:a -f hls -var_stream_map "v:0,a:0 v:1,a:1" \
  -hls_segment_filename 'file_%v_%03d.ts' out_%v.m3u8

comment:2 Changed 12 months ago by cehoyos

  • Description modified (diff)
  • Keywords hls added
Note: See TracTickets for help on using tickets.