Vargol / ffmpeg-apple-arm64-build

Build script for ffmpeg targeting the latest open source video codecs running on macOS using Apple's M1 processor.
235 stars 42 forks source link

Adding ffplay to the build #6

Closed suvl closed 2 years ago

suvl commented 2 years ago

Hey there. Is it possible to add the ffplay to the build's output?

I have tried cloning the SDL library from here, building it to the tools/ folder and setting --enable-sdl2 in the build-ffmpeg.sh's ./configure step, but it still won't compile that binary. Any help?

I can set a branch with where I got if you'd like, and even write a build-SDL.sh script.

Vargol commented 2 years ago

Hi, I sems to have got it working without to much hassle

I used the following as build-sdl2.sh (had to rename it to .txt to upload it ) build-sdl2.txt

and modified build.sh with

START_TIME=$(currentTimeInSeconds)
echoSection "compile sdl2"
$SCRIPT_DIR/build-sdl2.sh "$SCRIPT_DIR" "$WORKING_DIR" "$TOOL_DIR" "$CPUS" "xxxx" > "$WORKING_DIR/build-sdl2.log" 2>&1
checkStatus $? "build sdl2"
echoDurationInSections $START_TIME

Did this work in my working branch so it may be a while before I check it into the master, in there is actually an optional feature, but none of that code is in the main branch yet as its a bit hacky.

suvl commented 2 years ago

I also confirm that works 👍🏽 I'd PR but since you already have it in a dev branch I'll just go ahead and close this issue. Many thanks!