This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| deb http://deb.debian.org/debian stretch main | |
| deb-src http://deb.debian.org/debian stretch main | |
| deb http://deb.debian.org/debian-security/ stretch/updates main | |
| deb-src http://deb.debian.org/debian-security/ stretch/updates main | |
| deb http://deb.debian.org/debian stretch-updates main | |
| deb-src http://deb.debian.org/debian stretch-updates main |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| for mp in `ls -1 PXL_*.MP.jpg`; do | |
| # Find out where in the file the video part starts | |
| # old string: "\x00\x00\x00\x18\x66\x74\x79\x70\x6d\x70\x34\x32" | |
| extractposition=$(grep --binary --byte-offset --only-matching --text -P "\x00\x00\x00\x1c\x66\x74\x79\x70\x69\x73\x6f\x6d" $mp | sed 's/^\([0-9]*\).*/\1/') | |
| # Extract the video | |
| dd if="$mp" skip=1 bs=$extractposition of="$(basename -s .jpg $mp).mp4" | |
| done |
OlderNewer