diff --git a/Decoder/extractVideo.sh b/Decoder/extractVideo.sh new file mode 100755 index 0000000..c4a2825 --- /dev/null +++ b/Decoder/extractVideo.sh @@ -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 + diff --git a/Decoder/input.mp4 b/Decoder/input.mp4 new file mode 100644 index 0000000..5bdcb2a Binary files /dev/null and b/Decoder/input.mp4 differ