Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Visualization custom modification #701

Open
subh-kundu opened this issue Jan 5, 2022 · 2 comments
Open

Visualization custom modification #701

subh-kundu opened this issue Jan 5, 2022 · 2 comments

Comments

@subh-kundu
Copy link

subh-kundu commented Jan 5, 2022

Hello,
how to stop visualization --no-visual-peaks & visual-80-bands
my code not working properly default visualization show only Spectrum

mediaOptions = new[] { "--network-caching=8000",
                                   "--directx-use-sysmem",
                                   "--avcodec-hw=none",
                                   "--audio-visual=visual",
                                   "--no-visual-peaks",
                                   "--no-visual-80-bands",
                                   "--video-on-top" };

Originally posted by @subh-kundu in #502 (comment)

@jeremyVignelles
Copy link
Collaborator

Media options? they need to start with : and not --

@subh-kundu
Copy link
Author

subh-kundu commented Jan 5, 2022

sorry it was my type mistake i use --no-visual-peaks
not work

private string[] MediaOptions()
        {
            string[] mediaOptions;

            mediaOptions = new[] { "--network-caching=8000",
                                   "--directx-use-sysmem",
                                   "--avcodec-hw=none",
                                   "--audio-visual=visual",
                                   "--no-visual-peaks",
                                   "--no-visual-80-bands",                                   
                                   "--video-on-top" };

            return mediaOptions;
        }

public Form1()
        {
            InitializeComponent();
            Core.Initialize(Environment.CurrentDirectory + @"\libvlc\x64\");           
            _libVLC = new LibVLC(MediaOptions());
            _mp = new MediaPlayer(_libVLC);
            videoView1.MediaPlayer = _mp;
            _libVLC.SetLogFile("vlclog.txt");
        }

Perfectly works without
"--no-visual-peaks",
"--no-visual-80-bands",

those lines

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants