Anton Khirnov
b7f1010c8f
tools: do not use av_pix_fmt_descriptors directly.
12 years ago
Diego Biurrun
11d4e92ed9
avformat: Remove non-compiling and/or silly commented-out printf/av_log statements
12 years ago
Martin Storsjö
18d8825517
trasher: Include all the necessary headers
...
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>
12 years ago
Martin Storsjö
21411a4102
pktdumper: Use a custom define instead of PATH_MAX for buffers
...
PATH_MAX is not necessarily available on all systems, e.g. it's
normally not available on MSVC, and is not guaranteed to defined
on a POSIX system either.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
bcc44873d9
pktdumper: Use av_strlcpy instead of strncpy
...
This takes care of null-terminating the buffer if it is too small,
which wasn't handled properly before.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
372de27df7
pktdumper: Use sizeof(variable) instead of the direct buffer length
...
Also change the snprintf size to use the full buffer, since
snprintf always null-terminates the buffer.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
09d5e02ab0
graph2dot: Use the fallback getopt implementation if needed
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
212ec5faf9
tools: Include io.h for open/read/write/close if unistd.h doesn't exist
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
dd4169ab92
qt-faststart: Use other seek/tell functions on MSVC than on mingw
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
bff714ad4c
ismindex: Include direct.h for _mkdir on windows
...
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>
13 years ago
Martin Storsjö
1d9c2dc89a
Don't include common.h from avutil.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago
Mans Rullgard
7c29377b70
lavfi: reclassify showfiltfmts as a TESTPROG
...
This tool uses lavfi internal symbols not accessible in shared
libraries. TESTPROGS are linked statically to allow them use of
library internals not normally exported.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
fa2d747352
graph2dot: fix printf format specifier
...
tools/graph2dot.c:85: warning: format ‘%lld’ expects type ‘long long int’, but argument 4 has type ‘int’
13 years ago
Martin Storsjö
30327865f3
ismindex: Verify that all bitrate variants match
...
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>
13 years ago
Martin Storsjö
1be8c90847
ismindex: Properly report errors reading the MFRA atom
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
09f211987c
misc typo and wording fixes
13 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
Anton Khirnov
43c7a01e98
lavfi: remove avfilter_default_* from public API on next bump.
...
Those functions are only useful inside filters. It is better to not
support user filters until the API is more stable.
13 years ago
Diego Biurrun
ffae713a5b
Fix a bunch of common typos.
13 years ago
Martin Storsjö
8801fac365
ismindex: Fix build on mingw
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Diego Biurrun
d55fa1cb25
tools: Remove some unnecessary #undefs.
13 years ago
Diego Biurrun
4e81b5f517
tools: K&R reformatting cosmetics
13 years ago
Martin Storsjö
7072a6a4bb
pktdumper: Use usleep instead of sleep
...
MinGW doesn't have sleep, only _sleep (which is deprecated),
Sleep (which is defined in winbase.h and not in the standard
C headers) and usleep.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
33ec9ef96d
Add a tool for creating smooth streaming manifests
...
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>
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
Diego Biurrun
5ea20630b4
Fix a bunch of platform name and other typos.
13 years ago
Diego Biurrun
8fd35b1aac
Fix a bunch of typos.
13 years ago
Diego Biurrun
cd8d84575b
qt-faststart: K&R reformatting; fix comment typos
13 years ago
Martin Storsjö
cf4afe0be6
qt-faststart: Fix up indentation
...
This restores indentation after 65b875d8fc
.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
cd3716b9aa
Replace all uses of av_close_input_file() with avformat_close_input().
13 years ago
Diego Biurrun
da9cea77e3
Fix a bunch of common typos.
13 years ago
Diego Biurrun
9a5d6c23c5
tests/tools/examples: Replace direct exit() calls by return.
13 years ago
Diego Biurrun
def5dc1260
doc: document preferred Doxygen syntax and make patcheck detect it
13 years ago
Janne Grunau
d830264abd
tools/pktdumper: update to recent avformat api
13 years ago
Diego Biurrun
c960e67ad0
Replace deprecated av_find_stream_info() by avformat_find_stream_info().
14 years ago
Diego Biurrun
eb7505e429
Remove some unused scripts from tools/.
14 years ago
Diego Biurrun
c540061f3f
cws2fws: Improve error message wording.
14 years ago
Diego Biurrun
d39facc783
tools: Check the return value of write().
...
This fixes several warnings of the type:
warning: ignoring return value of ‘write’, declared with attribute warn_unused_result
14 years ago
Peter Ross
c7d22c5d67
patcheck: warn about assert usage
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Diego Biurrun
6252040e77
Replace `` by $() syntax in shell scripts.
...
$() is easier to nest and POSIX, which we require in other places.
14 years ago
Brad
ff3be572ef
patcheck: Allow overiding grep program(s) through environment variables.
...
patcheck hardcodes the binary names for grep/egrep. This makes overriding the
binary names a pain, e.g. when calling a GNU version of grep on BSD systems.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
14 years ago
Diego Biurrun
14622ef05d
Replace references to ffmpeg-devel with libav-devel; fix roundup URL.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Stefano Sabatini
009026efb1
In graph2dot, print more specific audio information for audio links.
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Janne Grunau
2c3589bfda
consolidate .gitignore patters into a single file
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Janne Grunau
348b8218f7
convert svn:ignore properties to .gitignore files
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Stefano Sabatini
b382d1e3e4
Print link audio format name in tools/graph2dot.
...
Originally committed as revision 26322 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago