Skip to content

Instantly share code, notes, and snippets.

@caiobegotti
Created January 23, 2014 16:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caiobegotti/8582102 to your computer and use it in GitHub Desktop.
Save caiobegotti/8582102 to your computer and use it in GitHub Desktop.
Hack to work around the limitations of 1SE.app for iOS
# 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'
@turnright1119
Copy link

How to it?
Can I do it on my iPhone with newterm or change something in fliza?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment