justsomeguy Posted November 2, 2012 Share Posted November 2, 2012 Did you install and set up Linux yourself on the server? Which distribution are you using? Link to comment Share on other sites More sharing options...
westman Posted November 2, 2012 Author Share Posted November 2, 2012 i am using godady Linux and no i did not set it up everything was there when i bought it. Link to comment Share on other sites More sharing options...
justsomeguy Posted November 2, 2012 Share Posted November 2, 2012 Are you sure you have root access? Is that a dedicated or private server? Do you log in using the username "root"? Link to comment Share on other sites More sharing options...
thescientist Posted November 2, 2012 Share Posted November 2, 2012 (edited) 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 November 2, 2012 by thescientist Link to comment Share on other sites More sharing options...
justsomeguy Posted November 2, 2012 Share Posted November 2, 2012 He's at least showing shell prompts and commands, I've never tried to use Putty on port 21 but I assume you would have to enter all of the FTP commands yourself. Link to comment Share on other sites More sharing options...
westman Posted November 2, 2012 Author Share Posted November 2, 2012 i have access because i made mkdir ~/ffmpeg-source how do i install yum and git? Link to comment Share on other sites More sharing options...
justsomeguy Posted November 2, 2012 Share Posted November 2, 2012 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 More sharing options...
westman Posted November 2, 2012 Author Share Posted November 2, 2012 ok i will get more info from godaddy and get back to you Link to comment Share on other sites More sharing options...
westman Posted November 2, 2012 Author Share Posted November 2, 2012 (edited) 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 November 2, 2012 by westman Link to comment Share on other sites More sharing options...
justsomeguy Posted November 3, 2012 Share Posted November 3, 2012 I don't know of anything other than ffmpeg, but I have not researched that topic much. Link to comment Share on other sites More sharing options...
westman Posted November 4, 2012 Author Share Posted November 4, 2012 anyone else with any info? Link to comment Share on other sites More sharing options...
westman Posted November 10, 2012 Author Share Posted November 10, 2012 come on ppl they must be a way.any help? Link to comment Share on other sites More sharing options...
birbal Posted November 10, 2012 Share Posted November 10, 2012 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 More sharing options...
birbal Posted November 10, 2012 Share Posted November 10, 2012 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 More sharing options...
westman Posted November 11, 2012 Author Share Posted November 11, 2012 could i get an example of birbal's idea in code? Link to comment Share on other sites More sharing options...
justsomeguy Posted November 12, 2012 Share Posted November 12, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now