LG MS450H MS400H
¿Quieres reaccionar a este mensaje? Regístrate en el foro con unos pocos clics o inicia sesión para continuar.

bookmark.db

5 participantes

Página 2 de 8. Precedente  1, 2, 3, 4, 5, 6, 7, 8  Siguiente

Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  vic1972 Vie Ene 07, 2011 6:07 pm

OK

I am not quite sure If I understand you well, when you say:

1st row: xxm -> BLOB - modify time as unix timestamp (last time where the playing was interrupted).
2nd row: xxk -> BLOB - URI/filename
3rd row: URI/filename -> BLOB - first 4 bytes: resume playing time in seconds (probably also unix timestamp), second 4 bytes: maybe

what do you mean with first row?
you men the first column id ..?
what is xxm? any minutes, right?
and xxk ? what is k?
sorry, probably is clear, but i am rather puzzled Wink


Now, I am going to investigate how to comunicate from C program to read/edit sqlite db.

I will ask Keltek, to see if he has any samples for this interface in c language.
Keltek, any suggestion or sample...?



vic1972
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 52
Localización : Malaga

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: PM 3.5: RedButton RePlay

Mensaje  George2005 Vie Ene 07, 2011 6:08 pm

vic1972 escribió:OK,
mechanism seems to be working fine,
I have edited last entry (Original file), changing filename to RecentFile.ts
then executed REcentFile.ts
and it started where original file stopped!!!! Smile

I can edit rows with sqlite manager,but cannot duplicate entries or create entries, can you?

Strange,
this sql should work:
INSERT INTO tParameter VALUES (11,"fileset:///tmp/ramfs/volumes/HDD ( Internal )/REC/RecentFile.ts","BLOB (Size: 16)");

sure i can doing somehting wrong...Wink

In SQLite Manager I just edited rows only so I didn't use Duplicate and Create buttons but I will try it in the evening ...


George2005

Mensajes : 112
Fecha de inscripción : 26/10/2010
Edad : 49
Localización : Olomouc - Czech Republic

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: PM 3.5: RedButton RePlay

Mensaje  George2005 Vie Ene 07, 2011 6:28 pm

vic1972 escribió:OK

I am not quite sure If I understand you well, when you say:

1st row: xxm -> BLOB - modify time as unix timestamp (last time where the playing was interrupted).
2nd row: xxk -> BLOB - URI/filename
3rd row: URI/filename -> BLOB - first 4 bytes: resume playing time in seconds (probably also unix timestamp), second 4 bytes: maybe

what do you mean with first row?
you men the first column id ..?
what is xxm? any minutes, right?
and xxk ? what is k?
sorry, probably is clear, but i am rather puzzled Wink


Now, I am going to investigate how to comunicate from C program to read/edit sqlite db.

I will ask Keltek, to see if he has any samples for this interface in c language.
Keltek, any suggestion or sample...?




Sorry,

xx - the number of file in tParameter table
Every file has 3 db records (3 rows)
The first 4 records in the table are not concerning with any file

Example (for file no. 10)

idfKeyfValue
3110mBLOB<- 1st row
3210kBLOB<- 2nd row
33URI filenameBLOB<- 3rd row
and so on ...

"m" in the 1st row means maybe "modify time"
"k" in the 2nd row means ???



George2005

Mensajes : 112
Fecha de inscripción : 26/10/2010
Edad : 49
Localización : Olomouc - Czech Republic

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  vic1972 Vie Ene 07, 2011 6:49 pm

OK
now i understand, yes, you right,
3 rows per each file.
and now i see the k and m .

Now, we know more about the k row

66 69 6C 65 73 65 74 3A 2F 2F 2F 74 6D 70 2F 72 61 6D 66 73 2F 76 6F 6C 75 6D 65 73 2F 48 44 44 20 28 20 49 6E 74 65 72 6E 61 6C 20 29 2F 52 45 43 2F 68 6F 72 6D 69 67 75 65 72 6F 2E 74 73 ") ;
f i l e s e t .ts
fileset:///tmp/ramfs/volumes/HDD ( Internal )/REC/RecentFile.ts","0C000000901400000BC5765301000000

Yes, it is the hexadecimal conversion of the string:
fileset:///tmp/ramfs/volumes/HDD ( Internal )/REC/RecentFile.ts","0C000000901400000BC5765301000000


Smile We are nearly discovering everything Wink

I think we should move this thread into main forum, more people might help, or might be instersted...
And we could make a summary with all investigation summary in first post; what do you think ..?














vic1972
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 52
Localización : Malaga

Volver arriba Ir abajo

bookmark.db - Página 3 Empty SQLite in C/C++

Mensaje  Keltek Vie Ene 07, 2011 6:55 pm

Hi all you both Smile
this seems to be a great feature.
Victor, the SQLite API is described here -> http://www.sqlite.org/cintro.html
Simple example is here -> http://souptonuts.sourceforge.net/code/simplesqlite3.c.html - to open and execute the SQL

There is little limitation - the SQLite library, which is in user-root partition. If you start PM and the partition is not mounted, the library cannot be loaded. The library have about 1MB so cannot be in /usr/local/etc (this partition is only 1MB in size). I'm not sure it fit the / partition.
I don't know how to solve this Sad

EDIT: I have an idea... calling something like the custom script.
Keltek
Keltek

Mensajes : 291
Fecha de inscripción : 10/03/2010
Edad : 47
Localización : Praha - Czech Republic

http://www.fozona.cz/

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: PM 3.5: RedButton RePlay

Mensaje  George2005 Vie Ene 07, 2011 8:56 pm

OK, it is a very good idea to move information about bookmark.db etc. into the main forum!

So I tried to duplicate and add records by SQLite Manager and it seems to work. But I have the version 0.6.5 for Firefox 3.6.x

Bye the Way: Last days I have encountered with a problem of turning off the LG machine. If the LG is on and I want to turn it off that I press the power button, the machine turns off but then immediately it turns on again (it seems like a resetting). Have both you ever encountered with this problem Question


George2005

Mensajes : 112
Fecha de inscripción : 26/10/2010
Edad : 49
Localización : Olomouc - Czech Republic

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  Keltek Vie Ene 07, 2011 9:13 pm

As I remember, this do some old version PipeManagement. Check it and get the latest one Smile
Keltek
Keltek

Mensajes : 291
Fecha de inscripción : 10/03/2010
Edad : 47
Localización : Praha - Czech Republic

http://www.fozona.cz/

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  vic1972 Vie Ene 07, 2011 9:28 pm

George2005 escribió:OK, it is a very good idea to move information about bookmark.db etc. into the main forum!

So I tried to duplicate and add records by SQLite Manager and it seems to work. But I have the version 0.6.5 for Firefox 3.6.x

Bye the Way: Last days I have encountered with a problem of turning off the LG machine. If the LG is on and I want to turn it off that I press the power button, the machine turns off but then immediately it turns on again (it seems like a resetting). Have both you ever encountered with this problem Question


can you paste your PM.ini file
I am also working in the force power down,
which first force a reboot, and then it does a proper shutdown Smile
probably you are also testing this feature .... Smile
vic1972
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 52
Localización : Malaga

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: PM 3.5: RedButton RePlay

Mensaje  George2005 Vie Ene 07, 2011 9:42 pm

Keltek escribió:As I remember, this do some old version PipeManagement. Check it and get the latest one Smile

Hi Keltek,

thanks a lot for information. I have the latest working (beta) version of PM 3.5 with Red Button support just for testing resume playing in MOVIE mode. Maybe it is an important information for Victor about the problem of the latest working PM.

Sorry to all that I will write in czech language to Keltek - it's about a regionally specific problem with a teletext font, thanks
----
Jo a taky mě naštvali u LG, že ten poslední firmware 101027A už zase má problém s malými českými znaky s diakritikou v teletextu, když to v předchozí verzí už bylo OK. V /usr/local/bin/Resource/TT_Font/ jsem našel soubor 01_G0_Latin_cze_slo_double_12x20_1bits.raw, ale nevím, jestli to je ten problematický font ... sorry, už se mi to ani nechtělo překládat Mad
----

George2005

Mensajes : 112
Fecha de inscripción : 26/10/2010
Edad : 49
Localización : Olomouc - Czech Republic

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: PM 3.5: RedButton RePlay

Mensaje  George2005 Vie Ene 07, 2011 9:50 pm

vic1972 escribió:
George2005 escribió:OK, it is a very good idea to move information about bookmark.db etc. into the main forum!

So I tried to duplicate and add records by SQLite Manager and it seems to work. But I have the version 0.6.5 for Firefox 3.6.x

Bye the Way: Last days I have encountered with a problem of turning off the LG machine. If the LG is on and I want to turn it off that I press the power button, the machine turns off but then immediately it turns on again (it seems like a resetting). Have both you ever encountered with this problem Question


can you paste your PM.ini file
I am also working in the force power down,
which first force a reboot, and then it does a proper shutdown Smile
probably you are also testing this feature .... Smile

Thanks a lot for the valuable information! OK, I notice that there is a new key in PM.ini called ForcePowerOFF_Enable. So it's not a bug, it's the feature Very Happy
Well, I will change the value for this key and test it.


George2005

Mensajes : 112
Fecha de inscripción : 26/10/2010
Edad : 49
Localización : Olomouc - Czech Republic

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  vic1972 Sáb Ene 08, 2011 11:27 am

George2005 escribió:

So this symbolic link could always point to the current/most recent played file. The symbolic link could be located in the directory eg. /tmp/hdd/volumes/HDD1/!Recent - the exclamation mark as the first character could assure that the directory would always be at the first position in alphabetical order. So the Red Button task would be quite easy and always the same: go to Media -> HDD -> go to the first directory (ie !Recent) and play the first file (ie symbolic link - it's name could also start with an exclamation mark due the alphabetical order).


I am re-reading the thread.
It will be very nice if a in-command exist to direct to the media menu page.
But afaik, we only have the $ commands which directs to the REC media menu page.
vic1972
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 52
Localización : Malaga

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  vic1972 Sáb Ene 08, 2011 11:56 am

step by step, when i have the time...
i am preparing first post to be a summary of all info.
vic1972
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 52
Localización : Malaga

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: PM 3.5: RedButton RePlay

Mensaje  George2005 Sáb Ene 08, 2011 12:34 pm

vic1972 escribió:step by step, when i have the time...
i am preparing first post to be a summary of all info.

OK!

Some idea about the rest of bytes (from 5th byte to end) in the 3rd row's BLOB:

As I have written before I encountered the problem with changing the resume playing time in .ts file - although the playing resumed at the correct time, there was a black screen only. I had to jump ahead by right arrow to fix it - I think that it could be caused by something like "desynchronization" of transport stream. As these additional bytes exist only for .ts records (media files like mpeg, avi etc don't have such bytes - they have only 4 bytes in all just storing the resume playing time), I think that those additional bytes are specific for transport stream for purposes something like audio/video synchronization, audio track selection, subtitles displaying etc.

So the result is: for RecentFile record in bookmark.db we should copy WHOLE BLOB in the 3rd row from the original file db record (not only change the resume playing time) to ensure the identical conditions for correct file resume playing.

About filetypes, folders etc.: Well, as I have written before that I copied the mpeg file to RecentFile.ts and then it was played correctly in REC folder, I think that it was caused by using the same MPEG codec. It could be quite logical because you wrote that playing avi file as the RecentFile.ts file failed with codec error. I don't know actually how to workaround it in case that the LG shows .ts files only in the REC folder and we have only the $ command to just go to the REC folder Crying or Very sad


George2005

Mensajes : 112
Fecha de inscripción : 26/10/2010
Edad : 49
Localización : Olomouc - Czech Republic

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  Keltek Sáb Ene 08, 2011 2:58 pm

George2005 escribió:
Keltek escribió:As I remember, this do some old version PipeManagement. Check it and get the latest one Smile
Jo a taky mě naštvali u LG, že ten poslední firmware 101027A už zase má problém s malými českými znaky s diakritikou v teletextu, když to v předchozí verzí už bylo OK. V /usr/local/bin/Resource/TT_Font/ jsem našel soubor 01_G0_Latin_cze_slo_double_12x20_1bits.raw, ale nevím, jestli to je ten problematický font ... sorry, už se mi to ani nechtělo překládat Mad
Smile
Taky sem to čet na fóru. Myslíš, že je to tím fontem? Já jsem totiž od poslední verze neměnil nic jiného, než DvdPlayer.
Keltek
Keltek

Mensajes : 291
Fecha de inscripción : 10/03/2010
Edad : 47
Localización : Praha - Czech Republic

http://www.fozona.cz/

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  George2005 Sáb Ene 08, 2011 5:15 pm

Keltek escribió:
George2005 escribió:
Keltek escribió:As I remember, this do some old version PipeManagement. Check it and get the latest one Smile
Jo a taky mě naštvali u LG, že ten poslední firmware 101027A už zase má problém s malými českými znaky s diakritikou v teletextu, když to v předchozí verzí už bylo OK. V /usr/local/bin/Resource/TT_Font/ jsem našel soubor 01_G0_Latin_cze_slo_double_12x20_1bits.raw, ale nevím, jestli to je ten problematický font ... sorry, už se mi to ani nechtělo překládat Mad
Smile
Taky sem to čet na fóru. Myslíš, že je to tím fontem? Já jsem totiž od poslední verze neměnil nic jiného, než DvdPlayer.

Jo vlastně, to máš pravdu ... tak je to podrbané přímo v DVDPlayeru. No, co se dá dělat. Díky za info.

--------------
I am very sorry to all others for czech language conversation in this thread.

George2005

Mensajes : 112
Fecha de inscripción : 26/10/2010
Edad : 49
Localización : Olomouc - Czech Republic

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Suggested solutions for non .ts files resume playing

Mensaje  George2005 Lun Ene 10, 2011 1:15 am

I did some tests of resume playing the non .ts (mpeg) files: .avi (video codec: DIV3/audio codec: MP3), .mp4 (H264/AAC), .flv (H263/MPEG), .divx (DX50/PCM) and .asf (VC1/WMA). I changed the extension to .ts for each file, moved them into REC folder and I tried to play them, but the "unsupported audio codec" warning message appeared actually to ask to continue playing. When I confirmed it the playing started with correct audio, but at 0:00:00, so resume playing wasn't working Sad Another problem is with the subtitles which are not displayed at all even the subtitle file was located in the REC folder and has the same basename as the played file.
I also checked to play the media files mentioned above but with extension changed to .ts under the HDD option. They were played correctly without any warning messages, with fully functional time resuming and even with subtlitles! The Preview Window and Info button also work correctly. So the machine selects codecs etc. by the the file content, not by file extension. Btw: It was quite funny to see that the divx movie with "movie.ts" filename was played correctly even with subtitles using "subtitle.srt" file Very Happy

So I was thinking how to show non .ts file in REC folder to avoid the file extension changing. I tried to look for the place, where the REC folder's allowed file extension list could be stored. Unfortunately I found nothing in db and ini files so I tried to search it inside the DVDPlayer (opening in the hex editor) and I think that I found it starting at this byte: 0x009A8E90. There are 3 null terminated strings: ".ts", ".trp", ".tp". So I tried to change the .ts extension of some recordings to .trp and .tp and these files were shown in REC folder actually.
It could be quite interesting to try to edit DVDPlayer in binary form to replace eg ".trp" string to ".*" + nullchar and check if it will solve to show all files in REC folder. Unfortunately I couldn't test it because the DVDPlayer can't be changed directly but as the firmware update only. Well, it's a quite "brute force" hack, so the DVDPlayer could crash or it may not solve the problem due the problems mentioned above (and it could violate the LG copyright, of course...)

I am also thinking about the different solution:
1. Go to the REC folder:
"$" command
2. Return to the MEDIA menu:
"," command
3. Go to the HDD option (right arrow 3 times and then OK, not use left arrow as the USB option might be skipped):
"D" & "D" & "D" & " " commands
Note: as this whole process should be a reaction to interrupting the movie playing I suppose that media type remains unchanged, ie selected to movie (neither music, nor image)
4. Go to the first folder (which was created initially and named like "_Recent" to ensure its first position in alphabetical order):
" " command
5. Play the first movie file, which would be a hardlink to the original movie file with basename like "_Recent" to ensure its first position in alphabetical order and the same file extension as the original movie file (but it seems that the file extension could be the always same, eg .ts - see above). Of course it is needed to create or modify db records for "_Recent" file. If some subtitle file exists (ie file with the same basename as original movie file and file extensions like .srt, .txt, .smi, .ssa or .sub), it should be prior needed to create the hardlink to subtitle file with the basename like "_Recent" and appropriate subtitle file extension:
" " or "S" command
6. Confirm the resume playing message:
" " command

So the whole command sequence is "$ , D D D _ _ _ _" or " $ , D D D _ _ S _" ("_" stands for space). Well, there are 9 commands which take 9 seconds (for SecondsInterleave=1), but I don't know how to short it ...
Of course for native DTV recordings (ie files from REC folder with .ts extension) we should use the straight and shorter sequence: "$ _ _" or "$ S _" with using the "_Recent.ts" hardlink located in REC folder !!!


George2005

Mensajes : 112
Fecha de inscripción : 26/10/2010
Edad : 49
Localización : Olomouc - Czech Republic

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  vic1972 Lun Ene 10, 2011 9:44 am

WOWWWWW Smile George, you did your homework!!!
Very nice investigation, thanks.

Lets go part by part, because there are lot of interesting things in your message.



George2005 escribió:I did some tests of resume playing the non .ts (mpeg) files: .avi (video codec: DIV3/audio codec: MP3), .mp4 (H264/AAC), .flv (H263/MPEG), .divx (DX50/PCM) and .asf (VC1/WMA). I changed the extension to .ts for each file, moved them into REC folder and I tried to play them, but the "unsupported audio codec" warning message appeared actually to ask to continue playing. When I confirmed it the playing started with correct audio, but at 0:00:00, so resume playing wasn't working Sad Another problem is with the subtitles which are not displayed at all even the subtitle file was located in the REC folder and has the same basename as the played file.
I see. Yes, we were expecting something similar to this.
But of course we needed this testing!! well done Smile


George2005 escribió:
I also checked to play the media files mentioned above but with extension changed to .ts under the HDD option. They were played correctly without any warning messages, with fully functional time resuming and even with subtlitles! The Preview Window and Info button also work correctly. So the machine selects codecs etc. by the the file content, not by file extension. Btw: It was quite funny to see that the divx movie with "movie.ts" filename was played correctly even with subtitles using "subtitle.srt" file Very Happy
wow, interesting results!!



George2005 escribió:
So I was thinking how to show non .ts file in REC folder to avoid the file extension changing. I tried to look for the place, where the REC folder's allowed file extension list could be stored. Unfortunately I found nothing in db and ini files so I tried to search it inside the DVDPlayer (opening in the hex editor) and I think that I found it starting at this byte: 0x009A8E90. There are 3 null terminated strings: ".ts", ".trp", ".tp". So I tried to change the .ts extension of some recordings to .trp and .tp and these files were shown in REC folder actually.
It could be quite interesting to try to edit DVDPlayer in binary form to replace eg ".trp" string to ".*" + nullchar and check if it will solve to show all files in REC folder. Unfortunately I couldn't test it because the DVDPlayer can't be changed directly but as the firmware update only. Well, it's a quite "brute force" hack, so the DVDPlayer could crash or it may not solve the problem due the problems mentioned above (and it could violate the LG copyright, of course...)
WOWW, no words!!!
Yes you right, extensions are there:
bookmark.db - Página 3 Extensions

I have bin modified DvdPlayer, and changed .tp<NULL> by .*<NULL><NULL>
(Take into account we cannot modify any length within the binary..)
This file is here:
http://dl.dropbox.com/u/684543/varios/ms450h/RePlay/DvdPlayer

Right now, I cannot test, as I am away, but i think anyone can test using this trick:
https://ms450.forosactivos.net/t319-pruebas-con-dvdplayer



George2005 escribió:
I am also thinking about the different solution:
1. Go to the REC folder:
"$" command
2. Return to the MEDIA menu:
"," command
3. Go to the HDD option (right arrow 3 times and then OK, not use left arrow as the USB option might be skipped):
"D" & "D" & "D" & " " commands
Note: as this whole process should be a reaction to interrupting the movie playing I suppose that media type remains unchanged, ie selected to movie (neither music, nor image)
4. Go to the first folder (which was created initially and named like "_Recent" to ensure its first position in alphabetical order):
" " command
5. Play the first movie file, which would be a hardlink to the original movie file with basename like "_Recent" to ensure its first position in alphabetical order and the same file extension as the original movie file (but it seems that the file extension could be the always same, eg .ts - see above). Of course it is needed to create or modify db records for "_Recent" file. If some subtitle file exists (ie file with the same basename as original movie file and file extensions like .srt, .txt, .smi, .ssa or .sub), it should be prior needed to create the hardlink to subtitle file with the basename like "_Recent" and appropriate subtitle file extension:
" " or "S" command
6. Confirm the resume playing message:
" " command

So the whole command sequence is "$ , D D D _ _ _ _" or " $ , D D D _ _ S _" ("_" stands for space). Well, there are 9 commands which take 9 seconds (for SecondsInterleave=1), but I don't know how to short it ...
Of course for native DTV recordings (ie files from REC folder with .ts extension) we should use the straight and shorter sequence: "$ _ _" or "$ S _" with using the "_Recent.ts" hardlink located in REC folder !!!

WOW nice idea also!!!
Now it is time to take a decision,
or lets wait a bit, to test if the hacked DvdPlayer can read now all files within REC folder.


vic1972
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 52
Localización : Malaga

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  George2005 Lun Ene 10, 2011 10:41 am

vic1972 escribió:WOWWWWW Smile George, you did your homework!!!
Very nice investigation, thanks.

Lets go part by part, because there are lot of interesting things in your message.



George2005 escribió:I did some tests of resume playing the non .ts (mpeg) files: .avi (video codec: DIV3/audio codec: MP3), .mp4 (H264/AAC), .flv (H263/MPEG), .divx (DX50/PCM) and .asf (VC1/WMA). I changed the extension to .ts for each file, moved them into REC folder and I tried to play them, but the "unsupported audio codec" warning message appeared actually to ask to continue playing. When I confirmed it the playing started with correct audio, but at 0:00:00, so resume playing wasn't working Sad Another problem is with the subtitles which are not displayed at all even the subtitle file was located in the REC folder and has the same basename as the played file.
I see. Yes, we were expecting something similar to this.
But of course we needed this testing!! well done Smile


George2005 escribió:
I also checked to play the media files mentioned above but with extension changed to .ts under the HDD option. They were played correctly without any warning messages, with fully functional time resuming and even with subtlitles! The Preview Window and Info button also work correctly. So the machine selects codecs etc. by the the file content, not by file extension. Btw: It was quite funny to see that the divx movie with "movie.ts" filename was played correctly even with subtitles using "subtitle.srt" file Very Happy
wow, interesting results!!



George2005 escribió:
So I was thinking how to show non .ts file in REC folder to avoid the file extension changing. I tried to look for the place, where the REC folder's allowed file extension list could be stored. Unfortunately I found nothing in db and ini files so I tried to search it inside the DVDPlayer (opening in the hex editor) and I think that I found it starting at this byte: 0x009A8E90. There are 3 null terminated strings: ".ts", ".trp", ".tp". So I tried to change the .ts extension of some recordings to .trp and .tp and these files were shown in REC folder actually.
It could be quite interesting to try to edit DVDPlayer in binary form to replace eg ".trp" string to ".*" + nullchar and check if it will solve to show all files in REC folder. Unfortunately I couldn't test it because the DVDPlayer can't be changed directly but as the firmware update only. Well, it's a quite "brute force" hack, so the DVDPlayer could crash or it may not solve the problem due the problems mentioned above (and it could violate the LG copyright, of course...)
WOWW, no words!!!
Yes you right, extensions are there:
bookmark.db - Página 3 Extensions

I have bin modified DvdPlayer, and changed .tp<NULL> by .*<NULL><NULL>
(Take into account we cannot modify any length within the binary..)
This file is here:
http://dl.dropbox.com/u/684543/varios/ms450h/RePlay/DvdPlayer

Right now, I cannot test, as I am away, but i think anyone can test using this trick:
https://ms450.forosactivos.net/t319-pruebas-con-dvdplayer



George2005 escribió:
I am also thinking about the different solution:
1. Go to the REC folder:
"$" command
2. Return to the MEDIA menu:
"," command
3. Go to the HDD option (right arrow 3 times and then OK, not use left arrow as the USB option might be skipped):
"D" & "D" & "D" & " " commands
Note: as this whole process should be a reaction to interrupting the movie playing I suppose that media type remains unchanged, ie selected to movie (neither music, nor image)
4. Go to the first folder (which was created initially and named like "_Recent" to ensure its first position in alphabetical order):
" " command
5. Play the first movie file, which would be a hardlink to the original movie file with basename like "_Recent" to ensure its first position in alphabetical order and the same file extension as the original movie file (but it seems that the file extension could be the always same, eg .ts - see above). Of course it is needed to create or modify db records for "_Recent" file. If some subtitle file exists (ie file with the same basename as original movie file and file extensions like .srt, .txt, .smi, .ssa or .sub), it should be prior needed to create the hardlink to subtitle file with the basename like "_Recent" and appropriate subtitle file extension:
" " or "S" command
6. Confirm the resume playing message:
" " command

So the whole command sequence is "$ , D D D _ _ _ _" or " $ , D D D _ _ S _" ("_" stands for space). Well, there are 9 commands which take 9 seconds (for SecondsInterleave=1), but I don't know how to short it ...
Of course for native DTV recordings (ie files from REC folder with .ts extension) we should use the straight and shorter sequence: "$ _ _" or "$ S _" with using the "_Recent.ts" hardlink located in REC folder !!!

WOW nice idea also!!!
Now it is time to take a decision,
or lets wait a bit, to test if the hacked DvdPlayer can read now all files within REC folder.


Hi Victor, thanks a lot for your appreciation!

It's an excellent idea to test the DVDPlayer by using the trick you mentioned! I will test it in the evening!

Btw: I am sorry for my bad formulation, it's definitely clear that it's not possible to change the length of binary file, I just meant to replace string by ".*" + <NULL> and leave other byte unchanged (".trp" => ".*" + <NULL> + "p"), which should work as it's the correct null terminated string ...



George2005

Mensajes : 112
Fecha de inscripción : 26/10/2010
Edad : 49
Localización : Olomouc - Czech Republic

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  vic1972 Lun Ene 10, 2011 11:56 am

I cannot wait till this afternoon Smile,
this would be our first direct hack to main app.

Now the DvdPlayer is changed into:
bookmark.db - Página 3 Extensions2

I also think this trick should work,
and so all types of file should appear in the select window.
Now, I different thing is that those files (.avi,.mp4, ..) plays correctly Smile
vic1972
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 52
Localización : Malaga

Volver arriba Ir abajo

bookmark.db - Página 3 Empty bookmark.db (Additional information)

Mensaje  George2005 Lun Ene 10, 2011 12:41 pm

vic1972 escribió:I cannot wait till this afternoon Smile,
this would be our first direct hack to main app.

Now the DvdPlayer is changed into:
bookmark.db - Página 3 Extensions2

I also think this trick should work,
and so all types of file should appear in the select window.
Now, I different thing is that those files (.avi,.mp4, ..) plays correctly Smile

You are definitely right! So we should check, if non .ts files are played correctly without "unsupported audio codec" warnings, with working resume playing and with subtitles ... I am sorry, I am away so I will able to test it in the evening, actually Sad

Btw: Thanks a lot for bookmark.db description summary! I would like to complete it:

I. BLOB in the 1st row definitely stores the date & time of last playing (ie the moment of the playing interruption). It is in format of Unix Epoch Time (ie the 32 bit number representing the number of seconds elapsed from January 1, 1970). The nice online converter for Unix Time is here: http://www.epochconverter.com/. So the "m" char in fkey value (xxm) means "modify time", actually.

II. BLOB in the 3rd row: first 4 bytes stored resume playing and because it is also 32 bit number I am almost sure that it is also the Unix Time format (but I cannot verified it because I haven't any recording/movie file which will be a couple of days long Very Happy). For .ts recordings there are some additional bytes there which could represent specific information of transport stream format (audio/video synchronization, audio track selection, subtitles displaying etc.). So it is important to copy the COMPLETE 3rd row's BLOB in database from the original file db record (not only the first 4 bytes storing resume playing time) to ensure the identical conditions for correct file resume playing! (see https://ms450.forosactivos.net/t567p40-bookmarkdb#5281 for details)


George2005

Mensajes : 112
Fecha de inscripción : 26/10/2010
Edad : 49
Localización : Olomouc - Czech Republic

Volver arriba Ir abajo

bookmark.db - Página 3 Empty testing of modified DvdPlayer - bad luck :-(

Mensaje  George2005 Mar Ene 11, 2011 3:43 am

I tried to test the modified DvdPlayer but without success :-( I tried to use a trick described in https://ms450.forosactivos.net/t319-pruebas-con-dvdplayer, but when I killed the DdvPlayer instances by killall then machine always went do restart (maybe there is a problem with piped PM). In rcS I also tried to change DEFAULT_AP_DIR directly to /tmp/hdd/root/usr/local/bin (where I had copied the content of /usr/local/bin before and placed the modified DdvPlayer according to trick mentioned above) but then machine always hung on start so I had to re-flash FW. Maybe it is needed to temporary disable PM by using modified rcS which could allow kill all instances of DvdPlayer then but as it was quite late night I have not tested it yet ...


George2005

Mensajes : 112
Fecha de inscripción : 26/10/2010
Edad : 49
Localización : Olomouc - Czech Republic

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  vic1972 Mar Ene 11, 2011 10:41 am

Hi,
yesterday was a very complicated day for me, and was not able to test.
I will test this tonight, creating a firmware with this modified DvdPlayer.
vic1972
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 52
Localización : Malaga

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  George2005 Mar Ene 11, 2011 10:45 am

vic1972 escribió:Hi,
yesterday was a very complicated day for me, and was not able to test.
I will test this tonight, creating a firmware with this modified DvdPlayer.

Ok, I will wait for your results ...


George2005

Mensajes : 112
Fecha de inscripción : 26/10/2010
Edad : 49
Localización : Olomouc - Czech Republic

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  vic1972 Mar Ene 11, 2011 8:09 pm

I can confirm it is NOT working.
The modified firmware installed well, but accesing directly REC folder only shows .ts files. Sad

But if I go to the REC folder via media, then it appears my movie.avi file.
vic1972
vic1972

Mensajes : 2260
Fecha de inscripción : 09/12/2009
Edad : 52
Localización : Malaga

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  George2005 Mar Ene 11, 2011 10:25 pm

vic1972 escribió:I can confirm it is NOT working.
The modified firmware installed well, but accesing directly REC folder only shows .ts files. Sad

But if I go to the REC folder via media, then it appears my movie.avi file.

Oops, it is a bad information Sad

However I think that even if the machine would show the non .ts files those files couldn't be played correctly anyway. It is based on my previous tests with the avi, flv, divx and asf files with file extensions changed to .ts - under the Recordings menu option they had problems but under the HDD menu option it were be played correctly even with the changed file extension and with subtitles.

So, what about to try suggested command sequence "$ , D D D _ _ _ _" (" $ , D D D _ _ S _") for non .ts files and $ _ _" ("$ S _") for native .ts DTV recordings in REC folder (of course with creation the hardlinks to movie file and subtitles if possible + modification in database file)?



George2005

Mensajes : 112
Fecha de inscripción : 26/10/2010
Edad : 49
Localización : Olomouc - Czech Republic

Volver arriba Ir abajo

bookmark.db - Página 3 Empty Re: bookmark.db

Mensaje  Contenido patrocinado


Contenido patrocinado


Volver arriba Ir abajo

Página 2 de 8. Precedente  1, 2, 3, 4, 5, 6, 7, 8  Siguiente

Volver arriba

- Temas similares

 
Permisos de este foro:
No puedes responder a temas en este foro.