summaryrefslogtreecommitdiff
path: root/avconv.c
Commit message (Collapse)AuthorAge
* avconv: Drop unused function argument from do_video_stats()Diego Biurrun2012-10-29
|
* avconv: fix bitrate report when writing to /dev/nullJanne Grunau2012-10-25
| | | | | | | avio_size() reports the filesize which returns 0 for /dev/null. avio_tell() reports the current position. Also handle errors from avio_tell().
* avconv: remove now unneeded calls to avcodec_get_frame_defaults().Anton Khirnov2012-10-24
|
* Include sys/time.h before sys/resource.hMans Rullgard2012-10-23
| | | | | | | Some systems require sys/time.h being explicitly included before sys/resource.h. The configure check already does this. Signed-off-by: Mans Rullgard <mans@mansr.com>
* avcodec: handle AVERROR_EXPERIMENTALNathan Caldwell2012-10-21
| | | | | | | | | | Error out on init if a codec with CODEC_CAP_EXPERIMENTAL is requested and strict_std_compliance is not FF_COMPLIANCE_EXPERIMENTAL. Move the check from avconv to avcodec_open2() and return AVERROR_EXPERIMENTAL accordingly. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* De-doxygenize some top-level filesDiego Biurrun2012-10-12
|
* avconv: remove -same_quantAnton Khirnov2012-10-09
| | | | | | | It has not worked for anything other than fringe codecs (asv1/2, mdec, mjpeg[b]) since about 2003 and nobody ever noticed or complained. This sufficiently proves that there are no users of this option who have a clue of what they are doing, so it is completely useless.
* avconv/avprobe: Add missing 'void' to exit_program() definitionDiego Biurrun2012-10-03
|
* Use atexit() instead of defining a custom exit_program() interface.Diego Elio Pettenò2012-10-01
|
* avconv: improve sample format negotiation for decoder requestJustin Ruggles2012-10-01
| | | | | This takes into account planar vs. packed when comparing to find the closest sample format match.
* Use avcodec_free_frame() to free AVFrames.Anton Khirnov2012-09-24
|
* avconv: flush filtered frames before reconfiguring filtersJanne Grunau2012-09-17
| | | | This prevents lost frames after a resolution change.
* avtools: remove the distinction between func_arg and func2_arg.Anton Khirnov2012-08-30
| | | | | | func2_arg is the same as func_arg, except it has one additional parameter. Change all func_arg callbacks to take that parameter (and ignore it).
* avconv: make the -passlogfile option per-stream.Anton Khirnov2012-08-30
|
* avconv: prefer user-forced input framerate when choosing output framerateAnton Khirnov2012-08-26
|
* avconv: make -shortest a per-output file option.Anton Khirnov2012-08-18
|
* Use log2(x) instead of log(x) / log(2)Mans Rullgard2012-08-13
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avconv: allow no input files.Anton Khirnov2012-08-08
| | | | It is now possible to use lavfi sources.
* avconv: prevent invalid reads in transcode_init()Anton Khirnov2012-08-08
|
* avconv: rename OutputStream.is_past_recording_time to finished.Anton Khirnov2012-08-08
| | | | | The new name is shorter and more accurate, since this variable is no longer used only for checking recording time constraint.
* avconv: split the code for processing input packets out of transcode()Anton Khirnov2012-08-08
|
* avconv: send EOF to lavfi even if flushing the decoder failsAnton Khirnov2012-08-08
|
* avconv: get rid of pointless temporary variable.Anton Khirnov2012-08-08
|
* avconv: simplify transcode().Anton Khirnov2012-08-08
| | | | Operate with a pointer to InputFile instead of its index in input_files.
* avconv: cosmeticsAnton Khirnov2012-08-08
| | | | | Replace for (;foo == 0;) with while (!foo) This is prettier.
* avconv: replace no_packet array in transcode() with a var in InputStreamAnton Khirnov2012-08-08
| | | | | This simplifies splitting code for reading from input out of transcode().
* avconv: remove commented out cruft.Anton Khirnov2012-08-08
|
* avconv: maintain sync on lavfi outputs.Anton Khirnov2012-08-08
| | | | | | | | | | Before this commit, poll_filters() reads all frames available on each lavfi output. This does not work for lavfi sources that produce an unlimited number of frames, e.g. color and similar. With this commit, poll_filters() reads from output with the lowest timestamp and returns to wait for more input if no frames are available on it.
* avconv: split configuring filter configuration to a separate file.Anton Khirnov2012-08-08
|
* avconv: split option parsing into a separate file.Anton Khirnov2012-08-08
|
* Replace all CODEC_ID_* with AV_CODEC_ID_*Anton Khirnov2012-08-07
|
* rational: add av_inv_q() returning the inverse of an AVRationalMans Rullgard2012-08-05
| | | | | | This allows simplifying a few expressions. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf: deprecate r_frame_rate.Anton Khirnov2012-07-29
| | | | | | | | | | | | | | | | | | | | According to its description, it is supposed to be the LCM of all the frame durations. The usability of such a thing is vanishingly small, especially since we cannot determine it with any amount of reliability. Therefore get rid of it after the next bump. Replace it with the average framerate where it makes sense. FATE results for the wtv and xmv demux tests change. In the wtv case this is caused by the file being corrupted (or possibly badly cut) and containing invalid timestamps. This results in lavf estimating the framerate wrong and making up wrong frame durations. In the xmv case the file contains pts jumps, so again the estimated framerate is far from anything sane and lavf again makes up different frame durations. In some other tests lavf starts making up frame durations from different frame.
* avprobe/avconv: fix tentative declaration compile errors on MSVS.Ronald S. Bultje2012-07-28
|
* avconv: print an error message when demuxing fails.Anton Khirnov2012-07-17
| | | | | | Also exit in such a case if -xerror is used. Fixes bug 329.
* avconv: propagate fatal errors from lavfi.Anton Khirnov2012-07-09
|
* avconv: use only meaningful timestamps in start time check.Anton Khirnov2012-07-06
|
* avconv: fix the check for -ss as an output option.Anton Khirnov2012-07-06
| | | | | start time is already substracted from the frame timestamp, so it needs to be checked against 0, not start time.
* avconv: fix parsing of -force_key_frames option.Reimar Döffinger2012-07-05
| | | | | | | Currently it always exits with an error when more than one position is specified. CC: libav-stable@libav.org
* avconv: Set audio filter time base to the sample rateMartin Storsjö2012-07-05
| | | | | | | | | | | | | | | | | If the output frame size is smaller than the input sample rate, and the input stream time base corresponds exactly to the input frame size (getting input packet timestamps like 0, 1, 2, 3, 4 etc), the output timestamps from the filter will be like 0, 1, 2, 3, 4, 4, 5 ..., leadning to non-monotone timestamps later. A concrete example is input mp3 data having frame sizes of 1152 samples, transcoded to aac with 1024 sample frames. By setting the audio filter time base to the sample rate, we will get sensible timestamps for all output packets, regardless of the ratio between the input and output frame sizes. Signed-off-by: Martin Storsjö <martin@martin.st>
* cmdutils: Pass the actual chosen encoder to filter_codec_optsMartin Storsjö2012-06-30
| | | | | | | This allows passing the right options to encoders when there's more than one encoder for a certain codec id. Signed-off-by: Martin Storsjö <martin@martin.st>
* avconv: add an assert to silence an uninitialized variable warning.Anton Khirnov2012-06-26
| | | | | | | The warning silenced was: avconv.c: In function ‘opt_output_file’: avconv.c:3380:21: warning: ‘meta_out’ may be used uninitialized in this function [-Wuninitialized] avconv.c:3315:20: note: ‘meta_out’ was declared here
* avconv: shut up an uninitialized variable warning.Anton Khirnov2012-06-26
| | | | | | | The warning silenced was: avconv.c: In function ‘configure_filtergraph’: avconv.c:603:8: warning: ‘ist’ may be used uninitialized in this function [-Wuninitialized] avconv.c:549:18: note: ‘ist’ was declared here
* avconv: don't include vsrc_buffer.h, which doesn't exist anymoreAnton Khirnov2012-06-26
|
* avconv: fix -force_key_framesAnton Khirnov2012-06-26
| | | | | parse_forced_keyframes() relies in encoder timebase being set, so call it from transcode_init() after it is known.
* avconv: remove a forgotten debugging printf.Anton Khirnov2012-06-24
|
* avconv: use more descriptive names for hardcoded filters.Anton Khirnov2012-06-24
| | | | | | Also ensure that all such filters get a non-NULL name. Should fix FATE failures on some architectures after 58b049f2fa4f192b00baadb5f1f32ca366f936ea.
* avconv: remove redundant handling of async.Anton Khirnov2012-06-24
| | | | | | Because of a mistake during merging the code for simple and complex filtergraphs, -async inserts an asyncts filter both on input and output. Remove the output hunk.
* Replace usleep() calls with av_usleep()Mans Rullgard2012-06-22
| | | | | | | This reduces the dependency on unistd.h which is not available on all systems. Signed-off-by: Mans Rullgard <mans@mansr.com>
* Remove unnecessary inclusions of [sys/]time.hMans Rullgard2012-06-20
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>