iEvgeny / qmlav

FFmpeg based real time QML player
GNU General Public License v3.0
14 stars 2 forks source link

[REQ] cartwheel-FFMPEG version #4

Open MarcoRavich opened 1 week ago

MarcoRavich commented 1 week ago

Hi there, yesterday I've succesfully compiled cctv-viewer but, since I run it on an old Intel NUC NUC5i5MYHE, I need to take advantage of any possible optimization.

ChatGPT suggests:

Today I asked Copilot to mod prebuild_ffmpeg.sh for cartwheel but, since I'm not a dev, I don't understand if it's trustable:

#!/bin/bash

# Directory where FFMPEG-cartwheel will be cloned
FFMPEG_DIR="cartwheel-ffmpeg"

# Clone the FFMPEG-cartwheel repository
if [ ! -d "$FFMPEG_DIR" ]; then
    git clone https://github.com/intel/cartwheel-ffmpeg.git "$FFMPEG_DIR"
    cd "$FFMPEG_DIR"
    git submodule update --init --recursive
else
    cd "$FFMPEG_DIR"
    git pull
    git submodule update --init --recursive
fi

# Configure the build
./configure --prefix=$(pwd)/build --enable-shared --enable-vaapi --enable-libvpl

# Compile and install
make -j$(nproc)
make install

# Go back to the original directory
cd ..

# Set environment variables to use the newly built FFMPEG
export PATH=$(pwd)/$FFMPEG_DIR/build/bin:$PATH
export PKG_CONFIG_PATH=$(pwd)/$FFMPEG_DIR/build/lib/pkgconfig:$PKG_CONFIG_PATH
export LD_LIBRARY_PATH=$(pwd)/$FFMPEG_DIR/build/lib:$LD_LIBRARY_PATH

echo "FFMPEG-cartwheel has been built and installed successfully."

Last but not least, if you find it interesting, why don't add - as an option - this officially ?

Thanks in advance.

iEvgeny commented 5 days ago

Hi! 1) Rebuilding the "world" for your platform is unlikely to result in the desired reduction in playback latency 2) This code looks like another AI hallucination and, in my opinion, does not carry any useful semantic load.