IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
unicode-able lossless encoders ?, does any accept unicode filenames ?
sn0wman
post Sep 16 2006, 23:06
Post #1





Group: Members
Posts: 82
Joined: 3-February 05
Member No.: 19557



topic says all. and if so - which, how, where etc smile.gif
Go to the top of the page
+Quote Post
gkmeyer
post Sep 16 2006, 23:13
Post #2





Group: Members
Posts: 47
Joined: 9-May 04
Member No.: 13985



QUOTE (sn0wman @ Sep 16 2006, 14:06) *
topic says all. and if so - which, how, where etc smile.gif

Doesn't unicode support in filenames depend more on whether the filesystem supports it rather than if the encoder supports it?
Go to the top of the page
+Quote Post
sn0wman
post Sep 17 2006, 00:02
Post #3





Group: Members
Posts: 82
Joined: 3-February 05
Member No.: 19557



i am using winxp pro sp2 fnts and all encoders i have fails on unicode. or am i doing it wrong ?

This post has been edited by sn0wman: Sep 17 2006, 00:02
Go to the top of the page
+Quote Post
Shiki
post Sep 17 2006, 00:51
Post #4





Group: Members
Posts: 79
Joined: 13-March 02
Member No.: 1509



I've ran into this problem myself, now I use foobar2000 to open my unicode-named files and convert them. It has built-in FLAC encoding support.
Go to the top of the page
+Quote Post
jcoalson
post Sep 17 2006, 01:30
Post #5


FLAC Developer


Group: Developer
Posts: 1526
Joined: 27-February 02
Member No.: 1408



http://www.hydrogenaudio.org/forums/index....st&p=429216
Go to the top of the page
+Quote Post
Firon
post Sep 17 2006, 02:07
Post #6





Group: Members
Posts: 830
Joined: 3-November 05
Member No.: 25526



foobar2000 works well for this.
Go to the top of the page
+Quote Post
sn0wman
post Sep 17 2006, 12:07
Post #7





Group: Members
Posts: 82
Joined: 3-February 05
Member No.: 19557



thanks jcoalson for the link.

foobar - i know it and this feature.
the problem is that i am working on my own application and somehow smile.gif cant use foobar.
i did already in the past using temp filenames and sure, it is working, but there is another problem when not only a filename is unicode, but path to it also. it is different thing to rename just a file and doing it on a whole path. and, of course, flac is only one of the codecs i use.

so any other ideas, if exist, are welcome smile.gif

best regards, sn0wman.
Go to the top of the page
+Quote Post
Egor
post Sep 17 2006, 13:31
Post #8





Group: Members
Posts: 826
Joined: 29-September 04
Member No.: 17374



You can use a modified script from the link above:
QUOTE (flac.cmd)
@echo off
set encoder="C:\Program Files\flac-1.1.2-win\bin\flac.exe"
type "%1" | %encoder% -8 --no-seektable - > "%~d1%~p1%~n1.flac"

It will work with unicode paths and filenames just fine. Copy this to a text file and rename it to "flac.cmd", change the path to flac.exe (marked with green color). Then you will be able to use flac.cmd like this:

F:\>flac.cmd \audio\こんにちは世界\你好世界.wav
this will encode to f:\audio\こんにちは世界\你好世界.flac file.

Note: --no-seektable may cause slightly slower seeking (with a seek slider of a player) on older machines, and has no effect if you only use FLAC to archive or playback without random seeking.
Go to the top of the page
+Quote Post
sn0wman
post Sep 19 2006, 00:50
Post #9





Group: Members
Posts: 82
Joined: 3-February 05
Member No.: 19557



thanks Egor.

for the firsth, i want to decode file, not to encode.
the parameters i am using in my program are the following:
QUOTE
-d -o "%o" --force-raw-format --endian little --sign signed "%i"
tried to change it to
QUOTE
-d --force-raw-format --endian little --sign signed
so that it was somehow compatible with your script which takes only one parameter (so no specified output then). but it is not working. btw, how to pass multiple parameters ?


for the second, firsth thing i checked with the script was coding a wav file (so just as it was meant to be working), everything went fine, till i tried using unicode. my cmd.exe seems not to accept any unicode input, showing so well known '?????'. why ?
i would also love to understand what does it
QUOTE
%~d1%~p1%~
mean smile.gif. of course, i will appreciate any links where i could read about it on my own.


and my last question. cause i work in delphi6, and using this script seems little artifical to me, does anyone knows how to do that using piplines in delphi ? i am going to try this way: write pipline to encoder, and direct its output to my program using read pipline.
maybe its not good forum for asking such question but as long as we are 'into' formats, there may be more ppl who have some experiences with such operations then in other places. atm i dont know how to do that smile.gif

This post has been edited by sn0wman: Sep 19 2006, 00:51
Go to the top of the page
+Quote Post
sn0wman
post Sep 19 2006, 22:09
Post #10





Group: Members
Posts: 82
Joined: 3-February 05
Member No.: 19557



one more thing, script seems to be not working with files located in folders with spaces in the path:
f:\audio\a.flac <-yes
f:\my audio\a.flac <-no

//sorry its ok smile.gif

This post has been edited by sn0wman: Sep 19 2006, 22:38
Go to the top of the page
+Quote Post
sn0wman
post Oct 7 2006, 23:52
Post #11





Group: Members
Posts: 82
Joined: 3-February 05
Member No.: 19557



just to drop a note:
up today, the only one encoder that supports directly unicode filenames, is TTA encoder...
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st September 2014 - 04:14