Gavriloaie Eugen-Andrei
29b553c1a6
libx264: introduce -x264-params private option
...
It is a shortcut to set all the params using x264_param_parse,
makes simpler importing settings from other software using x264.
12 years ago
Luca Barbato
47812070a2
libx264: use the library specific default rc_initial_buffer_occupancy
...
By default libav sets it to 3/4 while x264 sets it to 9/10.
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
12 years ago
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
12 years ago
Michael Niedermayer
5fe808578c
libx264: fix open GOP
...
Found-by: relaxed
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
John Van Sickle
a716006a7d
libx264: change default to closed gop to match x264cli
...
open-gop can be enabled with "-flags -cgop"
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
Anton Khirnov
e52e4fe10d
libx264: add forgotten ;
12 years ago
John Van Sickle
9bf41210a9
libx264: add support for nal-hrd, required for Blu-ray streams.
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
12 years ago
Lyubomir Marinov
63951aec2b
libx264: feed x264_param_apply_profile from AVCodecContext.profile in absence of other information
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Lyubomir Marinov
fd9cd8cd5a
libx264: connect AVCodecContext.rtp_payload_size to x264_params_t.i_slice_max_size
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Derek Buitenhuis
59db014b5b
Revert "lavc/libx264: remap X264_LOG_INFO loglevel from AV_LOG_INFO to VERBOSE"
...
You should not need to enable verbose logging and all the output that comes
with it in order to get things like the obtained bitrate from a first
pass encode. Many things parse this output.
Also, since it is marked as info in libx264, it should be marked as
info in libavcodec as well.
This reverts commit 911519caec
.
12 years ago
Stefano Sabatini
911519caec
lavc/libx264: remap X264_LOG_INFO loglevel from AV_LOG_INFO to VERBOSE
...
AV_LOG_INFO is more geared towards messages to be read by the user, the
statistics shown by libx264 with X264_LOG_INFO are more useful at the
debugging level.
Help reducing the log spam.
12 years ago
Martin Storsjö
c7b610aa0b
avopt: Explicitly store float/double option defaults in .dbl
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
e6153f173a
avopt: Store defaults for AV_OPT_TYPE_INT in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Martin Storsjö
124134e424
avopt: Store defaults for AV_OPT_TYPE_CONST in the i64 union member
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Mahendra M
9b4badb09b
Fix libx264 profile listing
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
12 years ago
Martin Storsjö
1d9c2dc89a
Don't include common.h from avutil.h
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
12 years ago
Nicolas George
5c81a9ff55
libx264: list possible profiles.
...
The values are listed if setting them fails.
Using "-profile help" or "-profile list" have that effect.
Similar to 3aba391
.
Suggested by "rogerdpack" in trac ticket #1529 .
12 years ago
Nicolas George
3aba391fb5
libx264: list possible presets and tunes.
...
The values are listed if setting them fails.
Using "-preset help" or "-preset list" have that effect.
13 years ago
JULIAN GARDNER
0dd283faca
libx264: support aspect ratio switching
...
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Martin Storsjö
00c3b67b8a
cosmetics: Align codec declarations
...
Also break some long lines, remove codec function placeholder comments
and add spaces in sample/pixel format lists.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Michael Niedermayer
660e8cb9e3
libx264: switch to ff_alloc_packet2().
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
d533e395e1
libx264: add 'stats' private option for setting 2pass stats filename.
...
x264 always opens the file itself with fopen, so we cannot use the
standard lavc stats mechanism.
CC: libav-stable@libav.org
13 years ago
Anton Khirnov
9d5c131ece
libx264: fix help text for slice-max-size option.
...
CC: libav-stable@libav.org
13 years ago
Martin Storsjö
338978a7c1
libx264: Allow overriding the sliced threads option
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Paul B Mahol
bfe7bace8e
libx264: unbreak libx264rgb
...
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
06484d0b8a
libx264: implement encode2().
13 years ago
Anton Khirnov
05d699222d
libx264: split extradata writing out of encode_nals().
...
This is done in preparation for the following patch.
13 years ago
Anton Khirnov
e15e2a6d2a
libx264: fix indentation.
13 years ago
Anton Khirnov
7232bfbd93
lavc: remove disabled FF_API_X264_GLOBAL_OPTS cruft.
13 years ago
Martin Storsjö
57facb73ab
libx264: Don't leave max_b_frames as -1 if the user didn't set it
...
max_b_frames is initialized to -1 for libx264, to allow
distinguishing between an explicit user set 0 and a default not
touched 0 (see bb73cda2
).
If max_b_frames is left as -1, this affects dts generation (where
expressions like max_b_frames != 0 are used), so make sure it is
left at the default 0 after the libx264 init function returns.
This avoids unnecessarily producing dts != pts when using
profile=baseline.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Janne Grunau
b4d44a45f9
threads: introduce CODEC_CAP_AUTO_THREADS and add it to libx264
...
Some external codecs have their own code to determine the best number
of threads. This number is not necessary the number of cpu cores.
Thread_count will be only 0 if the codec has CODEC_CAP_AUTO_THREADS.
13 years ago
Clément Bœsch
66160bdb01
cleanup: remove two extraneous semicolons.
13 years ago
Michael Niedermayer
4557d7d01f
libx264: workaround a bug in some versions of flash player
...
Fixes Ticket570
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
dd974c1bc1
libx264: Implement rgb24 support through a seperate AVCodec.
...
This avoids people mistakely encoding in a way that many players dont support.
Fixes Ticket658
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
4a8e3324fb
libx264: fix generic boolean support
...
Fixes Ticket660
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
145f741e11
AVOptions: rename FF_OPT_TYPE_* => AV_OPT_TYPE_*
13 years ago
Anton Khirnov
46c3c53bae
libx264: support yuv422/444 output.
13 years ago
Themaister
18a97b030c
Allow YUV444P and RGB/BGR encoding for libx264.
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Anton Khirnov
d97efd7f87
libx264: support 9- and 10-bit output.
13 years ago
Michael Niedermayer
751a4efd4d
libx264: Fix loop failure due to bufsize becoming 0
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
e89f58810d
libx264: remove check_default_settings()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Michael Niedermayer
d5a3635b2c
libx264: free x4->sei
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Mike Scheutzow
e2dae1faa8
Fix a buffer overflow in libx264 interface to x264 encoder. Previous code ignored the compressed buffer size passed in. This change returns as many complete NALs as can fit in the buffer, and logs an error message.
...
Signed-off-by: Mike Scheutzow <mike.scheutzow@alcatel-lucent.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
13 years ago
Luca Barbato
3a78fb57de
libx264: introduce slice-max-size option
...
Yet another option useful for low latency streaming.
13 years ago
Andrew Wason
5e85fd9f9c
libx264: fix overwriting presets with flags2
...
This fixes overwriting x264 preset settings for flags2 based options.
See https://ffmpeg.org/trac/ffmpeg/ticket/448
13 years ago
Andrew Wason
3eb1e65f5f
libx264: fix overwriting preset rc_lookahead
...
This fixes https://ffmpeg.org/trac/ffmpeg/ticket/448 - at least for
rc_lookahead. A similar problem still exists for the flags2 based
options.
13 years ago
Anton Khirnov
0962f23b35
libx264: fix setting some more parameters
...
Specifically, trellis, nr, me_range, me_method, subq, b_strategy,
keyint_min, chroma_me and coder.
Change their defaults to -1 and apply them after
x264_param_default_preset() if the user explicitly set them.
13 years ago
Andrej Peterka
2bb5d637fc
libx264: fix setting the H.264 level
...
Move setting it after x264_param_default_preset()
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Anton Khirnov
9c684feadc
libx264: add 'direct-pred' private option
...
Deprecate AVCodecContext.directpred
13 years ago