Stefano Sabatini
1c522e3868
lavf/segment: guess list type from list filename suffix
13 years ago
Stefano Sabatini
e5ae2f9126
lavf/segment: add M3U8 list support
...
Address trac ticket #1642 .
13 years ago
Stefano Sabatini
4a12d1e8e7
lavf/segment: compute max list segment duration
...
This is useful for the M3U8 format incoming patch.
13 years ago
Stefano Sabatini
769500c2a3
lavf/segment: create segment_list_open and close functions
...
Allow factorization for the incoming patches, and avoid code/logic
duplication.
13 years ago
Stefano Sabatini
d3a2a614bf
lavf/segment: fix bogus segment index rewrapping logic
...
Decouple segment index wrapping and segment count logic. The counter
should not be reset since it detects the segment increasing timeframe.
13 years ago
Stefano Sabatini
b89e00bd1c
lavf/segment: move file description to @file doxy
13 years ago
Diego Biurrun
0177b7d23a
Improve descriptiveness of a number of codec and container long names
13 years ago
Stefano Sabatini
aef9e94f73
lavf/segment: add -segment_time_delta option
13 years ago
Stefano Sabatini
2058b52cf8
lavf/segment: add -segment_times option
...
Address trac ticket #1504 .
13 years ago
Stefano Sabatini
3f345290dc
lavf/segment: sort options
13 years ago
Stefano Sabatini
8dc31f8da8
lavf/segment: make use of av_parse_time() when parsing the -segment_time value
...
Increase flexibility/consistency.
Also rename recording_time field to time, for enhanced
consistency/readability.
13 years ago
Stefano Sabatini
7f08bfae6e
lavf/segment: add segment_list_type option, extend format for the segment list file
...
Add list extended format which specifies in the list file the start and
ending time for each segment. This is required to make it available this
information to external tools, avoiding the need to perform file analysis
in the output segments.
13 years ago
Stefano Sabatini
af392efe51
lavf/segment: rename SegmentContext.pb to list_pb
...
The new name is more auto-explicative, as the pb is used for the segment
list file.
13 years ago
Stefano Sabatini
d8013f38ab
lavf/segment: add error log in case of invalid filename template
...
Better rather than silently exit.
13 years ago
Stefano Sabatini
a1e092ccd3
lavf/segment: fix logic for segmenting audio-only inputs
...
Also add a comment for clarifying the logic.
Fix trac ticket #1290 .
13 years ago
Stefano Sabatini
4e2899dd31
lavf/segment: add more information in log message in seg_write_packet()
13 years ago
Stefano Sabatini
fd0e6ef99a
lavf/segment: remove unused offset variable
13 years ago
Stefano Sabatini
77dcae5d74
lavf/segment: apply misc fixes to the private options internal documentation
...
Option help message tell what the option *does*, not what the set field
represents.
13 years ago
Stefano Sabatini
a5af29336a
lavf/segment: slightly simplify fail logic in seg_write_packet()
13 years ago
Stefano Sabatini
4ad17bc76b
lavf/segment: move list filename printing logic from segment_end() to segment_start()
...
Allow to deal with the list file printing only in a single point, thus
simplifying logic, and allow a bit of factorization (no special case
needed when printing the first file name of the list).
13 years ago
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