- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Can you help me to fix this problem, please?
I want to try for ‘h.264 4Kx4K@30 encoder ‘ and ‘h.264 4Kx2K@60 encoder’ on Apollo Lake CRB(Oxbow hill rev B).
I download the file by Intel website.
https://software.intel.com/en-us/intel-media-server-studio/code-samples
Download Tutorial packages → Windows package → Download the “mediasdk-tutorials-0.03.zip”
I create a Visual Studio Community 2015 project and use sample code " simple_encode " to build this project.
- VS2015 show error ::
1> ------ Started construction: Project: simple_encode, Configuration: Debug Win32 ------
1> simple_encode.cpp
1> common_utils_windows.cpp
1: c: \ apollosample \ mediasdk-tutorials-0.0.3 \ mediasdk-tutorials-0.0.3 \ common \ common_utils_windows.cpp (25): error C2220: Treat warning as error - no 'object' file
1> c: \ apollosample \ mediasdk-tutorials-0.0.3 \ mediasdk-tutorials-0.0.3 \ common \ common_utils_windows.cpp (25): warning C4100: 'bCreateSharedHandles': Unreferenced Type Parameters
1> c: \ apollosample \ mediasdk-tutorials-0.0.3 \ mediasdk-tutorials-0.0.3 \ common \ common_utils_windows.cpp (25): warning C4100: 'pmfxAllocator': Unreferenced Type Parameters
1: c: \ apollosample \ mediasdk-tutorials-0.0.3 \ mediasdk-tutorials-0.0.3 \ common \ common_utils_windows.cpp (87): warning C4100: 'memId': Unreferenced Type Parameters
1: c: \ apollosample \ mediasdk-tutorials-0.0.3 \ mediasdk-tutorials-0.0.3 \ common \ common_utils_windows.cpp (94): warning C4100: 'memId': Unreferenced Type Parameters
1> common_utils.cpp
1> cmd_options.cpp
(84): error C2220: Treat warnings as error handling - no 'object' file is generated (1) c: \ apollosample \ mediasdk-tutorials-0.0.3 \ mediasdk-tutorials-0.0.3 \ common \ cmd_options.cpp
1> c: \ apollosample \ mediasdk-tutorials-0.0.3 \ mediasdk-tutorials-0.0.3 \ common \ cmd_options.cpp (84): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s Instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c: \ program files (x86) \ windows kits \ 10 \ include \ 10.0.10240.0 \ ucrt \ stdio.h (2254): note: See the declaration of 'sscanf'
1> c: \ apollosample \ mediasdk-tutorials-0.0.3 \ mediasdk-tutorials-0.0.3 \ common \ cmd_options.cpp (108): warning C4996: 'sscanf': This function or variable may be unsafe. Consider using sscanf_s Instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c: \ program files (x86) \ windows kits \ 10 \ include \ 10.0.10240.0 \ ucrt \ stdio.h (2254): note: See the declaration of 'sscanf'
1> c: \ apollosample \ mediasdk-tutorials-0.0.3 \ mediasdk-tutorials-0.0.3 \ common \ cmd_options.cpp (warning) C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s Instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c: \ program files (x86) \ windows kits \ 10 \ include \ 10.0.10240.0 \ ucrt \ string.h (119): note: See the declaration of 'strcpy'
1> c: \ apollosample \ mediasdk-tutorials-0.0.3 \ mediasdk-tutorials-0.0.3 \ common \ cmd_options.cpp (warning): C4996: warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s Instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c: \ program files (x86) \ windows kits \ 10 \ include \ 10.0.10240.0 \ ucrt \ string.h (119): note: See the declaration of 'strcpy'
1> Generating code ...
========== Build: 0 Success, 1 Failure, 0 Latest, 0 Skip ==========
-----------------------------------------------------------------------------------------------------
※If I close the ” Treat Warning As Errors”.
(Debug → Property → C/C++ → Treat Warning As Errors → No /WX-)
②VS2015 show error ::
1> ------ Started construction: Project: simple_encode, Configuration: Debug Win32 ------
1> LINK: fatal error LNK1104: Cannot open file 'libmfx.lib'
========== Build: 0 success, 1 failure, 0 latest, 0 skip ==========
------------------------------------------
My platform:: win10
Microsoft Visual Studio Professional 2015
Version 14.0.25431.01 Update 3
Best Regards
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Joanne,
I think you have solved the first issue, for the second one, it is a link issue, can you check if the environment variable INTELMEDIASDKROOT is point to the directory where your Media SDK is installed. It looks like an environment issue.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Mark,
Sorry, I did not see the message.
I am downloading everything and try to build up environment.
Can you teach me how to use this Sample code?
Or some user guide in detail?
Thank you very much =)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Jonne,
Are you asking how to use simple_encode.exe?
You can try followings:
> simple_encode.exe -g WxH -b [bitrate] -f [frame rate] -hw [input file] [output file]
frame rate must be a format with "nominator/denominator".
the input file has the YUV format
the output file will be h.264 format
Run "simple_encode.exe --help" for the details
Note also the data file must be the elementary stream, it can't parse the media container (mp4 for example) for you.
Mark
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page