Michael Niedermayer
e377208d43
ffmpeg: dont copy creation_time as the destination file is not created at that time
...
Fixes Ticket1439
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Stefano Sabatini
43583fb85c
lavfi/avcodec: deprecate avfilter_fill_frame_from_*_buffer_ref API
...
Deprecate functions:
avfilter_fill_frame_from_buffer_ref
avfilter_fill_frame_from_audio_buffer_ref
avfilter_fill_frame_from_video_buffer_ref
and schedule to drop them at the next API major bump.
The function avfilter_copy_buf_props() should be used instead.
13 years ago
Michael Niedermayer
fbf03ee391
ffmpeg: fix indent of 1 line
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
da728d5d2e
ffmpeg: fix FF_API_OLD_VSINK_API=0 case
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
caf7381d50
ffmpeg: fix mixup of old and new sinks
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
492cc9bcc4
ffmpeg: remove unused buffer_size in InputFile.
13 years ago
Michael Niedermayer
2fa5d8f234
ffmpeg: print swr options in --help too
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
8c3514647e
ffmpeg.c: count subtitles in total size.
...
This avoids the "Output file is empty" warning
with subtitles-only files.
13 years ago
Michael Niedermayer
9ec5e956a2
ffmpeg: disable threading on mingw, it doesnt work due to dependance on internal code.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
0478d5f9fe
ffmpeg: allow overriding framerate for stream copy
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
eae983f4ff
ffmpeg: fix fate breakage introduced by key=value buffersrc args.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
6fef82f22d
ffmpeg: with filter_complex, avoid random in<->out mapping.
...
With complex filters, an output can come from any input,
or several inputs, including inputs of a different type.
Copying the codec parameters from the first input with
the same type does not make any sense.
This does not change anything for simple 1->1 filters,
as source_index is set in that case.
13 years ago
Nicolas George
fbaa8fe6c6
ffmpeg: init icodec.
...
With complex filter graphs, it can end up accessed
without having been set.
13 years ago
Nicolas George
8362d734a3
ffmpeg: use the frame rate computed by lavfi.
...
This frame rate is more reliable than the one copied
from the input stream, so it is used in priority.
13 years ago
Nicolas George
5f281e94ba
ffmpeg: add frame rate to the buffersrc arguments.
...
The arguments now use the key=value syntax.
13 years ago
Mike Scheutzow
1be7bfdd2b
ffmpeg.c: fix erroneous "Output file is empty" message.
...
This message is printed whenever the RAWVIDEO codec is used, whether the
output file contains any frames or not. Test command:
./ffmpeg -i infile.y4m outfile.y4m
Signed-off-by: Mike Scheutzow <mjs973@optonline.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Nicolas George
25e87fc5f6
ffmpeg: move keyboard interaction in a function.
...
It makes the transcode loop easier to read (30% less code)
and the differences with avconv easier to spot.
13 years ago
Philip Langdale
92c065f93f
ffmpeg: Set duration on encoded subtitle packets.
...
Currently, we don't set the duration on the packet of a newly
encoded subtitle. This information may be required by the
muxer.
Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Reimar Döffinger
93147daf59
ffmpeg: avoid a confusing and easy to break if().
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c8a11014b6
ffmpeg: use isatty() before messing with the terminal state
...
This fixes terminal messup in case of crashes (like in make fate)
Reviewed-by: François Revol <revol@free.fr>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
df03ae8dd8
ffmpeg: remove two unused variables.
13 years ago
Michael Niedermayer
02ff89a1cd
ffmpeg: disable audio volume insertion on the output side.
...
This fixes -vol leading to 2 inserted volume filters
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
c790ae0265
ffmpeg: add missing return carriage in error message.
13 years ago
Clément Bœsch
6b35f1a2a6
timecode: move timecode muxer options to metadata.
...
Some demuxers set a timecode in the format or streams metadata. The
muxers now make use of this metadata instead of a duplicated private
option.
This makes possible transparent copy of the timecode when transmuxing
and transcoding.
-timecode option for MPEG1/2 codec is also renamed to -gop_timecode. The
global ffmpeg -timecode option will set it anyway so no option change
visible for the user.
13 years ago
Stefano Sabatini
f1add01d98
ffmpeg: be more verbose when printing an error in transcode()
...
Helps debuggability.
13 years ago
Stefano Sabatini
6a9854e8f4
ffmpeg: specify more meaningful names for the lavfi buffer sources
13 years ago
Nicolas George
8b0e173529
ffmpeg: use filter time base as codec time base.
13 years ago
Nicolas George
48b5bcb3dd
ffmpeg: avoid NULL dereference with filters.
...
icodec can be NULL if there is no input stream
clearly associated with the output stream.
13 years ago
Michael Niedermayer
d43812e235
ffmpeg: move pan filter insertion up.
...
This fixes one (disabled) fate test.
Thanks-to: ubitux to pointing at the odd filter order and stereo/mono messup
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
23b365f1c4
ffmpeg: fix memleak
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
60de761657
ffmpeg: allow overriding input top field first
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
96fe99cb11
ffmpeg: disable autoinsertion for -async on the output side of the filtergraph.
...
This fixes the issue that since the last merge -async caused 2 aresample
filters to be inserted
users that generate funny timestamps in a filtergraph should probably
manually insert a aresample filter where they need it.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
d187e7616e
ffmpeg: use %f instead of %lf in volume args format printf.
...
%f refers to a double argument already.
13 years ago
Clément Bœsch
d8e075b1a0
ffmpeg: use AUTO_INSERT_FILTER() for -async option.
13 years ago
Matthieu Bouron
432fe9a38a
ffmpeg: fix a crash with complex filters when pix_fmt is not specified
...
ffmpeg -i in.mxf -filter_complex "[0:0]fieldorder=tff" out.wav will
fail with an error message instead of crashing.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
318e395764
ffmpeg: drop get_sync_ipts() and drop related special case for video
...
Idea found in a commit from Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
cf9812d22b
ffmpeg: move setting big_picture.pts up
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
bf3dce6b59
ffmpeg: change AVFMT_RAWPICTURE pts to reduce diff to qatar
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
13c254a216
ffmpeg: random cosmectics to reduce diff to qatar
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9ce3d03fc2
ffmpeg: cosmetics to reduce difference to qatar by 101 lines
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3ba90d9e97
ffmpeg: cosmetics to reduce difference to qatar by about 90 lines
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
c53326afad
ffmpeg: move ost->frame_rate setting code before the filtergraph stuff
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
953df5d962
ffmpeg: drop pkt_pts
...
Reduces diff to qatar by 9 lines
Should not change anything
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
ef7ac8e8ec
ffmpeg: set the video filters timebase to the demuxers.
...
Inspired-by a change from Anton Khirnov
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
3cf5591344
ffmpeg: reintroducing check_recording_time()
...
This reduces the difference to qatar by 27 lines
No functional change, the code should be unused
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
8364cb9719
ffmpeg: fix uninitialized variable warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
9d30a96aa1
ffmpeg: inject a aresample filter for -async
...
Based on similar code from anton
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Clément Bœsch
eb945ab484
ffmpeg: misc cosmetics.
...
Reduce diff against avconv, and change some doxycomments into normal
comments (no point in doxifying ffmpeg internal fields).
13 years ago
Nicolas George
00be2f5726
ffmpeg: adapt to the buffersrc API changes.
13 years ago
Michael Niedermayer
48a40e09c4
ffmpeg: fix warning & bug for keep_pix_fmt
...
Found-by: ubitux
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago