- 12 Mar, 2016 1 commit
-
-
Adam Kent authored
Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 10 Mar, 2016 1 commit
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 23 Feb, 2016 1 commit
-
-
Anton Khirnov authored
Currently, AVStream contains an embedded AVCodecContext instance, which is used by demuxers to export stream parameters to the caller and by muxers to receive stream parameters from the caller. It is also used internally as the codec context that is passed to parsers. In addition, it is also widely used by the callers as the decoding (when demuxer) or encoding (when muxing) context, though this has been officially discouraged since Libav 11. There are multiple important problems with this approach: - the fields in AVCodecContext are in general one of * stream parameters * codec options * codec state However, it's not clear which ones are which. It is consequently unclear which fields are a demuxer allowed to set or a muxer allowed to read. This leads to erratic behaviour depending on whether decoding or encoding is being performed or not (and whether it uses the AVStream embedded codec context). - various synchronization issues arising from the fact that the same context is used by several different APIs (muxers/demuxers, parsers, bitstream filters and encoders/decoders) simultaneously, with there being no clear rules for who can modify what and the different processes being typically delayed with respect to each other. - avformat_find_stream_info() making it necessary to support opening and closing a single codec context multiple times, thus complicating the semantics of freeing various allocated objects in the codec context. Those problems are resolved by replacing the AVStream embedded codec context with a newly added AVCodecParameters instance, which stores only the stream parameters exported by the demuxers or read by the muxers.
-
- 17 Feb, 2016 1 commit
-
-
Johan Ström authored
Use with -use_localtime, and set -hls_segment_filename to a path which contains a subdirectory i.e. /some/path/%Y%m%d/%Y%m%dT%H%M%S-%s.ts This will mkdir the %Y%m%d-part of the path if it does not already exist. In addition, each filename in the playlist output will be prefixed with this subdirectory (if playlist and segment shares the same base path). Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 10 Feb, 2016 1 commit
-
-
Michael Niedermayer authored
Regression since bc9a5965Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 02 Feb, 2016 1 commit
-
-
Michael Niedermayer authored
Reviewed-by:
Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 24 Jan, 2016 1 commit
-
-
Anton Khirnov authored
Some (de)muxers open additional files beyond the main IO context. Currently, they call avio_open() directly, which prevents the caller from using custom IO for such streams. This commit adds callbacks to AVFormatContext that default to avio_open2()/avio_close(), but can be overridden by the caller. All muxers and demuxers using AVIO are switched to using those callbacks instead of calling avio_open()/avio_close() directly. (de)muxers that use the URLProtocol layer directly instead of AVIO remain unconverted for now. This should be fixed in later commits.
-
- 19 Dec, 2015 1 commit
-
-
Ganesh Ajjanagadde authored
Mainly cosmetic here. Reviewed-by:
Michael Niedermayer <michael@niedermayer.cc> Signed-off-by:
Ganesh Ajjanagadde <gajjanagadde@gmail.com>
-
- 13 Dec, 2015 1 commit
-
-
Michael Niedermayer authored
Fixes: segfault Fixes: Ticket5067 Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 04 Dec, 2015 1 commit
-
-
Clément Bœsch authored
-
- 02 Nov, 2015 1 commit
-
-
Derek Buitenhuis authored
This saves a lot of muxing overhead, especially on lower bitrate segments. Signed-off-by:
Derek Buitenhuis <derek.buitenhuis@gmail.com>
-
- 03 Oct, 2015 1 commit
-
-
DHE authored
Fixes ticket#4900 Signed-off-by:
DHE <git@dehacked.net> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 14 Sep, 2015 1 commit
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 03 Sep, 2015 2 commits
-
-
Michael Niedermayer authored
Fixes: CID1322343 Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
Michael Niedermayer authored
This is also more robust in case it ever is used Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 02 Sep, 2015 1 commit
-
-
LiuQi authored
test examples: ./ffmpeg -re -i ~/Movies/objectC/facebook.mp4 -v verbose -c copy -f hls -hls_segment_filename test-%s.ts -use_localtime 1 -bsf:v h264_mp4toannexb aaa.m3u8 [StevenLiu@localhost ffmpeg]$ cat aaa.m3u8;ll test-*.ts test-1441052221.ts test-1441052231.ts test-1441052235.ts test-1441052243.ts test-1441052249.ts -rw-r--r-- 1 StevenLiu staff 1310736 9 1 04:15 test-1441052131.ts -rw-r--r-- 1 StevenLiu staff 495192 9 1 04:15 test-1441052141.ts -rw-r--r-- 1 StevenLiu staff 1310736 9 1 04:17 test-1441052212.ts -rw-r--r-- 1 StevenLiu staff 1067840 9 1 04:17 test-1441052221.ts -rw-r--r-- 1 StevenLiu staff 235564 9 1 04:17 test-1441052231.ts -rw-r--r-- 1 StevenLiu staff 1187220 9 1 04:17 test-1441052235.ts -rw-r--r-- 1 StevenLiu staff 694848 9 1 04:17 test-1441052243.ts -rw-r--r-- 1 StevenLiu staff 526588 9 1 04:17 test-1441052249.ts [StevenLiu@localhost ffmpeg]$ ./ffmpeg -re -i ~/Movies/objectC/facebook.mp4 -v verbose -c copy -f hls -hls_segment_filename test-%s.ts -use_localtime 1 -bsf:v h264_mp4toannexb aaa.m3u8 [StevenLiu@localhost ffmpeg]$ cat aaa.m3u8;ll aaa-*.ts aaa-1441052417.ts aaa-1441052427.ts aaa-1441052437.ts aaa-1441052440.ts aaa-1441052449.ts -rw-r--r-- 1 StevenLiu staff 1310736 9 1 04:19 aaa-1441052382.ts -rw-r--r-- 1 StevenLiu staff 277300 9 1 04:19 aaa-1441052392.ts -rw-r--r-- 1 StevenLiu staff 1310736 9 1 04:20 aaa-1441052417.ts -rw-r--r-- 1 StevenLiu staff 1067840 9 1 04:20 aaa-1441052427.ts -rw-r--r-- 1 StevenLiu staff 235564 9 1 04:20 aaa-1441052437.ts -rw-r--r-- 1 StevenLiu staff 1187220 9 1 04:20 aaa-1441052440.ts -rw-r--r-- 1 StevenLiu staff 338776 9 1 04:20 aaa-1441052449.ts [StevenLiu@localhost ffmpeg]$ Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 25 Aug, 2015 1 commit
-
-
Luca Barbato authored
Right now only version 2 and version 3 are supported. Signed-off-by:
Luca Barbato <lu_zero@gentoo.org>
-
- 16 Aug, 2015 1 commit
-
-
Luca Barbato authored
Do not risk mixing different timebases. CC: libav-stable@libav.org Signed-off-by:
Luca Barbato <lu_zero@gentoo.org>
-
- 26 Jul, 2015 2 commits
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
Anshul Maheshwari authored
Signed-off-by:
Anshul Maheshwari <er.anshul.maheshwari@gmail.com> Signed-off-by:
Michael Niedermayer <michael@niedermayer.cc>
-
- 16 Jun, 2015 2 commits
-
-
Christian Suloway authored
Signed-off-by:
Christian Suloway <csuloway@globaleagleent.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Christian Suloway authored
Added HLS encryption with -hls_key_info_file <key_info_file> option. The first line of key_info_file specifies the key URI written to the playlist. The key URL is used to access the encryption key during playback. The second line specifies the path to the key file used to obtain the key during the encryption process. The key file is read as a single packed array of 16 octets in binary format. The optional third line specifies the initialization vector (IV) as a hexadecimal string to be used instead of the segment sequence number (default) for encryption. Changes to key_info_file will result in segment encryption with the new key/IV and an entry in the playlist for the new key URI/IV. Key info file format: <key URI> <key file path> <IV> (optional) Example key URIs: http://server/file.key /path/to/file.key file.key Example key file paths: file.key /path/to/file.key Example IV: 0123456789ABCDEF0123456789ABCDEF Example: ffmpeg -f lavfi -i testsrc -c:v h264 -hls_key_info_file file.keyinfo foo.m3u8 file.keyinfo: http://server/file.key /path/to/file.key 0123456789ABCDEF0123456789ABCDEF Example shell script: BASE_URL=${1:-'.'} openssl rand 16 > file.key echo $BASE_URL/file.key > file.keyinfo echo file.key >> file.keyinfo echo $(openssl rand -hex 16) >> file.keyinfo ffmpeg -f lavfi -re -i testsrc -c:v h264 -hls_flags delete_segments \ -hls_key_info_file file.keyinfo out.m3u8 -- Signed-off-by:
Christian Suloway <csuloway@globaleagleent.com> Signed-off-by:
Dan Dennedy <dan@dennedy.org> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 17 May, 2015 3 commits
-
-
MrBoogs authored
Reviewed-by:
Thomas Volkert <silvo@gmx.net>
-
MrBoogs authored
Reviewed-by:
Thomas Volkert <silvo@gmx.net>
-
MrBoogs authored
avformat/hlsenc: Add hls flag for rounding m3u8 durations to whole numbers, problems with floats on some devices Reviewed-by:
Thomas Volkert <silvo@gmx.net>
-
- 23 Feb, 2015 1 commit
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 21 Feb, 2015 2 commits
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Hendrik Leppkes authored
Reviewed-by:
Lukasz Marek <lukasz.m.luki2@gmail.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 20 Feb, 2015 3 commits
-
-
Hendrik Leppkes authored
Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Hendrik Leppkes authored
Its only used in one function, having it in the context serves no purpose. Signed-off-by:
Martin Storsjö <martin@martin.st>
-
Hendrik Leppkes authored
Its only used in one function, having it in the context serves no purpose. Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 11 Jan, 2015 1 commit
-
-
Michael Niedermayer authored
errors are negative throughout ffmpeg Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 08 Jan, 2015 1 commit
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 16 Dec, 2014 2 commits
-
-
Michael Niedermayer authored
Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
Christian Suloway authored
Close segment I/O context and append segment in hls_write_trailer() only when segment I/O context is allocated. Signed-off-by:
Christian Suloway <csuloway@globaleagleent.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 10 Dec, 2014 1 commit
-
-
Christian Suloway authored
This option flag deletes segment files removed from the playlist after a period of time equal to the duration of the segment plus the duration of the playlist. Signed-off-by:
Christian Suloway <csuloway@globaleagleent.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 06 Dec, 2014 1 commit
-
-
Christian Suloway authored
This option allows segment filenames to be specified. Unless -hls_flags single_file is set the filename is used as a string format with the segment number. Example: ffmpeg -f lavfi -i testsrc -c:v h264 -map 0 -hls_segment_filename bar%03d.ts foo.m3u8 Signed-off-by:
Christian Suloway <csuloway@globaleagleent.com> Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 16 Nov, 2014 1 commit
-
-
Michael Niedermayer authored
Fixes reading uninitialized memory Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 17 Oct, 2014 1 commit
-
-
Mika Raento authored
This fixes the abnormally high ts overhead in the files produced by the HLS and segments muxers. See https://trac.ffmpeg.org/ticket/2857 . For example makes it much more likely that it can produces streams that fit under the 64kb App store limit. Signed-off-by:
Michael Niedermayer <michaelni@gmx.at>
-
- 06 Oct, 2014 1 commit
-
-
Martin Storsjö authored
This avoids warnings about using the codec time base as time base hint. Signed-off-by:
Martin Storsjö <martin@martin.st>
-