summaryrefslogtreecommitdiff
path: root/tools/ismindex.c
Commit message (Collapse)AuthorAge
* tools: Port to codec parameters APIDiego Biurrun2016-05-17
|
* ismindex: Use the correct abs() versionVittorio Giovara2015-08-31
|
* 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>
* 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>
* 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>
* 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().
* 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>
* ismindex: Include direct.h for _mkdir on windowsMartin Storsjö2012-08-29
| | | | | | | The Windows SDK in MSVC doesn't have mkdir, only _mkdir, and MSDN says one should include direct.h to use it. Signed-off-by: Martin Storsjö <martin@martin.st>
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* ismindex: Verify that all bitrate variants matchMartin Storsjö2012-07-03
| | | | | | | | | | In Smooth Streaming, the fragments are addressed by time, and the manifest only stores one list of time offests for all streams, so all streams need to have identical fragment offsets. Warn if this isn't the case, so that the user can fix the files instead of getting failures at runtime when the fragments can't be found. Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: Properly report errors reading the MFRA atomMartin Storsjö2012-07-03
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* ismindex: Fix build on mingwMartin Storsjö2012-01-26
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* tools: K&R reformatting cosmeticsDiego Biurrun2012-01-25
|
* Add a tool for creating smooth streaming manifestsMartin Storsjö2012-01-25
It can also optionally split the file into individual fragments, which allows it to be served from any web server without any server side support. Signed-off-by: Martin Storsjö <martin@martin.st>