Skip to content

AUTOM77/Beframe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Beframe

Turn video into frames async

ffmpeg -i 1.mp4  -ss 00:00:01 -frames:v -o 1.png
ffmpeg -i 1.mp4  -ss 00:00:01 -frames:v -o 1.jpg

Compile from source

sudo apt install -y --no-install-recommends pkg-config yasm nasm musl-dev clang llvm

curl -fsSL https://sh.rustup.rs | sh -s -- -y
. "$HOME/.cargo/env"
rustup update nightly && rustup default nightly
rustup component add rust-std-x86_64-unknown-linux-musl
cargo build --release
./target/release/bf /data

Optimized Time

Loading video from parquet:

  1. Raw Processing time: 14857.700856959s for 200 pq files
  2. Rayon Processing time: 7361.057489454 for 200 pq files
  3. Rayon with par_chunks(30) Processing time: 6945.763954117s for 200 pq files
  4. Rayon with par_chunks(50) Processing time: 7036.46832694ss for 200 pq files
  5. Rayon with chunks(10) Processing time: 7095.663088471s for 200 pq files
  6. Rayon with chunks(20) Processing time: 6391.990532946s for 200 pq files

Decoding frames from video:

  1. Rayon with chunk(5) frame Processing time: 15620s for 100 pq files
  2. Rayon with chunk(5) frame Processing time: 14948s for 100 pq files

Releases

No releases published

Packages

No packages published