i am working on a project dealing with graphedit (.grf) files. and i recently learned how to load graphedit .grf files inside a delphi app. and now i want to extend on that by opening and parsing it, to search for the term for the output filename so that i can change it just before starting a new capture. so, say the .grf file is video.hdpvr.001.ts, i want to increment the index part at every capture, thus, 001.ts 002.ts 003.ts and so on. i would of course, only be touching the "001" part inside the .grf file. or, i would prefer to give a completely *new* output filename of any length while keeping the integrity of the graph file. this will need to be done using delphi code.
in searching around, i found this resource but it is beyond me:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd388788%28v=vs.85%29.aspx
here is the output (in hex) of my current hauppauge hdpvr capture graph:
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 5 of 5
Thread
-
-
to search for the term for the output filename so that i can change it just before starting a new capture. so, say the .grf file is video.hdpvr.001.ts, i want to increment the index part at every capture, thus, 001.ts 002.ts 003.ts and so on. i would of course, only be touching the "001" part inside the .grf file.
Not sure if that weird hex-editor can do it, though
Hope this helpsLast edited by El Heggunte; 21st Jul 2013 at 19:05. Reason: damn typos
-
i made additional searches but couldn't find what i was looking for, so i guess i will look into writing a custom parser for graphedit (.grf) files for myself so that i can peek inside for certain values to make changes to and then add that to my custom capture app.
not sure what you mean by " Unicode Latin (utf16-little-endian) " but i do recall doing work in another project and little/big endian giving me some trouble.Last edited by vhelp; 22nd Jul 2013 at 12:06.
-
Little endian = least significant byte stored first in memory
Big endian = most significant byte store first in memory
For example the 32 bit hex value 0x12345678 (305,419,896 decimal):
stored as big endian bytes: 0x78 0x56 0x34 0x12
stored as little endian bytes: 0x12 0x34 0x56 0x78
Unicode characters are 16 bits so there are only two bytes. Intel architecture is natively little endian. Motorola (68K processors, like in old Macs) were natively big endian. -
ty for the explanations. i believe i found the location(s) where i need to begin my search.
but let me ask.. how / where do i determine which endian to use and ?
is it, when i determine a given location is a variable that holds a value ? and, does the type (numerical vs text vs binary) make the difference ?
Similar Threads
-
problem in Capturing mkv file using Graphedit
By Aamir1033 in forum CapturingReplies: 4Last Post: 3rd Dec 2012, 12:42 -
Anyway to run DirectShow .grf file with GraphEdit based on pre-set time?
By yardern in forum ProgrammingReplies: 5Last Post: 20th Nov 2012, 21:30 -
.dxa format file to other video format
By Edisonsss in forum Video ConversionReplies: 2Last Post: 2nd Dec 2010, 16:52 -
Realplayer files to another file format or dvd format
By vieya in forum Video ConversionReplies: 8Last Post: 25th Dec 2009, 12:12 -
Extract Subtitle embled in AVI file,VirtualDubMod n GraphEdit didn't work..
By quang010692 in forum SubtitleReplies: 1Last Post: 5th Oct 2008, 02:44