sout
上传用户:kjfoods
上传日期:2020-07-06
资源大小:29949k
文件大小:12k
源码类别:

midi

开发平台:

Unix_Linux

  1. <?vlc --[[
  2. vim:syntax=html
  3. <!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
  4. <  sout: VLC media player web interface - stream output dialog
  5. < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
  6. <  Copyright (C) 2005-2006 the VideoLAN team
  7. <  $Id$
  8. <  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
  9. <  This program is free software; you can redistribute it and/or modify
  10. <  it under the terms of the GNU General Public License as published by
  11. <  the Free Software Foundation; either version 2 of the License, or
  12. <  (at your option) any later version.
  13. <  This program is distributed in the hope that it will be useful,
  14. <  but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. <  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. <  GNU General Public License for more details.
  17. <  You should have received a copy of the GNU General Public License
  18. <  along with this program; if not, write to the Free Software
  19. <  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  20. < - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  21. This dialog needs the following dialogs to be fully functional: <none>
  22. Note that the sout chain is used and sent to VLC by the input dialog
  23. ]]?>
  24. <div id="sout" class="dialog" style="display: none">
  25.   <div class="title">
  26.     Stream Output
  27.     <img class="close" src="images/white_cross_small.png" alt="Close" onclick="hide('sout');"/>
  28.   </div>
  29.   <div class="controls">
  30.     <label for="sout_mrl">Destination</label>
  31.     <?vlc if current_page == "vlm" then ?>
  32.       <input type="text" name="sout_mrl" id="sout_mrl" size="60" onkeypress="if( event.keyCode == 13 ) vlm_output_change();" disabled="disabled" />
  33.       <br/>
  34.       <input type="button" value="Ok" onclick="vlm_output_change();" />
  35.       <input type="button" value="Cancel" onclick="hide('sout');" />
  36.       <input type="hidden" id="sout_dest" />
  37.     <?vlc else ?>
  38.       <input type="text" name="sout_mrl" id="sout_mrl" size="60" onkeypress="if( event.keyCode == 13 ) save_sout();" disabled="disabled" />
  39.       <br/>
  40.       <input type="button" value="Save" onclick="save_sout();" />
  41.     <?vlc end ?>
  42.     <input type="button" value="Reset" onclick="reset_sout();"/>
  43.     <input type="hidden" id="sout_old_mrl" value="" /> <!-- FIXME -->
  44.     <input type="button" id="sout_helper_toggle" onclick="toggle_show_sout_helper()" value="Hide sout interface" />
  45.   </div>
  46.   <div id="sout_helper" class="helper">
  47.     Stream Output Helper
  48.     <hr/>
  49.     <div id="sout_method">
  50.       <table>
  51.         <tr>
  52.           <td>
  53.             <input type="checkbox" id="sout_display" onchange="update_sout()"/>
  54.             <label for="sout_display">Display</label>
  55.           </td>
  56.           <td></td>
  57.           <td></td>
  58.         </tr>
  59.         <tr>
  60.           <td>
  61.             <input type="checkbox" id="sout_file" onchange="update_sout()"/>
  62.             <label for="sout_file">File</label>
  63.           </td>
  64.           <td>
  65.             <label for="sout_file_filename">File name</label>
  66.             <input type="text" id="sout_file_filename" onchange="update_sout()"/>
  67.           </td>
  68.           <td></td>
  69.         </tr>
  70.         <tr>
  71.           <td>
  72.             <input type="checkbox" id="sout_http" onchange="update_sout()"/>
  73.             <label for="sout_http">HTTP</label>
  74.           </td>
  75.           <td>
  76.             <label for="sout_http_addr">Address</label>
  77.             <input type="text" id="sout_http_addr" onchange="update_sout()"/>
  78.           </td>
  79.           <td>
  80.             <label for="sout_http_port">Port</label>
  81.             <input type="text" id="sout_http_port" onchange="update_sout()"/>
  82.           </td>
  83.         </tr>
  84.         <tr>
  85.           <td>
  86.             <input type="checkbox" id="sout_mmsh" onchange="update_sout()"/>
  87.             <label for="sout_mmsh">MMSH</label>
  88.           </td>
  89.           <td>
  90.             <label for="sout_mmsh_addr">Address</label>
  91.             <input type="text" id="sout_mmsh_addr" onchange="update_sout()"/>
  92.           </td>
  93.           <td>
  94.             <label for="sout_mmsh_port">Port</label>
  95.             <input type="text" id="sout_mmsh_port" onchange="update_sout()"/>
  96.           </td>
  97.         </tr>
  98.         <tr>
  99.           <td>
  100.             <input type="checkbox" id="sout_rtp" onchange="update_sout()"/>
  101.             <label for="sout_rtp">RTP</label>
  102.           </td>
  103.           <td>
  104.             <label for="sout_rtp_addr">Address</label>
  105.             <input type="text" id="sout_rtp_addr" onchange="update_sout()"/>
  106.           </td>
  107.           <td>
  108.             <label for="sout_rtp_port">Port</label>
  109.             <input type="text" id="sout_rtp_port" onchange="update_sout()"/>
  110.           </td>
  111.         </tr>
  112.         <tr>
  113.           <td>
  114.             <input type="checkbox" id="sout_udp" onchange="update_sout()"/>
  115.             <label for="sout_udp">UDP</label>
  116.           </td>
  117.           <td>
  118.             <label for="sout_udp_addr">Address</label>
  119.             <input type="text" id="sout_udp_addr" onchange="update_sout()"/>
  120.           </td>
  121.           <td>
  122.             <label for="sout_udp_port">Port</label>
  123.             <input type="text" id="sout_udp_port" onchange="update_sout()"/>
  124.           </td>
  125.         </tr>
  126.       </table>
  127.     </div>
  128.     <hr/>
  129.     <div id="sout_muxh">
  130.       <input type="radio" name="sout_mux" id="sout_mux_default" value="" onchange="update_sout()" />
  131.       <label for="sout_mux_default">Default</label>
  132.       <input type="radio" name="sout_mux" id="sout_mux_ts" value="ts" onchange="update_sout()"/>
  133.       <label for="sout_mux_ts">MPEG TS</label>
  134.       <input type="radio" name="sout_mux" id="sout_mux_ps" value="ps" onchange="update_sout()"/>
  135.       <label for="sout_mux_ps">MPEG PS</label>
  136.       <input type="radio" name="sout_mux" id="sout_mux_mpeg1" value="mpeg1" onchange="update_sout()"/>
  137.       <label for="sout_mux_ts">MPEG 1</label>
  138.       <input type="radio" name="sout_mux" id="sout_mux_ogg" value="ogg" onchange="update_sout()"/>
  139.       <label for="sout_mux_ts">OGG</label>
  140.       <br/>
  141.       <input type="radio" name="sout_mux" id="sout_mux_asf" value="asf" onchange="update_sout()"/>
  142.       <label for="sout_mux_ts">ASF</label>
  143.       <input type="radio" name="sout_mux" id="sout_mux_mp4" value="mp4" onchange="update_sout()"/>
  144.       <label for="sout_mux_ts">MP4</label>
  145.       <input type="radio" name="sout_mux" id="sout_mux_mov" value="mov" onchange="update_sout()"/>
  146.       <label for="sout_mux_ts">MOV</label>
  147.       <input type="radio" name="sout_mux" id="sout_mux_wav" value="wav" onchange="update_sout()"/>
  148.       <label for="sout_mux_ts">WAV</label>
  149.       <input type="radio" name="sout_mux" id="sout_mux_raw" value="raw" onchange="update_sout()"/>
  150.       <label for="sout_mux_ts">Raw</label>
  151.     </div>
  152.     <hr/>
  153.     <div id="sout_transcode">
  154.       <input type="hidden" id="sout_transcode_extra" value="" />
  155.       <table>
  156.         <tr>
  157.           <td>
  158.             <input type="checkbox" id="sout_vcodec_s" onchange="update_sout()"/>
  159.             <label for="sout_vcodec_s">Video Codec</label>
  160.           </td>
  161.           <td>
  162.             <select id="sout_vcodec" onchange="update_sout()">
  163.               <option value="mp1v">mp1v</option>
  164.               <option value="mp2v">mp2v</option>
  165.               <option value="mp4v">mp4v</option>
  166.               <option value="DIV1">DIV1</option>
  167.               <option value="DIV2">DIV2</option>
  168.               <option value="DIV3">DIV3</option>
  169.               <option value="H263">h263</option>
  170.               <option value="H264">h264</option>
  171.               <option value="WMV1">WMV1</option>
  172.               <option value="WMV2">WMV2</option>
  173.               <option value="MJPG">MJPG</option>
  174.               <option value="theo">theo</option>
  175.             </select>
  176.           </td>
  177.           <td>
  178.             <label for="sout_vb">Bitrate (kb/s)</label>
  179.             <select id="sout_vb" onchange="update_sout()">
  180.               <option value="4096">4096</option>
  181.               <option value="3072">3072</option>
  182.               <option value="2048">2048</option>
  183.               <option value="1024">1024</option>
  184.               <option value="768">768</option>
  185.               <option value="512">512</option>
  186.               <option value="384">384</option>
  187.               <option value="256">256</option>
  188.               <option value="192">192</option>
  189.               <option value="128">128</option>
  190.               <option value="96">96</option>
  191.               <option value="64">64</option>
  192.               <option value="32">32</option>
  193.               <option value="16">16</option>
  194.             </select>
  195.           </td>
  196.           <td>
  197.             <label for="sout_scale">Scale</label>
  198.             <select id="sout_scale" onchange="update_sout()">
  199.               <option value="0.25">0.25</option>
  200.               <option value="0.5">0.5</option>
  201.               <option value="0.75">0.75</option>
  202.               <option value="1" selected="selected">1</option>
  203.               <option value="1.25">1.25</option>
  204.               <option value="1.5">1.5</option>
  205.               <option value="1.75">1.75</option>
  206.               <option value="2">2</option>
  207.             </select>
  208.           </td>
  209.         </tr>
  210.         <tr>
  211.           <td>
  212.             <input type="checkbox" id="sout_acodec_s" onchange="update_sout()"/>
  213.             <label for="sout_acodec_s">Audio Codec</label>
  214.           </td>
  215.           <td>
  216.             <select id="sout_acodec" onchange="update_sout()">
  217.               <option value="mpga">mpga</option>
  218.               <option value="mp2a">mp2a</option>
  219.               <option value="mp3">mp3</option>
  220.               <option value="mp4a">mp4a</option>
  221.               <option value="a52">a52</option>
  222.               <option value="vorb">vorb</option>
  223.               <option value="flac">flac</option>
  224.               <option value="spx">spx</option>
  225.               <option value="s16l">s16l</option>
  226.               <option value="fl32">fl32</option>
  227.             </select>
  228.           </td>
  229.           <td>
  230.             <label for="sout_ab">Bitrate (kb/s)</label>
  231.             <select id="sout_ab" onchange="update_sout()">
  232.               <option value="512">512</option>
  233.               <option value="384">384</option>
  234.               <option value="256">256</option>
  235.               <option value="192">192</option>
  236.               <option value="128">128</option>
  237.               <option value="96">96</option>
  238.               <option value="64">64</option>
  239.               <option value="32">32</option>
  240.               <option value="16">16</option>
  241.             </select>
  242.           </td>
  243.           <td>
  244.             <label for="sout_channels">Channels</label>
  245.             <select id="sout_channels" onchange="update_sout()">
  246.               <option value="">default</option>
  247.               <option value="1">1</option>
  248.               <option value="2">2</option>
  249.               <option value="4">4</option>
  250.               <option value="6">6</option>
  251.             </select>
  252.           </td>
  253.         </tr>
  254.         <tr>
  255.           <td>
  256.             <input type="checkbox" id="sout_sub" onchange="update_sout()"/>
  257.             <label for="sout_sub">Subtitles Codec</label>
  258.           </td>
  259.           <td>
  260.             <select id="sout_scodec" onchange="update_sout()">
  261.               <option value="dvbs">dvbs</option>
  262.             </select>
  263.           </td>
  264.           <td colspan="2">
  265.             <input type="checkbox" id="sout_soverlay" onchange="update_sout()"/>
  266.             <label for="sout_soverlay">Subtitles overlay</label>
  267.           </td>
  268.         </tr>
  269.       </table>
  270.     </div>
  271.     <hr/>
  272.     <div id="sout_misc">
  273.       <input type="checkbox" id="sout_sap" onchange="update_sout()"/>
  274.       <label for="sout_sap">SAP announce</label>
  275.       <br/>
  276.       <label for="sout_sap_group">Group name</label>
  277.       <input type="text" id="sout_sap_group" onchange="update_sout()"/>
  278.       <label for="sout_sap_name">Channel name</label>
  279.       <input type="text" id="sout_sap_name" onchange="update_sout()"/>
  280.       <hr/>
  281.       <input type="checkbox" id="sout_all" onchange="update_sout()"/>
  282.       <label for="sout_all">Select all elementary streams</label>
  283.       <hr/>
  284.       <label for="sout_ttl">Time-To-Live (TTL)</label>
  285.       <input type="text" id="sout_ttl" onchange="update_sout()"/>
  286.     </div>
  287.   </div>
  288. </div>