473,395 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

convert mpg to flv using php

134 100+
hi

i m having a page in which users may upload their own videos .

And i need to convert it into flv file to run the uploaded file in player..

is there any sources available ..

i tried ffmpeg., it works in localhost fine but when i upload it into my server no conversion occurs...

thanks

regards
vijay.
Apr 9 '10 #1
6 2744
chathura86
227 100+
ffmpeg works for me fine.

what is the problem you got with it

Regards
Apr 9 '10 #2
vjayis
134 100+
i followed the steps provided in this link
http://worldtv.com/blog/guides_tutor..._converter.php

and downloaded the files and copied it into my local apache server and checked for the file conversion..

it works fine.,

but when i tried the same steps by uploading the files into the webserver no new flv files where generated...

this is the code present in the file..
Expand|Select|Wrap|Line Numbers
  1. <?php
  2. exec("ffmpeg -i football.mpg football.flv");
  3. ?>
  4.  
is there anyother thing that i would need to do ?
Apr 9 '10 #3
Atli
5,058 Expert 4TB
Hey.

What are the differences between the servers?
(Operating systems, version differences, configuration, etc...)

Note that that tutorial seems to deal with Windows executables. If you are using Windows on your test server, but your real server uses Linux (which is very common) then your Windows executable ffmpeg.exe file won't work. You will need to Linux equivalent.

Also, it's not uncommon that shared hosts disable exec, and other such functions, as they can pose a security threat. Are you using such a host? - If you are, you might want to inquire as to whether they allow this.
Apr 9 '10 #4
vjayis
134 100+
yes the file i downloaded deals with windows..

i searched through the net and downloaded the files for linux .,

but i have no idea of about how to deal with those linux files.,

can you suggest me a good way to complete this conversion..

thanks
Apr 9 '10 #5
Atli
5,058 Expert 4TB
I've never worked with ffmpeg myself, so I don't really know how to set it up manually.

If you are working on a common Linux distribution, you can try to see if it exists in the distro's package manager.
For example, on Ubuntu (and most likely all Debian-based distros), you can issue this command to install ffmpeg:
Expand|Select|Wrap|Line Numbers
  1. $ sudo apt-get install ffmpeg
And I'm guessing RedHat/Fedora distributions can do something like this:
Expand|Select|Wrap|Line Numbers
  1. $ yum install ffmpeg
Try those and see if that works. If not you will probably have to compile it from source. Unless you can find a precompiled binary package compatible with your system.
Apr 9 '10 #6
vjayis
134 100+
thank you for your reply..

As i told i dont know linux so i m not quite right where to execute the code and bring out the output..

if you find anyother links that could help me please do send me..

thanks again..
Apr 9 '10 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

19
by: Lauren Quantrell | last post by:
I have a stored procedure using Convert where the exact same Convert string works in the SELECT portion of the procedure but fails in the WHERE portion. The entire SP is listed below....
1
by: Logan X via .NET 247 | last post by:
It's official....Convert blows. I ran a number of tests converting a double to an integer usingboth Convert & CType. I *ASSUMED* that CType would piggy-back ontop of Convert, and that performance...
4
by: Eric Lilja | last post by:
Hello, I've made a templated class Option (a child of the abstract base class OptionBase) that stores an option name (in the form someoption=) and the value belonging to that option. The value is...
4
by: aevans1108 | last post by:
expanding this message to microsoft.public.dotnet.xml Greetings Please direct me to the right group if this is an inappropriate place to post this question. Thanks. I want to format a...
3
by: Convert TextBox.Text to Int32 Problem | last post by:
Need a little help here. I saw some related posts, so here goes... I have some textboxes which are designed for the user to enter a integer value. In "old school C" we just used the atoi function...
6
by: PenguinPig | last post by:
Dear All Experts I would like to know how to convert a HTML into Image using C#. Or allow me contains HTML code (parsed) in Image? I also tried this way but it just display the character "<" &...
4
by: Edwin Knoppert | last post by:
In my code i use the text from a textbox and convert it to a double value. I was using Convert.ToDouble() but i'm used to convert comma to dot. This way i can assure the text is correct. However...
6
by: tshad | last post by:
Apparently, I can't do: Dim da2 As New OleDb.OleDbDataAdapter("Select PR, Convert(varchar,getchar(),1),F1, F2, F5, Sum(F4) from temp .... I am getting this error. 'undefined function...
3
by: mrajanikrishna | last post by:
Hi Friends, I am accepting a number from the user entered in a textbox. I want to assign to a variable in my code and assignt this to that variable. double num1 = (double)txtNum1.text; ...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.