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

Transcoding passes but video not uploaded (rollback transaction) #38

Open
zeronone opened this issue Jun 28, 2015 · 3 comments
Open

Transcoding passes but video not uploaded (rollback transaction) #38

zeronone opened this issue Jun 28, 2015 · 3 comments

Comments

@zeronone
Copy link

I am using Rails 4.2. I have a ContentUploader for uploading images and videos. I am using carrierwave-video-thumbnailer for creating video thumbnails.

  version :mp4, :if => :video? do
    process encode_video: [:mp4, callbacks: { after_transcode: :set_is_converted } ]
  end

Following is the output:

Started POST "/contents" for ::1 at 2015-06-28 18:58:37 +0900
Processing by ContentsController#create as JS
  Parameters: {"utf8"=>"✓", "authenticity_token"=>"7RkO8vRffeyY2/17fOKdmTa3EltgVBhYUu0opaS3mu7YYjrY3XRcwKgvcXdm/7QbQw7x+uh5eXrvTFVMtdcj1Q==", "content"=>{"description"=>"video avi", "file"=>#<ActionDispatch::Http::UploadedFile:0x007f9be644fa28 @tempfile=#<Tempfile:/var/folders/jb/hs3mvqg55plf3dhm08wc94sw0000gn/T/RackMultipart20150628-83235-19tgkw3.avi>, @original_filename="dfs.avi", @content_type="video/avi", @headers="Content-Disposition: form-data; name=\"content[file]\"; filename=\"dfs.avi\"\r\nContent-Type: video/avi\r\n">}}
Running....ffmpegthumbnailer -i /Users/zeronone/myfiles/projects/coe/coe_control_center/webapp/public/uploads/tmp/1435485517-83235-1521/vthumb_dfs.avi -o /Users/zeronone/myfiles/projects/coe/coe_control_center/webapp/public/uploads/tmp/1435485517-83235-1521/tmpfile.png -c png -q 10 -s 192 -f
Success!
I, [2015-06-28T18:58:38.117063 #83235]  INFO -- : Running transcoding...
ffmpeg -y -i /Users/zeronone/myfiles/projects/coe/coe_control_center/webapp/public/uploads/tmp/1435485517-83235-1521/mp4_dfs.avi -vcodec libx264 -acodec libfaac -s 640x480 -qscale 0 -preset slow -g 30  -aspect 1.3333333333333333 /Users/zeronone/myfiles/projects/coe/coe_control_center/webapp/public/uploads/tmp/1435485517-83235-1521/tmpfile.mp4

I, [2015-06-28T18:58:39.494630 #83235]  INFO -- : Transcoding of /Users/zeronone/myfiles/projects/coe/coe_control_center/webapp/public/uploads/tmp/1435485517-83235-1521/mp4_dfs.avi to /Users/zeronone/myfiles/projects/coe/coe_control_center/webapp/public/uploads/tmp/1435485517-83235-1521/tmpfile.mp4 succeeded

  �[1m�[36m (0.1ms)�[0m  �[1mbegin transaction�[0m
  �[1m�[35m (0.0ms)�[0m  rollback transaction
  Rendered contents/create.js.erb (0.9ms)
@RailsCod3rFuture
Copy link

I'm having the same problem. It's rolling back for no reason at all. I don't see anything in my server log that points to what's causing the rollback to occur.

@absk1317
Copy link

I did a reinstall of the ffmpegthumbnailer and it worked fine afterwards for me.

@nsantiago2719
Copy link

Anyone resolved this problem instead of reinstalling ffmpegthumbnailer? I still have the error after the reinstall.

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

4 participants