Adding audio filter to a media
Posted: 30 Sep 2014 17:17
Hi, I'm simply trying to add an audio filter to a media_t, but it doesn't seem to work.
Here is my code :
It just doesn't add the filter, and there's nothing about it in the log
I didn't find anything on the web about this kind of problem, I suppose the solution will be very easy but didn't find it
Thank you
Here is my code :
Code: Select all
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <vlc/libvlc.h>
#include <vlc/libvlc_media.h>
#include <vlc/libvlc_media_player.h>
#include <vlc/libvlc_events.h>
#include <vlc/libvlc_version.h>
int main(int ac, char** av)
{
const char* args[] = {
"--verbose=11111",
"--no-plugins-cache",
"--audio-filter=dspa",
};
libvlc_instance_t* instance = libvlc_new( sizeof(args) / sizeof(*args), args );
libvlc_media_player_t* player = libvlc_media_player_new( instance );
libvlc_media_t* media = libvlc_media_new_path( instance, av[1] );
libvlc_media_add_option_flag(media, ":audio", libvlc_media_option_trusted);
libvlc_media_add_option_flag(media, ":audio-filter=dspa", libvlc_media_option_trusted);
libvlc_media_player_set_media( player, media );
libvlc_media_player_play( player );
while(1);
return 0;
}
I didn't find anything on the web about this kind of problem, I suppose the solution will be very easy but didn't find it
Thank you