Jump to content

ffmpeg


westman

Recommended Posts

Are you sure you have root access? Is that a dedicated or private server? Do you log in using the username "root"?
i open putty enter my site ip adders then click open, then it says... login as: so i enter my ftp username
so i guess probably not root. Does your host even allow shell access? I guess would be the critical question here. Putty seems like it would still allow you to connect via FTP, even though your intention was with SSH (i haven;t used it, I've only ever just connected via terminal). In my experience, in order to have SSH (shell) access, you would have to create an authourized_keys file in your home directory on the server, from a ssh keygen command you ran locally on your machine that generated the public key for the authorized keys file. Edited by thescientist
Link to comment
Share on other sites

I guess that depends which distribution you're using on your server. Again, if you are not logging in using the username "root" or if you don't know the superuser password, if you are logging in with your FTP username and it is not "root", then you can't install this software. This software affects the entire server, not just your account. You can only install this if you have a dedicated or private server. If you have a shared hosting account then you can't do this.

Link to comment
Share on other sites

ok so i spoke with godaddy and they had this to say... Thank you for contacting Online Support. I understand you have an issue with installing ffmpeg. This is not supported on shared hosting. If this is necessary for your site, you may want to consider a Virtual Dedicated or Dedicated Hosting account. For more information on these plans, please use the links below. so it looks like i can not use ffmpeg on my server.is there any more ways i can pull an image from a mp4 file and find out the duration of the mp4 file without using ffmpeg?ps. please do not use godaddy as your host, they cost too much.

Edited by westman
Link to comment
Share on other sites

another way is to decode the mp4 file itself. the frames are stored as binary image. in meta information of file you can find the framerate. so you can calculate frame number of any video files and can extract the data to dump it in image file. But that will be little time consuming task as you need to read through the specification.

Link to comment
Share on other sites

also they disabled that for one reason , if you use ffmpeg to dynamically fetch frame of videos it will be CPU intensive task. as shared hosts are limited in CPU usage, you will probably hit the margin sooner. I would say go for VPS plan would be better.

Link to comment
Share on other sites

Not likely, he was mostly speaking theoretically. One problem is that MP4 video is compressed, and part of that compression is that it saves offsets instead of actual pixel values. It contains keyframes that contain full values, and the frames after that keyframe only contain offsets of changing colors instead of the colors themselves. It's not a trivial task to calculate the values for a given frame. The common way is to use ffmpeg, if you're not able to do that then your options are very limited. Like birbal said, you may need to read through the video format specification to figure out the binary structure yourself and write the code. I doubt you'll find that code online anywhere, you can't expect other people to do all of your work for you. You're not making it easy on yourself if you want to do this on a shared server. Commercial web sites that process video don't use shared hosting accounts. The code for ffmpeg is open source, you can read through that code if you want to try to figure out what it does.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...