Announcement

Collapse
No announcement yet.

Change FFMPEG test to use pthreads.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      Thanks, in Git master.
      Michael Larabel
      https://www.michaellarabel.com/

      Comment

      Working...
      X