Enable/disable video filter in LibVLC
Posted: 07 Apr 2012 15:30
Hi!
I am trying to enable/disable a video filter with LibVLC during playback. I found a patch on VLC mailing list: http://mailman.videolan.org/pipermail/v ... 83767.html, that extends the API with a libvlc_video_set_filter function. I succesfully applied the patch, and now I can call the function in libVLC, but I have some trouble with it:
If I start vlc by this way: 'sout=#transcode{venc=x264{preset=ultrafast,tune=zerolatency,p=1},fps=15,sfilter=marq{marquee="Remote control"}}:standard{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:2000/stream.flv}}' then after calling the function nothing happens, video filter isn't applied!
When I use only 'vout=dummy' and no transcoding then the function is working.
The input source in both cases: /dev/video0
As I see in the code, the function is calling vout_EnableFilter to turn on a filter. Why isn't it working when transcoding is also used?
Thanks for your answers.
biga
I am trying to enable/disable a video filter with LibVLC during playback. I found a patch on VLC mailing list: http://mailman.videolan.org/pipermail/v ... 83767.html, that extends the API with a libvlc_video_set_filter function. I succesfully applied the patch, and now I can call the function in libVLC, but I have some trouble with it:
If I start vlc by this way: 'sout=#transcode{venc=x264{preset=ultrafast,tune=zerolatency,p=1},fps=15,sfilter=marq{marquee="Remote control"}}:standard{access=http{mime=video/x-flv},mux=ffmpeg{mux=flv},dst=0.0.0.0:2000/stream.flv}}' then after calling the function nothing happens, video filter isn't applied!
When I use only 'vout=dummy' and no transcoding then the function is working.
The input source in both cases: /dev/video0
As I see in the code, the function is calling vout_EnableFilter to turn on a filter. Why isn't it working when transcoding is also used?
Thanks for your answers.
biga