Created
January 23, 2014 16:45
-
-
Save caiobegotti/8582102 to your computer and use it in GitHub Desktop.
Hack to work around the limitations of 1SE.app for iOS
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
# an special function because it requires the IP of my iphone | |
rtw-backup-one-second-everyday () { rsync -avz --stats --progress --rsh=ssh root@${1}:/private/var/mobile/Applications/.../Documents/* ~/one-second-everyday/; } | |
# special case for the damn 1SE app on iphone | |
# which does not offer an option to disable overlays | |
# nor change the date format, nor hide its logos | |
function rtw-one-second-list() { | |
originalfile=$(find ~/one-second-everyday/ -iname '*STORED_ONE_SECOND_VIDEOS_ARRAY_FILE_PATH*' | head -1) | |
originallist=$(basename ${originalfile}) | |
indexlist=/tmp/${originallist}.plist | |
pathslist=/tmp/${originallist}.paths | |
dateslist=/tmp/${originallist}.dates | |
cp ~/one-second-everyday/${originallist} ${indexlist} | |
plutil -i ${indexlist} -o ${indexlist}.txt | |
sed '/<string>201[34]-/!d;s/^.*>201\([34]\)/201\1/g;s/<.*$//g' ${indexlist}.txt > ${dateslist} | |
sed '/<string>file:\/\/localhost/!d;s/^.*Documents\///g;s/<\/string>//g' ${indexlist}.txt > ${pathslist} | |
paste -d: ${dateslist} ${pathslist} | sort | |
} | |
# it was getting too complicated with ffmpeg, mencoder does the job just fine | |
alias rtw-one-second-assemble='cd ~/one-second-everyday && mencoder -forceidx -ovc copy -oac pcm $(rtw-one-second-list | sort | cut -d: -f2) -o /tmp/rtw.mov' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to it?
Can I do it on my iPhone with newterm or change something in fliza?