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.

How to Convert various video formats to .swf using php

Discussion in 'PHP' started by adamjblakey, Apr 23, 2007.

  1. #1
    Hi,

    I need to convert a user's upload to a .swf, basically what you tube does. From reading different things on the internet i understand that this cannot be done with just php something has to be done on the server side? But don't know exactly how to go about this?

    Cheers,
    Adam
     
    adamjblakey, Apr 23, 2007 IP
  2. phd

    phd Active Member

    Messages:
    496
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    60
    #2
    use ffmpeg the best option for what u r looking for.
     
    phd, Apr 23, 2007 IP
  3. Subikar

    Subikar Active Member

    Messages:
    241
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    Go and search ffmpeg this will solve your problem.
     
    Subikar, Apr 23, 2007 IP
  4. adamjblakey

    adamjblakey Active Member

    Messages:
    1,121
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    80
    #4
    I have now installed ffmpeg on the server but i don't know how to go about the writing a script to convert e.g avi, mpeg etc format to .flv I have tried looking on google but cannot find the information need. Can anyone point me in the right direction?
     
    adamjblakey, Apr 25, 2007 IP
  5. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You would want to convert it to .flv not .swf :)
     
    MMJ, Apr 25, 2007 IP
  6. adamjblakey

    adamjblakey Active Member

    Messages:
    1,121
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    80
    #6
    Yea .flv :)
     
    adamjblakey, Apr 25, 2007 IP
  7. keaya

    keaya Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I want to share E.M. Total Video Converter. I have been using it and I think it is the best one on the market.
     
    keaya, Feb 28, 2009 IP
  8. gibbs_h

    gibbs_h Peon

    Messages:
    94
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    you can use following commands to convert other video format to FLV :

    ffmpeg -i video.avi -ar 22050 -ab 32 -f flv -s 320×240 video.flv
    Where :
    -i input file name
    -ar audio sampling rate in Hz
    -ab audio bit rate in kbit/s
    -f output format
    -s output dimension

    Hope this would help you :)
     
    gibbs_h, Feb 28, 2009 IP
  9. candice7683

    candice7683 Peon

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    i am using video to SWF,with this tool,you can convert any video formats to SWF or flv.hope you can have a try.;)
     
    candice7683, Mar 16, 2009 IP
  10. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #10
    It's useless for the poster, who wants automated conversion performed on the web server.

    gibbs_h's answer is the correct one, and it is also free.
     
    SmallPotatoes, Mar 16, 2009 IP
  11. Kaizoku

    Kaizoku Well-Known Member

    Messages:
    1,261
    Likes Received:
    20
    Best Answers:
    1
    Trophy Points:
    105
    #11
    You can also try mencoder, it is more advanced than ffmpeg.
     
    Kaizoku, Mar 16, 2009 IP
  12. djdeth

    djdeth Peon

    Messages:
    24
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    If you are doing it with PHP, get FFMPEG-PHP
     
    djdeth, Mar 18, 2009 IP