Francois Cartegnie
b648a4475f
transcode: refactor format change/encoder start
8 years ago
Francois Cartegnie
9af1ff74f4
transcode: reorder encoder closing
8 years ago
Francois Cartegnie
2c546579c1
transcode: refactor video encoder setup/testing
8 years ago
Francois Cartegnie
664278eaf2
transcode: video: rename ambigous video_output_format
8 years ago
Francois Cartegnie
e52a67d526
transcode: rename ambigous var
8 years ago
Francois Cartegnie
b4cac22023
transcode: remove p_stream ref
8 years ago
Francois Cartegnie
b4f02d6082
transcode: video: rework encoder init
8 years ago
Francois Cartegnie
cf5ddb46c8
transcode: refactor video size
8 years ago
Francois Cartegnie
9137900352
transcode: refactor video fps
8 years ago
Francois Cartegnie
d9df675b41
transcode: use aliases in video init
8 years ago
Francois Cartegnie
9c6eb43e69
transcode: refactor sar transform
8 years ago
Francois Cartegnie
ecd88969dd
transcode: remove dead code in sar
8 years ago
Steve Lhomme
8aa92d1bb5
modules: use the vlc_tick_t/ms conversion macros for hardcoded values
8 years ago
Francois Cartegnie
95e350c597
transcode: video: align scaled visible
8 years ago
Steve Lhomme
1f17997348
rename VLC_TS_INVALID to VLC_TICK_INVALID
8 years ago
Steve Lhomme
f3de4bc5a7
transcode:video: regroup code from the same else
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
68a049fee8
sout: transcode: reorder includes
8 years ago
Francois Cartegnie
a6fc642ec6
sout: transcode: fix leak w/ threads
8 years ago
Francois Cartegnie
55a1c1a050
sout: transcode: fix bogus encoding thread with multiple video es
8 years ago
Rémi Denis-Courmont
537ef170ca
filter: use constant callback structures
8 years ago
Thomas Guillem
d49b43b606
dec: hide owner and callbacks from modules
8 years ago
Thomas Guillem
88e21b944b
dec: fix incompatible pointer type
Introduced by 86df4f3d1b
8 years ago
Rémi Denis-Courmont
f80f542a97
aout: use float rate for filters
8 years ago
Steve Lhomme
fe499f7cef
transcode:audio: simplify code to reset the master sync
id->next_input_pts and p_audio_buf->i_pts are the same after the date_Set().
8 years ago
Romain Vimont
173ee01c08
core: remove global sout_stream_id_sys_t typedef
Remove the sout_stream_id_sys_t typedef in vlc_common.h (for ODR).
This implies to replace sout_stream_id_sys_t* by void* in the
sout_stream_t functions.
See #17078 and #18033
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
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
Romain Vimont
238459bf4f
core: replace sout_stream_sys_t* by void*
See #17078
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
8 years ago
Rémi Denis-Courmont
c86436596e
config: remove advanced from add_module_list()
8 years ago
Rémi Denis-Courmont
e66e6b6b03
config: remove advanced from add_module()
8 years ago
Steve Lhomme
432ddbfd4f
transcode: the visible dimensions are unlikely to be 0
8 years ago
Steve Lhomme
eccdfc2017
transcode: do not include the decoder padding in the output SAR
8 years ago
Rémi Denis-Courmont
008d355b97
modules: add/use module_need_var()
...to get the module name or module name list from an object variable.
8 years ago
Thomas Guillem
e426b400b9
transcode: audio: fix global-buffer-overflow
8 years ago
Thomas Guillem
a6f6c3416f
transcode: fix error handling
Forget a b_error case. Regression from 67e9931642
CID #1427674 #1427673
8 years ago
Thomas Guillem
c1ff19d76c
transcode/video: add more logs
8 years ago
Thomas Guillem
893c3bb704
transcode/video: test video conversion
No need to encode if no conversion is possible.
8 years ago
Thomas Guillem
67e9931642
transcode: change error handling
Don't reset b_transcode to false in case of error, otherwise transcoding
resources won't be freed.
8 years ago
Thomas Guillem
969da8f53d
transcode: fix null-deref in some error cases
Null-deref could happen when flushing (p_buffer == NULL).
8 years ago
Thomas Guillem
cb1b1634b8
transcode/video: refactor error handling
8 years ago
Thomas Guillem
91c3b27efe
transcode/audio: init muxer format lately
This can fix channels (or other params) mismatch when decoders update their
fmt_out lately. This is the case for dts-hd for example (first decoder/encoder
initialisation gives 5.1, then 7.1).
8 years ago
Thomas Guillem
2d74fbd944
transcode: video: fix typo
8 years ago
Francois Cartegnie
d161752d62
sout: transcode: call suppicture update for text spu
as regions content is not created until updated once
8 years ago
Thomas Guillem
26cf436f2a
transcode/audio: fix audio_dec_out fmt before first encoder initialization
c.f. comment.
8 years ago
Thomas Guillem
0b80b6d1b8
transcode/audio: fix dec->fmt_out thread safety
Since the decoder fmt_out can be updated from any threads with async decoders.
PS: As audio output blocks are not linked with a audio_format_t, it's still not
possible to know the real fmt of an audio output block if the format changed.
8 years ago
Thomas Guillem
7bf7081b44
transcode: move video_dec_out in video union
8 years ago
Thomas Guillem
9ef48c7369
transcode/audio: remove historical AAC SBR hack
Should have been fixed by fbfe10b4df
This is not needed anymore since the encoder use the updated decoder fmt_out
format.
8 years ago
Thomas Guillem
d57688d952
transcode/audio: don't initialise dec->fmt_out
It's already done by transcode/transcode.c
8 years ago
Thomas Guillem
83fa27fca1
transcode/video: don't close from process
In case of error, just set transcode to false. Everything will be closed later.
This fixes invalid usage of closed mutexes/conds/filters.
8 years ago
Thomas Guillem
1f8021e5a5
transcode/video: fix corruption of dec->fmt_in
This could lead to a crash when the decoder module was modifying/writing on
fmt_out.video.p_palette, fmt_out.psz_description or fmt_out.p_extra_languages
(so as soon as avcodec is updating its fmt_out).
The decoder fmt_out is already initialised from transcode/transcode.c.
sq
8 years ago