ffmpeg v5.1.4 for DOS (Announce)
> >
> > you may report this to ffmpeg ML since it looks like a bug that pthreads
> > can't be disabled in compilation time.
>
> It's not a bug, it's a feature. ;)
>
> Be that as it may.... bug report has now been filed.
>
> https://trac.ffmpeg.org/ticket/10900#ticket
Thank you roytam !
https://trac.ffmpeg.org/ticket/10900?action=diff&version=1
As a result of that bug report, and the comment by Gyan,
this new build script with the addition of --disable-vulkan
successfully built both FFPROBE.EXE for DOS
Now to get FFMPEG.EXE as-well.
---build-ffmpeg.sh ----
#!/bin/bash
# Set the DJGPP_PREFIX variable to the root directory of the DJGPP cross-compiler toolchain
export DJGPP_PREFIX="/archives-a/build/djgpp"
export PATH="$DJGPP_PREFIX/bin:$PATH"
export LIB="$DJGPP_PREFIX/lib/"
export GCC_EXEC_PREFIX="$DJGPP_PREFIX/lib/gcc/"
export INCLUDE="$DJGPP_PREFIX/include/"
# Define the target architecture by appending "/bin/i586-pc-msdosdjgpp" to the DJGPP_PREFIX
TARGET_ARCH="${DJGPP_PREFIX}/i586-pc-msdosdjgpp/bin/"
# Add the DJGPP_PREFIX/bin directory to the beginning of the PATH environment variable
export PATH="${DJGPP_PREFIX}/bin:$PATH"
# Define the version of FFmpeg to download
FFMPEG_VERSION="$1"
# Define the URL of the FFmpeg archive to download
FFMPEG_ARCHIVE="https://ffmpeg.org/releases/ffmpeg-${FFMPEG_VERSION}.tar.gz"
# Define the directory name where FFmpeg source will be extracted
FFMPEG_SOURCE_DIR="ffmpeg-${FFMPEG_VERSION}"
# Download the FFmpeg archive
wget -c "$FFMPEG_ARCHIVE"
# Remove any existing directory with the same name as FFMPEG_SOURCE_DIR
rm -rf "$FFMPEG_SOURCE_DIR"
# Extract the FFmpeg source from the downloaded archive
tar -xf "ffmpeg-${FFMPEG_VERSION}.tar.gz"
# Change the current directory to the FFmpeg source directory
cd $FFMPEG_SOURCE_DIR
# Run the configure script with specific options to prepare FFmpeg for cross-compilation
./configure \
--enable-cross-compile \
--cc="${TARGET_ARCH}gcc" \
--cxx="${TARGET_ARCH}g++" \
--ar="${TARGET_ARCH}ar" \
--as="${TARGET_ARCH}as" \
--ranlib="${TARGET_ARCH}ranlib" \
--sysroot="${DJGPP_PREFIX}" \
--disable-debug \
--arch=i486 \
--cpu=i486 \
--target-os=ms-dos \
--disable-doc \
--enable-gpl \
--disable-pthreads \
--disable-vulkan \
--disable-txtpages \
--extra-cflags="-w"
# Compile FFmpeg with multiple jobs, using the number of available processors
make -j$(nproc) 2>1errors.txt
________________________________________________________
ffprobe version 6.1.1 Copyright (c) 2007-2023 the FFmpeg developers
built with gcc 12.2.0 (GCC)
configuration: --enable-cross-compile --cc=/archives-a/build/djgpp/i586-pc-msdosdjgpp/bin/gcc --cxx=/archives-a/build/djgpp/i586-pc-msdosdjgpp/bin/g++ --ar=/archives-a/build/djgpp/i586-pc-msdosdjgpp/bin/ar --as=/archives-a/build/djgpp/i586-pc-msdosdjgpp/bin/as --ranlib=/archives-a/build/djgpp/i586-pc-msdosdjgpp/bin/ranlib --sysroot=/archives-a/build/djgpp --disable-debug --arch=i486 --cpu=i486 --target-os=ms-dos --disable-doc --enable-gpl --disable-pthreads --disable-vulkan --disable-txtpages --extra-cflags=-w
libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'big_bang.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2011-05-14T08:58:00.000000Z
Duration: 00:00:46.00, start: 0.000000, bitrate: 482 kb/s
Stream #0:0[0x1](und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(progressive), 624x352, 380 kb/s, 23.98 fps, 23.98 tbr, 1k tbn (default)
Metadata:
creation_time : 1970-01-01T00:00:00.000000Z
handler_name : VideoHandler
vendor_id : [0][0][0][0]
Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 95 kb/s (default)
Metadata:
creation_time : 2011-05-14T08:58:00.000000Z
handler_name : (C) 2007 Google Inc. v08.13.2007.
vendor_id : [0][0][0][0]
___________________________________________________________________________
---
--
http://glennmcc.org/
Complete thread:
- ffmpeg v5.1.4 for DOS - glennmcc, 08.03.2024, 19:20 (Announce)
- ffmpeg v5.1.4 for DOS - Zyzzle, 09.03.2024, 03:14
- ffmpeg v5.1.4 for DOS - glennmcc, 09.03.2024, 04:01
- ffmpeg v5.1.4 for DOS - glennmcc, 12.03.2024, 02:47
- ffmpeg v5.1.4 for DOS - roytam, 12.03.2024, 03:21
- ffmpeg v5.1.4 for DOS - glennmcc, 12.03.2024, 03:33
- ffmpeg v5.1.4 for DOS - glennmcc, 12.03.2024, 19:11
- ffmpeg v5.1.4 for DOS - rr, 12.03.2024, 19:47
- ffmpeg v5.1.4 for DOS - glennmcc, 12.03.2024, 20:42
- ffmpeg v5.1.4 for DOS - rr, 12.03.2024, 19:47
- ffmpeg v5.1.4 for DOS - glennmcc, 12.03.2024, 19:11
- ffmpeg v5.1.4 for DOS - glennmcc, 12.03.2024, 03:33
- ffmpeg v5.1.4 for DOS - roytam, 12.03.2024, 03:21
- ffmpeg v5.1.4 for DOS - Zyzzle, 12.03.2024, 03:43
- ffmpeg v5.1.4 for DOS - RayeR, 18.03.2024, 17:59
- ffmpeg v5.1.4 for DOS - glennmcc, 19.03.2024, 01:52
- ffmpeg v5.1.4 for DOS - Rugxulo, 19.03.2024, 02:27
- ffmpeg v5.1.4 for DOS - glennmcc, 19.03.2024, 05:15
- ffmpeg v5.1.4 for DOS - RayeR, 19.03.2024, 22:30
- ffmpeg v5.1.4 for DOS - glennmcc, 20.03.2024, 01:26
- ffmpeg v5.1.4 for DOS - RayeR, 21.03.2024, 02:40
- ffmpeg v5.1.4 for DOS - glennmcc, 20.03.2024, 01:26
- ffmpeg v5.1.4 for DOS - Rugxulo, 19.03.2024, 02:27
- ffmpeg v5.1.4 for DOS - glennmcc, 19.03.2024, 01:52
- ffmpeg v5.1.4 for DOS - RayeR, 18.03.2024, 17:59
- ffmpeg v5.1.4 for DOS - glennmcc, 12.03.2024, 02:47
- ffmpeg v5.1.4 for DOS - glennmcc, 09.03.2024, 04:01
- ffmpeg v5.1.4 for DOS - Zyzzle, 09.03.2024, 03:14