Michael Niedermayer
6028bd0dc6
ffmpeg: move next_dts/pts update out of transcode_video()
...
this makes it placed similar to qatar
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
7665da46ce
ffmpeg: update ist->pts in transcode_audio with the audio decoders output.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8ea81805d4
ffmpeg: print more details and rescaled timestamps in debug code.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c0be67cac1
ffmpeg: use (next_)dts in timestamp discontinuity detection code.
...
Strongly based on Anton Khirnovs code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e806ceaa7b
ffmpeg: Use the correct (dts) variables for stream copy.
...
Strongly based on Anton Khirnovs code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f070bf0894
ffmpeg: Fix (next)_dts/pts init.
...
Based on Anton Khirnovs code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4eea0cfc22
ffmpeg: use ist->dts instead of passing an argument into transcode_video().
...
This makes the code more similar to qatar
And fixes decoding of the last frame of fate/vc1-ism
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
f72eaf69ab
ffmpeg: Init dts variables in output_packet()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
fe380adbfb
ffmpeg: add (next_dts/dts) variables.
...
Strongly based on Anton Khirnovs code.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
f491f033f5
ffmpeg: document the unit for the -fs option parameter
13 years ago
Stefano Sabatini
70ffda3217
lavu: introduce av_parse_ratio() and use it in ffmpeg and lavfi/aspect
...
Factorize code and provide ratio parsing consistency.
13 years ago
Michael Niedermayer
982783ac49
ffmpeg: document avi special case
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
c673671333
ffmpeg: fix -map_channel being ignored when resampling is not needed.
13 years ago
Reimar Döffinger
05741d70c7
Fallback to input timestamps for non-delay encoders.
...
Causes FFmpeg to pass through the correct pts values,
instead of clobbering all to AV_NOPTS_VALUE (the av_init_packet
default) to then make up new ones based on only fps when muxing.
Included are also the related FATE ref changes, which all
some reasonable on quick investigation.
Also set all H.264 references to us -vsync drop to reduce the
diff for the ref files.
Otherwise almost all H.264 references need to change, mostly due
to now starting with negative pts values.
About 20 additional H.264 conformance tests needed -vsync
drop anyway because they create pts values that are out of
order and thus not possible to mux otherwise.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Reimar Döffinger
47a5274104
Add -vsync drop.
...
This allows to work around any non-monotonic time-stamp errors
by just discarding all time stamps.
This will be necessary to allow H.264 conformance tests to pass
after fixing time stamps to be passed through rawenc.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Reimar Döffinger
836110665f
Compare video_sync_method against the appropriate defines.
...
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Michael Niedermayer
fe0089a6ed
ffmpeg: fix -qscale X breaking audio codecs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
668494acd8
ffmpeg: add image size check to codec_get_buffer()
...
Fixes CVE-2011-3935
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
20aed9ed4f
ffmpeg: Allocate buffers of the size needed by the decoder.
...
Fixes bug127
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
0fec2cb15c
Remove ffmpeg.
13 years ago
Michael Niedermayer
c5c7e0ebc1
git show 2473a45c85
avconv.c | patch ffmpeg.c
...
Original commit:
commit 2473a45c85
Author: Janne Grunau <janne-libav@jannau.net>
Date: Wed Jan 18 10:53:41 2012 +0100
threads: change the default for threads back to 1
Using threaded decoding by default breaks backward compatibility if
AVHWAccel is used or if an appliction sets threadunsafe callbacks.
Avconv and avplay still use -threads auto if not specified.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
72092188ef
ffmpeg: remove unused and commented variable OutputStream.sync_ipts
13 years ago
Diego Biurrun
45f2908d02
cosmetics: Rename ffsink to avsink.
13 years ago
Reimar Döffinger
d393f41a33
Fix memleak after switch to encode_audio2 API.
...
Obviously the packet allocated by the encoder must be freed somewhere.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Reimar Döffinger
71a2c9b265
ffmpeg: check tcgetattr result.
...
This fixes parallel FATE (make fate -j4) failing under valgrind with:
Syscall param ioctl(TCSET{S,SW,SF}) points to uninitialised byte(s)
at 0x5D98B23: tcsetattr (tcsetattr.c:88)
by 0x43D66C: term_init (ffmpeg.c:734)
by 0x43CD8D: main (ffmpeg.c:5071)
Address 0x7fefffdd0 is on thread 1's stack
Uninitialised value was created by a stack allocation
at 0x43D5B0: term_init (ffmpeg.c:716)
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
13 years ago
Carl Eugen Hoyos
93af38ca93
Increase maximum encoding video buffer size.
...
libavutil now supports 64bit RGB formats.
13 years ago
Clément Bœsch
ad12d60d73
ffmpeg: fix return value in opt_old2new after e3127db4
.
13 years ago
Clément Bœsch
e3127db438
ffmpeg: use av_asprintf() in opt_old2new() and fix a memleak.
13 years ago
Clément Bœsch
2a81e0c2ad
ffmpeg: fix parse_option() string memleak.
13 years ago
Nicolas Noirbent
c949d5b15d
ffmpeg.c: transcode_video(): do not go through filter network if encoding is not required
...
This fixes a segmentation fault when doing a transcoding and a stream
copy of the same input stream at the same time, e.g.:
ffmpeg -i in.mkv -c:v mpeg2video transcode.m2v -c copy copy.ts
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
7efc6f2932
ffmpeg: clarify error message in case of bitstream filter opening failure
13 years ago
Marton Balint
741aca7936
libswresample: introduce int swr_set_compensation() instead of void swr_compensate()
...
The new version returns AVERROR(EINVAL) is the specified paramters are invalid,
and also creates the resampler if none was used so far.
Signed-off-by: Marton Balint <cus@passwd.hu>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
ceef1ee767
cmdutils: make show_usage() use av_log()
...
Avoid printing on stdout when show_usage is used in an error message.
13 years ago
Oana Stratulat
44cc1936be
ffmpeg: Fix segfault with zzufed 4xm file.
...
Fixes ticket 885
Signed-off-by: Oana Stratulat <oanaandreeastratulat@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Oana Stratulat
ee4d43ef7a
ffmpeg: check if number of input and output channels are valid.
...
Fix Ticket887.
13 years ago
Jean First
12bdc7b15e
ffmpeg: fix compiler warning for uninitialized variables
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Jean First
535705a489
ffmpeg: use avformat_close_input instead of av_close_input_file
...
Signed-off-by: Jean First <jeanfirst@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
93613338fe
ff* tools: move descriptions from copyright header to @file doxy
13 years ago
Michael Niedermayer
f2f8632aa5
ffmpeg: Check that frames are user type before treating them as such
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
80d2dddad1
ffmpeg: disable dr1 in case of resolution changes, as this does not work currently.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9971af3aa8
ffmpeg: add remaining hunks to enable dr1 support
...
Author: Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
a45880dcdb
ffmpeg: fix non ANSI C for(int
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
452406bd5b
ff*: Fix duplicatedly printed version info with -version
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
7b92863f30
ffmpeg: Fix killing [Y/n] prompt with ctrl-c
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
cf7076ee96
ffmpeg: exit() on repeated ctrl-c
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
1f273c2bf2
ffmpeg: check return code from av_vsrc_buffer_add_frame()
...
Fixed Ticket770
Bug found by: Diana Elena Muscalu
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
6c39b3c278
ffmpeg: reset dts/pts after decoding the first subpacket
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ee731c1ab0
ffmpeg: fix codecids with ffserver + ffmpeg + ffm
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Diego Biurrun
da9cea77e3
Fix a bunch of common typos.
13 years ago
Michael Niedermayer
934fe00680
ffmpeg: better warning about loop_input
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago