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

when I packaged, can't play any video #27

Open
ljason1993 opened this issue Apr 7, 2021 · 15 comments
Open

when I packaged, can't play any video #27

ljason1993 opened this issue Apr 7, 2021 · 15 comments

Comments

@ljason1993
Copy link

in editor
we can change Stream-Media-Source Player-Overrides
image
It works


but when I packaged
"[2021.04.07-10.09.26:624][968]LogWmfMedia: Error: An error occurred in the media session: 指定的传递模式无效。"
the Stream-Media-Source defalut use Windows-Media-Foundation(WMF Media)


so does any body can help me ? thank you so much~~~
@bakjos

@ljason1993
Copy link
Author

0.0
does somebody here?

@bakjos
Copy link
Owner

bakjos commented Apr 8, 2021

@ljason1993 Can you send me more details: the full log of the application, to see if the FFMpeg libraries are loaded, the ini files to check if the player is being overridden and the platform used to build the binary (VS 2019 x64 binary).

@ljason1993
Copy link
Author

@bakjos

error message
LogMediaUtils: Error: Cannot play rtsp://192.168.19.130:26219/rtsp, because none of the enabled media player plug-ins support it: LogMediaUtils: | MagicLeapMedia (only available on Lumin, but not on Windows) LogMediaUtils: | MagicLeapMediaCodec (only available on Lumin, but not on Windows) LogMediaUtils: | AndroidMedia (only available on Android, but not on Windows) LogMediaUtils: | AvfMedia (only available on iOS, Mac, but not on Windows) LogMediaUtils: | ImgMedia (URI scheme or file extension not supported) LogMediaUtils: | WebMMedia (URI scheme or file extension not supported) LogMediaUtils: | FFMPEGMedia (URI scheme or file extension not supported)

I find position
\FFMPEGMedia-master\Source\FFMPEGMediaFactory\Private\FFMPEGMediaFactoryModule.cpp 156

SupportedFileExtensions.Append(FFMPEGMediaModule->GetSupportedFileExtensions());// I think not working SupportedUriSchemes.Append(FFMPEGMediaModule->GetSupportedUriSchemes() );// I think not working

when I do this
image

It's greate
(We have different time zones, sorry ~~~ ;-) )

@ljason1993
Copy link
Author

@bakjos
oh forgot one thing
if my project don't have C++ Class
when I packaged project
my project will not have Plugins and Binaries folder

@bakjos
Copy link
Owner

bakjos commented Apr 9, 2021

@ljason1993 Thanks for the feedback, yes looks like we're in different time zones, when you make the changes is it working for you? the extensions and schemes are automatically extracted from the FFMPEG binaries

const char *name = avio_enum_protocols(&opaque, 1);
, so it depends on what platform you're trying to run the application is it windows x64?

@ljason1993
Copy link
Author

@bakjos
I use windows 10 20H2
I think it's not working...

@jxyb2008
Copy link

(UE4.26 window10 x64) I have the same problem. I can't play it after packing, but All settings are OK.

[2021.07.10-16.03.55:323][ 0]LogWindows: Failed to load '../../../MediaPro/Plugins/FFMPEGMedia/ThirdParty/ffmpeg/bin/vs/x64/avdevice-58.dll' (GetLastError=126)
[2021.07.10-16.03.55:323][ 0]LogWindows: Missing import: OpenAL32.dll
[2021.07.10-16.03.55:323][ 0]LogWindows: Missing import: AVICAP32.dll
[2021.07.10-16.03.55:323][ 0]LogWindows: Looked in: ../../../MediaPro/Binaries/Win64
[2021.07.10-16.03.55:323][ 0]LogWindows: Looked in: D:\Work\UE4\MediaPro\WindowsNoEditor\MediaPro\Binaries\Win64
[2021.07.10-16.03.55:323][ 0]LogFFMPEGMedia: Display: FFmpeg AVCodec version: 58.29.100
[2021.07.10-16.03.55:323][ 0]LogFFMPEGMedia: Display: FFmpeg license: GPL version 2 or later
......
[2021.07.10-16.04.00:244][ 64]LogWmfMedia: Error: Failed to resolve URL rtsp://admin:DEWKFI@192.168.1.76:554/h264/ch1/main/av_stream: 拒绝访问。

@jxyb2008
Copy link

@bakjos How to solve this problem?

@jxyb2008
Copy link

I've solved it. It's the plug-in loading order

@bakjos
Copy link
Owner

bakjos commented Jul 16, 2021

@jxyb2008 Glad you figured it out, I'm quite busy at work and haven't been able to review the issues here, What did you change, should I update the README with the instructions?

@KapoYU
Copy link

KapoYU commented Jul 25, 2021

我已经解决了。这是插件加载顺序

How did you solve it? I have the same problem

@sixtolink
Copy link

Excuse me.Do you have any further information about this? @bakjos

@sixtolink
Copy link

打扰一下,你有这方面的进一步信息吗?@bakjos

FFMPEGMedia.uplugin
First "FFMPEGMediaFactory" Then "FFMPEGMedia"

@AlienZi
Copy link

AlienZi commented Jul 7, 2022

@sixtolink I have modified the order of plug-ins, why not?
image

@AlienZi
Copy link

AlienZi commented Jul 7, 2022

image
why?

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

No branches or pull requests

6 participants