1 #include "wxVideoSettingsDialog.h"
2 #include <wx/filedlg.h>
3 #include <Gui/StringConv.hh>
5 #ifdef BIAS_HAVE_FFMPEG
9 #include <libavcodec/avcodec.h>
28 #ifdef BIAS_HAVE_FFMPEG
35 wxFileDialog dialog(
this,wxT(
"Select File"),wxT(
""),wxT(
""),
36 wxT(
"Movie files(*.avi;*.mpeg)|*.avi;*.mpeg|All files (*.*)|*.*"),
37 wxFD_SAVE|wxFD_OVERWRITE_PROMPT);
38 int ret = dialog.ShowModal();
50 mWidth_ = atoi(WxToAscii(value));
56 mFps_= atoi(WxToAscii(value));
100 wxString v; v.Printf(wxT(
"%d"),value);
106 wxString v; v.Printf(wxT(
"%d"),value);
112 wxString v; v.Printf(wxT(
"%d"),value);
118 wxString v; v.Printf(wxT(
"%d"),value);
124 wxString v; v.Printf(wxT(
"%d"),value);
130 wxString v; v.Printf(wxT(
"%d"),value);
140 #ifdef BIAS_HAVE_FFMPEG
143 case 0:
return CODEC_ID_MPEG1VIDEO;
144 case 1:
return CODEC_ID_MPEG2VIDEO;
145 case 2:
return CODEC_ID_MPEG4;
146 case 3:
return CODEC_ID_FFV1;
147 case 4:
return CODEC_ID_H261;
148 case 5:
return CODEC_ID_H263;
149 case 6:
return CODEC_ID_H264;
150 case 7:
return CODEC_ID_MJPEG;
151 case 8:
return CODEC_ID_RAWVIDEO;
152 case 9:
return CODEC_ID_MSMPEG4V1;
153 case 10:
return CODEC_ID_MSMPEG4V2;
154 case 11:
return CODEC_ID_MSMPEG4V3;
155 case 12:
return CODEC_ID_WMV1;
156 case 13:
return CODEC_ID_WMV2;
157 case 14:
return CODEC_ID_THEORA;
158 case 15:
return CODEC_ID_TRUEMOTION1;
void SetOutputFilename(wxString value)
void SetMaxBFrames(int value)
int GetCodecID()
Returns the codec ID as in libavcodec/avcodec.h.
wxTextCtrl * m_textHeight
void SetHeight(int value)
wxTextCtrl * m_textMaxBFrames
wxString GetOutputFilename()
wxTextCtrl * m_textGoPSize
wxTextCtrl * m_textOutFilenames
void OnOk(wxCommandEvent &event)
void SetGoPSize(int value)
Class wxVideoSettingsDialogBase.
wxVideoSettingsDialog(wxWindow *parent)
Constructor.
wxTextCtrl * m_textBitrate
int SelectedCodecToFFMPEGCodecID_(int id)
void SetBitrate(int value)
void OnSelectFile(wxCommandEvent &event)