Changeset ff373bfcd5372ce83927be8129b1980269048ecb

Show
Ignore:
Timestamp:
07/06/03 18:13:11 (5 years ago)
Author:
Gildas Bazin <gbazin@videolan.org>
git-committer:
Gildas Bazin <gbazin@videolan.org> 1057507991 +0000
git-parent:

[e25dd0975da804714a182dfe2dfb66d2f79336ce]

git-author:
Gildas Bazin <gbazin@videolan.org> 1057507991 +0000
Message:

* modules/gui/wxwindows/streamout.cpp: clean-up for sap support.

Added a couple of transcoding codecs (WMV2, MJPG, mp3).
The output filename is now surrounded by quotes and the MRL is updated correctly on codec change.

* install-win32: start menu shortucts are installed in the "All Users" section.
* configure.ac: added a --with-ffmpeg-mp3lame option for when ffmpeg was compiled with mp3lame support.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • configure.ac

    r79ddd26 rff373bf  
    11dnl Autoconf settings for vlc 
    2 dnl $Id: configure.ac,v 1.23 2003/07/03 19:25:51 garf Exp $ 
     2dnl $Id: configure.ac,v 1.24 2003/07/06 16:13:10 gbazin Exp $ 
    33 
    44AC_INIT(vlc,0.6.0) 
     
    15011501if test "${enable_ffmpeg}" != "no" 
    15021502then 
     1503  AC_ARG_WITH(ffmpeg-mp3lame, 
     1504    [    --with-ffmpeg-mp3lame   if ffmpeg has been compiled with mp3lame support], 
     1505    [ AX_ADD_LDFLAGS([stream_out_transcode],[-lmp3lame]) 
     1506      AX_ADD_LDFLAGS([ffmpeg],[-lmp3lame]) ]) 
     1507 
    15031508  AC_ARG_WITH(ffmpeg-tree, 
    15041509    [    --with-ffmpeg-tree=PATH ffmpeg tree for static linking]) 
  • install-win32

    r7d5b13c rff373bf  
    66; CHANGELOG ; 
    77;;;;;;;;;;;;; 
    8 ; modifications by Gildas Bazin <gbazin@netcourrier.com> 01 Mar 2003 
    9 ; . added a shortcut to the faq in the menu. 
     8; modifications by Gildas Bazin <gbazin@netcourrier.com> 6 Jul 2003 
     9; . Start menu shortcuts now created in the "All Users" section. 
     10; modifications by Gildas Bazin <gbazin@netcourrier.com> 6 Apr 2003 
     11; . added shortcut to the skins interface, added the default skin. 
    1012; modifications by Gildas Bazin <gbazin@netcourrier.com> 26 Feb 2003 
    1113; . added the locale directory. 
     
    3436CRCCheck on 
    3537 
     38SetShellVarContext all 
    3639InstallDir "$PROGRAMFILES\VideoLAN\VLC" 
    3740 
  • modules/gui/wxwindows/streamout.cpp

    r98de4a2 rff373bf  
    33 ***************************************************************************** 
    44 * Copyright (C) 2000-2001 VideoLAN 
    5  * $Id: streamout.cpp,v 1.19 2003/07/04 15:20:49 adn Exp $ 
     5 * $Id: streamout.cpp,v 1.20 2003/07/06 16:13:11 gbazin Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    8282enum 
    8383{ 
    84     SAP_ANNOUNCE = 0 
     84    SAP_MISC = 0 
    8585}; 
    8686 
     
    111111    AudioTranscEnable_Event, AudioTranscCodec_Event, AudioTranscBitrate_Event, 
    112112 
    113     SAPType_Event, SAPAddr_Event 
     113    SAPMisc_Event, SAPAddr_Event 
    114114}; 
    115115 
     
    151151    EVT_CHECKBOX(AudioTranscEnable_Event, SoutDialog::OnTranscodingEnable) 
    152152    EVT_COMBOBOX(VideoTranscCodec_Event, SoutDialog::OnTranscodingChange) 
     153    EVT_TEXT(VideoTranscCodec_Event, SoutDialog::OnTranscodingChange) 
    153154    EVT_COMBOBOX(AudioTranscCodec_Event, SoutDialog::OnTranscodingChange) 
     155    EVT_TEXT(AudioTranscCodec_Event, SoutDialog::OnTranscodingChange) 
    154156    EVT_COMBOBOX(VideoTranscBitrate_Event, SoutDialog::OnTranscodingChange) 
     157    EVT_TEXT(VideoTranscBitrate_Event, SoutDialog::OnTranscodingChange) 
    155158    EVT_COMBOBOX(AudioTranscBitrate_Event, SoutDialog::OnTranscodingChange) 
     159    EVT_TEXT(AudioTranscBitrate_Event, SoutDialog::OnTranscodingChange) 
    156160 
    157161    /* Events generated by the misc panel */ 
    158     EVT_CHECKBOX(SAPType_Event, SoutDialog::OnSAPTypeChange) 
     162    EVT_CHECKBOX(SAPMisc_Event, SoutDialog::OnSAPMiscChange) 
    159163    EVT_TEXT(SAPAddr_Event, SoutDialog::OnSAPAddrChange) 
    160164 
     
    299303        if( !dup_opts.IsEmpty() ) dup_opts += wxT(","); 
    300304        dup_opts += wxT("dst=std{access=file,mux="); 
    301         dup_opts += encapsulation + wxT(",url="); 
    302         dup_opts += file_combo->GetValue() + wxT("}"); 
     305        dup_opts += encapsulation + wxT(",url=\""); 
     306        dup_opts += file_combo->GetValue() + wxT("\"}"); 
    303307    } 
    304308    if( access_checkboxes[HTTP_ACCESS_OUT]->IsChecked() ) 
     
    320324        dup_opts += wxString::Format( wxT(":%d"), 
    321325                                      net_ports[UDP_ACCESS_OUT]->GetValue() ); 
    322     } 
    323     if( access_checkboxes[UDP_ACCESS_OUT]->IsChecked() && misc_checkboxes[SAP_ANNOUNCE]->IsChecked() ) /* SAP only if UDP �*/ 
    324     { 
    325         dup_opts += wxT(",sap="); 
    326         dup_opts += misc_addrs[SAP_ANNOUNCE]-> GetLineText(0); 
    327     } 
    328     if( access_checkboxes[UDP_ACCESS_OUT]->IsChecked() ) 
    329     { 
    330         dup_opts += wxT("}"); /* the bracket must be closed after SAP ! */ 
     326 
     327        /* SAP only if UDP */ 
     328        if( sap_checkbox->IsChecked() ) 
     329        { 
     330            dup_opts += wxT(",sap="); 
     331            dup_opts += sap_addr->GetLineText(0); 
     332        } 
     333 
     334        dup_opts += wxT("}"); 
    331335    } 
    332336    if( access_checkboxes[RTP_ACCESS_OUT]->IsChecked() ) 
     
    468472    // wxFlexGridSizer *sizer = new wxFlexGridSizer( 2, 4, 20 ); 
    469473    wxStaticBox *panel_box = new wxStaticBox( panel, -1, 
    470                                               wxU(_("Miscellaneous Options")) ); 
     474                                   wxU(_("Miscellaneous Options")) ); 
    471475    wxStaticBoxSizer *panel_sizer = new wxStaticBoxSizer( panel_box, 
    472476                                                          wxVERTICAL ); 
    473477 
    474     static const wxString misc_output_array[] = 
    475     { 
    476         wxU(_("SAP Announce")) 
    477     }; 
    478  
    479         misc_checkboxes[SAP_ANNOUNCE] = new wxCheckBox( panel,SAPType_Event, 
    480                                                misc_output_array[SAP_ANNOUNCE] ); 
    481         misc_subpanels[SAP_ANNOUNCE] = new wxPanel( panel, -1 ); 
    482      
    483     /* SAP Row */ 
    484  
     478    /* SAP Row */ 
    485479    wxStaticText *label; 
    486480    wxFlexGridSizer *subpanel_sizer; 
    487481 
    488     subpanel_sizer = new wxFlexGridSizer( 4, 1, 20 ); 
    489     label = new wxStaticText( misc_subpanels[SAP_ANNOUNCE], -1, wxU(_("Channel Name ")) ); 
    490     misc_addrs[SAP_ANNOUNCE] = new wxTextCtrl( misc_subpanels[SAP_ANNOUNCE], 
    491                                     SAPAddr_Event, 
    492                                     wxT(""), wxDefaultPosition, 
    493                                     wxSize( 200, -1 ), wxTE_PROCESS_ENTER); 
    494  
    495     subpanel_sizer->Add( label, 0, 
     482    misc_subpanels[SAP_MISC] = new wxPanel( panel, -1 ); 
     483    subpanel_sizer = new wxFlexGridSizer( 4, 2, 20 ); 
     484 
     485    sap_checkbox = new wxCheckBox( misc_subpanels[SAP_MISC], SAPMisc_Event, 
     486                                   wxU(_("SAP Announce")) ); 
     487    label = new wxStaticText( misc_subpanels[SAP_MISC], -1, 
     488                              wxU(_("Channel Name ")) ); 
     489    sap_addr = new wxTextCtrl( misc_subpanels[SAP_MISC], SAPAddr_Event, 
     490                               wxT(""), wxDefaultPosition, 
     491                               wxSize( 200, -1 ), wxTE_PROCESS_ENTER); 
     492 
     493    subpanel_sizer->Add( sap_checkbox, 0, 
    496494                         wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL ); 
    497     subpanel_sizer->Add( misc_addrs[SAP_ANNOUNCE], 1, wxEXPAND | 
     495    subpanel_sizer->Add( label, 0, wxALIGN_RIGHT | wxALIGN_CENTER_VERTICAL ); 
     496    subpanel_sizer->Add( sap_addr, 1, wxEXPAND | 
    498497                         wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL ); 
    499498 
    500     misc_subpanels[SAP_ANNOUNCE]->SetSizerAndFit( subpanel_sizer ); 
    501  
    502         /* Stuff everything into the main panel */ 
    503          
    504     panel_sizer->Add( misc_checkboxes[SAP_ANNOUNCE], 0, 
     499    misc_subpanels[SAP_MISC]->SetSizerAndFit( subpanel_sizer ); 
     500 
     501    /* Stuff everything into the main panel */ 
     502    panel_sizer->Add( misc_subpanels[SAP_MISC], 1, 
    505503                      wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL | wxALL, 5 ); 
    506         panel_sizer->Add( misc_subpanels[SAP_ANNOUNCE], 1, 
    507                       wxALIGN_LEFT | wxALIGN_CENTER_VERTICAL | wxALL, 5 ); 
    508  
    509         panel->SetSizerAndFit( panel_sizer ); 
    510  
    511     /* Update access type panel */ 
    512  
    513         misc_checkboxes[SAP_ANNOUNCE]->Disable(); 
    514         misc_subpanels[SAP_ANNOUNCE]->Disable(); 
    515  
    516         return panel; 
     504 
     505    panel->SetSizerAndFit( panel_sizer ); 
     506 
     507    /* Update misc panel */ 
     508    misc_subpanels[SAP_MISC]->Disable(); 
     509    sap_addr->Disable(); 
     510 
     511    return panel; 
    517512}  
    518513 
     
    577572        wxT("I263"), 
    578573        wxT("WMV1"), 
     574        wxT("WMV2"), 
     575        wxT("MJPG") 
    579576    }; 
    580577    static const wxString vbitrates_array[] = 
     
    617614    { 
    618615        wxT("mpga"), 
     616        wxT("mp3"), 
    619617        wxT("a52") 
    620618    }; 
     
    702700    { 
    703701    case UDP_ACCESS_OUT: 
    704     {     
    705             misc_checkboxes[SAP_ANNOUNCE]->Enable( event.GetInt() ); 
    706         } 
     702        misc_subpanels[SAP_MISC]->Enable( event.GetInt() ); 
     703 
    707704    case RTP_ACCESS_OUT: 
    708705        for( i = 1; i < ENCAPS_NUM; i++ ) 
     
    721718 
    722719/***************************************************************************** 
    723  * SAPType panel event methods. 
    724  *****************************************************************************/ 
    725 void SoutDialog::OnSAPTypeChange( wxCommandEvent& event ) 
    726 
    727     i_sap_type = event.GetId()-SAPType_Event; 
    728     misc_subpanels[i_sap_type]->Enable( event.GetInt() ); 
    729  
     720 * SAPMisc panel event methods. 
     721 *****************************************************************************/ 
     722void SoutDialog::OnSAPMiscChange( wxCommandEvent& event ) 
     723
     724    sap_addr->Enable( event.GetInt() ); 
    730725    UpdateMRL(); 
    731726} 
     
    738733    UpdateMRL(); 
    739734} 
    740  
    741735 
    742736/***************************************************************************** 
  • modules/gui/wxwindows/wxwindows.h

    r5c6d4e9 rff373bf  
    33 ***************************************************************************** 
    44 * Copyright (C) 1999, 2000 VideoLAN 
    5  * $Id: wxwindows.h,v 1.37 2003/07/04 12:20:32 adn Exp $ 
     5 * $Id: wxwindows.h,v 1.38 2003/07/06 16:13:11 gbazin Exp $ 
    66 * 
    77 * Authors: Gildas Bazin <gbazin@netcourrier.com> 
     
    316316    void OnMRLChange( wxCommandEvent& event ); 
    317317    void OnAccessTypeChange( wxCommandEvent& event ); 
    318     void OnSAPTypeChange( wxCommandEvent& event ); 
    319318 
    320319    /* Event handlers for the file access output */ 
     
    335334    void OnTranscodingChange( wxCommandEvent& event ); 
    336335 
     336    /* Event handlers for the misc panel */ 
     337    void OnSAPMiscChange( wxCommandEvent& event ); 
     338 
    337339    DECLARE_EVENT_TABLE(); 
    338340 
     
    353355 
    354356    /* Controls for the SAP announces */ 
    355      wxPanel *misc_subpanels[1]; 
    356      wxCheckBox *misc_checkboxes[1]; 
    357       
    358      int i_sap_type; 
    359       
    360      wxTextCtrl *misc_addrs[1]; 
     357    wxPanel *misc_subpanels[1]; 
     358    wxCheckBox *sap_checkbox; 
     359    wxTextCtrl *sap_addr; 
    361360                             
    362361    /* Controls for the encapsulation */