Open Somnius opened 5 years ago
in php maybe use fopen and bin2hex or similar to search and replace then save the file? or maybe pack/unpack ?!
Hi! Why PHP? I can simply add web server functionality to this code, so you can run it as local web server or deploy the binary on any hosting machine and make it public. About ffmpeg - good idea, but it does not release from dependence on the sound editor, you need to cut somehow needed sample from original one, except such cases where original sample is in right lenght already, but i think it is a rare case. Your thoughts?
But most webserver are shared hosting so they can't run binaries or golang files, that is why i am trying to make the same thing in php.. About ffmpeg, yes you are right, the clips must be of 1sec and etc. But still everybody can use an online audio editor, clip to the place they want and export to mp3, then ffmpeg inline convertion will output proper raw for slicing! ;) For the php part, consider that not all webhosts have pure ssh shell with shell_exec and/or binary features and "if" they have ssh access it is jailed shell with about ±10 commands, not even curl/wget :-/
Omg, shared hosting is still alive in 2019... wow :) Once again, i did not catch it clear for what purposes i need to rewrite it for php (besides those fact - i'm not coding with php, sorry). I can host go code/binary on my server - no problem if this problem is about this tool accessibility. I'm fully accept your idea about embedded ffmpeg.
Well yes, they exist, cheap testing solutions that when get attention you migrate them to something bigger, from a simple 3$/m vps to a dedicated server. For the php part, i'll try my best to dust off my php sk1llz (:P) and do it for the fun of it, but still php-ffmpeg is a must. If you can have it run online by some form or even api it'll be nice! Raw files are small and could lead to some extend an online tool for conversion, something i'm trying to do ;)
About the php file manipulation, i've read the Russian forums but still don't get what to change to the file header and out.. can you point out the changes and i'll make a php version fork.
Edited issue. I've managed to make it a binary in all platforms using golang. Also used ffmpeg for the raw conversion instead of Audacity and only with NineToolBeta you can flash the wnb's but in proper memory sectors (14 for power on, 5 for power off). Can you make a php version of the slicer that opens the file in memory tampers with the header and exports the wnb? If not, can you help me develop it?