Michael Niedermayer
0425fd7eb2
ffmpeg: dont return reserved values
...
Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
7883827cb7
ffmpeg: check for unsupported "queing of command on first filter supporting the specific commend"
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
1525107313
ffmpeg: improve built in docs for passing commands
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
f8f4e48b6d
ffmpeg: print command replies starting on column 0
...
This fixes formating issues with multi-line replies
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Carl Eugen Hoyos
47f9a5b737
Warn the user if a pix_fmt != yuv420p was chosen for MPEG-2 video encoding.
...
Fixes ticket #2870 .
11 years ago
Stefano Sabatini
f118b41759
ffmpeg: raise level for message printed in case of auto-select pixel format
...
Increase visibility, in order to decrease troubleshooting for
users generating non playable H.264 content.
Signed-off-by: Carl Eugen Hoyos <cehoyos@ag.or.at>
11 years ago
Derek Buitenhuis
58950ca0df
ffmpeg: Don't include colorspace.h
...
The header is private, and ffmpeg.c doesn't use it
for anything.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
12 years ago
Nicolas George
fc82f4a1f8
ffmpeg: ignore EOF when pushing frames to filters.
...
EOF is not a fatal condition, it is normally produced
by a few filters.
TODO: take it into account to avoid useless decoding.
12 years ago
Justin Ruggles
e816a8bc26
ffmpeg: use actual packet pts when discarding for the copypriorss option
...
The ist->pts value at this point does not necessarily match the actual packet
pts, which is what should be used to decide whether to discard the packet.
Without this change, some video packets that have pts on or after the start
time are getting discarded when they should not be.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
12 years ago
Michael Niedermayer
1a36c756d8
ffmpeg: free threads on error conditions.
...
Fixes Ticket2562
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
33ff943f70
ffmpeg: add -apad option which injects a apad filter only in the presence of video streams
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
410905f7fd
ffmpeg: use av_freep() for forced_kf_pts
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
0966623604
ffmpeg: drop old non monotone dts workaround.
...
All bugs should now be fixed in the new so the old can be droped.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
af2d964336
ffmpeg: set correct log context for non monotone dts workaround warnings
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
b2a1d92b7b
ffmpeg: port loglevel selection code to new dts workaround code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
30c05f6b02
ffmpeg: fix pts handling in the non monotone dts workaround
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
007ee09d7c
ffmpeg: fix the used maximum dts in the monotone dts workaround
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
26b89f6274
ffmpeg: use a max variable to hold the maximum dts
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
6b2fbdb047
ffmpeg: Check dts before use in non monotone dts workaround
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
ee3824f6f6
ffmpeg: limit non monotone workaround to audio & video streams
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
9fe2a62cc4
ffmpeg: move non monotone prevention code down
...
This moves the code to after the bitstream filters
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
49ec4c7e49
ffmpeg: fix segfault with random output
...
Found-by: <durandal_1707>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
b1cc12d0e3
ffmpeg: make -aspect work with -vcodec copy.
12 years ago
Stefano Sabatini
f6c9a325b7
ffmpeg: show error message in case of av_buffersrc_add_frame_flags() failure
12 years ago
Stefano Sabatini
270217908b
ffmpeg: update error message, and make use of av_err2str() to simplify
12 years ago
Michael Niedermayer
6a78ec180e
ffmpeg: print frame decoding error statistic
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
eedcac68f3
ffmpeg: dont exit 0 if fewer than 1/3 of the input could be decoded.
...
Fixes Ticket2405
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
de38e7c8c3
ffmpeg: use a rational for -aspect option.
12 years ago
Carl Eugen Hoyos
1c0d8f2563
Add a work-around for msvc compilation until c99-to-c89 issue 7 is fixed.
...
Tested-by: Nevcairiel
12 years ago
Michael Niedermayer
356363c898
ffmpeg: Fix forcing of the framerate for stream copy on input
...
Fixes Ticket2211
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
f7a02d5d69
ffmpeg: initialize got_output, this silences a compiler warning from icc
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Thierry Foucu
fcf73f9c01
Call do_video_stats when duplicating frame
...
When multiple frame are encoded during vsync, current code only
do_video_stats once. This need to do it every frame.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
4c1f61b1e8
ffmpeg: Correct inter stream timestamp discontinuities
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
4257b804e2
ffmpeg: Replace -deinterlace (which was broken by the buffer ref stuff) with yadif injection
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
6a90f6d789
ffmpeg: fix freeing of sub2video frame.
12 years ago
Carl Eugen Hoyos
e4f5aa5e8d
Inform the user if a pix_fmt != yuv420p was chosen for x264 encoding.
12 years ago
Michael Niedermayer
b1a9a2c4ff
ffmpeg: remove unused variable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
fb14e37dd0
ffmpeg: re-enable use of buffersrc flags.
...
AV_BUFFERSRC_FLAG_PUSH is necessary to detect closed streams.
12 years ago
Nicolas George
f9b34b8bf9
ffmpeg: port sub2video to AVFrame.
...
And re-enable the FATE test.
12 years ago
Nicolas George
4e7c61b7a7
ffmpeg: do not give away our reference to the frame.
...
Note: the logic here is temporary until the updates to
ffmpeg.c are merged.
12 years ago
Carl Eugen Hoyos
199db97fbd
Close output codecs if input codec initialisation fails.
...
Fixes ticket #1546 and the remaining part of ticket #1244 .
12 years ago
Ronald S. Bultje
2cffe38df3
Deprecate deinterlaced in libavcodec.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
9af8179cdb
ffmpeg: fix -stats -v 0
...
Fixes Ticket1687
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
4ae74c6312
ffmpeg: print maxrss "-benchmark" data even on errors
...
Fixes Ticket2297
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
e20f2dc048
ffmpeg: fix variable name in psnr printing code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
f102c24d90
ffmpeg: free last sub when using -fix_sub_duration.
...
Fix trac ticket #2242 .
Note: under valid circumstances, when using -fix_sub_duration,
the last subtitle is a dummy termination packet, with no
allocated memory.
12 years ago
Michael Niedermayer
ad899522ff
ffmpeg: use a AVDictionary instead of the context to move swr parameters around
...
This avoids per parameter changes in ffmpeg at the cost of making access
somewhat more annoying.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
c3fb20bab4
ffmpeg: Check for parameter changes at the output of the audio filter graph
...
It is currently possible that such changes leak through from the decoder as
well as a filter could generate such changes itself.
This commit blocks such changed packets unless the encoder declares support.
Fixes out of array reads
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
3b1f037df5
ffmpeg: fix streamcopy of lsf mp3.
...
Fixes streamcopy of bear_mpeg4_mp3.avi
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
127ff88639
ffmpeg: do not call exit from exit_program()
...
This should fix Ticket2116
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago