Opened 11 years ago

Last modified 11 years ago

#2600 open enhancement

print EXT-X-STREAM-INF and BANDWIDTH in output M3U8

Reported by: Vlad SD Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: hls segment m3u8
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description (last modified by Stefano Sabatini)

Summary of the ticket:

add support to EXT-X-STREAM-INF and BANDWIDTH field in the generated M3U8 output.

Here is spec from http://tools.ietf.org/html/draft-pantos-http-live-streaming-07

BANDWIDTH

The value is a decimal-integer of bits per second. It MUST be an
upper bound of the overall bitrate of each media segment (calculated
to include container overhead) that appears or will appear in the
Playlist.

Every EXT-X-STREAM-INF tag MUST include the BANDWIDTH attribute

Here is command line:

C:\ffmpeg\ffmpeg.exe -re -i "rtmp://bar/foo.flv" -y -c:v copy -c:a copy -hls_time 6 -hls_list_size 5 -hls_wrap 30 -start_number 1 "C:\Tools\Foo\stream.m3u8"

Change History (6)

comment:1 by Carl Eugen Hoyos, 11 years ago

Component: undeterminedavformat
Keywords: hls added
Priority: importantnormal

comment:2 by Carl Eugen Hoyos, 11 years ago

I don't see an EXT-X-STREAM-INF element in m3u8 files produced by FFmpeg - please provide your command line, your complete, uncut console output and the m3u8 file to make this a reproducible ticket.

comment:3 by Carl Eugen Hoyos, 11 years ago

Resolution: needs_more_info
Status: newclosed

To the best of my knowledge, there is no bug: BANDWIDTH only exists within EXT-X-STREAM-INF which is optional and not written by FFmpeg.
Please reopen the ticket if you can clarify your issue.

comment:4 by Vlad SD, 11 years ago

Resolution: needs_more_info
Status: closedreopened
Type: defectenhancement

I guess you are right, it should be a feature to write out EXT-X-STREAM-INF. Changing ticket into feature request.

comment:5 by Carl Eugen Hoyos, 11 years ago

Priority: normalwish
Reproduced by developer: set
Status: reopenedopen
Version: unspecifiedgit-master

comment:6 by Stefano Sabatini, 11 years ago

Description: modified (diff)
Keywords: segment m3u8 added
Summary: m3u8 file generated is not up to published specsprint EXT-X-STREAM-INF and BANDWIDTH in output M3U8
Note: See TracTickets for help on using tickets.