This project has moved and is read-only. For the latest updates, please go here.


temp.m3u not using correct unicode path and file names


In the main browser, after clicking on Pla to play the movie, a temp.m3u file is created and redirected to the video player.

However, when there is any unicode (Korean, Chinese, Japanese or other characters) in the path name or file name, the temp.m3u file records the wrong names (putting question marks in place of the unicode), then the video player fails to find the file.

Example movie link:
F:\Example\ABC-123 (電影)\ABC-123.mp4

What gets written to temp.m3u:
F:\Example\ABC-123 (??)\ABC-123.mp4

VLC return error:
VLC could not open the file "F:\Example\ABC-123 (??)\ABC-123.mp4" (Bad file descriptor).

An example has been attached.

Thank you.

file attachments

Closed Apr 16, 2017 at 8:59 PM by vbat99
Fixed in MC 3.675b


vbat99 wrote Apr 4, 2017 at 1:04 AM

Before I get on to VLC....

Finally got around to looking into this and remembered issues we had with the encoding of M3U playlist files.
Seems we can create them as unicode, but, Windows Media Player does not like unicode in M3U. WMP requires Encoding to 1252 code to be compatible.

Unicode playlist should be extension .M3U8
Windows Media Player also will not read or play these M3U8 playlists.
And WMP doesn't like ABC-123 (電影) in a wpl file either.
In Short, Windows Media Player is a picky stuborn pile of ..... (fit your own word in here).

I myself use K-Lite and the Media Player Classic program to place video, and MPC handles unicode M3U and M3U8 playlist perfectly.

And from testing, so does VLC.

It may be best I add a new option to encode to Unicode the playlist, if the user is not using Windows Media Player.

vbat99 wrote Apr 6, 2017 at 12:04 AM

OK, so what I have done is:
IF in MC the user selects a specific media player (ie: not the default and not WMP), then MC outputs the M3U files in unicode Utf8.

As we can't guarantee that WMP isn't also the default player, this is the best method I can serve.

test9801 wrote Apr 9, 2017 at 4:05 AM

Thanks! Didn't know there is so much complication involved. What you implemented seem like a good solution. Will test as soon as the download is available.

Thank you.

vbat99 wrote Apr 13, 2017 at 10:47 PM

New release out, should be all sorted with your UTF8 M3U files if you select the media player in Media Companion settings.

test9801 wrote Apr 16, 2017 at 4:39 PM

Works great with VLC, no issues anymore.