2015-03-21 01:32:55 +01:00
|
|
|
function showMore(){
|
|
|
|
document.getElementById('more').style.display = 'none';
|
|
|
|
document.getElementById('less').style.display = 'block';
|
|
|
|
}
|
|
|
|
|
|
|
|
function showLess(){
|
|
|
|
document.getElementById('more').style.display = 'block';
|
|
|
|
document.getElementById('less').style.display = 'none';
|
|
|
|
}
|
|
|
|
|
2015-03-21 04:32:17 +01:00
|
|
|
$(function () {
|
|
|
|
$('[data-toggle="tooltip"]').tooltip()
|
|
|
|
})
|
|
|
|
|
2014-08-04 03:43:33 +02:00
|
|
|
$(document).ready(function() {
|
2014-08-10 19:21:58 +02:00
|
|
|
|
2014-09-04 23:32:31 +02:00
|
|
|
$( ".reload" ).click(function() {
|
|
|
|
location.reload();
|
|
|
|
});
|
2014-08-17 23:15:18 +02:00
|
|
|
|
2014-08-10 19:21:58 +02:00
|
|
|
$( "#show_display_info" ).click(function() {
|
2014-09-07 16:34:41 +02:00
|
|
|
$( "#formloader > div" ).hide();
|
|
|
|
$( ".display_info" ).show();
|
2014-08-10 19:21:58 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
$( "#show_web" ).click(function() {
|
2014-09-07 16:34:41 +02:00
|
|
|
$( "#formloader > div" ).hide();
|
|
|
|
$( ".web" ).show();
|
2014-08-10 19:21:58 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
$( "#show_add_subtitles" ).click(function() {
|
2014-09-07 16:34:41 +02:00
|
|
|
$( "#formloader > div" ).hide();
|
|
|
|
$( ".add_subtitles" ).show();
|
2014-08-10 19:21:58 +02:00
|
|
|
});
|
|
|
|
|
2014-08-13 03:21:24 +02:00
|
|
|
$( "#show_add_audio_track" ).click(function() {
|
2014-09-07 16:34:41 +02:00
|
|
|
$( "#formloader > div" ).hide();
|
|
|
|
$( ".add_audio_track" ).show();
|
2014-08-13 03:21:24 +02:00
|
|
|
});
|
|
|
|
|
|
|
|
$( "#show_remove_audio_track" ).click(function() {
|
2014-09-07 16:34:41 +02:00
|
|
|
$( "#formloader > div" ).hide();
|
|
|
|
$( ".remove_audio_track" ).show();
|
2014-08-13 03:21:24 +02:00
|
|
|
});
|
|
|
|
|
2014-08-21 02:56:51 +02:00
|
|
|
$( "#show_webm_for_web" ).click(function() {
|
2014-09-07 16:34:41 +02:00
|
|
|
$( "#formloader > div" ).hide();
|
|
|
|
$( ".webm_for_web" ).show();
|
2014-08-21 02:56:51 +02:00
|
|
|
});
|
|
|
|
|
2014-08-21 16:46:09 +02:00
|
|
|
$( "#show_h264_for_web" ).click(function() {
|
2014-09-07 16:34:41 +02:00
|
|
|
$( "#formloader > div" ).hide();
|
|
|
|
$( ".h264_for_web" ).show();
|
2014-08-21 16:46:09 +02:00
|
|
|
});
|
|
|
|
|
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-21 02:56:51 +02:00
|
|
|
$('#webm_for_web_generate').click(function(){
|
|
|
|
$('#webm_for_web_command_line').val("ffmpeg" +
|
|
|
|
" -i " + $('#webm_input_name').val() +
|
|
|
|
" -codec:v libvpx -quality good -cpu-used 0 -b:v 500k -qmin 10 -qmax 42 -maxrate 500k -bufsize 1000k -threads 4 -vf scale=-1:480 -codec:a libvorbis -b:a 128k " +
|
|
|
|
$('#webm_output_name').val())
|
|
|
|
});
|
|
|
|
|
2014-08-21 16:46:09 +02:00
|
|
|
$('#h264_for_web_generate').click(function(){
|
|
|
|
$('#h264_for_web_command_line').val("ffmpeg" +
|
|
|
|
" -i " + $('#h264_input_name').val() +
|
|
|
|
" -codec:v libx264 -profile:v high -preset slow -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=-1:480 -threads 0 -codec:a libfdk_aac -b:a 128k " +
|
|
|
|
$('#h264_output_name').val())
|
|
|
|
});
|
|
|
|
|
2014-08-25 03:52:14 +02:00
|
|
|
});
|