This project is read-only.

Not works in wp store app.

Nov 10, 2014 at 5:48 AM
Edited Nov 10, 2014 at 5:52 AM
Build was successfully.

But can't run application.

Occured this error "A dependent dll was not found." when running app on device.

(I did set "content = true " of required dll files.)
Nov 10, 2014 at 8:15 AM
This project should be output static libraries. Using these libraries in MFT, your player will play ffmpeg support video.

If you build DLL, as far as I know, you cannot use them directly. Because of they aren't Winrt dll, cannot be include into Winrt project.
Nov 11, 2014 at 7:53 AM
I called "build_ffmpeg_msvc.sh" on MinGW + Msys environment.
Output files are as the following.

"bin_armd" folder
-avcodec.dll
-avcodec-56.dll
-avcodec-56.pdb
-avdevice.dll
-avdevice-56.dll
-avdevice-56.pdb
-avfilter.dll
...
...
...

-lib\avcodec.lib
-lib\avdevice.lib
-lib\avfilter.lib
...
...
...


What file can I use?
What is static libraries?
Nov 12, 2014 at 9:09 AM
The *.dll files should be deploy with your project, you can include these dll into your project and set them as content.

The *.pdb files are used for debug

The *.lib files are used for link the dll into your project.
Nov 12, 2014 at 9:31 AM
I added .lib and .dll into project.
Dll files has been set to "Content=True"


extern "C"
{

include <libavformat\avformat.h>

include <libavcodec\avcodec.h>

include <libavutil\avutil.h>

include <libswscale\swscale.h>

}

pragma comment(lib, "ffmpeg\lib\avformat.lib")

pragma comment(lib, "ffmpeg\lib\avutil.lib")

pragma comment(lib, "ffmpeg\lib\swscale.lib")

pragma comment(lib, "ffmpeg\lib\avcodec.lib")

Paths exact also. but can't run app.
Error Message: "Occured this error "A dependent dll was not found." when running app on device."

I think I should not have this dll is compatible with the App Store.
Is not right?
Nov 25, 2014 at 8:50 AM
Edited Nov 25, 2014 at 8:50 AM
You have to include the dll's with the "-" extension. For instance "avfilter-5.dll".
Then place some code in your Windows Runtime component:
avcodec_register_all();
Then the console will show something like this:
'TaskHost.exe' (Win32): Loaded 'U:\programs\{C91B5696-1E87-4800-97D0-D23053727090}\NI\WindowsPhoneRuntimeComponent1.ni.dll'. 
'TaskHost.exe' (Win32): Loaded 'U:\programs\{C91B5696-1E87-4800-97D0-D23053727090}\Install\WindowsPhoneRuntimeComponent1.dll'. Symbols loaded.
'TaskHost.exe' (Win32): Loaded 'U:\programs\{C91B5696-1E87-4800-97D0-D23053727090}\Install\avcodec-56.dll'. Symbols loaded.
'TaskHost.exe' (Win32): Loaded 'C:\Windows\System32\Vccorlib110d.dll'. Symbols loaded.
'TaskHost.exe' (Win32): Loaded 'C:\Windows\System32\Msvcp110d.dll'. Symbols loaded.
'TaskHost.exe' (Win32): Loaded 'C:\Windows\System32\Msvcr110d.dll'. Symbols loaded.
'TaskHost.exe' (Win32): Loaded 'U:\programs\{C91B5696-1E87-4800-97D0-D23053727090}\Install\swresample-1.dll'. Symbols loaded.
'TaskHost.exe' (Win32): Loaded 'U:\programs\{C91B5696-1E87-4800-97D0-D23053727090}\Install\avutil-54.dll'. Symbols loaded.
For me this crashes unfortunately (probably due to some problem with the ffmpeg code):
'TaskHost.exe' (Win32): Loaded 'U:\programs\{C91B5696-1E87-4800-97D0-D23053727090}\NI\WindowsPhoneRuntimeComponent1.ni.dll'. 
'TaskHost.exe' (Win32): Loaded 'U:\programs\{C91B5696-1E87-4800-97D0-D23053727090}\Install\WindowsPhoneRuntimeComponent1.dll'. Symbols loaded.
'TaskHost.exe' (Win32): Loaded 'U:\programs\{C91B5696-1E87-4800-97D0-D23053727090}\Install\avcodec-56.dll'. Symbols loaded.
'TaskHost.exe' (Win32): Loaded 'C:\Windows\System32\Vccorlib110d.dll'. Symbols loaded.
'TaskHost.exe' (Win32): Loaded 'C:\Windows\System32\Msvcp110d.dll'. Symbols loaded.
'TaskHost.exe' (Win32): Loaded 'C:\Windows\System32\Msvcr110d.dll'. Symbols loaded.
'TaskHost.exe' (Win32): Loaded 'U:\programs\{C91B5696-1E87-4800-97D0-D23053727090}\Install\swresample-1.dll'. Symbols loaded.
'TaskHost.exe' (Win32): Loaded 'U:\programs\{C91B5696-1E87-4800-97D0-D23053727090}\Install\avutil-54.dll'. Symbols loaded.
'TaskHost.exe' (Win32): Unloaded 'U:\programs\{C91B5696-1E87-4800-97D0-D23053727090}\Install\WindowsPhoneRuntimeComponent1.dll'
'TaskHost.exe' (Win32): Unloaded 'C:\Windows\System32\Msvcr110d.dll'
'TaskHost.exe' (Win32): Unloaded 'C:\Windows\System32\Msvcp110d.dll'
'TaskHost.exe' (Win32): Unloaded 'C:\Windows\System32\Vccorlib110d.dll'
'TaskHost.exe' (Win32): Unloaded 'U:\programs\{C91B5696-1E87-4800-97D0-D23053727090}\Install\avcodec-56.dll'
'TaskHost.exe' (Win32): Unloaded 'U:\programs\{C91B5696-1E87-4800-97D0-D23053727090}\Install\avutil-54.dll'
'TaskHost.exe' (Win32): Unloaded 'U:\programs\{C91B5696-1E87-4800-97D0-D23053727090}\Install\swresample-1.dll'
First-chance exception at 0x778B35D7 in TaskHost.exe: Microsoft C++ exception: HRException at memory location 0x0052E910.
'TaskHost.exe' (Win32): Loaded 'C:\Windows\System32\EN-US\mscorlib.debug.resources.dll'. Module was built without symbols.
First-chance exception at 0x778B35D7 (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x8007007E, 0x00000000, 0x00000000, 0x00000000, 0x6F850000).
First-chance exception at 0x778B35D7 (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x80131604, 0x00000000, 0x00000000, 0x00000000, 0x6F850000).
First-chance exception at 0x778B35D7 (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x80131604, 0x00000000, 0x00000000, 0x00000000, 0x6F850000).
First-chance exception at 0x778B35D7 (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x80131604, 0x00000000, 0x00000000, 0x00000000, 0x6F850000).
First-chance exception at 0x778B35D7 (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x80131604, 0x00000000, 0x00000000, 0x00000000, 0x6F850000).
First-chance exception at 0x778B35D7 (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x80131604, 0x00000000, 0x00000000, 0x00000000, 0x6F850000).
Unhandled exception at 0x778B35D7 (KERNELBASE.DLL) in TaskHost.exe: 0xE0434352 (parameters: 0x80131604, 0x00000000, 0x00000000, 0x00000000, 0x6F850000).