1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Convert flv to mov using php

Discussion in 'PHP' started by Silver89, Sep 24, 2009.

  1. #1
    Would it be possible to convert flv files to mov using php? This would make something I want to do alot simpler, I've only ever converted image files in php though so I'm not 100% sure this can even be done.

    If not what alternatives are there to do this?

    Thanks
     
    Silver89, Sep 24, 2009 IP
  2. superdav42

    superdav42 Active Member

    Messages:
    125
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    58
    #2
    I've never done it but the only way I know how to do it would be to call run the ffmpeg in your php script to do the conversion for you. Many hosts have this installed so it's not too much of a trouble. The exact command you need to use can be difficult. see http://ffmpeg.org/ffmpeg-doc.html For more info.
     
    superdav42, Sep 24, 2009 IP
  3. phprightnow

    phprightnow Peon

    Messages:
    296
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Check out FFmpeg-PHP which is a extension for PHP that allows easy integration between PHP and FFmpeg. I'm pretty sure this can be done fairly easily.
     
    phprightnow, Sep 25, 2009 IP
  4. dweebsonduty

    dweebsonduty Active Member

    Messages:
    131
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    71
    Digital Goods:
    1
    #4
    It should be easy if you run your own host. If you lease it, you have to make sure that you can execute FFMPEG commands on your leased host.
     
    dweebsonduty, Sep 25, 2009 IP
  5. Silver89

    Silver89 Notable Member

    Messages:
    2,243
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    205
    #5
    That's the most blatant spam post I've ever seen! You've linked the same url 4 times and then twice in your signature :rolleyes:

    I need to do it with php as I have 17,000 videos to convert..
     
    Silver89, Oct 8, 2009 IP
    web_hunk likes this.
  6. MDV

    MDV Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    If you want do it fast, php isn't good solution for this.

    But you can write demon that will be use PHP, see also http://ru.php.net/manual/en/ref.pcntl.php .
     
    MDV, Oct 9, 2009 IP
  7. Silver89

    Silver89 Notable Member

    Messages:
    2,243
    Likes Received:
    72
    Best Answers:
    0
    Trophy Points:
    205
    #7
    Well I'm limited to php because the files are hosted on a server and it would take months to download and upload 500GB on my connection.
     
    Silver89, Oct 9, 2009 IP
  8. Fadel_004

    Fadel_004 Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    im sure you can do it coz i use a wbsite that convert any type of files to any type you whant
     
    Fadel_004, Oct 9, 2009 IP
  9. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #9
    My thoughts exactly lol
     
    JAY6390, Oct 9, 2009 IP
    Silver89 likes this.