Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3423494
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T06:21:42+00:00 2026-05-18T06:21:42+00:00

I am trying to figure the best way to login via php command to

  • 0

I am trying to figure the best way to login via php command to a remote server and run a command to convert a FLV file into an MP3 (and then possibly moving it to the local server)?

I can always move the file later but I need to do it in this order as the remote server hosts ffmpeg.

Using this will do it locally:

exec(ffmpeg -i vid.flv -acodec copy output.mp3);

How can I do it remotely?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T06:21:43+00:00Added an answer on May 18, 2026 at 6:21 am

    You need to do the following in order

    • Transfer the FLV via php native ftp commands
    • Create a layer in the ffmpeg server to run your commands
    • Read the response code and perform a specific action

    if you send your file to the server via ftp, and then create a script on the server that you have just transferred the file to, you can ping the script with the hash code for the file, and tell it to convert.

    • Sending file via FTP (Upload Example)
    • ping server to start the conversion

    the conversion script would take a file name, and then look in the local directory for the file, when it finds it, it will convert.

    if you wish for the local server to know when the conversion is completed then you would also have to send an id to the conversion script and you would store that id both sides, so the server can ping back to your local script (WARNING!) with the id and you can fetch it back from server.

    The reason for the warning is because its hard to get a server to ping threw to your localhost if your behind a router / firewall you would have to set up port forwarding etc on router and allow port 80 to be accessed externally.

    hope this gives you some clue on how to handle this situation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to figure out the best way to insert a record into a
I'm trying to figure out the best way to insert content into a light
Trying to figure out the best way to set up collection lists for users
Trying to figure out the best way to do this: Should I do something
I'm trying to figure out the best way to determine whether I'm in the
I am trying to figure out the best way to model a spreadsheet (from
I am trying to figure out the best way in an asmx web service
I'm trying to figure out the best way to save a simple one-to-many relationship
I'm trying to figure out the best way to do error logging in rails
I am trying to figure out the best way to bind to an unrelated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.