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 do %>Resolution: <%= text_field_tag "x", "800", :size => 2 %> x <%= text_field_tag "y", "600", :size => 2 %>
<%= submit_tag "Make a preview" %>
<% end %>Secs: <%= text_field_tag "secs" %>
<%= submit_tag "Take snapshot" %>
<% end %>This will start downloading the video from an IP and Port.
IP: <%= text_field_tag "ip", "", :size => 12 %> : <%= text_field_tag "port", "", :size => 3 %>
<%= submit_tag "Download" %>
<% end %>