Page 1 of 1

How does photorec decide on the end of file for mp3 files?

Posted: 22 Aug 2020, 02:00
by InquilineKea
I notice a lot of my mp3 files are fully intact, but a lot are cutoff (with a lot of them having definite filesizes of 65537 KB and 81920 KB and 32769KB and ESPECIALLY 8193 KB

Re: How does photorec decide on the end of file for mp3 files?

Posted: 22 Aug 2020, 06:43
by cgrenier
PhotoRec parses the mp3 chunks and ends the recovery when the stream stops.
The 8193 KB mp3 may be fragments from a fragmented file or part of a video file...

Re: How does photorec decide on the end of file for mp3 files?

Posted: 06 Sep 2020, 16:21
by BitterColdSoul
What do you mean by “parses the mp3 chunks”, is it aware of the specific structure of the MP3 file format, or does it merely stop at the next identified file signature ?
As I explained in-depth here, I've observed that quite commonly, a valid and contiguous video file can be recovered with many “holes”, caused by the detection of false MP3 signatures, and so there are dozens of 3KB MP3 files, obviously unreadable, while the chunks of the video file which come after each false MP3 are simply attached to the previous chunk (I verified this by comparing recovered video files with their valid counterparts recovered by filesystem based recovery). Obviously this wouldn't happen if the program was able to analyse the inner structure of a MP3 data stream, as it would notice that there is none in such a situation.