Stefano Sabatini
aa1cceb5eb
lavf/segment: rename variable "size" to "list_size"
...
The new name is more meaningful/less confusing.
13 years ago
Stefano Sabatini
3bee286ad2
lavf/segment: pass the top level chained muxer format context to segment_end()
...
Consistent with segment_start() and less confusing.
13 years ago
Stefano Sabatini
c1abfbc47c
lavf/segment: rename segment private context from "c" to "seg" in segment_start()
...
Consistent with the rest of the file, less confusing.
13 years ago
Stefano Sabatini
a9a7e215e5
lavf/segment: add stream_segment variant of the segment muxer
...
This simplifies usage for segment streaming formats with no global
headers, tipically MPEG 2 transport stream "ts" files.
The seg class duplication is required in order to avoid an infinite loop
in libavformat/utils.c:format_child_next_class().
13 years ago
Stefano Sabatini
0692d4c890
lavf/segment: add some debugging logs
13 years ago
Janne Grunau
1cdcf043ca
segment: remove unnecessary <strings.h> include
13 years ago
Luca Barbato
3b52e9da10
segment: reorder seg_write_header allocation
...
As pointed by Paul B Mahol <onemda@gmail.com> the previous code could
lead to null pointer dereference.
13 years ago
Paul B Mahol
4246032216
segment: fix null pointer dereference
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
0c1759ac4b
segment: implement wrap around
...
Provide a way to wrap around the segment index so pseudostreaming
live through a web server and html5 browser is simpler.
Also ensure that 0 (disable) is a valid value across the options
providing wrap around.
13 years ago
Nicolas Noirbent
62a22b2865
segment: fix FPE when segment_list_size is 0
...
With the added benefit that allowing -segment_list_size 0 makes it
possible to keep all segment entries in the list file.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
02e8f03296
segment: introduce segmented chain muxer
...
It behaves similarly to image2 muxer
13 years ago
Michael Niedermayer
0556eee43f
segmenter: loose rindex()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
539399d4d1
AVOptions: rename remaining FF_OPT_TYPE_* to AV_OPT_TYPE_*.
13 years ago
Michael Niedermayer
dbd117240a
segment: Fix typo in segment_basename
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
5cdcc44e41
segment: replace strdup() by av_strdup()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
13c9958751
segment: extend options
...
let set an alternate path for the segment files.
13 years ago
Luca Barbato
1786c7f844
segment: basic pattern support and playlist output
...
Yet another option half implemented, more will follow...
13 years ago
Luca Barbato
82df8c3997
segment: introduce segmented chain muxer
...
Initial test code, the filename isn't yet guessed and the file index
isn't printed yet.
13 years ago