adding video decoder
This commit is contained in:
12
Decoder/extractVideo.sh
Executable file
12
Decoder/extractVideo.sh
Executable file
@@ -0,0 +1,12 @@
|
|||||||
|
#/bin/bash
|
||||||
|
echo extracting frames
|
||||||
|
ffmpeg -loglevel 24 -stats -i input.mp4 /tmp/$$.out%05d.png
|
||||||
|
echo done, processing frames
|
||||||
|
ls /tmp/$$.out*.png | while read f;do
|
||||||
|
dta=$(zbarimg -q --raw --nodbus ${f})
|
||||||
|
chunkNum=${dta/|*/}
|
||||||
|
chunkData=${dta/*|/}
|
||||||
|
echo from ${f} received: ${chunkNum}
|
||||||
|
echo $chunkData | base64 -d > chunks/${chunkNum}.chunk
|
||||||
|
done
|
||||||
|
|
||||||
BIN
Decoder/input.mp4
Normal file
BIN
Decoder/input.mp4
Normal file
Binary file not shown.
Reference in New Issue
Block a user