summaryrefslogtreecommitdiff
path: root/avconv.c
Commit message (Collapse)AuthorAge
* avconv: remove pointless checks.Anton Khirnov2012-03-15
| | | | | OutputStream.picref is guaranteed to be non-NULL if get_filtered_video_frame() succeeds.
* avconv: check for get_filtered_frame() failure.Anton Khirnov2012-03-15
|
* avconv: remove a pointless check.Anton Khirnov2012-03-15
| | | | | output_video_filter is always guaranteed to be set and is in fact dereferenced right above the check.
* avconv: reindentAnton Khirnov2012-03-13
| | | | CC: libav-stable@libav.org
* avconv: link '-passlogfile' option to libx264 'stats' AVOption.Anton Khirnov2012-03-13
| | | | | | Fixes bug 204. CC: libav-stable@libav.org
* avconv: add -cpuflags option for setting supported cpuflags.Anton Khirnov2012-03-06
| | | | Useful for testing.
* avconv: fix counting encoded video size.Anton Khirnov2012-03-06
| | | | | avcodec_encode_video2() return value is 0 on success, encoded frame size is stored in the packet.
* avconv: set discard on input streams automatically.Anton Khirnov2012-02-26
|
* avconv: saner output video timebase.Anton Khirnov2012-02-26
| | | | | | | | | | r_frame_rate should in theory have something to do with input framerate, but in practice it is often made up from thin air by lavf. So unless we are targeting a constant output framerate, it's better to just use input stream timebase. Brings back dropped frames in nuv and cscd tests introduced in cd1ad18a6539bd7fc2dc4c1740fbcbd498c0c0a2
* avconv: refactor vsync code.Anton Khirnov2012-02-26
| | | | No functional changes, just make it more readable.
* bethsoftvid: pass palette in side data instead of in a separate packet.Justin Ruggles2012-02-16
| | | | | | Update FATE reference to account for now non-existent palette packet. This also fixes the FATE test if frame data is not initialized in get_buffer(), so update comment in avconv accordingly.
* avconv: Don't split out inline sequence headers when stream copying VC1Martin Storsjö2012-02-14
| | | | | | | | This is required when stream copying VC1 in ismv - there's one global header in the moov atom, but keyframes have a separate sequence header prepended. Signed-off-by: Martin Storsjö <martin@martin.st>
* avconv: set AVFormatContext.duration from '-t'Andrey Utkin2012-02-12
| | | | | | | | Set output files duration to recording_time option, if given. Rationale: to save duration into metadata for file that is written to non-seekable output, for formats like FLV (with metadata at beginning). Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avcodec: for audio encoding, set packet dts to packet pts.Justin Ruggles2012-02-09
| | | | There are no audio encoders which do frame reordering.
* avconv: switch to avcodec_encode_video2().Anton Khirnov2012-02-08
|
* avconv: estimate next_dts from framerate if it is set.Anton Khirnov2012-02-07
|
* avconv: better next_dts usage.Anton Khirnov2012-02-07
| | | | | | | | next_dts is used for estimating the dts of the next packet if it's missing. Therefore, it makes no sense to set it from the pts of the last decoded frame. Also it should be estimated from the current packet duration/ticks_per_frame always, not only when a frame was successfully decoded.
* avconv: rename InputStream.pts to last_dts.Anton Khirnov2012-02-07
| | | | It more accurately describes what does this variable store.
* avconv: reduce overloading for InputStream.pts.Anton Khirnov2012-02-07
| | | | | | It currently has different meanings at different times (dts of the last read packet/pts of the last decoded frame). Reduce obfuscation by storing pts of the decoded frame in the frame itself.
* avconv: rename InputStream.next_pts to next_dts.Anton Khirnov2012-02-07
| | | | It's used to predict dts, not pts.
* avconv: rework -t handling for encoding.Anton Khirnov2012-02-07
| | | | | | | | | | | | | Current code compares the desired recording time with InputStream.pts, which has a very unclear meaning. Change the code to use actual timestamps of the frames passed to the encoder. In several tests, one less frame is encoded, which is more correct. In the idroq test one more frame is encoded, which is again more correct. Behavior with stream copy should be unchanged.
* avconv: set encoder timebase for subtitles.Anton Khirnov2012-02-07
| | | | | | 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.
* avconv: remove debugging cruft from do_video_out().Anton Khirnov2012-02-03
|
* avconv: factorize setting stream_index for the output packet.Anton Khirnov2012-02-03
|
* avconv: deprecate the -deinterlace optionAnton Khirnov2012-01-30
| | | | Its quality is horrible, yadif should always be used instead.
* Fix non-C89 declarations in for loopsMans Rullgard2012-01-29
| | | | | | Some compilers still do not support this syntax. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Drop unnecessary prefix from *sink* variable and struct names.Diego Biurrun2012-01-25
|
* threads: change the default for threads back to 1Janne Grunau2012-01-21
| | | | | | 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.
* cosmetics: Rename ffsink to avsink.Diego Biurrun2012-01-19
|
* avconv: fix -frames for video encoders with delay.Anton Khirnov2012-01-17
| | | | | | | Frames must be counted when they are passed to the encoder, not when they come out. Fixes Bug 202.
* avconv: use avcodec_encode_audio2()Justin Ruggles2012-01-15
|
* avconv: use AVFrame.width/height/format instead of corresponding ↵Anton Khirnov2012-01-12
| | | | AVCodecContext fields
* avconv: reinitialize the filtergraph on resolution change.Anton Khirnov2012-01-10
| | | | | This is a hopefully temporary solution until lavfi can properly deal with resolution changes.
* avconv: fix -copyinkf.Anton Khirnov2012-01-10
| | | | | This option only applies to streamcopy, but is currently processed only when encoding.
* avconv: add symbolic names for -vsync parametersAnton Khirnov2012-01-04
|
* avconv: remove the 'codec framerate is different from stream' warningAnton Khirnov2012-01-02
| | | | | Codec timebase is not framerate and the situation when it's different from AVStream.r_frame_rate is quite common, nothing to warn about.
* avconv: make -frames work for all types of streams, not just video.Anton Khirnov2012-01-01
|
* avconv: free bitstream filtersJanne Grunau2012-01-01
|
* avconv: K&R cosmeticsAneesh Dogra2011-12-29
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avconv: avoid memcpy in vsrc_buffer when possible.Anton Khirnov2011-12-25
| | | | | Decoding Sintel.2010.1080p.mkv with 4 threads on an i7 2600K goes from 260s to 244s.
* avconv: implement get_buffer()/release_buffer().Anton Khirnov2011-12-25
| | | | This will allow memcpy-free passing frames to lavfi.
* mov: Don't stick the QuickTime field ordering atom in extradata.Alex Converse2011-12-21
| | | | | | 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.
* avconv: support stream specifiers in -metadata and -map_metadataAlexandra Khirnova2011-12-16
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* Replace all uses of av_close_input_file() with avformat_close_input().Anton Khirnov2011-12-12
|
* avconv: update -map option help textJanne Grunau2011-12-12
|
* Fix a bunch of common typos.Diego Biurrun2011-12-11
|
* avconv: drop code for special handling of avserver streams.Anton Khirnov2011-12-10
| | | | | | | | 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.
* avconv: remove unsubstantiated commentLuca Barbato2011-12-08
| | | | | All the currently supported OS-es manage to use return values properly.
* avconv: only allocate 1 AVFrame per input streamJustin Ruggles2011-12-05
| | | | | This avoids allocating/freeing an AVFrame for each packet decode. It also simplifies error handling in transcode_audio() and transcode_video().
* avconv: fix memleaks due to not freeing the AVFrame for audioJustin Ruggles2011-12-05
|