#1 2012-04-08 15:32

narayan
Senior Member
Registered: 2009-02-08
Posts: 471

Extension rule does not work any more (for mp4 files)

Hi

I am using ReNamer  5.60+ Beta 11.

The Extension rule does not work in the latest beta (I don't know in which particular beta it stopped working).

When the rule is loaded, nothing happens at all.
Earlier this rule used to work perfectly (see this related thread)

Offline

#2 2012-04-09 12:28

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,479

Re: Extension rule does not work any more (for mp4 files)

Hi Narayan,

ReNamer was never able to detect MP4 files, as far as I remember. It just didn't have the signatures for them. I checked the previous release as well.

Anyway, I've worked out common file signature from the MP4 files I had, but I can't guarantee that it will match all existing MP4 files. The latest dev version has these signatures. If you find MP4 files that did not get detected, please send me the first 1 KB of the file.

Offline

#3 2012-04-11 02:51

narayan
Senior Member
Registered: 2009-02-08
Posts: 471

Re: Extension rule does not work any more (for mp4 files)

well, actually ReNamer reported "m4v/m4r/3g2"; but I followed your suggestion to add a rule and replaced this string to "mp4".
It always worked consistently.

But now it does nothing at all. Sometimes even flv files are not detected.

Right now I have a few such files. How do I slice 1 kB from the start?

Thanks!

[Edit] I found this, but it is not designed to cover MP4.
http://meta-extractor.sourceforge.net/
Will this do?

Some other tools seem to have a problem in extracting metadata (hex vs raw).
Please guide!

Last edited by narayan (2012-04-11 02:59)

Offline

#4 2012-04-11 08:33

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,479

Re: Extension rule does not work any more (for mp4 files)

The other thread was talking about TrID library and its use inside PascalScript rule, not the built in Extension rule. I actually added signatures to the Extension rule, so it can detect MP4 files natively without the TrID library.

Couple of methods for partial copy of the file:
1) Open with text editor or hex editor, save selection or delete unnecessary parts. This may be problematic with large files. Advanced text editors should be used as a simple "notepad" can't cope with large files.
2) Use File Splitter or GSplit or similar to split files into smaller and smaller pieces. For example, splitting 1 MB file into 1000 pieces will get you roughly 1 KB pieces. This can be done multiple times on the first piece to get smaller and smaller pieces progressively.

Offline

#5 2012-04-11 17:06

narayan
Senior Member
Registered: 2009-02-08
Posts: 471

Re: Extension rule does not work any more (for mp4 files)

Hi

I have sliced the first file, and sent  the first 1 kB header to you. I Hope this is useful.

I can read the raw data with the QuickViewer of my xplorer2 (a dual-pane explorer), which says "mtyp mp42".
This is always found in mp4 files, (and besides, when I downloaded them from YouTube, I checked that they were mp4.)

I have four more files (all mp4, but ReNamer cannot recognize them).
Please let me know if you need them to validate your findings.

The actual sizes of these files vary between 19 MB and 100 MB each.

Offline

#6 2012-04-15 13:43

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,479

Re: Extension rule does not work any more (for mp4 files)

Please send me the headers of those files, i.e. first 1KB of every file.

Offline

#7 2012-04-15 14:53

narayan
Senior Member
Registered: 2009-02-08
Posts: 471

Re: Extension rule does not work any more (for mp4 files)

Beta 13 works fine. Thanks

Offline

#8 2012-04-16 03:48

narayan
Senior Member
Registered: 2009-02-08
Posts: 471

Re: Extension rule does not work any more (for mp4 files)

Update for other readers: Denis has added Webm detection support in Beta 14.

Offline

Board footer

Powered by FluxBB