HydrogenAudio

Hydrogenaudio Forum => General Audio => Topic started by: klonuo on 2015-04-11 02:18:14

Title: nu774's m4acut
Post by: klonuo on 2015-04-11 02:18:14
If I run this program on command line with audio in current folder everything is perfect, but else:

Code: [Select]
C:\Program Files\foobar2000\encoders>dir c:\temp\dj
Volume in drive C has no label.
Volume Serial Number is E88F-2219

Directory of c:\temp\dj

11.04.2015  03:07    <DIR>          .
11.04.2015  03:07    <DIR>          ..
02.04.2015  23:16        34,501,258 Divlje Jagode - Vatra.m4a
               1 File(s)     34,501,258 bytes
               2 Dir(s)  60,915,908,608 bytes free

C:\Program Files\foobar2000\encoders>m4acut.exe -c "c:\temp\dj\Divlje Jagode - Vatra.m4a"
01 Ciganka.m4a
100%...done
02 Let Na Drugi Svijet.m4a
100%...done
03 Divljakusa.m4a
100%...done
04 Dinamit.m4a
100%...done
05 Cmokni Me Srce.m4a
100%...done
06 Hopa Cupa.m4a
100%...done
07 Vatra.m4a
100%...done
08 Touch Me Little Girl.m4a
100%...done
09 Moja Si.m4a
100%...done

C:\Program Files\foobar2000\encoders>dir *.m4a
Volume in drive C has no label.
Volume Serial Number is E88F-2219

Directory of C:\Program Files\foobar2000\encoders

File Not Found

C:\Program Files\foobar2000\encoders>dir c:\temp\dj\*.m4a
Volume in drive C has no label.
Volume Serial Number is E88F-2219

Directory of c:\temp\dj

02.04.2015  23:16        34,501,258 Divlje Jagode - Vatra.m4a
               1 File(s)     34,501,258 bytes
               0 Dir(s)  60,914,688,000 bytes free


So where are there split files. They aren't in %temp% nor %tmp% folder besides obvious location?
Title: nu774's m4acut
Post by: nu774 on 2015-04-11 06:13:12
Output of m4acut -c or -C is written into the current working directory.

I guess you are running Vista or later with UAC data redirection enabled, and attempt to writing under PROGRAM FILES dir was redirected to VirtualStore.
Try different working directory.
Title: nu774's m4acut
Post by: klonuo on 2015-04-20 09:27:56
If -c ignores -o then why it doesn't write the files in folder where source is, instead trying to write to m4acut folder?

I mean there could advantages for RO media, but none of my encoders or splitters have problem working from %ProgramFiles%.
Is there any other solution instead making special folder for m4acut?
Title: nu774's m4acut
Post by: nu774 on 2015-06-04 10:03:59
If -c ignores -o then why it doesn't write the files in folder where source is, instead trying to write to m4acut folder?

I mean there could advantages for RO media, but none of my encoders or splitters have problem working from %ProgramFiles%.
Is there any other solution instead making special folder for m4acut?

Sorry to be late.
You seem to confuse the concept of "current working directory". It's different from the directory where the program is located.
If you want to write to C:\foo\bar, just launch command prompt, chdir to C:\foo\bar, and execute m4acut. It IS the current working directory. m4acut itself can be placed anywhere. However, if the installed location is not included in the PATH environment, you need to specify full path name of m4acut.