Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errno::ENOENT, No such file or directory - ffmpeg -i path_public/uploads/tmp/1414501164-5614-4315/video1.mp4 , Error while uploading File. #31

Open
kranthi1027 opened this issue Oct 28, 2014 · 9 comments

Comments

@kranthi1027
Copy link

Hi,
Before I ask anythink I just want to say I'm very new to rails.
I'm building an application where users can upload a video. Using carrierwave i could upload the video successfully but html5 video tag doeant work for all video formats. On looking around I found this gem. I followed the instructions but I'm getting the following error.

Errno::ENOENT in VideosController#create
No such file or directory - ffmpeg -i path_public/uploads/tmp/1414501164-5614-4315/video1.mp4

I don't know what is going wrong.

My storage path is the default path given by carrierwave which is
"uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"

but I don't know why it is looking for a path_public/uploads/tmp/1414501164-5614-4315/video1.mp4.

Can someone please help me?

@swaathi
Copy link

swaathi commented Dec 25, 2014

I'm facing the same issue. Did you resolve this?

@rheaton
Copy link
Owner

rheaton commented Dec 31, 2014

I have not tested this library out with Rails 4, so that could be the issue. :-/

@kranthi1027
Copy link
Author

No I haven't solved it. I'm restricted users to upload only mp4 format for now.

@komochi
Copy link

komochi commented Jan 18, 2015

I'v the same problem in my test environment.
In my case this problem occurs on my tablet Windows8.1 PC, but it's working well on my Windows7 PC for the same Rails program although the screenshot is black.
I don't understand about the difference between these.
On Windows8.1 tablet, I found some temporary video files and screenshots (jpg) that were created on public\uploads\tmp folder by my some trials.
The access securities of such folders seem to same as Windows7 PC.
It seems to not depend on the file types MP4 or wmv.

@debborafernandess
Copy link

Did you tried add a ''/" in the begin of the url on store_dir?
Like that: "/uploads/#{model.class.to_s.underscore}/#{mounted_as}/#{model.id}"

I think that could be the reason, works to me..

@d4rky-pl
Copy link

This sounds more like an issue with ffmpeg path rather than anything with the uploader. If it is - make sure you have ffmpeg installed on your machine. Check where it is (which ffmpeg in terminal). Create an initializer (config/initializers/ffmpeg.rb) and set FFMPEG.ffmpeg_binary to right path.

@ahmed-sharief5
Copy link

@d4rky-pl
Copy link

@ahmed-sharief5 this is a Ruby library

@jimmy-owoa
Copy link

This sounds more like an issue with ffmpeg path rather than anything with the uploader. If it is - make sure you have ffmpeg installed on your machine. Check where it is (which ffmpeg in terminal). Create an initializer (config/initializers/ffmpeg.rb) and set FFMPEG.ffmpeg_binary to right path.

This solved my problem!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants