Editing Movie

<%= render partial: 'form' %>

Make a Preview

This will produce a MP4-version preview of the file. It will take usually 3-4 times the movie length. The program will run in the background and the preview file will automatically added to the movie.

<%= form_tag({ action: "preview", id: @movie.id }, { class: 'square' }) do %>
<%= label_tag "Resolution" %>
<%= text_field_tag "x", "800", size: 2 %> x <%= text_field_tag "y", "600", size: 2 %>
<%= submit_tag "Make a Preview" %>
<% end %>

Take a Snapshot

<%= form_tag({ action: "snapshot", id: @movie.id }, { class: 'square' }) do %>
<%= label_tag "Seconds" %> <%= text_field_tag "secs" %>
<%= submit_tag "Take Snapshot" %>
<% end %>

Download (Stream)

<%= form_tag({ action: "download", id: @movie.id }, { class: 'square' }) do %>

This will start downloading the video from an IP and Port.

<%= label_tag "IP" %> <%= text_field_tag "ip", "", size: 12 %>
<%= label_tag "Port" %> <%= text_field_tag "port", "", size: 3 %>
<%= submit_tag "Download" %>
<% end %>