Rémi Denis-Courmont
26cefe733f
Use filter_chain_AppendConverter() as appropriate
10 years ago
Rémi Denis-Courmont
f8e3d39cb1
transcode: remove deinterlace boolean
The deinterlace module string is meaningless if deinterlacing is
disabled, and must be set if deinterlacing is enabled. So compare it
to NULL to indicate if deinterlacing is enabled or is not.
10 years ago
Filip Roséen
631d6af30a
stream_out/transcode: remove unnecessary comment
The comment does not add any valuable information (the variable names
are in my opinion good enough to explain the lines purpose), and the
usage of "500" is rather misleading since the pool-size can be changed
dynamically.
Signed-off-by: Ilkka Ollakka <ileoo@videolan.org>
10 years ago
Ilkka Ollakka
8f851fb2d6
transcode: use semaphore to limit how many pictures are in picture pool in threading case
10 years ago
Filip Roséen
3342312bb7
transcode/audio: fix leak if transcode_audio_initialize_filters fail
fixes #17428
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
10 years ago
Filip Roséen
c463ea09cd
transcode/audio: fix leak if transcode_audio_initialize_encoder fails
fixes #17428
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
10 years ago
Filip Roséen
a16d739d3f
stream_out/transcode: fix memory-leak on transcode_video_encoder_open failure
fixes #17426
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
10 years ago
Rémi Denis-Courmont
0c3f29264f
video_filters: drop version number from capability
(This fixes the transcode module video filter option in preferences, as
the two was forgotten.)
10 years ago
Rémi Denis-Courmont
1f5744e92e
transcode: fix capability for sfilter
10 years ago
Rémi Denis-Courmont
4c2de37f93
Revert "Revert "transcode: disable hardware decoding by default""
This reverts commit 059d52fb1d .
10 years ago
Ilkka Ollakka
a2627abdba
transcode: refactor video init function
10 years ago
Ilkka Ollakka
2be9435096
transcode: keep colorspace related info
10 years ago
Hugo Beauzée-Luyssen
a4db7b8d28
transcode: Fix printf format specifier
10 years ago
Adrien Maglo
6947740598
transcode: destroy the mutex and condition only if they have been initialized.
If i_threads == 0, both are not initialized as the function transcode_video_new
returns before the call to vlc_mutex_init and vlc_cond_init.
This patch fixes a deadlock on vlc_cond_destroy called with an uninitialized
condition variable argument.
Signed-off-by: Thomas Guillem <thomas@gllm.fr>
10 years ago
Hannes Domani
22d61da586
transcode: fix double free ( fixes #16258 )
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
10 years ago
Rafaël Carré
7f4ad86861
transcode: set pointers to NULL rather than 0
11 years ago
Francois Cartegnie
8e51b8da4c
decoder: rename confusing frame drop member
not related to the other pace controls
11 years ago
Rémi Denis-Courmont
059d52fb1d
Revert "transcode: disable hardware decoding by default"
This partially reverts commit 84b23f9606 ,
which is no longer necessary.
11 years ago
Rémi Denis-Courmont
21dfee9de8
sout: constify format parameter to sout_stream_t.pf_add
11 years ago
Rémi Denis-Courmont
49364d3a6a
transcode: missing const
11 years ago
Rémi Denis-Courmont
f5235164c5
sout: voidify sout_stream_t.pf_del
This is always VLC_SUCCESS, or a forwarded value. Ultimately, the
value was (rightfully) ignored by the stream output core.
11 years ago
Rafaël Carré
23f4311834
transcode: remove unneeded deinit
11 years ago
Rafaël Carré
a4a43a825d
transcode: avoid double thread join
11 years ago
Rafaël Carré
e350259a5f
transcode: simplify thread init
11 years ago
Rafaël Carré
ead2838cf7
transcode: whitespace
11 years ago
Rafaël Carré
fb1317c8be
transcode: simplify locking in encoder thread
11 years ago
Ilkka Ollakka
f06ef3b4e5
transcode: give proper src fmt for subtitle overlay
12 years ago
Ilkka Ollakka
62a5a15167
transcode: refactor fps conversion out from video transcode
Use fps video filter for framerate conversion. Also do framerate conversion
after deinterlacer so we don't screw deinterlacing with frame dropping.
12 years ago
Ilkka Ollakka
a3654038be
transcode: check input picture drop only after deinterlace filter
Refactor so deinterlacer/scaler is fed with all input pictures and not only
ones that encoder needs.
12 years ago
Ilkka Ollakka
02ef60469a
transcode: increment input pts even if we don't need to process that picture
12 years ago
Ilkka Ollakka
fd89198cdb
transcode: set b_master_sync correctly
12 years ago
Rémi Denis-Courmont
c1111ae38b
decoder: remove decoder_DeleteSubpicture() and fix a leak
12 years ago
Rémi Denis-Courmont
3159c34c5b
decoder: remove decoder_UnlinkPicture() and decoder_DeletePicture()
Use picture_Release() directly.
12 years ago
Rémi Denis-Courmont
3cfb5fe97a
decoder: remove decoder_LinkPicture()
12 years ago
Rémi Denis-Courmont
dfae0979f0
filter: remove filter_DeletePicture()
All variants of the filter_t.video.buffer_del callback invoke
picture_Release() - possibly through recursion.
Most filters used picture_Release() directly already.
12 years ago
Thomas Guillem
73c7b4a1c0
decoder: separate vout initialization from buffer allocation
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
12 years ago
Rémi Denis-Courmont
1ba32fb7eb
transcode: avoid conversion to double
12 years ago
Rafaël Carré
ae192018e2
transcode: fix video filters
12 years ago
Rémi Denis-Courmont
d6e6460d38
filter_chain: introduce dedicated filter_chain_NewVideo() for video filters
Also remove the filter chain buffer functions update hack, keep constant
callbacks for video filters in the filter chain, remove now useless
parameters from filter_chain_New(), and inline
filter_chain_AppendFilterInternal().
12 years ago
Rémi Denis-Courmont
398cabc620
filter: separate owner structure from the filter itself
12 years ago
Rémi Denis-Courmont
da352496d6
transcode: remove useless callback
12 years ago
Rémi Denis-Courmont
84b23f9606
transcode: disable hardware decoding by default
It can still be enabled manually in the preferences as in previous
versions. Only it will not be used with the default ("auto") setting.
12 years ago
Ilkka Ollakka
991d2ebf6e
transcode: keep in track of input pts drift for video
Also name it to be next_input_pts instead of interpolated_pts
If input drift is more than 100ms that we estimate, we have most
likely dropped some packet and we should reset timers. Otherwise
it can cause lipsync issues if we for example just transcode video
track and audio track keeps original (jumped) pts.
12 years ago
Ilkka Ollakka
a90263be45
transcode: store fmt per id/track
This helps to keep filters etc if there is for example 2 different audio
tracks with different channel count etc.
12 years ago
Rémi Denis-Courmont
8587d92aa3
transcode: NULL check
12 years ago
Rafaël Carré
3f4eb3aa38
transcode: copy video orientation to encoder
12 years ago
Rémi Denis-Courmont
118d418caa
transcode: fix parameter warning
12 years ago
Ilkka Ollakka
1ab751e4ac
transcode: add parameter limits for audio
12 years ago
Ilkka Ollakka
4e1fb26a22
transcode: handle fps conversion in one point
We might not have proper framerate info yet at this point
12 years ago
Ilkka Ollakka
ae9ae8a104
transcode: obsolete audio-sync
12 years ago