2014-08-04 03:43:33 +02:00
|
|
|
$(document).ready(function() {
|
2014-08-10 19:21:58 +02:00
|
|
|
|
2014-08-17 23:15:18 +02:00
|
|
|
$( ".reload" ).click(function() {
|
|
|
|
location.reload();
|
|
|
|
});
|
|
|
|
|
|
|
|
|
2014-08-10 19:21:58 +02:00
|
|
|
$( "#show_display_info" ).click(function() {
|
|
|
|
$( ".display_info" ).toggle();
|
|
|
|
});
|
|
|
|
|
|
|
|
$( "#show_web" ).click(function() {
|
|
|
|
$( ".web" ).toggle();
|
|
|
|
});
|
|
|
|
|
|
|
|
$( "#show_add_subtitles" ).click(function() {
|
|
|
|
$( ".add_subtitles" ).toggle();
|
|
|
|
});
|
|
|
|
|
2014-08-13 03:21:24 +02:00
|
|
|
$( "#show_add_audio_track" ).click(function() {
|
|
|
|
$( ".add_audio_track" ).toggle();
|
|
|
|
});
|
|
|
|
|
|
|
|
$( "#show_remove_audio_track" ).click(function() {
|
|
|
|
$( ".remove_audio_track" ).toggle();
|
|
|
|
});
|
|
|
|
|
2014-08-17 21:31:03 +02:00
|
|
|
|
2014-08-04 03:43:33 +02:00
|
|
|
$('#generate').click(function(){
|
|
|
|
$('#command_line').val("ffmpeg" +
|
|
|
|
" -i " + $('#input_name').val() +
|
2014-08-10 19:21:58 +02:00
|
|
|
" " + $('#output_name').val())
|
2014-08-04 03:43:33 +02:00
|
|
|
});
|
|
|
|
|
2014-08-04 20:26:05 +02:00
|
|
|
$('#display_generate').click(function(){
|
|
|
|
$('#display_command_line').val("ffmpeg" +
|
|
|
|
" -i " + $('#input_name').val())
|
|
|
|
});
|
|
|
|
|
2014-08-10 19:21:58 +02:00
|
|
|
$('#web_generate').click(function(){
|
|
|
|
$('#web_command_line').val("ffmpeg" +
|
|
|
|
" -i " + $('#input_name').val())
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#add_subtitles_generate').click(function(){
|
2014-08-13 03:21:24 +02:00
|
|
|
$('#subtitles_command_line').val("ffmpeg" +
|
|
|
|
" -i " + $('#subtitles_input_name').val() + " -vf subtitles=" + $('#subtitles_name').val() + " " + $('#subtitles_output_name').val())
|
2014-08-10 19:21:58 +02:00
|
|
|
});
|
|
|
|
|
2014-08-13 03:21:24 +02:00
|
|
|
$('#add_audio_track_generate').click(function(){
|
|
|
|
$('#add_audio_track_command_line').val("ffmpeg" +
|
|
|
|
" -i " + $('#audio_input_name').val() + " -i " + $('#audio_track_name').val() + " " + $('#audio_output_name').val())
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#remove_audio_track_generate').click(function(){
|
|
|
|
$('#remove_audio_track_command_line').val("ffmpeg" +
|
|
|
|
" -i " + $('#r_audio_input_name').val() + " " + $('#r_audio_track_name').val() + " -vcodec copy -an " + $('#r_audio_output_name').val())
|
|
|
|
});
|
2014-08-10 19:21:58 +02:00
|
|
|
|
2014-08-04 20:26:05 +02:00
|
|
|
});
|