Go Back   Camcorderinfo.com Message Board > JVC > Everio HDD and flash memory
User Name
Password



Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 03-07-2007, 03:06 AM
griffin27 griffin27 is offline
Junior Member
 
Join Date: Feb 2007
Location: Austria
Posts: 17
Lightbulb MOI-Files decoded

hello,

once i tried to decode the moi-files which come with the video files on JVC HDD cams.
it was really hard work an here is the result (im sorry but its in german):

------------------------------------------------------------------
bei economy quality kann nicht 16:9 aufgenommen werden. wird im display durch blinken angezeigt. es wird statt dessen im 4:3 format aufgenommen.

in den mpeg headern ist kein unterschied zwischen 4:3 und 16:9 aufnahmen zu finden. des rätsels lösung muss sich also in den beiliegenden moi-files befinden.

vielleicht heißen
mod: movie data
moi: movie info

wahrscheinlich enthaltene informationen der moi-datei:
datum/zeit
qualität
protected
playbacktime
seitenverhältnis???

in der moi datei steht auf adresse 0080 entweder 51 oder 55, wobei ein direkter zusammenhang mit dem seitenverhältnis besteht.
0080=51 -> 4:3
0080=55 -> 16:9

bezüglich qualität:
00DA=E5 & 00DB=1A -> economy
=5A =DC -> normal
=81 =3D -> fine
=58 =96 -> ultrafine

datum:
0007: jahr (wobei 2000=D0; 2001=D1; ...)
0008: monat
0009: tag
000A: stunde (uhrzeit)
000B: minute (uhrzeit)

bezüglich der viedeodauer bin ich nun auch fündig geworden:
sec. 0x0002 -256 0x000E /24
--------------------------------------------
11 342 86 7,818 10560 440
20 409 153 7,65 20160 840
30 479 223 7,433 30240 1260
40 549 293 7,325 40320 1680
50 619 363 7,26 50400 2100
60 679 423 7,05 60000 2500
120 1096 840 7 120000 5000

in der tabelle ist folgendes zu sehen:
1. spalte: aufnahmedauer in sekunden
2. spalte: 4byte integerwert beginnend auf adresse 0002 (big endian system, so wie unser zahlensystem)
3. spalte: weil das 2. byte (von rechts gezählt) von haus aus auf 1 ist, hab ich mal 256 abgezogen.
4. überprüfung der linearität: eher schlechtes ergebnis. egal
5. spalte: 4byte integer beginnend auf adresse 000E
wie man sehr schön sieht, handelt es sich hier um die dauer in millisekunden.
6. hier kann man erkennen, dass es sich immer um ein vielfaches von 24 handelt, was jedoch noch nicht klar ist warum,
da die kamara ja 25 bilder pro sekunde macht...

tja, geisteblitze kommen immer wieder mal vor:
also bei spalte 2 handelt es sich um die gesamte dateigröße der moi-datei (in bytes)!! :-)
-------------------------------------------------------------------

if anyone has more informations about the data in the moi-file, pleas let me know.


greets from austria
Reply With Quote



  #2  
Old 03-07-2007, 03:37 AM
griffin27 griffin27 is offline
Junior Member
 
Join Date: Feb 2007
Location: Austria
Posts: 17
here is a graphical summary of my work
Attached Images
 
Reply With Quote



  #3  
Old 03-07-2007, 04:38 AM
sektionschef's Avatar
sektionschef sektionschef is offline
Elite Member
 
Join Date: Sep 2005
Location: Vienna, Austria
Posts: 1,413
Good job!!!
I assume that the exact description of the MOI file can be found in the SD card filesystem specifications. Unfortunately they are not free of charge therefore you can't find them anywhere on the internet.
Are you able to create a new MOI file from a given MOD file from these findings? Then we could use our Camcorders as a portable video player.
__________________
Regards
Sektionschef

Panasonic SDR-S100
Sandisk Ultra II 2GB SD Card
Raynox QC-505 0.5 WA
IBS 5X Tele
Velbon Ultra Maxi F Tripod
Magix Video deluxe 2008plus
Reply With Quote



  #4  
Old 03-07-2007, 05:40 AM
griffin27 griffin27 is offline
Junior Member
 
Join Date: Feb 2007
Location: Austria
Posts: 17
thanx,
perhaps. i don't know which data is really needed by a camcorder to play the file.
the listed informations are all i had found out (and searched for).
what infos could also be packed into this files?
a strange thing is that the moi-files get larger with video length... why that???
i think one thing is the framerate, perhaps the resolution.

you say, this moi-files are fore the file system on a SD-card? isn't it a FAT32 file system?

that would be great to use such camcorders for mobile video players, but on the everio camcorders (at leas mine: GZ-MG50EK) you don't have write permissions. it's a great pity.
Reply With Quote



  #5  
Old 03-07-2007, 09:19 AM
sektionschef's Avatar
sektionschef sektionschef is offline
Elite Member
 
Join Date: Sep 2005
Location: Vienna, Austria
Posts: 1,413
Quote:
Originally Posted by griffin27
thanx,
perhaps. i don't know which data is really needed by a camcorder to play the file.
the listed informations are all i had found out (and searched for).
what infos could also be packed into this files?
a strange thing is that the moi-files get larger with video length... why that???
i think one thing is the framerate, perhaps the resolution.

you say, this moi-files are fore the file system on a SD-card? isn't it a FAT32 file system?

that would be great to use such camcorders for mobile video players, but on the everio camcorders (at leas mine: GZ-MG50EK) you don't have write permissions. it's a great pity.
Hi
I have a Panasonic SDR-S100 which records to SD card. It also uses MOD and MOI files. Somewhere on the internet I found the information that these MOD and MOI files are specified in the SD standard documents.
I can put any file onto the SD card but if the SDR-S100 does not find a matching MOI/MOD pair then it "repairs" the files meaning it deletes them. My goal was to record a movie or TV-show to mpeg2, create MOD and MOI, download it to the SD card and play it on the cam.
Therefore I need to know how to create a MOI file from a given MOD.
__________________
Regards
Sektionschef

Panasonic SDR-S100
Sandisk Ultra II 2GB SD Card
Raynox QC-505 0.5 WA
IBS 5X Tele
Velbon Ultra Maxi F Tripod
Magix Video deluxe 2008plus
Reply With Quote



  #6  
Old 03-07-2007, 10:57 AM
sfritzinger sfritzinger is offline
Junior Member
 
Join Date: Aug 2006
Posts: 29
Quote:
Originally Posted by griffin27
thanx,
a strange thing is that the moi-files get larger with video length... why that???

From what I briefly saw when looking at the MOI files, it appears they append a seek table to the MOI file that provides offset/time pairs for the MOD file. It would make it easy to determine bitrates and seek to an approximate time in the MOD file without having to parse the MPEG packets.

-Scott
Reply With Quote



  #7  
Old 03-08-2007, 08:05 AM
griffin27 griffin27 is offline
Junior Member
 
Join Date: Feb 2007
Location: Austria
Posts: 17
now i analyzed about 20 moi files.
i researched the dependence of moi file size and video length.
i came to the following formula:

size = 269Bytes + number of frames / 12 * 3Bytes + 7Bytes each 10 sec video runtime

example:

videolength = 63,84s
Header: 269Bytes
--> 1596 Frames (VL*25): 1596/12*3Bytes = 399Bytes
63,84/10 = 6 * 7Bytes = 42 Bytes
-------
Total: 710Bytes

Now my questions are:
what is the meaning of the 3 Bytes?
what is the meaning of the 7 (perhaps 3+4) Bytes?

i compared 2 files with the same size (9,6s = 329B)
but the Bytes following the header are even very similar but NOT equal!!

The videos length is always a multiple of 12 Frames or 0,48s!!
perhaps this is a difficulty always record such video lengths. or is this defined in the mpeg-specs?

when i compared different long moi-files i had the impression that the 7 extra bytes each 10s are all following the header and then always the 3 Bytes.

in my opinion this length dependent bytes do not seem like time stamps.

any ideas about all my questions?
Reply With Quote



  #8  
Old 03-09-2007, 11:15 AM
griffin27 griffin27 is offline
Junior Member
 
Join Date: Feb 2007
Location: Austria
Posts: 17
Exclamation

Here is the new result of 2 days hex-file hacking.

greetz
Attached Files
File Type: pdf Moi File Structure.pdf (11.7 KB, 618 views)
Reply With Quote



  #9  
Old 03-09-2007, 11:17 AM
griffin27 griffin27 is offline
Junior Member
 
Join Date: Feb 2007
Location: Austria
Posts: 17
Exclamation

@sektionschef, now i think its possible to creat a moi-file from an existing mpeg!!

@all, please send to me some moi-files for research. let me know, if you are using ntsc or pal. if you know, add all information you have about the file (quality, mpeg-file size in BYTES (look at the properties), ntsc/pal, aspect ratio, bitrates of your specific camcorder and quality setting (audio and video, constand/variable bitrates, frame rate,
i only had pal-files. i think there will be a little difference.

please mail to me to
z e i l h o f e r A T g m a i l D O T c o m

Last edited by griffin27 : 03-09-2007 at 11:29 AM.
Reply With Quote



  #10  
Old 03-09-2007, 01:08 PM
sektionschef's Avatar
sektionschef sektionschef is offline
Elite Member
 
Join Date: Sep 2005
Location: Vienna, Austria
Posts: 1,413
Quote:
Originally Posted by griffin27
@sektionschef, now i think its possible to creat a moi-file from an existing mpeg!!

@all, please send to me some moi-files for research. let me know, if you are using ntsc or pal. if you know, add all information you have about the file (quality, mpeg-file size in BYTES (look at the properties), ntsc/pal, aspect ratio, bitrates of your specific camcorder and quality setting (audio and video, constand/variable bitrates, frame rate,
i only had pal-files. i think there will be a little difference.

please mail to me to
z e i l h o f e r A T g m a i l D O T c o m
Excellent!!!
I will send you some MOI files from my Panasonic SDR-S100.
As I am also from Austria my MOD files are PAL as well but at least they come from a different camcorder so you can test whether Panasonic uses the same file type.
I will put some MOD/MOI pairs onto a website so you will have both files. I will send you an email with the exact link.
Many Thanks
__________________
Regards
Sektionschef

Panasonic SDR-S100
Sandisk Ultra II 2GB SD Card
Raynox QC-505 0.5 WA
IBS 5X Tele
Velbon Ultra Maxi F Tripod
Magix Video deluxe 2008plus
Reply With Quote



  #11  
Old 03-10-2007, 03:40 AM
griffin27 griffin27 is offline
Junior Member
 
Join Date: Feb 2007
Location: Austria
Posts: 17
@ sektionschef, you could use http://www.cshare.de for uploading the files.
i hope i don't need to download a 300MB mod-file
Reply With Quote



  #12  
Old 03-11-2007, 03:49 PM
sektionschef's Avatar
sektionschef sektionschef is offline
Elite Member
 
Join Date: Sep 2005
Location: Vienna, Austria
Posts: 1,413
Quote:
Originally Posted by griffin27
@ sektionschef, you could use http://www.cshare.de for uploading the files.
i hope i don't need to download a 300MB mod-file
sorry for the delay.
You can download the file modmoipairs.zip from
http://files.filefront.com/6907826
It contains 2 MOD files with their corresponding MOI file.
The zip is about 15MB.
If there are problems getting the files then please let me know.
__________________
Regards
Sektionschef

Panasonic SDR-S100
Sandisk Ultra II 2GB SD Card
Raynox QC-505 0.5 WA
IBS 5X Tele
Velbon Ultra Maxi F Tripod
Magix Video deluxe 2008plus
Reply With Quote



  #13  
Old 03-12-2007, 11:05 AM
griffin27 griffin27 is offline
Junior Member
 
Join Date: Feb 2007
Location: Austria
Posts: 17
@sektionschef,

i've donwloaded the files. i found some differences to the jvc-moi file.

please send me some more moi-files. i don't need the mod-files. what i need are descriptions of the video-settings to each moi file.
please send me about 20 moi files.
you could make test recordings, with special settings. you have to do that so i can analyze them.
i need files (only moi files) with video lengths between ~2s and 5min!!
please write a table with following columns:
filename, video length, bitrate video, CBR/VBR, bitrate audio, MOD file size in Bytes, aspect ratio, resolution and frames/s

believe me, your work is just a little part of mine. i already spent about 30h on reading hex files, creating special moi-files, calculating, guessing, ...
Reply With Quote



  #14  
Old 03-12-2007, 02:41 PM
sektionschef's Avatar
sektionschef sektionschef is offline
Elite Member
 
Join Date: Sep 2005
Location: Vienna, Austria
Posts: 1,413
Many Thanks for investigating them, Griffin.

I have put 10 different MOI files into the attached zip file.
If you need more then please let me know.

Hope the following information will help you decoding the files:
-MOD and MOI always have the same name, so if I send you a file MOV001.MOI then the corresponding MOD is MOV001.MOD.
-all MOD files have audio CBR 48kHz and 256kHz sample rate regardless what settings will be used on the camcorder.
-all MOD files have video VBR and a max. data rate of 9558kbps regardless what settings will be used on the camcorder.
-all MOD files have a video resolution of 704 X 576 with 25fps regardless what settings will be used on the camcorder.
-all my video files are recorded in 16:9 aspect ratio.
-the camcorder supports 3 recording modes XP,SP and LP. In XP the mean sample rate is ~10Mbs, in SP it's ~6Mbps and in LP it's ~3Mbps.
However, in each recording mode the max. Bitrate is always 9558kbps.
File structure:
The panasonic cam creates 3 Folders on the SD card:
DCIM, MISC and SD_VIDEO
DCIM is for stills, SD_VIDEO for the clips, MISC I don't know.
Every new day the camcorder creates a new subfolder in SD_VIDEO starting with PRG001 and counting up PRG002...to PRG009 then PRG00A to PRG00F and then PRG010 etc (hex format).
In each subfolder the cam creates a MOD/MOI pair with the name MOV001.MOx and then MOV002.MOx and so on.

I have sent you the following files:
MOV001.MOI(card1) from folder PRG009 size:25.591.808bytes, duration:1029frames or 0:41.160 seconds(41seconds and 160ms)
MOV002.MOI(card1) from folder PRG009 size:47.394.816 Bytes, duration:2025frames or 01:21.000 Minutes(1 Minute and 21seconds)
MOV006.MOI(card1) from PRG00B, size:9.334.784 Bytes, duration 381frames or 0:15.240s
MOV004.MOI(card1) from PRG00B,size 17.958.912 Bytes, duration 729 frames or 0:29.160s
MOV003.MOI(card1) from PRG00B,size 46.467.072 Bytes, duration 1953 frames or 1:18.120s
MOV008.MOI(card1) from PRG006, size 2.582.528 Bytes, duration 93 frames or 0:03.720s
MOV003.MOI(card2) from PRG00E, size 71.852.032 Bytes, duration 2757 frames or 01:50.280s
MOV001.MOI(card2) from PRG004, size 102.094.848 Bytes, duration 4581 frames or 03:03.240s
MOV005.MOI(card5) from PRG00B,size 260.052.992 Bytes, duration 10653 frames or 07:06.120s
MOV00B.MOI(card6) from PRG001, size 1.388.544 Bytes, duration 57 frames or 0:02.280s
__________________
Regards
Sektionschef

Panasonic SDR-S100
Sandisk Ultra II 2GB SD Card
Raynox QC-505 0.5 WA
IBS 5X Tele
Velbon Ultra Maxi F Tripod
Magix Video deluxe 2008plus
Reply With Quote



  #15  
Old 04-04-2007, 01:46 PM
griffin27 griffin27 is offline
Junior Member
 
Join Date: Feb 2007
Location: Austria
Posts: 17
hi there,

im sorry for my long absence. now i don't have the time to research your moi-files, sektionschef, but the time will come whre i work it out.

greets
Reply With Quote



Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT -5. The time now is 07:48 PM.


Powered by: vBulletin Version 3.0.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.