Opened 5 months ago

Closed 5 months ago

Last modified 5 months ago

#7868 closed defect (invalid)

Master playlist generate points to only one resolution among multiple

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

Description

Summary of the bug:
How to reproduce:

ffmpeg -re -i video.mp4 -f hls -master_pl_publish_rate 5 -master_pl_name master.m3u8 ^
  -vf scale=w=640:h=-2 -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4   -b:v 800k -maxrate 856k -bufsize 1200k -b:a 96k -hls_segment_filename D:\xampp\htdocs\streaming-demo\360p_%%03d.ts D:\xampp\htdocs\streaming-demo\360p.m3u8 ^
  -vf scale=w=842:h=-2 -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4  -b:v 1400k -maxrate 1498k -bufsize 2100k -b:a 128k -hls_segment_filename D:\xampp\htdocs\streaming-demo\480p_%%03d.ts D:\xampp\htdocs\streaming-demo\480p.m3u8 ^
  -vf scale=w=1280:h=-2 -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4  -b:v 2800k -maxrate 2996k -bufsize 4200k -b:a 128k -hls_segment_filename D:\xampp\htdocs\streaming-demo\720p_%%03d.ts D:\xampp\htdocs\streaming-demo\720p.m3u8 ^
  -vf scale=w=1920:h=-2 -c:a aac -ar 48000 -c:v h264 -profile:v main -crf 20 -sc_threshold 0 -g 48 -keyint_min 48 -hls_time 4  -b:v 5000k -maxrate 5350k -bufsize 7500k -b:a 192k -hls_segment_filename D:\xampp\htdocs\streaming-demo\1080p_%%03d.ts D:\xampp\htdocs\streaming-demo\1080p.m3u8

It outputs all the segments just fine . And I can stream using individual playlists . But my master playlist links only to the 360p resolution playlist . What could I be doing wrong ?

Change History (5)

comment:1 Changed 5 months ago by Gyan

  • Keywords master playlist removed
  • Priority changed from important to minor
  • Resolution set to invalid
  • Status changed from new to closed

Your command invokes four HLS muxers. You need to map the video and audio streams four times in the same output file.

See the examples for the option var_stream_map in the HLS muxer section: https://ffmpeg.org/ffmpeg-formats.html#hls-2

comment:2 Changed 5 months ago by duttaparthib

  • Resolution invalid deleted
  • Status changed from closed to reopened

Can you guide me by modifying the code?

comment:3 Changed 5 months ago by duttaparthib

  • Priority changed from minor to important

comment:4 Changed 5 months ago by Gyan

  • Priority changed from important to minor
  • Resolution set to invalid
  • Status changed from reopened to closed

This is a bug tracker, not a troubleshooting forum. Your query has been answered elsewhere.

comment:5 Changed 5 months ago by cehoyos

  • Component changed from ffmpeg to undetermined
  • Priority changed from minor to normal
Note: See TracTickets for help on using tickets.