Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video do not show,but no error Message show #389

Closed
2 tasks done
zhongbodong opened this issue May 14, 2019 · 17 comments
Closed
2 tasks done

Video do not show,but no error Message show #389

zhongbodong opened this issue May 14, 2019 · 17 comments
Assignees
Labels
Milestone

Comments

@zhongbodong
Copy link

zhongbodong commented May 14, 2019

Why Video not show,and no message show

i have do all steps as readme.txt give me,but when i start program ,there is nothing hapen,do i miss something?.

Issue Categories

  • Question

Version Information

  • NuGet Package FFME.Windows 4.1.300

Steps to Reproduce

  1. download a compatible build from the wonderful Zeranoe FFmpeg Builds site: (https://ffmpeg.zeranoe.com/).Copy all of them to a folder as (c:\ffmpeg)
    image

  2. set Unosquare.FFME.Library.FFmpegDirectory = @"path to ffmpeg binaries from the previous step";
    image

  3. In my MainForm.xaml, add the namespace: xmlns:ffme="clr-namespace:Unosquare.FFME;assembly=ffme.win"
    And then add the FFME control in my window: <ffme:MediaElement x:Name="Media" Background="Gray" LoadedBehavior="Play" UnloadedBehavior="Manual" />

image

Expected Results

image

Sample Code

XAML

<MainWindow>
  <Grid>
        <ffme:MediaElement x:Name="Media"  LoadedBehavior="Play" UnloadedBehavior="Manual" />
    </Grid>
</MainWindow>

C#

  Unosquare.FFME.Library.FFmpegDirectory = @"C:\ffmpeg";
  Media.Source = new Uri(@"C:\ffmpeg\wuyawang.mp4");
@sam8890
Copy link

sam8890 commented May 16, 2019

me too

@mariodivece
Copy link
Member

Probably the architecture of your app is not matching the architecture of the ffmpeg binaries.
Questions:

  1. does the sample application work?
  2. have you tried the zeranoe FFmpeg binaries for x86 AND x64?
  3. What arror messages do you see in the Output window?

@mariodivece mariodivece self-assigned this May 16, 2019
@mariodivece mariodivece added this to the 3.10 - Floyd milestone May 16, 2019
@sam8890
Copy link

sam8890 commented May 16, 2019

Unable to open example envy
20190516101134

@sam8890
Copy link

sam8890 commented May 16, 2019

20190516101405
20190516101433
20190516101452
20190516101513

@mariodivece
Copy link
Member

None of the screenshots is showing the console output. Also as stated in the documentation you need vs 2019 to open the sample. Vs 2019 community works and it's free

@sam8890
Copy link

sam8890 commented May 16, 2019

yes, I'm using vs 2019 to open the sample
20190516102138

@sam8890
Copy link

sam8890 commented May 16, 2019

this is console output
QQ截图20190516102311

@mariodivece
Copy link
Member

mariodivece commented May 16, 2019

I can't reproduce the issue. Here's the most basic sample I could write in 30 seconds and it works just fine.
FFmeBasicSample.zip

See App.xaml.cs and MainWindow.xaml

@sam8890
Copy link

sam8890 commented May 16, 2019

ooh my god,why is it still did not work,I don't know what went wrong
QQ截图20190516112454

@mariodivece
Copy link
Member

Try replacing the OnStartup method in App.xaml.cs
What is the console output?

        protected override void OnStartup(StartupEventArgs e)
        {
            Library.FFmpegDirectory = @"c:\ffmpeg";
            Library.LoadFFmpeg();
            MediaElement.FFmpegMessageLogged += (s, ev) =>
            {
                System.Diagnostics.Debug.WriteLine(ev.Message);
            };
            base.OnStartup(e);
        }

@sam8890
Copy link

sam8890 commented May 16, 2019

QQ截图20190516113304
QQ截图20190516113356

@mariodivece
Copy link
Member

mariodivece commented May 16, 2019

did you download the 32-bit or 64-bit version (of ffmpeg)?
Where did you download it from?
Did you try this?
https://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-4.1.3-win32-shared.zip

if that does not work, try this:
https://ffmpeg.zeranoe.com/builds/win64/shared/ffmpeg-4.1.3-win64-shared.zip

@sam8890
Copy link

sam8890 commented May 16, 2019

use ffmpeg-4.1.3-win64
QQ截图20190516123503

@sam8890
Copy link

sam8890 commented May 16, 2019

I downloaded it here before
QQ截图20190516123619

@sam8890
Copy link

sam8890 commented May 16, 2019

Thank you ever so much

@mariodivece
Copy link
Member

sure.

@zhongbodong
Copy link
Author

use ffmpeg-4.1.3-win64
QQ截图20190516123503

sure.

it works very well,thank you very much ,I used https://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-4.1.3-win32-shared.zip
image

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

No branches or pull requests

3 participants