-
Notifications
You must be signed in to change notification settings - Fork 82
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
Getting error while saving the video #14
Comments
can you please take your |
@attenzione I also too had this issue. So given your instructions above I tried your above instructions: Prerequisite: I executed this command in the same directory as where the video was located.
|
@attenzione Interestingly though I was able to overcome the above error by commenting out in my model: av (0.9.0)
cocaine (~> 0.5.3)
paperclip-av-transcoder (0.6.4)
av (~> 0.9.0)
paperclip (>= 2.5.2) Although as mentioned once I try to upload another video I encounter:
The above error touches base with #16 also. I too am running Paperclip 4.2.1 |
@davidpatters0n seems, ffmpeg flv1 library is broken? |
@attenzione I see and there is no way around this issue? |
Try to reinstall, recompile ffmpeg or try to use avconv |
@attenzione I uninstalled the |
this gem uses external application - ffmpeg or avconv, you need to On Fri, Jun 26, 2015, 20:55 David Patterson [email protected]
|
@attenzione so I decided to uinstall ffmpeg and install avconv. Having installed avconv i was able to run the avconv command via my terminal: has_attached_file :video, :styles => {
#:medium => { :geometry => "150x85#", :format => 'flv' },
:thumb => { :geometry => "100x100#", :format => 'jpg', :time => 10 }
}, :processors => [:transcoder] Interestingly when i submit my form the first time it uploads the video fine. If i attempt to upload the video again it fails. Stacktrace:
Fyi my error now is similar to #16 |
I now have this working #10 (comment) hopefully it helps others and closes this issue along with #16 |
I am getting following error while saving the video
error while running command ffmpeg -i "/tmp/ed48c144522ed8beaba94863c34b0f9d20150423-3314-3r52bx.mp4" -s 640x480 -y "/tmp/ed48c144522ed8beaba94863c34b0f9d20150423-3314-3r52bx20150423-3314-1ok2yh8.flv": Command 'ffmpeg -i "/tmp/ed48c144522ed8beaba94863c34b0f9d20150423-3314-3r52bx.mp4" -s 640x480 -y "/tmp/ed48c144522ed8beaba94863c34b0f9d20150423-3314-3r52bx20150423-3314-1ok2yh8.flv"' returned 1. Expected 0
Error is in this line while updating: if @worker.update(worker_params)
Following is my code:
Gemfile
gem 'paperclip-av-transcoder'
worker.rb
has_attached_file :video, :styles => {:medium => { :geometry => "640x480", :format => 'flv' },:thumb => { :geometry => "100x100#", :format => 'jpg', :time => 10 }
}, :processors => [:transcoder]
workers_controller.rb
def update
respond_to do |format|
if @worker.update(worker_params)
format.html { redirect_to @worker, notice: 'Worker was successfully updated.' }
format.json { render :show, status: :ok, location: @worker }
else
format.html { render :edit }
format.json { render json: @worker.errors, status: :unprocessable_entity }
end
end
end
def worker_params
params.require(:worker).permit(:video, :user_id, :profile_photo, :worker_spoken_languages_attributes => [:id, :worker_id, :spoken_language, :_destroy])
end
show.haml
%p
%strong Video:
= video_tag @worker.video.url
%p
Please tell if I am missing anything
The text was updated successfully, but these errors were encountered: