Alexandre Janniaux
9c05197257
avcodec: encoder: fix comment location
5 years ago
Alexandre Janniaux
ca66dbd23e
avcodec: encoder: split double ternary condition
5 years ago
Alexandre Janniaux
36a125ac7c
avcodec: encoder: init i_last_pts to VLC_TICK_INVALID
The value is currently only initialized by calloc().
5 years ago
Francois Cartegnie
1b280e0c03
codec: avcodec/avenc: use native rescaling
5 years ago
Steve Lhomme
d86c4c87aa
avcodec: encoder: fix MPEG4 matrix passed as const
lavc expects a pointer that it will free in avcodec_free_context().
7 years ago
Rémi Denis-Courmont
e3270f2ae4
objects: merge vlc_object_t and vlc_common_members
This should fix historical aliasing issues.
7 years ago
Ilkka Ollakka
935869641c
avcodec: define coded_width/height on encoding
With this change, transcoding to multiple outputs with intermediate encode works.
Example sout-chain used to test:
--sout="#transcode{vcodec=I420,deinterlace}:duplicate{dst={transcode{vcodec=h264,vfilter=canvas{width=640,height=320}}},dst={transcode{vcodec=h264,vfilter=canvas{width=320,height=240}}}}:file{dst=test_output.ts}"
Without this change, rawvideo codec will complain about invalid frame size.
7 years ago
Steve Lhomme
5363279805
remove the $Id$ in the source code
7 years ago
Alexandre Janniaux
f69475d477
avcodec/encoder: fix leak in case of codec opening failure
If the required codec is invalid or doesn't match the required codec id,
we must release the string obtained from var_GetString.
Signed-off-by: Tristan Matthews <tmatth@videolan.org>
7 years ago
Steve Lhomme
0c8fe7c6b5
avcodec: use macros to transform lavc timestamps to/from VLC timestamps
8 years ago
Steve Lhomme
7fb3f4293a
modules: use VLC_TICK_FROM_MS instead of hardcoded values
8 years ago
Steve Lhomme
965ad6ca87
avcodec: remove libavutils checks that are always true based on configure checks
We assume we use 55.9.0 and 55.22.101
8 years ago
Rémi Denis-Courmont
0642c2efd2
block: have block_Init() set the callbacks
Also document block_Init().
8 years ago
Rémi Denis-Courmont
a17540a521
block: move callback to separate const structure
8 years ago
Steve Lhomme
ded62a069f
rename VLC_TS_0 to VLC_TICK_0
8 years ago
Steve Lhomme
1f17997348
rename VLC_TS_INVALID to VLC_TICK_INVALID
8 years ago
Steve Lhomme
b4dfbc6283
rename mdate() to vlc_tick_now()
The lua "mdate" remains the same.
8 years ago
Steve Lhomme
ff56c92a5e
rename mtime_t to vlc_tick_t
Keep a copy of vlc_tick_tfor backward compatibility.
8 years ago
Francois Cartegnie
10318107ac
date_t: always init to TS_INVALID
8 years ago
Thomas Guillem
a0f4ae67a0
avcodec: encoder: fix buffer over-read
It happened when the mask was not the default one.
8 years ago
Jean-Baptiste Kempf
ac64b83f24
Avcodec encoder: do not display error dialog on Win32
This messages makes no sense on Windows, where there are no
distributions
8 years ago
Steve Lhomme
178c1a4dfe
modules: fix VLC_TS_INVALID tests
8 years ago
Romain Vimont
ff2901aff3
core: remove global *_sys_t typedefs
Do not declare *_sys_t typedefs globally in vlc_common.h. Instead,
declare them locally in each module that provides a definition.
This paves the way to move C++ definitions into anonymous namespaces in
order to respect C++ ODR.
The picture_resource_t and sout_stream_id_sys_t typedefs will be handled
separately, since they require specific additional changes.
See #18033
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
8 years ago
Steve Lhomme
d6a4f1d32d
modules: remove empty curly braces initialization
They are not allowed per §6.7.9 of the 2011 ISO C Standard:
initializer:
assignment-expression
{ initializer-list }
{ initializer-list , }
initializer-list:
designation(opt) initializer
initializer-list , designation(opt) initializer
8 years ago
Steve Lhomme
b36cb077f9
avcodec: log the error code returned by the encoder
9 years ago
Thomas Guillem
c5418dab5c
avcodec: accept NV12 an input
This removes a conversion when both decoder and encoder use NV12.
8 years ago
Thomas Guillem
2d628e37d2
avcodec: fail if the specified encoder is not found
Instead of using the default avcodec encoder.
8 years ago
Thomas Guillem
c6e4f56957
avcodec: rename entry functions
This fixes duplicate symbols with a static build.
8 years ago
Thomas Guillem
be994e0f5d
avcodec/encoder: fallback to 44100hz when rate is not supported
Better than faling, the transcode sout will convert the rate.
8 years ago
Thomas Guillem
024304087c
avcodec/encoder: fix fallback to stereo
Happens if the codec doesn't support more than 2 channels (like mp3lame).
Also ask for a channel conversion instead of dropping channels.
8 years ago
Rémi Denis-Courmont
c3dea95c4a
Expand VLC_COMMON_MEMBERS
This is now a one-liner. Expansion helps readability/high-lighting.
8 years ago
Rémi Denis-Courmont
2ca454a43e
avcodec/encoder: remove useless datum
9 years ago
Rémi Denis-Courmont
6b42af3f7f
avcodec/encoder: remove no-op (refs #18697 )
Changing AVCodecContext.noise_reduction at run-time has no effects.
Libavcodec only reads it during open.
9 years ago
Rémi Denis-Courmont
1c22bbe536
avcodec/encoder: remove no-op
Same member is written a few lines below.
9 years ago
Jean-Baptiste Kempf
8ee9d4d5a4
avcodec encoder: fix sign comparison issue
9 years ago
Steve Lhomme
98e70d033e
avcodec: don't enqueue empty encoded block
There's no data, no timestamp and no flag to signal anything.
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years ago
Steve Lhomme
c491eec988
avcodec: make the video_format_t color to AVCodecContext conversion more generic
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years ago
Rémi Denis-Courmont
5b7afb0f14
avcodec: simplify encoder codec look-up
9 years ago
Rémi Denis-Courmont
2826791f59
avcodec: search codec mapping by category
Category is now an input rather than output parameter.
9 years ago
Francois Cartegnie
afcdb682ba
codec/demux: output version and provider in debug
9 years ago
Hugo Beauzée-Luyssen
032ba19a41
avcodec: encoder: Fix a few deprecated options usage
9 years ago
Hugo Beauzée-Luyssen
b337da9935
avcodec: encoder: Fix win32 build
By removing some long time deprecated options
9 years ago
Hugo Beauzée-Luyssen
667c3a73b1
avcodec: vlc_av_get_options: Append to a potentially existing dict
9 years ago
Jean-Baptiste Kempf
84ce62d0a5
avcodec encoder: fix some API changes
9 years ago
Francois Cartegnie
b948167ad2
avcodec: add missing color xfer mappings
9 years ago
Ilkka Ollakka
7126070f86
avcodec: encoder: unref avpackets instead of freeing them
10 years ago
Ilkka Ollakka
b7bfbfb046
avcodec: encoder: remove unused variable
10 years ago
Ilkka Ollakka
83021a62f7
avcodec: encoder: handle avpacket key-flag
10 years ago
Ilkka Ollakka
cdc04e5b3d
avcodec: encoder: use similar timestamps with audio/video
As the flow is similar now, timestamps should be too
10 years ago
Ilkka Ollakka
5a65762906
avcodec: encoder: refactor encoding flow
Use similar flow for both of audio and video
Also complain about sending frame if we actually had frame to send.
This should fix the closing case when we want to flush encoder.
10 years ago