libvlc_media_add_option in Japanese character(multi byte)

This forum is about all development around libVLC.
gon
New Cone
New Cone
Posts: 4
Joined: 12 Apr 2013 06:37

libvlc_media_add_option in Japanese character(multi byte)

Postby gon » 12 Apr 2013 08:02

Hi,
I make a program to save the animation which I received in rtsp in a file.
avi file was made normally when I used this option for libvlc_media_add_option of liibvlc.dll.

:sout=#transcode{vcodec=h264}:duplicate{dst=std{access=file,mux=avi,dst="C:\\test.avi"}}

But a file is not output when Japanese is included in a pass. Is there the method to escape the letter of the multi-byte?

:sout=#transcode{vcodec=h264}:duplicate{dst=std{access=file,mux=avi,dst="C:\\xxxxxx.avi"}} -->xxxxxx is Japanese charactor
>>if xxxxxxxx.avi is 8365 8358 8367(hex), then output file is eXg2.avi(mean 655867(hex))

Rémi Denis-Courmont
Developer
Developer
Posts: 15231
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: libvlc_media_add_option in Japanese character(multi byte

Postby Rémi Denis-Courmont » 12 Apr 2013 16:43

VLC expects all file paths in UTF-8 encoding.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

gon
New Cone
New Cone
Posts: 4
Joined: 12 Apr 2013 06:37

Re: libvlc_media_add_option in Japanese character(multi byte

Postby gon » 15 Apr 2013 06:37

Thank you for your reply.

>VLC expects all file paths in UTF-8 encoding.
I was able to do it when I used the character string that I converted using SYSTEM.TEXT.Encoding of the .NET.
~
(1)Default Text(SHITT-JIS)
433A 5C83 6583 5883 672E 6176 69(HEX)
(2)to UTF
433A 5CE3 8386 E382 B9E3 8388 2E61 7669(HEX)
(3)set option
:sout=#transcode{vcodec=h264}:duplicate{dst=std{access=file,mux=avi,dst="xxxxx"}}
** xxxxx is (2) character string.
~


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 3 guests