Encode uploaded video files using php to .flv - php

My platform is PHP JOOMLA MYSQL. I want to encode and load uploaded video files of different formats to .flv. I want this to implement in a video upload site where the users can see the videos in front-end after uploading and also I want to implement download options for them in mp4 and flv. Any help would be appreciated and thanks in advance to have a good reply for this

You can use the powerful ffmpeg to encode the videos once they're uploaded to your server.
And here's a nice tutorial.

Related

Get raw video from gif to mp4 conversion

I am in need of converting user uploaded gif files to mp4 format in php. Is this possible and if so, how?
The only current solution I have found is by uploading it to an api which would then provide me with a temporary link that I could use. That, however, would be a very bad solution because I would then have to crawl the link to obtain the raw video code. This is necessary as I am later uploading it to a WordPress media library.
Answer: not possible in pure php but is by installing and using ffmpeg on your server.

Getting the image from the uploaded video file using ffmpeg in mediawiki api

Using mediawiki api, I got the uploaded video file in my upload directory foler. But i need to get the snapshot image of the video . using ffmpeg we just got the image normally, but i need to run ffmpeg in mediawiki api. so, i need to know details of ffmpeg in mediawiki api and how to customize? Thanks.
Assuming you have something like TimedMediaHandler installed to support the file uploads, and it's using ffmpeg to generate thumbnails, and it's configured properly already, you can fetch a thumbnail by using MediaWiki's 'imageinfo' API call:
See https://www.mediawiki.org/wiki/API:Properties#imageinfo_.2F_ii
Brion probably knows what he is talking about, but I was able to get the information with prop=pageimages more easily: https://commons.wikimedia.org/w/api.php?action=query&titles=File:Thresher-Sharks-Use-Tail-Slaps-as-a-Hunting-Strategy-pone.0067380.s003.ogv&prop=pageimages

Saving uploaded media content

I'm making my own website using html and php, and a database using mysql on localhost on a easyPHP server. Users can make an account and upload videos on the site.
I'm wondering if it would be possible when they upload the file, it would upload the file to youtube and I can just save that link in my database. Then on the content page I could just use that link to show the video in an embedded player.
If that's not possible, what would be the best way to save the content in a folder on my PC?
Thanks
Yes, Youtube allows uploading video files directly to Youtube's servers, bypassing your server.
This page documents it pretty well: https://developers.google.com/youtube/2.0/developers_guide_protocol_browser_based_uploading

how can upload audio file to the server(mysql database) by using phonegap.?

Can anyone provide me a good help in reference of my question. i want to upload a mp3 file to my server. my mp3 file is stored in my sd card.i want this help in phonegap. and i am using php in server side.
Well, you can start from learning:
PHP Tutorial
MySQL tutorial
Audio/video converting
Linux tutorial
Server to server data trasnfare
I think thats all you need.
see my answer on your other question for details on how to transfer the file:
how can upload mp3 file to the server(xxampp) by using phonegap.?

how to play an flv in streaming

I need to play an flv in streaming in a website build on a php/apache2/mysql CMS.
I like a lot http://www.visionstreetwear.com website and i would like to use this layout with a flv as header.
I believe you can't do 'true' flash video streaming without paying for streaming service from the hosting provider.
If you don't have that, you can alternatively do 'progressive streaming' of the flv file. See this article on Adobe website about how to create flash file that can do it.
http://help.adobe.com/en_US/Flash/10.0_UsingFlash/WSCF589773-11F1-4bc4-AE7C-6C2507601A98.html#WS740DCAFD-531F-4674-9741-F518EEC90EC8
What I have done before, is to create a swf file that works as a container for video which contains some actionscript to play external video file, store video on the web server, then feed external data to tell swf which movie file to play and where the movie file is located.
You could look at red5 (http://red5.org/) if you need real streaming.
If you just want to play a flv, maybe you could look at flowplayer as a base?
Good luck!

Categories