Con magicrescue ho recuperato i file.avi, gli mp3, i file.doc e quelli.zip.
Dovrei recuperare tutti i file video .mpg (video delle mie figlie). In magicrescue esiste la possibilità di creare degli script per recuperare i file i cui script non ci sono di default, il fatto è che io non sono bravo! Vi posto degli esempi di script per gli avi e gli mp3. Qualcuno di voi mi può aiutare (prima che le mie figlie se ne accorgano e mi tolgano lo scalpo) ??
FILE AVI
Codice: Seleziona tutto
# Extracts avi files.
# Depends on MPlayer's mencoder: http://www.mplayerhq.hu/
0 string RIFF
8 string AVI\x20
# mencoder will keep reading after the avi ends, so we use tools/safecat to
# stop it when it's not outputting useful things anymore.
extension avi
command safecat -d 30M -u 2M -t 200M "$1"|mencoder -nocache -o "$1" -ovc copy -oac copy -
min_output_file 102400Codice: Seleziona tutto
# We assume that ID3v2 versions only come as 2.x.y, where x and y is less than 7
0 string ID3
2 int32 00000000 00f8F80f
6 int32 00000000 80808080
extension mp3
command mp3extract.pl "$1"
min_output_file 51200Codice: Seleziona tutto
0 char \xff
0 int32 FFfa0000 FFfe0000
extension mp3
# The command below is a bit hairy, here's how it works:
# We copy out a 100KB sample. If mpg123 can decode the sample without spitting
# out errors we try to let it play those 100KB into "$1.pcm". Then we call the
# extractor, which first sees if "$1.pcm" is big enough, and then tries to
# extract the file.
command dd bs=102400 count=1 of="$1" 2>/dev/null; if mpg123 -t "$1" 2>&1|egrep 'Illegal|too large|not allowed|Giving up' >/dev/null; then rm -f "$1"; else mpg123 -s "$1" > "$1.pcm" 2>/dev/null; mp3extract.pl "$1"; rm -f "$1.pcm"; fi
min_output_file 102401Grazie!


