Anton Khirnov
c9af832623
avconv: set encoder timebase for subtitles.
...
The actual number (1/1000) will probably require some
discussion/tweaking in the future, but should be good enough for now,
since the timestamps in AVSubtitle are in this timebase by definition.
13 years ago
Anton Khirnov
324fbadff9
avconv: remove debugging cruft from do_video_out().
13 years ago
Anton Khirnov
61a099680c
avconv: factorize setting stream_index for the output packet.
13 years ago
Anton Khirnov
d7edd359ec
avconv: deprecate the -deinterlace option
...
Its quality is horrible, yadif should always be used instead.
13 years ago
Mans Rullgard
3715d841a6
Fix non-C89 declarations in for loops
...
Some compilers still do not support this syntax.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Diego Biurrun
abe655a472
Drop unnecessary prefix from *sink* variable and struct names.
13 years ago
Janne Grunau
2473a45c85
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.
13 years ago
Diego Biurrun
45f2908d02
cosmetics: Rename ffsink to avsink.
13 years ago
Anton Khirnov
9993284793
avconv: fix -frames for video encoders with delay.
...
Frames must be counted when they are passed to the encoder, not when
they come out.
Fixes Bug 202.
13 years ago
Justin Ruggles
ee458cb1fa
avconv: use avcodec_encode_audio2()
13 years ago
Anton Khirnov
b2ce3b998b
avconv: use AVFrame.width/height/format instead of corresponding AVCodecContext fields
13 years ago
Anton Khirnov
ac64607682
avconv: reinitialize the filtergraph on resolution change.
...
This is a hopefully temporary solution until lavfi can properly deal
with resolution changes.
13 years ago
Anton Khirnov
7b9373db89
avconv: fix -copyinkf.
...
This option only applies to streamcopy, but is currently processed only
when encoding.
13 years ago
Anton Khirnov
e8c04f6240
avconv: add symbolic names for -vsync parameters
13 years ago
Anton Khirnov
c88d53199b
avconv: remove the 'codec framerate is different from stream' warning
...
Codec timebase is not framerate and the situation when it's different
from AVStream.r_frame_rate is quite common, nothing to warn about.
13 years ago
Anton Khirnov
f15f02c204
avconv: make -frames work for all types of streams, not just video.
13 years ago
Janne Grunau
1135a07146
avconv: free bitstream filters
13 years ago
Aneesh Dogra
7636c8c6a3
avconv: K&R cosmetics
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Anton Khirnov
04a14d4d25
avconv: avoid memcpy in vsrc_buffer when possible.
...
Decoding Sintel.2010.1080p.mkv with 4 threads on an i7 2600K goes from
260s to 244s.
13 years ago
Anton Khirnov
64dca32cdf
avconv: implement get_buffer()/release_buffer().
...
This will allow memcpy-free passing frames to lavfi.
13 years ago
Alex Converse
4bf3c8f226
mov: Don't stick the QuickTime field ordering atom in extradata.
...
The 'fiel' atoms can be found in H.264 tracks clobbering the extradata.
MJPEG supports non field based extradata, and this data should be
preserved when copying.
13 years ago
Alexandra Khirnova
a7b5e841ff
avconv: support stream specifiers in -metadata and -map_metadata
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Anton Khirnov
cd3716b9aa
Replace all uses of av_close_input_file() with avformat_close_input().
13 years ago
Janne Grunau
f6cf4be821
avconv: update -map option help text
13 years ago
Diego Biurrun
da9cea77e3
Fix a bunch of common typos.
13 years ago
Anton Khirnov
5bf6638022
avconv: drop code for special handling of avserver streams.
...
It's broken and doesn't work anyway.
This patch means that avconv will ignore encoding options from the ffm
file and will instead use whatever is provided on the commandline as for
normal output.
13 years ago
Luca Barbato
f75e3d25d0
avconv: remove unsubstantiated comment
...
All the currently supported OS-es manage to use return values
properly.
13 years ago
Justin Ruggles
9179f27c64
avconv: only allocate 1 AVFrame per input stream
...
This avoids allocating/freeing an AVFrame for each packet decode. It also
simplifies error handling in transcode_audio() and transcode_video().
13 years ago
Justin Ruggles
110d2af28e
avconv: fix memleaks due to not freeing the AVFrame for audio
13 years ago
Justin Ruggles
d1241ff3b2
avconv: use avcodec_decode_audio4() instead of avcodec_decode_audio3()
13 years ago
Mans Rullgard
150ddbc148
Do not memcpy raw video frames when using null muxer
...
Commit 035af99
made avconv always call an encoder when using the
null muxer. While useful for 2-pass encodes, it inadvertently
caused an extra memcpy of raw frames when decoding only.
This hack restores the old behaviour when only decoding while
allowing use of the null muxer with encoded streams as well.
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Anton Khirnov
7bb3e62594
avconv: make copy_tb on by default.
...
I.e. on streamcopy set output codec timebase from input stream timebase
(as opposed to input codec timebase). This should be more sane, because
since the stream is not decoded, the input codec tb has no relation to
the timestamps of the copied packets.
13 years ago
Anton Khirnov
741a05a293
avconv: compute next_pts from input packet duration when possible.
13 years ago
Anton Khirnov
91b412e786
avconv: update InputStream.pts in the streamcopy case.
...
This was broken in 2a651b719c
.
13 years ago
Alex Converse
fdab793a46
avconv: Handle audio sync for non-S16 sample formats.
...
Also fix reporting of the number of samples added/dropped.
13 years ago
Janne Grunau
aa38cff2c6
avconv: fix segfault at EOF with delayed pictures
...
At EOF it makes no sense to modify avpkt.{data,size} in output_packet
since no data is consumed. Frame threading with more than 1 threads
hits the segfault.
13 years ago
Anton Khirnov
06d4e2fa5a
avconv: remove a now unused parameter from output_packet().
13 years ago
Anton Khirnov
8b0268a853
avconv: formatting fixes in output_packet()
13 years ago
Anton Khirnov
ffa0674e5a
avconv: declare some variables in blocks where they are used
13 years ago
Anton Khirnov
af8ad892bf
avconv: use the same behavior when decoding audio/video/subs
...
I.e. if the packet was only partially consumed, pass the rest of it into
the decoder again.
Also simplify the code so it's the same for video/audio/subs.
13 years ago
Anton Khirnov
e1edfbcb24
avconv: use vsync 0 for AVFMT_NOTIMESTAMPS formats.
...
Prevent avconv from duplicating or dropping frames for formats where it
makes even less sense than usual, e.g. image2.
13 years ago
Alex Converse
105ab61c5f
avconv: Consistently use PIX_FMT_NONE.
...
Use PIX_FMT_NONE instead of -1 when dealing with PixelFormat variables.
13 years ago
Anton Khirnov
82963f8f04
avconv: cleanup the transcoding loop in output_packet().
13 years ago
Anton Khirnov
9595234c94
avconv: split subtitle transcoding out of output_packet().
13 years ago
Anton Khirnov
45d4b66f6f
avconv: split video transcoding out of output_packet().
13 years ago
Anton Khirnov
ded28ba35b
avconv: split audio transcoding out of output_packet().
13 years ago
Anton Khirnov
78162b4ea2
avconv: reindent.
13 years ago
Anton Khirnov
2a651b719c
avconv: move streamcopy-only code out of decoding loop.
13 years ago
Anton Khirnov
51aeb69452
avconv: remove an always true condition and reindent.
13 years ago
Anton Khirnov
7204ec1a88
avconv: split off streamcopy handling into a separate loop.
...
This is easier to understand and is less likely to break horribly when a
stream is to be both decoded and copied.
13 years ago