Martin Storsjö
f19fbfbdc6
aviocat: Check for output write errors
...
Signed-off-by: Martin Storsjö <martin@martin.st>
7 years ago
Luca Barbato
052b97855d
aviocat: Support avio options
...
Useful to test protocols that require options to be used.
8 years ago
Olivier Langlois
e205429fcf
tools: Use av_gettime_relative
...
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>
10 years ago
Martin Storsjö
87acd33c09
aviocat: Add support for specifying the input duration
...
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>
11 years ago
Martin Storsjö
03f2de5856
aviocat: Check the argv array length before reading element i+1
...
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Mans Rullgard
896bb0d742
Replace usleep() calls with av_usleep()
...
This reduces the dependency on unistd.h which is not available
on all systems.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
4e81b5f517
tools: K&R reformatting cosmetics
13 years ago
Martin Storsjö
7ba34575fd
aviocat: Remove useless includes
...
Also include stdlib.h explicitly - currently it is used
implicitly via avformat.h.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
6a73f3bbdf
aviocat: Flush the output before closing
...
Without this, the end of the file might not be transmitted/written.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
23e57d167a
Add a tool that uses avio to read and write, doing a plain copy of data
...
It also optionally can throttle its operation to a particular
speed, to simulate realtime writing.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago