-
Notifications
You must be signed in to change notification settings - Fork 0
AlexeyKrasnoperov/RESTful-Video-Converter
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
=== Getting Started Run these commands to try it out. bundle rake db:setup rails s rake jobs:work If you want to try it on any OS other than MacOS you should add this to your Gemfile: gem 'execjs' gem 'therubyracer' === Prerequisites You should have ffmpeg installed. If ffmpeg on your machine is installed not in "/usr/local/bin/ffmpeg" directory, you should edit Paperclip.options[:command_path] line in "/config/environments/*" config files. === API == GET /videos.json Example request: GET /videos.json Example response: [{ "convertation_status":"ended" "created_at":"2012-01-19T23:51:15Z", "id":44, "name":"David Blaine", "updated_at":"2012-01-19T23:51:15Z", "uploaded_video_content_type":"video/quicktime", "uploaded_video_file_name":"test.mov", "uploaded_video_file_size":9781678, "uploaded_video_updated_at":"2012-01-19T23:51:15Z", "preview_url":"/system/uploaded_videos/44/preview/test.jpg?1327017075", "flv_url":"/system/uploaded_videos/44/flv/test.flv?1327017075"}, …] == GET /videos/:id.json Example request: GET /videos/48.json Example response: { "convertation_status":"started" "created_at":"2012-01-20T02:07:33Z", "id":48, "name":"Chuck Norris is dead", "updated_at":"2012-01-20T02:07:33Z", "uploaded_video_content_type":"video/quicktime", "uploaded_video_file_name":"IMG_0192.MOV", "uploaded_video_file_size":224815088, "uploaded_video_updated_at":"2012-01-20T02:07:24Z", "preview_url":"/system/uploaded_videos/48/preview/IMG_0192.jpg?1327025244", "flv_url":"/system/uploaded_videos/48/flv/IMG_0192.flv?1327025244" } == PUT /videos/:id.json Example request: PUT /videos/48.json Example response: { "convertation_status":"ended" "created_at":"2012-01-20T02:07:33Z", "id":48, "name":"Chuck Norris can't be dead", "updated_at":"2012-01-20T02:09:03Z", "uploaded_video_content_type":"video/quicktime", "uploaded_video_file_name":"IMG_0192.MOV", "uploaded_video_file_size":224815088, "uploaded_video_updated_at":"2012-01-20T02:07:24Z", "preview_url":"/system/uploaded_videos/48/preview/IMG_0192.jpg?1327025244", "flv_url":"/system/uploaded_videos/48/flv/IMG_0192.flv?1327025244" } == POST /videos.json Example request: POST /videos.json Example response: { "convertation_status":null "created_at":"2012-01-20T02:07:33Z", "id":54, "name":"New video about Justin Bieber", "updated_at":"2012-01-20T02:08:35Z", "uploaded_video_content_type":"video/quicktime", "uploaded_video_file_name":"IMG_0245.MOV", "uploaded_video_file_size":235752248, "uploaded_video_updated_at":"2012-01-20T02:09:34Z", "preview_url":"/system/uploaded_videos/54/preview/IMG_0245.jpg?1327025244", "flv_url":"/system/uploaded_videos/54/flv/IMG_0245.flv?1327025244" } == DELETE /videos/:id.json Example request: DELETE /videos/54.json Example response: status: 200
About
Background ffmpeg video conversion
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published