summaryrefslogtreecommitdiff
path: root/ffmpeg.c
Commit message (Collapse)AuthorAge
* ffmpeg: get rid of a pointless limit on number of streams.Anton Khirnov2011-07-13
|
* ffmpeg: remove an unused define.Anton Khirnov2011-07-13
|
* lavf: deprecate AVFormatContext.timestampAnton Khirnov2011-07-12
| | | | It's replaced by 'creation_time' metadata tag.
* ffmpeg: merge input_files_ts_scale into InputStream.Anton Khirnov2011-07-12
|
* ffmpeg: don't abuse a global for passing sample format from input to outputAnton Khirnov2011-07-12
| | | | It's broken with multiple files or audio streams.
* ffmpeg: don't abuse a global for passing channel layout from input to outputAnton Khirnov2011-07-12
| | | | It's broken with multiple files or audio streams.
* ffmpeg: factor common code from new_a/v/s/d_stream to new_output_stream()Anton Khirnov2011-07-12
|
* ffmpeg: remove unused variables from InputStream.Anton Khirnov2011-07-08
|
* ffmpeg: remove pointless if (nb_input_files)Anton Khirnov2011-07-08
| | | | | It's required to be non-zero since cc58300e30e7aea6acfecd72a04a3886b285cfd8
* ffmpeg: merge input_files_ts_offset into input_files.Anton Khirnov2011-07-08
|
* ffmpeg: merge input_codecs into input_streams.Anton Khirnov2011-07-08
| | | | There's no point in keeping them separate.
* ffmpeg: drop AV prefixes from struct names.Anton Khirnov2011-07-08
| | | | Those are reserved for the libs.
* ffmpeg: deprecate loop_input and loop_output optionsAnton Khirnov2011-07-08
| | | | They were replaced by (de)muxer private options.
* lavf: deprecate AVStream.quality.Anton Khirnov2011-07-06
| | | | AVStream is no place for it and it's unused outside of ffmpeg anyway.
* Do not include mathematics.h in avutil.hMans Rullgard2011-07-03
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ffmpeg: use av_get_bytes_per_sample() in place of av_get_bits_per_sample_fmt()Stefano Sabatini2011-07-02
| | | | | | av_get_bits_per_sample_fmt() was deprecated. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Replace usages of av_get_bits_per_sample_fmt() with av_get_bytes_per_sample().Justin Ruggles2011-06-20
| | | | av_get_bits_per_sample_fmt() is deprecated.
* ffmpeg: deprecate -vc and -tvstdAnton Khirnov2011-06-16
| | | | They've been replaced by demuxer private options.
* ffmpeg: use new avformat_open_* API.Anton Khirnov2011-06-16
|
* ffmpeg: don't abuse a global for passing frame size from input to outputAnton Khirnov2011-06-16
| | | | It's broken with multiple files or video streams.
* ffmpeg: don't abuse a global for passing pixel format from input to outputAnton Khirnov2011-06-16
| | | | It's broken with multiple files or video streams.
* ffmpeg: initialise encoders earlier.Anton Khirnov2011-06-16
| | | | Fixes choosing supported samplerate and framerate.
* ffmpeg: merge output_codecs array into AVOutputStream members.Anton Khirnov2011-06-16
| | | | There's no point in keeping them separate.
* ffmpeg: don't abuse a global for passing framerate from input to outputAnton Khirnov2011-06-15
| | | | It's broken with multiple files or video streams.
* ffmpeg: don't abuse a global for passing channels from input to outputAnton Khirnov2011-06-15
| | | | It's broken with multiple files or audio streams.
* ffmpeg: don't abuse a global for passing samplerate from input to outputAnton Khirnov2011-06-15
| | | | | | | It's broken with multiple files or audio streams. This removes the default samplerate of 44100 for raw input, hence all the FATE changes.
* ffmpeg: fix streaming to ffserver.Ronald S. Bultje2011-06-14
|
* ffmpeg.c: Add a necessary const qualifierAlex Converse2011-06-09
|
* Remove all uses of now deprecated metadata functions.Anton Khirnov2011-06-08
|
* Replace avcodec_get_pix_fmt_name() by av_get_pix_fmt_name().Stefano Sabatini2011-06-03
| | | | | This fixes warnings about avcodec_get_pix_fmt_name() being deprecated. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* Remove unused variablesMans Rullgard2011-06-02
|
* cmdutils: remove OPT_FUNC2Stefano Sabatini2011-05-28
| | | | | | | | | Make ff* tools only accept opt_* functions taking two arguments. The distinction between functions with one and two arguments is quite pointless. Simplify parse_options() code. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* ffserver: Fix a null pointer dereference as a result of the ↵Mike Williams2011-05-26
| | | | | | | | | | | | | | FF_API_MAX_STREAMS cleanup. Fixed another dereference in the RTSP code. Removed a useless variable. Changed an unnecessary looping assignment to a simple assignment suggested by Maksym. Added fixes and tweaks suggested by Maksym Veremeyenko [verem@m1stereo.tv] and Clément B.
* ffmpeg: get rid of useless AVInputStream.nb_streams.Anton Khirnov2011-05-25
| | | | It's a duplicate of AVFormatContext.nb_streams.
* ffmpeg: simplify managing input files and streamsAnton Khirnov2011-05-25
| | | | | | Grow the file and stream list in opt_input_file() instead of creating it all at once in transcode(). This is simpler and will be useful for following commits.
* ffmpeg: purge redundant AVInputStream.index.Anton Khirnov2011-05-25
| | | | AVStream.index stores the same thing.
* ffmpeg: Don't trigger url_interrupt_cb on the first signalMartin Storsjö2011-05-22
| | | | | | | | | | | | | | Currently, the url_interrupt_cb callback will abort all IO after the first received signal. This makes the output files from e.g. the mov muxer to be unreadable if the transcode is aborted with ctrl+c. After this patch, the first signal cleanly breaks out of the transcoding loop, but won't forcibly abort all IO. After the second signal is received, the url_interrupt_cb callback will abort all IO. Signed-off-by: Martin Storsjö <martin@martin.st>
* ffmpeg: get rid of the -vglobal option.Anton Khirnov2011-05-21
| | | | | It's badly documented and does the same thing as -flags global_header, so it's redundant.
* Add support for request_sample_format in ffmpeg and ffplay.Justin Ruggles2011-05-18
|
* ffmpeg: fix -aspect cli optionBaptiste Coudurier2011-05-16
| | | | | | | | | | | | | | | | | | | | | Redesign the way -aspect option is handled. This is done by making ffmpeg read the sample aspect ratio set in the corresponding input stream by default, and overriding it using the value specified by -aspect. If the output display aspect ratio is specified with -aspect, it is set at the end of the filterchain, thus overriding the value set by filters in the filterchain. This implementation is more robust, since does not modify the filterchain description (which was creating potential syntax errors). (Cherry-pick abf8342aa94bdf06bb324f6723a6743dd628d5c6) Another aspect ratio fix try. This leaves the setdar addition at the end (preferred by people). (Cherry-pick e7c7b0d000e81d24327602e04d8fed400dbb7193)
* Restructure video filter implementation in ffmpeg.c.Michael Niedermayer2011-05-16
| | | | | | | | This fixes several bugs like multiple outputs and -aspect mixed with -vf (cherry picked from commit 1762d9ced70ccc46c5d3e5d64e56a48d0fbbd4f7) (cherry picked from commit 5c20c81bfa526b3a269db9c88b0c9007861f0917) (cherry picked from commit a7844c580d83d8466c161a0e3979b3902d0d9100)
* ffmpeg: use parse_number_and_die() when it makes senseStefano Sabatini2011-05-13
| | | | | | | | | | Prefer parse_number_or_die() over atoi()/atol() parsing for the options: -pass, -top, -vc, and -qscale. Improve input validation. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* ffmpeg: get rid of the 'q' key schizofreniaAnton Khirnov2011-05-13
| | | | SIGINT for quitting should be enough for everybody.
* ffmpeg: factorize quality calculationMichael Niedermayer2011-05-12
| | | | | | | Calculate quality value once per stream in print_report(). Also fix segfault, as coded_frame can be NULL. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* configure: Do not unconditionally add -D_POSIX_C_SOURCE to CPPFLAGS.Diego Biurrun2011-05-12
| | | | | | | | | | | | | | | | Adding _POSIX_C_SOURCE to CPPFLAGS globally produces all sorts of problems since it causes certain system functions to be hidden on some (BSD) systems. The solution is to only add the flag on systems that really require it, i.e. glibc-based ones. This change makes BSD systems compile out-of-the-box without the need for adding specific flags manually. It also allows dropping a number of flags set manually on a file-per-file basis, but were only present to work around breakage introduced by the presence of _POSIX_C_SOURCE. Also add _XOPEN_SOURCE to CPPFLAGS for glibc systems. We use XSI extensions in several places already, so it is preferable to define it globally instead of littering source files with individual #defines only needed for glibc.
* ffmpeg: call pre_process_video_frame() only if decoding is neededStefano Sabatini2011-05-11
| | | | | | | | | | | | In output_packet(), move the pre_process_video_frame() call inside the if (ist->decoding_needed) { } block. This way pre_process_video_frame() is not called when stream-copy has been selected. Also simplify. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* ffmpeg: reformat resample condition code in transcode()Stefano Sabatini2011-05-11
| | | | | Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* ffmpeg: factorize resampling condition check in do_video_out()Stefano Sabatini2011-05-11
| | | | | | | Simplify and improve readability. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* ffmpeg: prefer "dec" over "ist->st->codec" in do_video_out() snippetStefano Sabatini2011-05-11
| | | | | | | Simplify, ease readability. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* ffmpeg: improve reporting if size/pixel format changesStefano Sabatini2011-05-11
| | | | | | | | | | | Use av_log() rather than fprintf(stderr, ...), and show information related to the previous size/pixel format configuration. Consistent with the corresponding message issued in case of audio configuration change. Signed-off-by: Stefano Sabatini <stefano.sabatini-lala@poste.it> Signed-off-by: Anton Khirnov <anton@khirnov.net>