summaryrefslogtreecommitdiff
path: root/tools
Commit message (Collapse)AuthorAge
* tools: Port to codec parameters APIDiego Biurrun2016-05-17
|
* Split global .gitignore file into per-directory filesDiego Biurrun2016-05-13
|
* avpacket: Replace av_free_packet with av_packet_unrefLuca Barbato2015-10-26
| | | | | | | `av_packet_unref` matches the AVFrame ref-counted API and can be used as a drop in replacement. Deprecate `av_free_packet`.
* tools: Drop a stale headerLuca Barbato2015-08-31
|
* ismindex: Use the correct abs() versionVittorio Giovara2015-08-31
|
* cws2fws: Close file handles on errorVittorio Giovara2015-06-12
| | | | Reported-By: infer
* ismindex: Calculate the pts duration of trun atoms, not the dts durationMartin Storsjö2015-03-19
| | | | | | | Since the duration is compared to the tfra durations/intervals which are expressed in pts, calculate that here as well. Signed-off-by: Martin Storsjö <martin@martin.st>
* sidxindex: Remove parsing that isn't necessary any longerMartin Storsjö2015-01-03
| | | | | | | When we don't adjust the Period start time, we don't need to parse the earliest_presentation_time from the sidx boxes either. Signed-off-by: Martin Storsjö <martin@martin.st>
* sidxindex: Don't adjust the Period start time depending on the track start timeMartin Storsjö2015-01-03
| | | | | | | | | | | | | This was only necessary to get playback to start with dash.js 1.2.0, it has been fixed in the git version. The previous behaviour was incorrect - the Period's start time is irrespective of the actual first timestamp of the contents within the period. The Period start time only says when, within the global timeline, this particular piece should start to be played back. Signed-off-by: Martin Storsjö <martin@martin.st>
* sidxindex: Write mimeType=audio/mp4 for audio-only representationsMartin Storsjö2014-11-24
| | | | | | | This fixes playback with dash.js, when the input is one separate mp4 file per track. Signed-off-by: Martin Storsjö <martin@martin.st>
* tools: Add a sidxindex toolMartin Storsjö2014-11-17
| | | | | | | This tool can write an MPD file for fragmented MP4 files with a sidx index at the start of the file. Signed-off-by: Martin Storsjö <martin@martin.st>
* tools: Use av_gettime_relativeOlivier Langlois2014-10-24
| | | | | | | | Whenever av_gettime() is used to measure relative period of time, av_gettime_relative() is prefered as it guarantee monotonic time on supported platforms. Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: use tfhd default duration if no sample durationMika Raento2014-10-16
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: handle discontinuous streams betterMika Raento2014-10-09
| | | | | | | Read the fragment duration from the trun sample data, rather than assuming that there are no gaps. Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: handle time discontinuities and nonzero start timeMika Raento2014-09-15
| | | | | | | | | The input file may not have consistent start times, stream durations and chunk durations. This patch at least removes negative durations that make chromecast unhappy, and correctly sets starting time on chunks so that the split (or .ismf) outputs match the manifest. Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: Avoid writing ismf files if no base name has been specifiedMartin Storsjö2014-09-07
| | | | | | | | Previously, this could create files named "(null).ismf", if the -ismf parameter is specified (before an input file name), but without specifying any base name. Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: produce .ismf fileMika Raento2014-09-05
| | | | | | | | This is a non-standard file that maps the MSS segment names to offsets in the ISMV file. This can be used to build a custom MSS streaming server without splitting the ISMV into separate files. Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: recover from completely empty streamsMika Raento2014-09-03
| | | | | | | This creates best-effort results from input that is missing stream contents, there are warnings printed when this happens. Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: improve diagnosticsMika Raento2014-09-02
| | | | | | This improves error messages for completely and somewhat broken inputs. Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Undefine fseeko/ftello before defining themDiego Biurrun2014-08-22
| | | | This avoids a number of redefinition warnings on MinGW64.
* cosmetics: Write NULL pointer inequality checks more compactlyGabriel Dume2014-08-15
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* ismindex: Add an option for outputting files elsewhere than in the current ↵Martin Storsjö2014-07-03
| | | | | | directory Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: Allow adding a path prefix to the generated .ism fileMartin Storsjö2014-07-03
| | | | | | | | This allows storing the .ismv/.isma/.ismc files separately from the .ism file on a server, without having to manually edit the .ism file after generating it with the ismindex tool. Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Add a note about the -movflags +faststart featureLou Logan2014-03-01
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Avoid unintentionally sign extending BE_32Martin Storsjö2014-03-01
| | | | | | | | | | | | | Without this cast, the BE_32() expression is sign extended when assigned to an uint64_t, since the uint8_t|uint8_t expression is promoted to an int. Also avoid undefined behaviour when left shifting an uint8_t by 24 by casting it to an uint32_t explicitly before shifting. Based on a patch by Michael Niedermayer. Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Check offset_count before reading from the moov_atom bufferMichael Niedermayer2014-03-01
| | | | | CC: libav-stable@libav.org Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Check the ftello() return codesMichael Niedermayer2014-03-01
| | | | | | This silences a warning in the coverity static analyzer. Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Fix the signedness of variables keeping the ftello return valuesMichael Niedermayer2014-03-01
| | | | | | | | These variables are assigned the return values of ftello, which returns an off_t, which is a signed type. On errors, ftello returns -1, thus make sure this error return value can be stored properly. Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Check fseeko() return codesMichael Niedermayer2014-03-01
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Simplify code by using a MIN() macroMichael Niedermayer2014-03-01
| | | | | | | | qt-faststart doesn't use the normal libav headers at all since it's supposed to be a completely standalone tool, so we implement the macro locally in this file. Signed-off-by: Martin Storsjö <martin@martin.st>
* qt-faststart: Increase the copy buffer size to 64 KBMartin Storsjö2014-03-01
| | | | | | | | | Copying data in chunks of 1 KB is a little wasteful. 64 KB should still easily fit on the stack, so there's no need to allocate it dynamically. Signed-off-by: Martin Storsjö <martin@martin.st>
* aviocat: Add support for specifying the input durationMartin Storsjö2014-01-17
| | | | | | | This avoids the caller having to calculate the byte rate if wanting to push a file in a rate resembling realtime. Signed-off-by: Martin Storsjö <martin@martin.st>
* aviocat: Check the argv array length before reading element i+1Martin Storsjö2014-01-17
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* graph2dot: Add missing #include for av_get_channel_layout_string()Diego Biurrun2013-11-04
|
* graph2dot: Fix use of deprecated APIDiego Biurrun2013-11-04
|
* ismindex: Change the duration field to int64_tMartin Storsjö2013-10-05
| | | | | | This reduces the risk for overflow in pathlogical cases. Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: Calculate the file duration among the included tracksMartin Storsjö2013-10-05
| | | | | | | | | If the input file contains other tracks (non video/audio) that aren't included in ismindex, the global file duration as returned by libavformat might not be equal to the maximum of the duration of the actual included tracks. Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: Use the individual stream duration instead of the global oneMartin Storsjö2013-10-05
| | | | | | | | | | The stream duration is used for calculating the duration of the last fragment easily without manually parsing anything else than the mfra/tfra atoms. When the global file duration was used previously, the duration of the last fragment could end up wrong if the streams weren't equally long. Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: Replace mkdir ifdeffery by os_support.h #includeDiego Biurrun2013-08-05
| | | | os_support.h contains more precise workarounds for non-POSIX mkdir().
* tools: Wording and formatting cosmeticsDiego Biurrun2013-07-06
|
* silly typo fixesDiego Biurrun2013-05-03
|
* lavfi: merge avfiltergraph.h into avfilter.hAnton Khirnov2013-04-11
| | | | | We do not support using filters without AVFilterGraph in practice anyway, so there is no point in pretending we do.
* ismindex: Check the return value of allocationsMartin Storsjö2013-03-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: Factorize code for printing chunk duration listsMartin Storsjö2013-03-13
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: Rename structs and fields from "file" to "track"Martin Storsjö2013-03-13
| | | | | | | The tool nowadays supports more than one track per file, this makes reading the code slightly less confusing. Signed-off-by: Martin Storsjö <martin@martin.st>
* Drop DCTELEM typedefDiego Biurrun2013-01-22
| | | | | | It does not help as an abstraction and adds dsputil dependencies. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* miscellaneous typo fixesDiego Biurrun2012-12-21
|
* tools: do not use av_pix_fmt_descriptors directly.Anton Khirnov2012-10-12
|
* avformat: Remove non-compiling and/or silly commented-out printf/av_log ↵Diego Biurrun2012-10-01
| | | | statements
* trasher: Include all the necessary headersMartin Storsjö2012-09-13
| | | | | | | The missing headers are required for errno and for strerror. This fixes building of this tool on mingw32ce. Signed-off-by: Martin Storsjö <martin@martin.st>