Originally Posted by atanas
Hm. All day I search, but i can't find it.
This is my end of exec_string
-y -acodec libmp3lame -ab 192k $new_name
How to config this $new_name to locale the file to other server with sftp or ftp.
It looks like you are trying to send ffmpeg output to another server directly via the ffmpeg command itself...I don't for sure if this is possible, but a quick Google search yielded the following:
Excerpt from that link:
..we specify the output format as "rtp" with the -f option, and instead of a filename, we have a URL that indicates where ffmpeg should send the RTP packets.
-f rtp rtp://127.0.0.1:9014
That seems to imply that you can at least stream ffmpeg output to another server...If you can capture the stream on the receiving server (with ffmpeg as well?) and download it, then I suppose that might work...
2) More on ffmpeg streaming:
3) Instead of trying to stream ffmpeg output directly to another server, you could also save the converted file to the server that executes the command, use PHP's FTP functions to upload the file to another server
, and then delete the original converted file
4) Similar to #3, you could use cURL to conduct the FTP transaction as well: http://www.web-development-blog.com/...load-via-curl/