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
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
add a comment |
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
add a comment |
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
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
c# wpf mvvm mediaelement
asked Mar 25 at 16:35
György TurbékGyörgy Turbék
278 bronze badges
278 bronze badges
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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...
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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...
add a comment |
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...
add a comment |
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...
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...
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
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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