how to compile ffmpeg on windows and have exe file at the end ?

Questions that occur when trying to compile FFmpeg.
Post Reply
yanshof
Posts: 3
Joined: Thu Jan 11, 2018 9:33 am

how to compile ffmpeg on windows and have exe file at the end ?

Post by yanshof » Wed Jan 24, 2018 6:58 pm

I want to create my own ffmpeg.exe file
I compile the code of the ffmpeg and i get an dll but on ffmpeg.exe

the ffmpeg.exe is the file that i can download on this site when i want to use it on windows.
I want to compile the same

how to do it ?


hydra3333
Posts: 158
Joined: Sun Apr 28, 2013 1:03 pm
Contact:

Re: how to compile ffmpeg on windows and have exe file at the end ?

Post by hydra3333 » Sat Mar 10, 2018 4:07 am

And maybe, since this has OpenCL too as an option, consider for 64bit .exe :
https://github.com/DeadSix27/python_cro ... ile_script

hydra3333
Posts: 158
Joined: Sun Apr 28, 2013 1:03 pm
Contact:

Re: how to compile ffmpeg on windows and have exe file at the end ?

Post by hydra3333 » Mon Mar 12, 2018 5:46 am

Interestingly, I also do an "rdp based" home build of ffmpeg x64 (mainly for ongoing learning purposes). I also ran Deadsix27's (interesting username) python build script and compared the performance of the resulting ffmpegs exes.

Amazingly, with identical ffmpeg commandlines, Deadsix27's hevc_nvenc consistently achieves twice the throughput that my build does.

Code: Select all

-hide_banner -v verbose -strict -1 -init_hw_device opencl=ocl:1.0 -filter_hw_device ocl -threads 0 -i ".\test.mp4" -t 300 -sws_flags lanczos+accurate_rnd+full_chroma_int+full_chroma_inp -filter_complex "[0:v]yadif=0:0:0" -pix_fmt yuv420p -c:v hevc_nvenc -profile:v main -level 5.1 -preset slow -rc vbr_hq -cq 28 -rc-lookahead 32 -spatial_aq 1 -c:a libfdk_aac -cutoff 18000 -ab 384k -ar 48000 -movflags +faststart -y ".\converted_test.h265.mp4"
Deadsix27's build

Code: Select all

frame= 7500 fps=209 q=29.0 Lsize= 86620kB time=00:05:00.02 bitrate=2365.2kbits/s speed=8.38x
my build

Code: Select all

frame= 7500 fps=120 q=29.0 Lsize= 86620kB time=00:05:00.02 bitrate=2365.2kbits/s speed=4.81x
I have yet to figure out why, the builds seem close to the same in configuration terms.

hydra3333
Posts: 158
Joined: Sun Apr 28, 2013 1:03 pm
Contact:

Re: how to compile ffmpeg on windows and have exe file at the end ?

Post by hydra3333 » Sat Mar 24, 2018 5:20 am

gave up, migrated to using deadsix27's build mechansim

Post Reply