Opened 11 years ago

Closed 10 years ago

#2601 closed defect (fixed)

hls output always starts at 1 even so you tell otherwise

Reported by: Vlad SD Owned by:
Priority: minor Component: documentation
Version: git-master Keywords: hls
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: yes

Description

Summary of the bug:
One of the params is -start_number 1 for running HLS output like this:
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"

But if your -start_number 100000

It will still start with 1

Change History (8)

comment:1 by Carl Eugen Hoyos, 11 years ago

Component: undeterminedavformat
Keywords: hls added
Priority: importantnormal
Resolution: worksforme
Status: newclosed

This works fine here, if you want to reopen this ticket, please provide the command line that allows to reproduce the problem together with the complete, uncut console output and attach the m3u8 file.

comment:2 by Carl Eugen Hoyos, 11 years ago

Please also consider to read again the following sentence from the specification:
A media URI is not required to contain its sequence number.

in reply to:  description ; comment:3 by Stefano Sabatini, 11 years ago

Resolution: worksforme
Status: closedreopened

Replying to vkroutik:

Summary of the bug:
One of the params is -start_number 1 for running HLS output like this:
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"

But if your -start_number 100000

It will still start with 1

Confirm the bug. There is some confusion between URI sequence number (which may be cyclic) and the EXT-X-MEDIA-SEQUENCE number specified in the M3U8, which are two distinct entities.

in reply to:  3 comment:4 by Carl Eugen Hoyos, 11 years ago

Replying to saste:

Replying to vkroutik:

Summary of the bug:
One of the params is -start_number 1 for running HLS output like this:
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"

But if your -start_number 100000

It will still start with 1

Confirm the bug.

Then please add information on how it can be reproduced.

comment:5 by Carl Eugen Hoyos, 11 years ago

As said, -start_number works fine here for hls.

comment:6 by Carl Eugen Hoyos, 11 years ago

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

After discussion with Stefano, this is a documentation bug.

comment:7 by Carl Eugen Hoyos, 11 years ago

Component: avformatdocumentation

comment:8 by Stefano Sabatini, 10 years ago

Analyzed by developer: set
Resolution: fixed
Status: openclosed

Documentation should be clarified since:

commit f6707f0689e025e39f17c1e452f4033743079801
Author: Stefano Sabatini <stefasab@gmail.com>
Date:   Thu Jan 2 00:30:37 2014 +0100

    doc/muxers/hls: extend documentation
    
    In particular, reference segment muxer and clarify difference between
    segment filename number and playlist sequence number.
    
    Should fix trac ticket #2601.
Note: See TracTickets for help on using tickets.