Michael Niedermayer
ebea370dc3
ismindex: check mkdir()s return code
...
Fixes CID733724
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
bc7330a840
tools/ismindex: dont ignore return code of write_fragments()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
38f0c0781a
lavfi: merge avfiltergraph.h into avfilter.h
...
We do not support using filters without AVFilterGraph in practice
anyway, so there is no point in pretending we do.
12 years ago
James Almer
89388a953a
Replace all occurrences of PRI in sscanf() calls with SCN
...
Signed-off-by: James Almer <jamrial@gmail.com>
12 years ago
Clément Bœsch
ec1ef0838c
tools: add audio normalize script example.
12 years ago
Martin Storsjö
4abf6fa095
ismindex: Check the return value of allocations
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
7c147900b8
ismindex: Factorize code for printing chunk duration lists
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
f05e9beb4a
ismindex: Rename structs and fields from "file" to "track"
...
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>
12 years ago
Stefano Sabatini
9767ec6b86
lavu: add escape API
...
The escape API will be useful to perform escaping programmatically, which
is required when crafting argument strings, and will be used for context
printing as well.
This is based on the ffescape tool code, with a few extensions and fixes.
12 years ago
Frederic Jean
c53e8d9029
Include fix for building ismindex under MinGW
...
Include cmdutils.h so we can build under windows.
Based on fix for https://ffmpeg.org/trac/ffmpeg/ticket/256
12 years ago
Nicolas George
b92c7a8f4b
tools: add seek_print.
...
Useful for testing seek implementations.
12 years ago
Diego Biurrun
88bd7fdc82
Drop DCTELEM typedef
...
It does not help as an abstraction and adds dsputil dependencies.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
12 years ago
Stefano Sabatini
c92b6f347d
tools: add plotframes script
...
The script is ported from ffprobe/SourceForge and updated to the current
ffprobe version.
12 years ago
Paul B Mahol
d885cc41e5
Fix "knwon" typo and add a check in tools/patcheck
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Diego Biurrun
511cf612ac
miscellaneous typo fixes
12 years ago
Clément Bœsch
8b63744f48
Fix "bistream" typo and add a check in tools/patcheck.
12 years ago
Michael Niedermayer
0ea4742341
qt-faststart: Check offset_count
...
Fixes CID733836
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
160013736e
lavf: TED Talks JSON captions demuxer.
12 years ago
Paul B Mahol
1acd2f6ba7
Replace rest of libavutil/audioconvert.h with libavutil/channel_layout.h
...
Also remove it in once case when it is not needed.
Signed-off-by: Paul B Mahol <onemda@gmail.com>
12 years ago
Michael Niedermayer
976175fbe5
probetest: fix possible use of uninitialized data
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
1838961357
qt-faststart: fix signedness of variable used to hold return code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
224afddc7c
ismindex: check return value of avio_open_dyn_buf()
...
Fixes CID733723
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
5b45b66220
cws2fws: check fstat return code.
...
Fixes CID733720
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
86aba86b1b
cws2fws: check lseek() return
...
Fixes: CID733721
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
59eae88429
cws2fws: check inflateInit return value
...
Fixes CID733722
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
15f52e50fe
tools: add ffescape utility
12 years ago
Michael Niedermayer
4a2297294f
qt-faststart: check return of ftello()
...
Fixes CID739863
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
f68ff2e0e7
fourcc2pixfmt: fix compilation
...
If someone finds a cleaner fix, dont hesitate to revert this!
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
0de41ead6f
qt-faststart: check fseeko() return codes
...
Fixes CID733725
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Hendrik Leppkes
79393a8363
Replace usage of the deprecated av_pix_fmt_descriptors array with av_pix_fmt_desc_get
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
25f3827e1d
tools/ffeval: do not use UNIX-specific /dev/std{in,out} files
...
Should fix behavior when the /dev/ directory is not defined (e.g. on
Windows).
12 years ago
Stefano Sabatini
22c5cc239c
tools/ffeval: include compat/getopt.c in case of missing system getopt()
12 years ago
Michael Niedermayer
225d3cc1cc
ffeval: avoid folding EOF onto a valid char
...
Fixes CID733704
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
80db07adfe
probetest: check command line arguments
...
Fixes CID733835
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
8ab0b9caba
trasher: check seek return value.
...
Fixes CID733726
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Anton Khirnov
b7f1010c8f
tools: do not use av_pix_fmt_descriptors directly.
12 years ago
Michael Niedermayer
92c3173c84
qt-faststart: fix printf argument type
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Diego Biurrun
11d4e92ed9
avformat: Remove non-compiling and/or silly commented-out printf/av_log statements
12 years ago
Michael Niedermayer
59003fe7c0
qt-faststart: simplify code by using FFMIN
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
610efb6773
qt-faststart: dont allocate a bigger buffer than needed
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Jan Ehrhardt
f4d9148fe2
qt-faststart: speedup
...
qt-faststart is terribly slow when the input file and the output file
are on a slow disk like a SD card. By increasing the copy_buffer from
1K to 32M I decreased the processing time on a sample file from
1600 seconds to 4 seconds. The timing difference is during 'copying
rest of file'.
S:\SD_VIDEO\PRG001>e:\utils\qt-faststart 00005.mp4 5.mp4
ftyp 0 32
free 32 8
mdat 40 13744391
moov 13744431 141848
patching stco atom...
patching stco atom...
writing ftyp atom...
writing moov atom...
copying rest of file...
Execution time: 1576.259 s
S:\SD_VIDEO\PRG001>s:\utils\qt-faststart 00005.mp4 5.mp4
ftyp 0 32
free 32 8
mdat 40 13744391
moov 13744431 141848
patching stco atom...
patching stco atom...
writing ftyp atom...
writing moov atom...
copying rest of file...
Execution time: 3.846 s
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
4390f8c28d
Fix two "skiping" typo.
12 years ago
Derek Buitenhuis
5a627c14b5
Remove mt-work directory
...
It is all dead and rotting code.
Also, move yuvcmp.c to tools. Its license is non-existent, however,
and should be clarified.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
12 years ago
Stefano Sabatini
8bdba0b3e9
tools: move raw-test program to tools, with the name fourcc2pixfmt
12 years ago
Stefano Sabatini
363307813e
tools/graphdot: unbreak syntax
...
Fix regression introduced in f054dbee6c
.
+10.23l.
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>
12 years ago