Proud To Be Pakistanis!
Welcome to weblogs.com.pk Sign in | Join | Help
in Search

Convert to flv format..

Last post 01-06-2009, 12:10 PM by aspnet. 3 replies.
Sort Posts: Previous Next
  •  10-30-2006, 3:51 PM 6233

    Lightning [li] Convert to flv format..

    Does anyone know how to programmatically convert any media file to flv file?? and how to get a thumbnail of video clip(like when we upload a file to google video or youtube, they show a thumbnail of the video clip uploaded)??

    Any ideas?????

  •  01-06-2009, 12:02 PM 136405 in reply to 6233

    Re: Convert to flv format..

    I have finished creating a complete YouTube clone in .NET. The most complex part of the whole project was to find out how to convert media into FLV after upload. This research took the better part of my project time. Nonetheless, it is complete in terms of functionality, though UI needs some major rework.

    Anyhow, what you need is FFMPEG.exe. It is a command line utility that you can run as a background process, or schedule a windows service to call it. FFMPEG requires command line parameters. Here are two examples of how you would convert using FFMPEG.exe.

    ffmpeg.exe -i new5.wmv -f flv -vb 20000 -s 320*240 -aspect 4:3 -r 30 -sameq   Sample20.flv

    ffmpeg.exe -i new5.wmv -f flv -ab 512 -ac 1 -ar 44100 Sample19.flv

    To get thumbnail from video, use the following code to extract an image four seconds into the video:
    ffmpeg  -itsoffset -4  -i demo2.flv -vcodec png -vframes 1 -an -f rawvideo -s 320x240 test.png

    Download FFMPEG.exe (google for it) and thats it. Apart from this, the rest of youtube clone functionality is not complex and straightforward.

    If you need more assistance, please let me know.


  •  01-06-2009, 12:06 PM 136406 in reply to 6233

    Re: Convert to flv format..

    Also, have a look at the youtube downloader web service that I have recently published. As you are probably aware, YouTube Google GData API allows replication of the entire YouTube functionality from within your application. However, the only piece missing from this API is the ability to download videos - which is understandable.

    By using my web service, you can integrate youtube video downloading capability into your application. Here are the specs:

    WSDL: http://www.ecubicle.net/youtubedownloader.asmx?WSDL

    Service Test using POST:  http://www.ecubicle.net/youtubedownloader.asmx

    Read more about it at my http://weblogs.com.pk/aspnet


  •  01-06-2009, 12:10 PM 136407 in reply to 136406

    Re: Convert to flv format..

    The blog URL is http://weblogs.com.pk/blogs/aspnet  NOT WHAT IT READS IN THE ABOVE POST.
View as RSS news feed in XML
Advertise here!
Contact us!
Powered by Community Server (Personal Edition), by Telligent Systems