Michael Niedermayer
66244baf1d
ffmpeg: fix mixed declarations and statements.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
d92073ac93
ffmpeg: Correct starttime based on non discarded streams.
...
Fixes Ticket1830
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
fe97bf60b8
ffmpeg: minor simplification of wraping code
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Tim Nicholson
dcbf72836c
ffmpeg: add setting of field_order flag
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
3a0f3ffe8e
ffmpeg: fix weird reindent
12 years ago
Stefano Sabatini
02b4ae0427
ffmpeg: print debug_ts off and off_time values with timestamp helper routines
12 years ago
Peter Ross
9ccc349f77
ensure comment blocks that contain doxygen commands start with double asterix
...
Reveiwed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Stefano Sabatini
3d52083a27
ffmpeg: rework debugging timestamp logs in process_input()
...
Print timestamps before and after ffmpeg timestamp postprocessing.
Help to debug how ffmpeg processes the input timestamps.
12 years ago
Michael Niedermayer
9f088712d4
ffmpeg: fix double ;;
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
9406d6be55
ffmpeg: fix audio timestamps on stream copy with -ss
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Thierry Foucu
98cbbabadb
Fix the packet duration when flushing the encoder.
...
A similar patch was posted by Justin Ruggles <justin.ruggles@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
1909dbf11d
ffmpeg: use av_rescale_delta() for audio stream copy
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
a9d97e1b0a
ffmpeg: use av_rescale_delta() on the audio filter input
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
03e44bcb3f
ffmpeg: trivial simplification
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
fa48da1ee9
ffmpeg: fix null ptr deref in psnr printing code
...
Fixes CID205005
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
3318d6b940
ffmpeg: check avpicture_get_size() retuen value
...
Fixes CID205018
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
22793d7bb3
ffmpeg/lavc: move experimental warnings to libavcodec.
...
This way they are available to all applications and not just ffmpeg
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
3e0b29ccd0
ffmpeg: Make video filter graph reinit user selectable
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
8f0168a3b9
fix exit_program() prototypes
...
This fixes 2 warnings
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
44ae7badae
ffmpeg: print muxed packet sizes in debug output too
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
The makemkv authors
89a823ace9
ffmpeg: disable buffering for stderr, needed for win32 runtime
...
Found in http://www.makemkv.com/download/ffmpeg/mmffmpeg-1.7.7.patch.gz
Commit message by commiter
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
65f7aee63b
ffmpeg: add option to control copying of frames prior to start.
...
Normally we discard things prior to the intended start
for stream copy this is not always possible, and its not done by default
this option allows discarding to be enabled
this is primarely usefull when transcoding a video and stream copying an
audio stream.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
cddbafb56a
ffmpeg: allow printing muxer side packet timestamp debuging info
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Clément Bœsch
4390f8c28d
Fix two "skiping" typo.
12 years ago
Clément Bœsch
405ee405c9
ffmpeg: complete mov/mp4 based timebase hack with "f4v" format.
12 years ago
Nicolas George
a9e4817716
ffmpeg: use PTS from the AVSubtitle structure for sub2video.
12 years ago
Nicolas George
6d8b32633e
ffmpeg: use PTS from the AVSubtitle structure.
12 years ago
Nicolas George
1b9a251438
ffmpeg: call sub2video_update for end packets.
...
Without that change, all subtitles will stay until the next one.
12 years ago
Derek Buitenhuis
23a5a24c0f
ffmpeg: Only include unistd.h if it exists
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
5829b7d29e
ffmpeg: check timebase validity before considering it to be used for stream copy
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
f0d5050090
ffmpeg: fix bytes written statistics.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
a9b1a151d2
ffmpeg: count finished streams for last stats line.
...
Otherwise, all streams are finished and the time is nonsensical.
12 years ago
Nicolas George
18217bb0f5
ffmpeg: report max time of unfinished streams in stats.
...
Eliminating finished streams avoids the progress stopping
with the first stream.
Using the max instead of the min avoids the progress stopping
with gaps in sparse streams (subtitles).
Negligible change for normal circumstances.
12 years ago
Michael Niedermayer
91c18beb9d
ffmpeg: fix wrap correction code.
...
The code failed with negative timestamps due to using unsigned numbers
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
8b61abac2e
ffmpeg: use close_output_stream more systematically.
12 years ago
Nicolas George
666fd092be
ffmpeg: move close_output_stream earlier.
...
It will avoid a forward declaration.
12 years ago
Nicolas George
425b77114b
ffmpeg: make decoding_needed a counter.
12 years ago
Nicolas George
ac07f941ae
ffmpeg: use AV_BUFFERSRC_FLAG_PUSH.
...
It reduces the lifespan of buffers in filter graphs,
and therefore the memory consumption.
12 years ago
Nicolas George
dcae2ecc13
ffmpeg: remove useless flags to EOF av_buffersrc_add_ref.
12 years ago
rogerdpack
d0b68a9d57
fix spelling
...
Signed-off-by: rogerdpack <rogerpack2005@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
13b965ead4
ffmpeg: reindent after last commit.
12 years ago
Nicolas George
429c6cab1c
ffmpeg: reduce differences with avconv for in/out scheduling.
...
Rework the transcode() function and its immediate annexes to have
the same structure as in avconv, while still maintaining proper
scheduling to avoid accumulation.
Using -filter_complex without inputs now works.
12 years ago
Michael Niedermayer
af5086087e
ffmpeg: Clip invalid video timestamps like audio instead of failing hard.
...
Fixes Ticket976
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
690ef618b1
ffmpeg: copy subtitles frame dimensions.
...
The sub-movtextenc ref file changes because the dimensions
(400×60) are stored by the format.
12 years ago
Nicolas George
0cad101ea1
ffmpeg: add an option to fix subtitles durations.
...
With this option, transcoding DVB subtitles becomes possible.
12 years ago
Michael Niedermayer
c5ea3a009b
ffmpeg: Do not discard slightly invalid timestamps.
...
Fixes Ticket1627
The fate change is due to ffmpeg no longer pushing audio timestamps
aggressively up (which is what caused the AV sync issues in the ticket)
but leaving them as they are.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
969267482d
ffmpeg: Allocate new buffer for bitstream filter when buffer shifted
...
fix crash with aac_adtstoasc bitstream filter
Fixes Ticket1441
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Michael Niedermayer
fc97f8e0e2
ffmpeg: factorize process_input() out
...
Based-on:
commit 0c00fd80ee
Author: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Nicolas George
aed032c25b
dvbsub: fix encoding of termination packets.
...
The old code generates a termination packet with the same regions as the
start packet and page_state set to "only what changed"; the result is
that the termination packet is decoded as identical to the start packet.
The new code does as found in some DVB broadcasts: produce a packet with
no regions. This is done by expecting num_rects to be 0 rather than
using a flip-flop. ffmpeg.c is updated accordingly.
12 years ago
Michael Niedermayer
2cdb0810f1
ffmpeg: reduce difference to qatar by a few lines
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago