[Approved] Unicode file names for recordings (2 Viewers)

Vasilich

Portal Pro
August 30, 2009
3,392
1,173
Germany, Mayence
Home Country
Russian Federation Russian Federation
as stated by Arion_p, all DShowFilters in MP are compiled as ANSI and thus do not support unicode.
I have problem when i try to record any TV program that has some diacrytics in its name (coming from EPG). Example: "Zoés Zauberschrank".
I also want to record another TV programs that have cyrillic in their names. Example: "Среда обитания".
So setting default codepage for nonunicode programs can't help as the above examples have symbols that cannot be mapped to one codepage.
My patch for TSWriter just adds new function for setting unicode filename for recording, and use this unicode filename later on when recording starts. I left old ANSI function as i don't know what plugins can use it, so old behavior still possible.
Another part of patch forces TVService and TVLibrary to use this new unicode function.
And small change to be able to see these unicode filenames in log file - now TSWriter log is UTF8 -encoded.
I tested all this on my system, and it works.
if you have suggestions how to implement it in better way (except of compiling TSWriter completely with unicode flag) - don't hesitate to discuss it here.

here are some links to threads discussing this problem:
https://forum.team-mediaportal.com/mediaportal-1-1-0-rc-1-2-496/problem-recording-tv-80966/
https://forum.team-mediaportal.com/mediaportal-1-1-0-rc-1-2-496/recorder-unable-create-file-81721/
https://forum.team-mediaportal.com/.../cannot-record-shows-double-byte-names-53580/
 

Attachments

  • TSWriter_unicodeFileNamesAndLog(Rev27306).zip
    12.8 KB

Vasilich

Portal Pro
August 30, 2009
3,392
1,173
Germany, Mayence
Home Country
Russian Federation Russian Federation
god_md5, it can help to record the programs even if EPG contains utf-16 symbols, but it is not about decoding unicode EPG entries.
 

tontsa

Retired Team Member
  • Premium Supporter
  • April 7, 2007
    108
    17
    Home Country
    Finland Finland
    Can you make a patch that doesn't have massive amount of formatting changes so it would be easier to review. Now there's thousands of tabs/space differences all over the place making the patch hard to follow.
     

    chemelli

    Retired Team Member
  • Premium Supporter
  • September 28, 2006
    6,159
    2,264
    51
    Milano, Italy
    Home Country
    Italy Italy
    Spoken with the author and he will partly rework the patch during this weekend.

    Simone
     

    Vasilich

    Portal Pro
    August 30, 2009
    3,392
    1,173
    Germany, Mayence
    Home Country
    Russian Federation Russian Federation
    sorry for the delay, but i am still experiencing troubles with hardware on my dev PC.
    So here we are with patch for TVLibrary, TSWriter (DVB part) and MPWriter (analogue tuners). (1st post)
    Haven't tested analog part as i have only DVB-S, but so far it works fine for me.
     

    Users who are viewing this thread

    Top Bottom