Results 1 to 3 of 3

Thread: Change FFMPEG test to use pthreads.

  1. #1
    Join Date
    May 2007
    Location
    Third Rock from the Sun
    Posts
    6,532

    Default Change FFMPEG test to use pthreads.

    Simple change to have ffmpeg test run multi-threaded in it's install.sh

    Code:
    #!/bin/sh
    
    tar -xjf ffmpeg-0.5.tar.bz2
    
    cd ffmpeg-0.5/
    ./configure --enable-pthreads > /dev/null
    make -j $NUM_CPU_JOBS
    cd ..
    
    echo "#!/bin/sh
    
    \$TIMER_START
    ./ffmpeg-0.5/ffmpeg -i \$TEST_EXTENDS/pts-trondheim.avi -threads $NUM_CPU_JOBS -y -target ntsc-vcd /dev/null 2>&1
    \$TIMER_STOP" > ffmpeg
    chmod +x ffmpeg

  2. #2
    Join Date
    May 2007
    Location
    Third Rock from the Sun
    Posts
    6,532

    Default

    Revised to use CPU_CORES

    Code:
    #!/bin/sh
    
    tar -xjf ffmpeg-0.5.tar.bz2
    
    cd ffmpeg-0.5/
    ./configure --enable-pthreads > /dev/null
    make -j $NUM_CPU_JOBS
    cd ..
    
    echo "#!/bin/sh
    
    \$TIMER_START
    ./ffmpeg-0.5/ffmpeg -i \$TEST_EXTENDS/pts-trondheim.avi -threads $NUM_CPU_CORES -y -target ntsc-vcd /dev/null 2>&1
    \$TIMER_STOP" > ffmpeg
    chmod +x ffmpeg

  3. #3

    Default

    Thanks, in Git master.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •