Wpf mediaelement playing video withouth soundWPF: Video colors in MediaElement different from Windows Media PlayerWhy isn't WPF's MediaElement showing my DivX Video?24/7 Video Player in WPFBinding a progressbar to a mediaelement in wpf.wmv videos not playing in WPF MediaElement control in Windows 8no video but audio using wpf mediaelementMediaElement doesn't play mp3 or wavUsing WPF MediaElement with MKV video format - no audioWPF - MediaElement stops playing after position changeControling MediaElement and its source in MVVM pattern

LaTeX Make Word Appear

Is it OK to say "The situation is pregnant with a crisis"?

Simplify the code

How to track mail undetectably?

Advantages of using bra-ket notation

Is it possible to alias a column based on the result of a select+where?

Active wildlife outside the window- Good or Bad for Cat psychology?

Basic calculations in PGF/TikZ for loop

Why didn't Caesar move against Sextus Pompey immediately after Munda?

Could you fall off a planet if it was being accelerated by engines?

Why didn't Avengers simply jump 5 years back?

Any Tips On Writing Extended Recollection In A Novel

What would you need merely the term "collection" for pitches, but not "scale"?

Why do movie directors use brown tint on Mexico cities?

Rear derailleur got caught in the spokes, what could be a root cause

ATMEGA328P-U vs ATMEGA328-PU

English idiomatic equivalents of 能骗就骗 (if you can cheat, then cheat)

My mom helped me cosign a car and now she wants to take it

Why are symbols not written in words?

Is there a word for the act of simultaneously pulling and twisting an object?

Why would Dementors torture a Death Eater if they are loyal to Voldemort?

Cat files in subfolders in order given by a list

How can this fractal shape perfectly cover a certain platonic solid?

Disk usage confusion: 10G missing on Linux home partition on SSD



Wpf mediaelement playing video withouth sound


WPF: Video colors in MediaElement different from Windows Media PlayerWhy isn't WPF's MediaElement showing my DivX Video?24/7 Video Player in WPFBinding a progressbar to a mediaelement in wpf.wmv videos not playing in WPF MediaElement control in Windows 8no video but audio using wpf mediaelementMediaElement doesn't play mp3 or wavUsing WPF MediaElement with MKV video format - no audioWPF - MediaElement stops playing after position changeControling MediaElement and its source in MVVM pattern













-1















I want to create my own video player application using a MediaElement control in WPF using MVVM. But whenever I try to open a media (.mkv) as source, the video starts playing without any sound.



When I put an .mp3 as source, I can hear the music playing so that's why it is strange.
Also, the video has sound in an other player (Kodi).



The XAML code for the control:



<MediaElement LoadedBehavior="Play" UnloadedBehavior="Manual"
Source="Binding Media" Volume="1"/>


The code for the binding:



public System.Uri Media => new System.Uri(@"d:video.mkv");


What shall be a way to hear the sound of the video?










share|improve this question


























    -1















    I want to create my own video player application using a MediaElement control in WPF using MVVM. But whenever I try to open a media (.mkv) as source, the video starts playing without any sound.



    When I put an .mp3 as source, I can hear the music playing so that's why it is strange.
    Also, the video has sound in an other player (Kodi).



    The XAML code for the control:



    <MediaElement LoadedBehavior="Play" UnloadedBehavior="Manual"
    Source="Binding Media" Volume="1"/>


    The code for the binding:



    public System.Uri Media => new System.Uri(@"d:video.mkv");


    What shall be a way to hear the sound of the video?










    share|improve this question
























      -1












      -1








      -1








      I want to create my own video player application using a MediaElement control in WPF using MVVM. But whenever I try to open a media (.mkv) as source, the video starts playing without any sound.



      When I put an .mp3 as source, I can hear the music playing so that's why it is strange.
      Also, the video has sound in an other player (Kodi).



      The XAML code for the control:



      <MediaElement LoadedBehavior="Play" UnloadedBehavior="Manual"
      Source="Binding Media" Volume="1"/>


      The code for the binding:



      public System.Uri Media => new System.Uri(@"d:video.mkv");


      What shall be a way to hear the sound of the video?










      share|improve this question














      I want to create my own video player application using a MediaElement control in WPF using MVVM. But whenever I try to open a media (.mkv) as source, the video starts playing without any sound.



      When I put an .mp3 as source, I can hear the music playing so that's why it is strange.
      Also, the video has sound in an other player (Kodi).



      The XAML code for the control:



      <MediaElement LoadedBehavior="Play" UnloadedBehavior="Manual"
      Source="Binding Media" Volume="1"/>


      The code for the binding:



      public System.Uri Media => new System.Uri(@"d:video.mkv");


      What shall be a way to hear the sound of the video?







      c# wpf mvvm mediaelement






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 25 at 16:35









      György TurbékGyörgy Turbék

      278 bronze badges




      278 bronze badges




















          1 Answer
          1






          active

          oldest

          votes


















          0














          MKV is just a container which can store a number of different audio formats. More than likely WPF MediaElement cannot decode the source audio because you do not have the necessary codec(s) on your machine. Try playing a wmv video or basic mp4 video with standard audio format and the audio will work.



          It's not for nothing that VLC media player ships with dozens of different audio/video decoders...






          share|improve this answer






















            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55342497%2fwpf-mediaelement-playing-video-withouth-sound%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            MKV is just a container which can store a number of different audio formats. More than likely WPF MediaElement cannot decode the source audio because you do not have the necessary codec(s) on your machine. Try playing a wmv video or basic mp4 video with standard audio format and the audio will work.



            It's not for nothing that VLC media player ships with dozens of different audio/video decoders...






            share|improve this answer



























              0














              MKV is just a container which can store a number of different audio formats. More than likely WPF MediaElement cannot decode the source audio because you do not have the necessary codec(s) on your machine. Try playing a wmv video or basic mp4 video with standard audio format and the audio will work.



              It's not for nothing that VLC media player ships with dozens of different audio/video decoders...






              share|improve this answer

























                0












                0








                0







                MKV is just a container which can store a number of different audio formats. More than likely WPF MediaElement cannot decode the source audio because you do not have the necessary codec(s) on your machine. Try playing a wmv video or basic mp4 video with standard audio format and the audio will work.



                It's not for nothing that VLC media player ships with dozens of different audio/video decoders...






                share|improve this answer













                MKV is just a container which can store a number of different audio formats. More than likely WPF MediaElement cannot decode the source audio because you do not have the necessary codec(s) on your machine. Try playing a wmv video or basic mp4 video with standard audio format and the audio will work.



                It's not for nothing that VLC media player ships with dozens of different audio/video decoders...







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 25 at 18:46









                Dean KugaDean Kuga

                8,5875 gold badges42 silver badges91 bronze badges




                8,5875 gold badges42 silver badges91 bronze badges
















                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







                    Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55342497%2fwpf-mediaelement-playing-video-withouth-sound%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript