Code Monkey home page Code Monkey logo

shiftmediaproject / ffmpeg Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ffmpeg/ffmpeg

716.0 70.0 280.0 362.57 MB

Unofficial FFmpeg with added custom native Visual Studio project build tools. FFmpeg: A complete, cross-platform solution to record, convert and stream audio and video.

Home Page: http://ffmpeg.org

License: Other

C 90.58% C++ 0.20% Shell 0.08% Makefile 1.29% Assembly 7.50% Objective-C 0.15% Batchfile 0.01% Perl 0.04% Roff 0.01% Cuda 0.12% Awk 0.01% HTML 0.01% Ruby 0.01% Python 0.01% Metal 0.01% Verilog 0.01%
ffmpeg visualstudio msvc visual-studio

ffmpeg's Introduction

ShiftMediaProject FFmpeg

Build status Github All Releases GitHub release GitHub issues license donate

ShiftMediaProject

Shift Media Project aims to provide native Windows development libraries for FFmpeg and associated dependencies to support simpler creation and debugging of rich media content directly within Visual Studio. https://shiftmediaproject.github.io/

FFmpeg

FFmpeg is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata. https://ffmpeg.org

Downloads

Pre-built executables are available from the releases page in a single archive containing both 32bit and 64bit versions. Development libraries are also available from the releases page. These libraries are available for each supported Visual Studio version with a different download for each version. Each download contains both static and dynamic libraries to choose from in both 32bit and 64bit versions.

Code

This repository contains code from the corresponding upstream project with additional modifications to allow it to be compiled with Visual Studio. New custom Visual Studio projects are provided within the 'SMP' sub-directory. Refer to the 'readme' contained within the 'SMP' directory for further details.

Issues

Any issues related to the ShiftMediaProject specific changes should be sent to the issues page for the repository. Any issues related to the upstream project should be sent upstream directly (see the issues information of the upstream repository for more details).

License

ShiftMediaProject original code is released under LGPLv2.1. All code from the upstream repository remains under its original license (see the license information of the upstream repository for more details).

Copyright

As this repository includes code from upstream project(s) it includes many copyright owners. ShiftMediaProject makes NO claim of copyright on any upstream code. However, all original ShiftMediaProject authored code is copyright ShiftMediaProject. For a complete copyright list please checkout the source code to examine license headers. Unless expressly stated otherwise all code submitted to the ShiftMediaProject project (in any form) is licensed under LGPLv2.1 and copyright is donated to ShiftMediaProject. If you submit code that is not your own work it is your responsibility to place a header stating the copyright.

Contributing

Patches related to the ShiftMediaProject specific changes should be sent as pull requests to the main repository. Any changes related to the upstream project should be sent upstream directly (see the contributing information of the upstream repository for more details).

ffmpeg's People

Contributors

aconverse avatar aurelj avatar bcoudurier avatar btbn avatar cehoyos avatar cus avatar cyanreg avatar dondiego avatar dwbuiten avatar elenril avatar fhvwy avatar jamrial avatar justinruggles avatar kodawah avatar lance-lmwang avatar lu-zero avatar mansr avatar michaelni avatar mkver avatar mstorsjo avatar nevcairiel avatar ramiropolla avatar rbultje avatar rdoeffinger avatar richardpl avatar rouseabout avatar saste avatar sibras avatar ubitux avatar yuvi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ffmpeg's Issues

DLL builds are linking the wrong libraries

This one goes back to the change that was made at my request, so I guess I have to bear part of the blame :-)

The building of the DebugDLL and ReleaseDLL versions of avcodecgo awry because they try to link in libavutil.lib (libavutild.lib for debug), which are no longer import libraries but static libraries since the import libraries now follow the naming standard saying that import libraries (under Windows) should not have the lib prefix (precisely so that they can be told apart from static library builds).

Hope for batch clone, pull and build script

Thank you for these repositories

I spent monthes trying to compile FFmpeg in windows. I tried cross compile in ubuntu and in mingw but these methods has all kinds of problems.:dizzy_face:

I heared your media project in a programmer chat room by luck.

This is what I'm looking for!!!:smile::heart_eyes:

Hope for batch process

But the bulid process was little stupid: I cloned repositories one by one and opened every solutions to figure out the dependences, then builded librarys once at a time. This takes me one morning.:sweat_smile:

When you pushed to these repositories, I have to pull them one by one again!:sweat_smile:

After realize how stupid I was, I wrote a bash script which works in git bash to pull all the repositories and I'm planning to write MSBuild scripts for VS native tools command prompt.:smirk:

I hope we can add a batch script repository.

Thanks

Couple issues in building with

  1. libavutild.lib(libavutil_float_dsp.obj) : warning LNK4099: PDB 'libavutild.pdb' was not found with 'libavutild.lib(libavutil_float_dsp.obj)' or at 'C:\MyDevProjects\MyProjects\ffmpegTools\Build.ShiftMedia\Out\Win32\Debug\libavutild.pdb'; linking object as if no debug info

I get this for all "libav*.lib

2)libavcodecd.lib(libx264.obj) : warning LNK4049: locally defined symbol _x264_levels imported

very slow speed h265 to h264

Context

I compile SMP ok, test h265 to 264
ffmpeg.exe -hide_banner -y -noautorotate -i TEST.mkv -c:v h264_nvenc -profile:v main -level:v 4.2 -pix_fmt yuv420p -rc vbr -cq 22 -qmin 5 -qmax 30 -g 250 -filter_complex [0:0]null[VA];[0:4]scale=1920:1080[sub1];[VA][sub1]overlay=main_w/2-overlay_w/2:main_h-overlay_h[VIDEO] -map [VIDEO] -c:a aac -b:a 128k -ar 44100 -ac 2 -map 0:2 -metadata:s:a:0 language=zho -f mp4 -map_chapters -1 -metadata "title=aaa" -metadata artist=bbb -metadata genre=ccc -metadata "comment=ddd" TEST.mp4
speed is 0.5 --- 1.0

if use zeranoe ffmpeg.exe
speed is 4.5 --- 5.0

Both use GPU acceleration
But I don't know why your ffmpeg.exe is so slow.

Your Environment

  • Version Used: NEWEST
  • Operating System and Version: Windows10 X64
  • Compiler and Version(s): VS2017

Possible Fix

Cannot use Visual Studio 2015

Many of the projects (but not all) fail to load in Visual Studio 2015. When loading the project files into the VS editor, you see that some child elements of <ItemGroup> are underlined in blue. Hovering over them then brings up some text saying that Visual Studio cannot understand those tags.

The projects perform complete recompile always

When I make a change to one source file, I expect only that file to compile and then the linker to run.
Instead, all files are recompiled.
Do you know how I can correct this?
Thanks
David

Feature request: debug and release versions in same build directory tree

When working closely with FFmpeg builds (read: when stepping into the code with the debugger becomes a habit), having to copy the generated DLLs and .pdb files becomes a source of errors. Currently, building any configuration deletes the output directories, so that you can't keep debug and release builds together without copying them.

ffplay no sound

ffplay no sound.
x86 or x64.

Context

SDL_OpenAudio (2 channels, 48000Hz): XAudio2: XAudio2Create() failed at open.
SDL_OpenAudio (1 channels, 48000Hz): XAudio2: XAudio2Create() failed at open.
SDL_OpenAudio (2 channels, 44100Hz): XAudio2: XAudio2Create() failed at open.
SDL_OpenAudio (1 channels, 44100Hz): XAudio2: XAudio2Create() failed at open.
No more combinations to try, audio open failed

Your Environment

  • Version Used: git 2017-09-05
  • Operating System and Version: WIN7X64
  • Compiler and Version(s):VS2015

Possible Fix

ffmpeg(native)+sdl(native,pkgconfig), ffplay is OK.

Unresolved external symbols in debug builds

Due to dead code elimination being extensively used throughout FFmpeg code optimisation needs to be enabled in order to remove to dead function calls. Unfortunately this optimisation is not performed in debug builds and so many unresolved external symbols appear. Currently the linker is forced to ignore these symbols but this is a rather dirty hack. Need to find more elegant way to handle this.

Cloning and building instructions for windows

My objective is to build ffmpeg within Visual Studio 2015.
I am assuming that the first thing I need to do is to run the project_get_dependencies.bat in the ffmpeg folder, but fails fails to clone the projects.
Running the clone command for all of the projects manually succeeds and they are now next to ffmpeg under my project root.
There are now two problems that are described below.

Context

It is not clear how to acquire all the prerequisites.

Expected Behavior

After following instructions in the project, ffmpeg.sln should build all the components of ffmpeg.

Actual Behavior

1. yasm succeeds to compile some asm files but fails on others. Sample output:

1> Assembling cpuid.asm
1> Assembling emms.asm
1> Assembling fixed_dsp.asm
1> Assembling float_dsp.asm
1> Assembling imgutils.asm
1> Assembling lls.asm
1> Assembling pixelutils.asm
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\BuildCustomizations\yasm.targets(45,5): error MSB3721: The command ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin"vsyasm.exe -Xvc -f x64 -i ".. .. ShiftMedia\FFmpeg\SMP\" -i ".. .. \ShiftMedia\FFmpeg\SMP\..\" -o ".. ..\ShiftMedia\FFmpeg\SMP\obj\Debug\x64\libavutil\" -rnasm -pnasm ..\libavutil\x86\cpuid.asm ..\libavutil\x86\emms.asm ..\libavutil\x86\fixed_dsp.asm ..\libavutil\x86\float_dsp.asm ..\libavutil\x86\imgutils.asm ..\libavutil\x86\lls.asm ..\libavutil\x86\pixelutils.asm" exited with code 1.

2. Some of the include files required for building are missing. For instance

6>..\libavformat\tls_gnutls.c(24): fatal error C1083: Cannot open include file: 'gnutls/gnutls.h': No such file or directory

Steps to Reproduce

  1. clone the ffmpeg project on windows.
  2. Install yasm as instructed.
  3. In the project run project_get_dependencies.bat
  4. clone the projects manually so that they are all next to ffmpeg.
  5. open ffmpeg/smp/ffmpeg.sln.
  6. Select x64 configuration and rebuild all.

Your Environment

  • Version Used:
  • Operating System and Version:
    Windows 10 64 bit
  • Compiler and Version(s):
    Visual Studio 2015

Possible Fix

It is possible that I am missing a configuration or installation step.
If so, I would like know where to find information on that.

Missing avconfig.h

After creating the Visual Studio 2013 projects and compiling them. The include folder under $(OutDir) is missing a header in libavutil/avconfig.h.
This file is included by libavutil/common.h
This file can be found at SMP/libavutil/avconfig.h which is why it is found by the projects in the SMP folder.
However, when I point to the header folder $(OutDir)/include in another project that uses the FFMPEG libraries, the file is not found.
I found that two things needed to be done to fix this:

  1. Copy SMP/libavutil/avconfig.h to $(OutDir)/include/libavutil
  2. Edit $(OutDir)/include/libavutil/common.h so that it does not include "libavutil/avconfig.h" but rather "avconfig.h".

Some projects do not load in ffmpeg.sln and some header files are missing

I cloned the project and opened ffmpeg.sln with Visual Studio 2013
The following projects failed to load: libavcodec, libavdevice, libavfilter, libavformat, libswresample and libswscale.
In addition during compilation a number of headers were not found: zlib.h, sdl.h and a few others.
How can I resolve these?

can you tell me how to truncate the codec library

Context

can you tell me how to truncate the codec library

Expected Behavior

Because i don't neet some decoders and encoders,so i want to truncate the codec library

Actual Behavior

I don't know how to truncate the codec library

very slow speed for ffmpeg'segment and hls ?

hello, I compile shiftmediaproject ok, then test hls segment, command likes:
ffmpeg.exe -i F:\web\express\testv\public\hls\ani.mp4 -codec:v libx264 -codec:a aac -map 0 -f ssegment -segment_format mpegts -segment_list F:\web\express\testv\public\hls\playlist.m3u8 -segment_wrap 5 -segment_time 5 F:\web\express\testv\public\hls\out%%03d.ts

or
ffmpeg.exe -i F:\web\express\testv\public\hls\ani.mp4 -c:v libx264 -c:a aac -strict -2 -f hls -hls_wrap 5 -hls_time 5 F:\web\express\testv\public\hls\playlist.m3u8

but when I preview m3u8 in browser , I found that video is blocked frequently; I notice that ts(segemnt)file was produced very slowly。 if I use ffmpeg complied by mingw, ts file was produced very fast, any suggestion?

thanks a lot。

libavformatd.lib(read-file.obj) : error LNK2005: _read_file already defined in libavfilterd.lib(ass.obj)

Hello, i get error when i build the ffmpeg.

Context

libavformatd.lib(read-file.obj) : error LNK2005: _read_file уже определен в libavfilterd.lib(ass.obj)

Expected Behavior

Actual Behavior

Steps to Reproduce

  1. Build All dependencies libs;
  2. Build ffmpeg

Your Environment

  • Visual Studio 2018:
  • Windows 10:
  • 10.0.10240.0:

Possible Fix

libavformatd.lib have _read_file, libavfilterd.lib have _read_file. linker don't understed what for used, i think maybe you can union the libavfilterd.lib and libavformatd.lib

errors in build

Severity Code Description Project File Line Suppression State
Error C2065 'CONFIG_KMSGRAB_INDEV': undeclared identifier libavdevice g:\ShiftMediaProject\FFmpeg\libavdevice\alldevices.c 56
Error C2065 'CONFIG_WRAPPED_AVFRAME_DECODER': undeclared identifier libavcodec g:\ShiftMediaProject\FFmpeg\libavcodec\allcodecs.c 380
Error LNK1104 cannot open file 'libavdeviced.lib' ffprobe g:\ShiftMediaProject\FFmpeg\SMP\LINK 1
Error LNK1104 cannot open file 'libavdeviced.lib' ffplay g:\ShiftMediaProject\FFmpeg\SMP\LINK 1
Error C1083 Cannot open include file: 'GL/glext.h': No such file or directory libavdevice g:\ShiftMediaProject\FFmpeg\libavdevice\opengl_enc.c 43
Error C1083 Cannot open include file: 'mfx/mfxvideo.h': No such file or directory libavutil g:\ShiftMediaProject\FFmpeg\libavutil\hwcontext_qsv.c 22
Error C1083 Cannot open include file: 'mfx/mfxvideo.h': No such file or directory libavcodec g:\ShiftMediaProject\FFmpeg\libavcodec\qsv.c 21
Error C1083 Cannot open include file: 'mfx/mfxvideo.h': No such file or directory libavcodec g:\ShiftMediaProject\FFmpeg\libavcodec\qsvenc_h264.c 27
Error C1083 Cannot open include file: 'mfx/mfxvideo.h': No such file or directory libavcodec g:\ShiftMediaProject\FFmpeg\libavcodec\qsvenc_hevc.c 25
Error C1083 Cannot open include file: 'mfx/mfxvideo.h': No such file or directory libavcodec g:\ShiftMediaProject\FFmpeg\libavcodec\qsvdec_h2645.c 28
Error C1083 Cannot open include file: 'mfx/mfxvideo.h': No such file or directory libavcodec g:\ShiftMediaProject\FFmpeg\libavcodec\qsvenc.c 26
Error C1083 Cannot open include file: 'mfx/mfxvideo.h': No such file or directory libavcodec g:\ShiftMediaProject\FFmpeg\libavcodec\qsvdec.c 27
Error C1083 Cannot open include file: 'mfx/mfxvideo.h': No such file or directory libavcodec g:\ShiftMediaProject\FFmpeg\libavcodec\qsvenc_mpeg2.c 25
Error C1083 Cannot open include file: 'mfx/mfxvideo.h': No such file or directory libavcodec g:\ShiftMediaProject\FFmpeg\libavcodec\qsvdec_other.c 27
Error C1083 Cannot open include file: 'mfx/mfxvideo.h': No such file or directory libavfilter g:\ShiftMediaProject\FFmpeg\libavfilter\vf_deinterlace_qsv.c 24
Error C1083 Cannot open include file: 'mfx/mfxvideo.h': No such file or directory libavfilter g:\ShiftMediaProject\FFmpeg\libavfilter\vf_scale_qsv.c 24
Error C1083 Cannot open include file: 'mfx/mfxvideo.h': No such file or directory ffmpeg g:\ShiftMediaProject\FFmpeg\ffmpeg_qsv.c 19
Error C1083 Cannot open include file: 'mfx/mfxvideo.h': No such file or directory (compiling source file ..\libavcodec\qsv_api.c) libavcodec g:\shiftmediaproject\ffmpeg\libavcodec\qsv.h 24
Error C1083 Cannot open include file: 'x265.h': No such file or directory libavcodec g:\ShiftMediaProject\FFmpeg\libavcodec\libx265.c 27
Error C1083 Cannot open source file: '..\libavfilter\framesync2.c': No such file or directory libavfilter g:\ShiftMediaProject\FFmpeg\SMP\c1 1
Error C1083 Cannot open source file: '..\source\common\IntraPred.cpp': No such file or directory [g:\ShiftMediaProject\x265\SMP\libx265.vcxproj] libx265 g:\ShiftMediaProject\x265\SMP\c1xx 1
Error C1083 Cannot open source file: '..\source\common\IntraPred.cpp': No such file or directory [g:\ShiftMediaProject\x265\SMP\libx265.vcxproj] libx265 g:\ShiftMediaProject\x265\SMP\c1xx 1
Error MSB3073 The command "if exist ..\source\x265_config.h (
del ..\source\x265_config.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h
)
MSBuild libx265.vcxproj /property:Configuration="Debug_10b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
MSBuild libx265.vcxproj /property:Configuration="Debug_12b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
:VCEnd" exited with code 1. libx265 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 123
Error MSB3073 The command "if exist ..\source\x265_config.h (
del ..\source\x265_config.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h
)
MSBuild libx265.vcxproj /property:Configuration="Debug_10b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
MSBuild libx265.vcxproj /property:Configuration="Debug_12b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
:VCEnd" exited with code 1. libx265 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 123
Error MSB3073 The command "if exist ..\source\x265_config.h (
del ..\source\x265_config.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h
)
MSBuild libx265.vcxproj /property:Configuration="Debug_10b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
MSBuild libx265.vcxproj /property:Configuration="Debug_12b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
:VCEnd" exited with code 1. libx265 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 123
Error MSB3073 The command "if exist ..\source\x265_config.h (
del ..\source\x265_config.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h
)
MSBuild libx265.vcxproj /property:Configuration="Debug_10b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
MSBuild libx265.vcxproj /property:Configuration="Debug_12b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
:VCEnd" exited with code 1. libx265 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 123
Error MSB3073 The command "if exist ..\source\x265_config.h (
del ..\source\x265_config.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h
)
MSBuild libx265.vcxproj /property:Configuration="Debug_10b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
MSBuild libx265.vcxproj /property:Configuration="Debug_12b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
:VCEnd" exited with code 1. libx265 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 123
Error MSB3073 The command "if exist ..\source\x265_config.h (
del ..\source\x265_config.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h
)
MSBuild libx265.vcxproj /property:Configuration="Debug_10b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
MSBuild libx265.vcxproj /property:Configuration="Debug_12b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
:VCEnd" exited with code 1. libx265 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 123
Error MSB3073 The command "if exist ..\source\x265_config.h (
del ..\source\x265_config.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h
)
MSBuild libx265.vcxproj /property:Configuration="Debug_10b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
MSBuild libx265.vcxproj /property:Configuration="Debug_12b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
:VCEnd" exited with code 1. libx265 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 123
Error MSB3073 The command "if exist ..\source\x265_config.h (
del ..\source\x265_config.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h
)
MSBuild libx265.vcxproj /property:Configuration="Debug_10b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
MSBuild libx265.vcxproj /property:Configuration="Debug_12b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
:VCEnd" exited with code 1. libx265 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 123
Error MSB3073 The command "if exist ..\source\x265_config.h (
del ..\source\x265_config.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h
)
MSBuild libx265.vcxproj /property:Configuration="Debug_10b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
MSBuild libx265.vcxproj /property:Configuration="Debug_12b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
:VCEnd" exited with code 1. libx265 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 123
Error MSB3073 The command "if exist ..\source\x265_config.h (
del ..\source\x265_config.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h
)
MSBuild libx265.vcxproj /property:Configuration="Debug_10b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
MSBuild libx265.vcxproj /property:Configuration="Debug_12b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
:VCEnd" exited with code 1. libx265 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 123
Error MSB3073 The command "if exist ..\source\x265_config.h (
del ..\source\x265_config.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h
)
MSBuild libx265.vcxproj /property:Configuration="Debug_10b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
MSBuild libx265.vcxproj /property:Configuration="Debug_12b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
:VCEnd" exited with code 1. libx265 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 123
Error MSB3073 The command "if exist ..\source\x265_config.h (
del ..\source\x265_config.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265.h
)
if exist "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h (
del "g:\ShiftMediaProject\x265\SMP......\msvc"\include\x265_config.h
)
MSBuild libx265.vcxproj /property:Configuration="Debug_10b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
MSBuild libx265.vcxproj /property:Configuration="Debug_12b",Platform="Win32",SolutionDir="g:\ShiftMediaProject\FFmpeg\SMP\",SolutionFileName="ffmpeg_deps.sln" /verbosity:m /nologo
:VCEnd" exited with code 1. libx265 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets 123

error MSB3721 when im trying to compile the libs from your repositrorie

Error 8 error MSB3721: The command ""C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin"vsyasm.exe -Xvc -f Win32 -i "C:\Users\Desktop\FFmpeg\Solutions\xvid-master\SMP..\src" -d "WINDOWS" -o "C:\Users\Desktop\FFmpeg\Solutions\xvid-master\SMP\obj\Debug\Win32\libxvidcore" -rnasm -pnasm "C:\Users\Desktop\FFmpeg\Solutions\xvid-master\src\bitstream\x86_asm\cbp_mmx.asm"" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\vsyasm.targets 45 5 libxvidcore

and i changed the props file in vsyasm as you described at the readme file.

Thank you!

Error - Cannot Find Temp.bat

When I try to run the project generate to make new project files it throws an error, I assume it has to be that I don't have all the dependencies downloaded but its not super clear which ones

capture

project_generate.bat problem: cannot find "GL/glext.h"

I'm getting the following in log.txt when calling my version of project_generate.bat (I simply added --disable-sdl):

alldevices.c
avdevice.c
utils.c
dshow_crossbar.c
dshow.c
dshow_enummediatypes.c
dshow_enumpins.c
dshow_filter.c
dshow_pin.c
dshow_common.c
gdigrab.c
lavfi.c
opengl_enc.c
vfwcap.c
file_open.c
../../..\libavdevice\opengl_enc.c(43): fatal error C1083: Cannot open include file: 'GL/glext.h': No such file or directory

This should not happen, because I have downloaded glext.h, and put it into D:\Libraries\include, which I have configured via the Property Pages in Visual Studio.

Question: reducing reserved stack size

This is not a bug, and it may have nothing to do with FFmpeg. Nevertheless, I'd appreciate any input on this problem.

Our application, which is 32-bit, requires quite a bit of memory. However, it's not its needs of physical memory (those are below 1GB) that present the problem, but the fact that the per-process 2GB address space is exhausted.

I was able to determine this using Mark Russinovich's excellent VMMap tool. VMMap also showed me that a lot of the address space is being wasted on the stacks: roughly 500MB are reserved for the stacks of 12 threads - only 5MB being actually used (both numbers are totals over all threads). It's quite probable that the actual consumption would have gone up a bit if the creation of the video stream had succeeded (which it didn't because memory allocation failed), but I suspect the actual need is nowhere near as high as the reserved amounts.

I'm not sure why our exe is reserving that much stack; it might be because of a VS project setting that I can't check myself at the moment. But if it turns out, as I think is the case, that we do need a lot of stack for the main thread, is there a way to set a specific stack size for the threads created by FFmpeg ?

Useful to have separate directories for separate builds

Now we get all outputted to "msvc". Useful to have separate directories for each configuration.

The important variables - other than platform (already take care)

  • $(Configuration)
  • $(PlatformToolset)

like - msvc-v141\Debug\x86

porting libaom

Hi Matthew Oliver,
first let me tell you how thankfull I am that you share all your work necessary for porting ffmoeg and its libraries to VS. That was extremely helpfull for me!

Have you had a look at "libaom", the library that provides the new AV1 video codec? I believe it is an important addition to ffmpeg.

It was actually easy to build the aom-project with VS using the cmake option in VS-2017.
Unfortunately the "CMakeLists.txt" file produces only *.exe files, since all the libraries in the project seem static. I am certain that it is possible and maybe easy to do the same with dynamic libraries, but I do not have the slightest idea, how to modify a cmake-file.

Do you have any plans to integrate libaom into the ShiftMediaProject collection of libraries?
Best regards, Peter

Feature Request: Libopenh264

Sorry if this is the wrong repo to post this in, Would it be possible for you to create a libopenh264 project that can then be used with this FFMPEG project?

Compile code on MSVC on 2017 with Windows SDK(10.0.17763.0)

Hi All,

I cloned the code and configured on Visual Studio 2017 with Window SDK (10.0.17763.0) on Windows 10 Prof.

While build the project then I got compilation error.

Context

I need latest version of of FFmepg4.XX in for some testing. If am download from the FFmpeg.org then these methods(ff_rtsp_parse_line & ffio_open_dyn_packet_buf) are missing while creating 'obj' file.

Expected Behavior

Code should compile smooth without error

Actual Behavior

But we are getting error. Log file attached
ffmpeg.log

Steps to Reproduce

  1. Checkout the the code and its dependency
  2. Open 'ffmpeg_deps.sln' in Visual Studio C++
  3. Build the Solution
  4. You will receive error

Your Environment

Machine OS: Windows 10 Prof
Visual Studio C++ : 2017
Windows SDK : 10.0.17763.0
MYS2 32 : MSYS_NT-10.0-WOW | uname -m i686

image

Linking in Visual Studio 2017 fails

I'm trying to compile the project using Visual Studio 2017, but it fails with linker errors. I was able to successfully compile the project using Visual Studio 2015 on a different machine, using the same steps.

Context

FFmpeg should be able to compile using Visual Studio 2017.

Expected Behavior

Successful compilation.

Actual Behavior

1>------ Build started: Project: ffmpeg, Configuration: Debug x64 ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\Common7\IDE\VC\VCTargets\Microsoft.CppBuild.targets(1198,5): warning MSB8012: TargetPath(C:\Workspaces\VSFFmpeg\source\ffmpeg\SMP\..\..\..\msvc\ffmpeg.exe) does not match the Linker's OutputFile property value (C:\Workspaces\VSFFmpeg\msvc\bin\x64\ffmpeg.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
1>libavdeviced.lib(SDL_dynapi.obj) : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
1>libavformatd.lib(invert_limb_table.obj) : warning LNK4078: multiple '.rdata' sections found with different attributes (C0400040)
1>   Creating library C:\Workspaces\VSFFmpeg\source\ffmpeg\SMP\..\..\..\msvc\ffmpeg.lib and object C:\Workspaces\VSFFmpeg\source\ffmpeg\SMP\..\..\..\msvc\ffmpeg.exp
1>libavcodecd.lib(allcodecs.obj) : error LNK2001: unresolved external symbol ff_h264_vdpau_decoder
1>libavcodecd.lib(allcodecs.obj) : error LNK2001: unresolved external symbol ff_mpeg_xvmc_decoder
1>libavcodecd.lib(allcodecs.obj) : error LNK2001: unresolved external symbol ff_mpeg4_vdpau_decoder
1>libavcodecd.lib(allcodecs.obj) : error LNK2001: unresolved external symbol ff_mpeg_vdpau_decoder
1>libavcodecd.lib(allcodecs.obj) : error LNK2001: unresolved external symbol ff_mpeg1_vdpau_decoder
1>libavcodecd.lib(allcodecs.obj) : error LNK2001: unresolved external symbol ff_vc1_vdpau_decoder
1>libavcodecd.lib(allcodecs.obj) : error LNK2001: unresolved external symbol ff_wmv3_vdpau_decoder
1>libavcodecd.lib(allcodecs.obj) : error LNK2001: unresolved external symbol ff_libx262_encoder
1>libavcodecd.lib(fdctdsp_init.obj) : error LNK2019: unresolved external symbol ff_fdct_mmx referenced in function ff_fdctdsp_init_x86
1>libavcodecd.lib(fdctdsp_init.obj) : error LNK2019: unresolved external symbol ff_fdct_mmxext referenced in function ff_fdctdsp_init_x86
1>libavcodecd.lib(fdctdsp_init.obj) : error LNK2019: unresolved external symbol ff_fdct_sse2 referenced in function ff_fdctdsp_init_x86
1>libavcodecd.lib(vc1dsp_init.obj) : error LNK2019: unresolved external symbol ff_vc1dsp_init_mmx referenced in function ff_vc1dsp_init_x86
1>libavcodecd.lib(vc1dsp_init.obj) : error LNK2019: unresolved external symbol ff_vc1dsp_init_mmxext referenced in function ff_vc1dsp_init_x86
1>C:\Workspaces\VSFFmpeg\source\ffmpeg\SMP\..\..\..\msvc\\bin\x64\ffmpeg.exe : fatal error LNK1120: 13 unresolved externals
1>Done building project "ffmpeg.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 44 up-to-date, 0 skipped ==========

Steps to Reproduce

  1. Setup everything as specified in the project instructions.
  2. Use Visual Studio 2017 to Build Solution

Your Environment

  • Version Used: 00d8f27
  • Operating System and Version: Windows 10, Version 1703, 64bit
  • Compiler and Version(s): Visual Studio 2017

Possible Fix

enable fdk-aac failed

hi, i use this command to generator new project with enable fdk-aac lib, but it always come with this error msg:

Error: Failed calling temp.bat. Ensure you have Visual Studio or the Microsoft
compiler installed and that any required dependencies are available.
See log.txt for further details.

the command is :
project_generate.exe --enable-libfdk_aac --enable-nonfree --enable-gpl --enable-version3 --enable-avisynth --enable-libmp3lame --enable-libvorbis --enable-libspeex --enable-libopus --enable-libilbc --enable-libtheora --enable-libx264 --enable-libx265 --enable-libxvid --enable-libvpx --enable-libgme --enable-libmodplug --enable-libsoxr --enable-libfreetype --enable-fontconfig --enable-libfribidi --enable-libass --enable-gnutls --disable-schannel --enable-gmp --enable-libssh --enable-libcdio --enable-libbluray --enable-libmfx --toolchain=msvc

DebugDLL does not generate import libraries (probably because of missing symbols)

This is not a priority to me, because I just found out that I can't use that particular configuration.

Like the heading says, the DLL is generated due to the /FORCE option, but the import library isn't, probably because of all the linker errors.

Regarding the import library, I'd also like to suggest a change. There is standard (not a very intuitive one, but still) stating that (under Windows) only static libraries should carry the lib prefix, while DLL import libraries shouldn't (i.e. they should have the same name as the DLL whose interface they represent).

(This is stated in the Boost project. Actually the naming convention followed by Boost is even more involved, but personally I'm not suggesting you should follow that, only the prefix part.)

With your current approach, you have to configure separate output directories for each configuration, otherwise the import and static libraries will overwrite each other.

Also, minor detail: the default output directory seems to be "msvc", but I think your readme says it is either "msvc32" or "msvc64".

Issues I found getting this to build

Great project by the way.

  1. libspeex.def - LIBRARY labelled as libspeex not speex, meaning ffmpeg won’t start as it tries to load the libspeex.dll library instead of speex.dll

  2. I encountered issues with libvpx.def mentioned elsewhere where I had to remove the DATA tags.

  3. It’s necessary to install YASM in addition to NASM for several projects to build.

  4. speex_header_free comes up as unresolved for libavcodec until I added it manually to libspeex.def

  5. Had to install the header file from here https://github.com/KhronosGroup/EGL-Registry/tree/master/api/KHR into a KHR include folder for the opengl stuff to build.

Think that’s about it. Only built ReleaseDLL of ffmpeg so not sure if other issues lurk when I build Debug.

This was all with VS2017 on Win 10 and latest git clone of the project.

I retargeted all projects to the latest Win10 SDK via ffmpeg_deps.sln

Udp complains about missing pthreads

Using the default project configuration, udp (for example when streaming over rtp) complains that pthreads support is required for circular buffers. Can this be solved with any config option? Or do I have to include pthread-win32 as a dependency?

Cannot build libavutils: LNK2001 "unresolved external symbol avpriv_emms_yasm"

I tried various ways to get the current version to compile, but no luck. With the static version, I had countless linker errors for symbols beginning with "ff". To my understanding, those are the entry points for the codecs, so those cannot be ignored.

In desperation, I tried a debug DLL build, but that build fails with the above linker error (no DLL is generated).

There is also a serious problem with yasm. Although I obtained version 1.3 and took the configuration steps outlined in your readme, yasm stills fails:

Error 1 error MSB3721: The command "vsyasm -Xvc -f win32 -g cv8 -i "..\\" -i ".\\" -i "..\libavcodec" -o "D:\SourceLibs\ShiftMediaProject\Sources\FFmpeg\SMP\\obj\DebugDLL\Win32\libavutil\\" -P "config.asm" -rnasm -pnasm "D:\SourceLibs\ShiftMediaProject\Sources\FFmpeg\libavutil\x86\cpuid.asm"" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\vsyasm.targets 45 5 libavutil

I've had similar errors throughout the project. In most cases, I was able to work around them by going to "Build customizations" and switching from yasm to masm, but not here.

ffmpeg is slower than one from zeranoe.

I had some tests with ffmpeg binaries from shiftmedia and zeranoe.

Here are test commands and results.

  1. ffmpeg -buildconf
  • zeranoe
    zeranoe_buildconf

  • shiftmedia
    image

  1. ffmpeg -i song.mp4 -vcodec mpeg4 -an -threads 6 output.mp4 (with and without -threads option, zeranoe is faster in every case..)
  • zeranoe
    image

  • shiftmedia
    image

Above results shows that

  • two binaries are built with different config options and compilers.
  • shiftmedia ffmpeg is slower than zeranoe`s.

I want to know correct reason what makes it slower.

  • Which config option makes slower?
  • FFmpeg built in msvc is slower than one built in gcc compiler?

Please check and let me know your ideas.

Thanks!

libavcodec MT build has problem

all project i had set : RuntimeLibrary = MT
5>------ 已启动生成: 项目: ffmpeg, 配置: Release Win32 ------
6>------ 已启动生成: 项目: ffplay, 配置: Release Win32 ------
7>------ 已启动生成: 项目: ffprobe, 配置: Release Win32 ------
5>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1189,5): warning MSB8012: TargetPath(F:\ShiftMediaProject\FFmpeg\SMP......\msvc\ffmpeg.exe) does not match the Linker's OutputFile property value (F:\msvc\bin\x86\ffmpeg.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
6>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1189,5): warning MSB8012: TargetPath(F:\ShiftMediaProject\FFmpeg\SMP......\msvc\ffplay.exe) does not match the Linker's OutputFile property value (F:\msvc\bin\x86\ffplay.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
7>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppBuild.targets(1189,5): warning MSB8012: TargetPath(F:\ShiftMediaProject\FFmpeg\SMP......\msvc\ffprobe.exe) does not match the Linker's OutputFile property value (F:\msvc\bin\x86\ffprobe.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
5>libavcodec.lib(api.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(api.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
7>libavcodec.lib(api.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
7>libavcodec.lib(api.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
6>libavcodec.lib(api.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
6>libavcodec.lib(api.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(version.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(common.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(primitives.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(bitstream.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(frameencoder.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(param.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(level.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(scalinglist.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(encoder.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(entropy.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(bitcost.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(constants.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(version.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(common.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(primitives.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(bitstream.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(frameencoder.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(param.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(level.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(scalinglist.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(encoder.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(entropy.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(bitcost.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
5>libavcodec.lib(constants.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
6>libavcodec.lib(version.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
6>libavcodec.lib(common.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
7>libavcodec.lib(version.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
6>libavcodec.lib(primitives.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
7>libavcodec.lib(common.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
6>libavcodec.lib(bitstream.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
7>libavcodec.lib(primitives.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
6>libavcodec.lib(frameencoder.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
7>libavcodec.lib(bitstream.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
6>libavcodec.lib(param.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
7>libavcodec.lib(frameencoder.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
7>libavcodec.lib(param.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
6>libavcodec.lib(level.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj) 中)
7>libavcodec.lib(level.obj) : error LNK2038: 检测到“RuntimeLibrary”的不匹配项: 值“MD_DynamicRelease”不匹配值“MT_StaticRelease”(libavfilter.lib(main.obj

/MD vs2015 runtime, /MT?

Context

The compile type is /MD, so it carries the VS2015 runtime,
and we can't guarantee that the clients are installed.
If you could just change it to /MT.

Expected Behavior

change to /MT.

vsyasm windows10 x64 install error

Context

vsyasm install error on windows10 x64.
because system don't allow copy file to c:\ , system disk.

Solve:
modify install_script.bat
@echo OFF after
Add:
cd /d "%~dp0"

Run with administrator privileges

OK.

Expected Behavior

Actual Behavior

Steps to Reproduce

Your Environment

  • Version Used:
  • Operating System and Version:
  • Compiler and Version(s):

Possible Fix

Debug executable path is different with Linker output path

I cannot start Debug ffplay in ffmepg_deps.sln. That's because Debug executable path is different with Linker output path. I fixed it by the modification:
diff --git a/SMP/ffplay.vcxproj b/SMP/ffplay.vcxproj
index be4cdafd8d..7e04a7a508 100644
Original: $(OutDir)\bin\x64$(TargetName)$(TargetExt)
FIXED: $(OutDir)$(TargetName)$(TargetExt)

Sorry for not using the issue template, because it's a little issue i think.

Context

Expected Behavior

Actual Behavior

Steps to Reproduce

Your Environment

  • Version Used:
  • Operating System and Version:
  • Compiler and Version(s):

Possible Fix

I can't build it in visual studio 2010.

The error message occur:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\Win32\Microsoft.Cpp.Win32.Targets(518,5): error MSB8008: Specified platform toolset (v120) is not installed or invalid. Please make sure that a supported PlatformToolset value is selected.

how do i fix it?

Can I directly open the project in Visual Studio 2010 or 2012?

ffplay cause sdl error

when i do ffplay -i rtmp://xxxxxxxx to play a rtmp live stream,it seems sdl_init error !!

Context

ffplay -i rtmp://xxxxxxxx

qq 20180308153330

Your Environment

  • Version Used: lastest
  • Operating System and Version: win7
  • Compiler and Version(s): vs2015

Possible Fix

sdl init error

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.