summaryrefslogtreecommitdiff
path: root/tools/aviocat.c
Commit message (Collapse)AuthorAge
* 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>
* 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>
* Replace usleep() calls with av_usleep()Mans Rullgard2012-06-22
| | | | | | | This reduces the dependency on unistd.h which is not available on all systems. Signed-off-by: Mans Rullgard <mans@mansr.com>
* tools: K&R reformatting cosmeticsDiego Biurrun2012-01-25
|
* aviocat: Remove useless includesMartin Storsjö2012-01-21
| | | | | | | Also include stdlib.h explicitly - currently it is used implicitly via avformat.h. Signed-off-by: Martin Storsjö <martin@martin.st>
* aviocat: Flush the output before closingMartin Storsjö2012-01-21
| | | | | | Without this, the end of the file might not be transmitted/written. Signed-off-by: Martin Storsjö <martin@martin.st>
* Add a tool that uses avio to read and write, doing a plain copy of dataMartin Storsjö2012-01-20
It also optionally can throttle its operation to a particular speed, to simulate realtime writing. Signed-off-by: Martin Storsjö <martin@martin.st>