[MPlayer-users] Recover video streams from disk images?

Noah Spurrier noah at noah.org
Wed Mar 5 03:00:59 CET 2008

I'm trying to recover some deleted videos from a disk image taken from a
FlipVideo camera. I used `dd` to dump a 1GB disk image. I was able to use
`foremost` to find a few deleted videos, but the most important and biggest one
must have had the header overwritten so that `foremost` could not recognize the
AVI header. I know that probably 70% of this disk image is composed of the
video frames that I want to recover. I know the resolution and format of the
video. Is there a way I can tell 'mplayer' the format and have it just play the
raw frames? I understand that much of the video might be corrupt, but that
doesn't matter in this case. I would like to get as much as I can. I don't care
about audio, but that shouldn't make a difference.

`foremost` is a tool for recovering deleted data from disk images. It
recognizes various filetype patterns and can reconstruct the files it

Here is what mplayer sees for a different video recorded on the same camera. I
assume the format for the video I want should be the same:

$ mplayer 00129721.avi
MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Genuine Intel(R) CPU           T2300  @ 1.66GHz (Family: 6, Model: 14, Stepping: 8)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Playing 00129721.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  640x480  24bpp  30.000 fps  3276.3 kbps (399.9 kbyte/s)
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
Opening audio decoder: [msadpcm] MS ADPCM audio decoder
AUDIO: 16000 Hz, 1 ch, s16le, 64.4 kbit/25.15% (ratio: 8047->32000)
Selected audio codec: [msadpcm] afm: msadpcm (MS ADPCM)
AO: [oss] 16000Hz 1ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 640 x 480 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [x11] 640x480 => 640x480 Planar YV12 
[swscaler @ 0x8826770]SwScaler: using unscaled yuv420p -> rgb32 special converter

  Noah Spurrier | email: noah at noah.org | http://www.noah.org/wiki/engineering 

More information about the MPlayer-users mailing list