Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
038dc1ca
Commit
038dc1ca
authored
Sep 06, 2007
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4 - Names changement and some bug fixes.
parent
fbb3c561
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
74 deletions
+71
-74
modules/gui/qt4/dialogs/sout.cpp
modules/gui/qt4/dialogs/sout.cpp
+43
-43
modules/gui/qt4/ui/sout.ui
modules/gui/qt4/ui/sout.ui
+28
-31
No files found.
modules/gui/qt4/dialogs/sout.cpp
View file @
038dc1ca
...
...
@@ -37,14 +37,15 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf,
/* UI stuff */
ui
.
setupUi
(
this
);
#define ADD_PROFILE( name ) ui.comboBox->addItem( name );
ADD_PROFILE
(
""
)
ADD_PROFILE
(
"Ipod"
)
#define ADD_PROFILE( name ) ui.profileBox->addItem( name );
ADD_PROFILE
(
"Custom"
)
ADD_PROFILE
(
"IPod"
)
ADD_PROFILE
(
"XBox"
)
ADD_PROFILE
(
"Windows"
)
ADD_PROFILE
(
"PSP"
)
ADD_PROFILE
(
"GSM"
)
ADD_PROFILE
(
"Custom"
)
ADD_PROFILE
(
"GSM"
)
#define ADD_VCODEC( name, fourcc ) ui.vCodec
_2
->addItem( name, QVariant( fourcc ) );
#define ADD_VCODEC( name, fourcc ) ui.vCodec
Box
->addItem( name, QVariant( fourcc ) );
ADD_VCODEC
(
"MPEG-1"
,
"mp1v"
)
ADD_VCODEC
(
"MPEG-2"
,
"mp2v"
)
ADD_VCODEC
(
"MPEG-4"
,
"mp4v"
)
...
...
@@ -58,7 +59,7 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf,
ADD_VCODEC
(
"M-JPEG"
,
"MJPG"
)
ADD_VCODEC
(
"Theora"
,
"theo"
)
#define ADD_ACODEC( name, fourcc ) ui.aCodec
_2
->addItem( name, QVariant( fourcc ) );
#define ADD_ACODEC( name, fourcc ) ui.aCodec
Box
->addItem( name, QVariant( fourcc ) );
ADD_ACODEC
(
"MPEG Audio"
,
"mpga"
)
ADD_ACODEC
(
"MP3"
,
"mp3"
)
ADD_ACODEC
(
"MPEG 4 Audio ( AAC )"
,
"mp4a"
)
...
...
@@ -69,7 +70,7 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf,
ADD_ACODEC
(
"WAV"
,
"s16l"
)
ADD_ACODEC
(
"WMA"
,
"wma"
)
#define ADD_SCALING( factor ) ui.vScale
_2
->addItem( factor );
#define ADD_SCALING( factor ) ui.vScale
Box
->addItem( factor );
ADD_SCALING
(
"0.25"
)
ADD_SCALING
(
"0.5"
)
ADD_SCALING
(
"0.75"
)
...
...
@@ -92,22 +93,22 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf,
CT
(
fileEdit
);
CT
(
HTTPEdit
);
CT
(
UDPEdit
);
CT
(
MMSHEdit
);
CS
(
HTTPPort
);
CS
(
UDPPort
);
CS
(
MMSHPort
);
// /* Transcode */
CC
(
vCodec
_2
);
CC
(
sCodec_2
);
CC
(
aCodec_2
)
;
CB
(
transcodeVideo
_2
);
CB
(
transcodeAudio_2
);
CB
(
transcodeSubs_2
);
CC
(
vCodec
Box
);
CC
(
subsCodecBox
);
CC
(
aCodecBox
)
;
CB
(
transcodeVideo
);
CB
(
transcodeAudio
);
CB
(
transcodeSubs
);
// CB( sOverlay );
CS
(
vBitrate
_2
);
CS
(
aBitrate_2
);
CS
(
aChannels_2
);
CC
(
vScale_2
);
CS
(
vBitrate
Spin
);
CS
(
aBitrateSpin
);
CS
(
aChannelsSpin
);
CC
(
vScaleBox
);
// /* Mux */
CB
(
PSMux
);
CB
(
TSMux
);
CB
(
MPEG1Mux
);
CB
(
OggMux
);
CB
(
ASFMux
);
CB
(
MP4Mux
);
CB
(
MOVMux
);
CB
(
WAVMux
);
CB
(
RAWMux
);
CB
(
FLVMux
);
// /* Misc */
CB
(
soutAll
);
CS
(
ttl
);
CT
(
sapName
);
CT
(
sapGroup
);
//
connect
(
ui
.
comboBox
,
SIGNAL
(
activated
(
const
QString
&
)
),
this
,
SLOT
(
setOptions
()
)
);
connect
(
ui
.
fileSelectButton
,
SIGNAL
(
clicked
()
),
this
,
SLOT
(
fileBrowse
()
)
);
connect
(
ui
.
transcodeVideo_2
,
SIGNAL
(
toggled
(
bool
)
),
this
,
SLOT
(
setVTranscodeOptions
(
bool
)
)
);
connect
(
ui
.
transcodeAudio_2
,
SIGNAL
(
toggled
(
bool
)
),
this
,
SLOT
(
setATranscodeOptions
(
bool
)
)
);
connect
(
ui
.
transcodeSubs_2
,
SIGNAL
(
toggled
(
bool
)
),
this
,
SLOT
(
setSTranscodeOptions
(
bool
)
)
);
connect
(
ui
.
rawInput
,
SIGNAL
(
toggled
(
bool
)
),
this
,
SLOT
(
setRawOptions
(
bool
)
)
);
CONNECT
(
ui
.
profileBox
,
activated
(
const
QString
&
),
this
,
setOptions
(
)
);
CONNECT
(
ui
.
fileSelectButton
,
clicked
()
,
this
,
fileBrowse
()
);
CONNECT
(
ui
.
transcodeVideo
,
toggled
(
bool
),
this
,
setVTranscodeOptions
(
bool
)
);
CONNECT
(
ui
.
transcodeAudio
,
toggled
(
bool
),
this
,
setATranscodeOptions
(
bool
)
);
CONNECT
(
ui
.
transcodeSubs
,
toggled
(
bool
),
this
,
setSTranscodeOptions
(
bool
)
);
CONNECT
(
ui
.
rawInput
,
toggled
(
bool
),
this
,
setRawOptions
(
bool
)
);
QPushButton
*
okButton
=
new
QPushButton
(
qtr
(
"&Stream"
)
);
QPushButton
*
cancelButton
=
new
QPushButton
(
qtr
(
"&Cancel"
)
);
...
...
@@ -131,29 +132,28 @@ void SoutDialog::fileBrowse()
void
SoutDialog
::
setVTranscodeOptions
(
bool
b_trans
)
{
ui
.
label_2
->
setEnabled
(
b_trans
);
ui
.
vCodec_2
->
setEnabled
(
b_trans
);
ui
.
vBitrateLabel_2
->
setEnabled
(
b_trans
);
ui
.
vScaleLabel_2
->
setEnabled
(
b_trans
);
ui
.
vBitrate_2
->
setEnabled
(
b_trans
);
ui
.
vScaleLabel_2
->
setEnabled
(
b_trans
);
ui
.
vScale_2
->
setEnabled
(
b_trans
);
ui
.
vCodecLabel
->
setEnabled
(
b_trans
);
ui
.
vCodecBox
->
setEnabled
(
b_trans
);
ui
.
vBitrateLabel
->
setEnabled
(
b_trans
);
ui
.
vBitrateSpin
->
setEnabled
(
b_trans
);
ui
.
vScaleLabel
->
setEnabled
(
b_trans
);
ui
.
vScaleBox
->
setEnabled
(
b_trans
);
}
void
SoutDialog
::
setATranscodeOptions
(
bool
b_trans
)
{
ui
.
l
abel
->
setEnabled
(
b_trans
);
ui
.
aCodec
_2
->
setEnabled
(
b_trans
);
ui
.
aBitrateLabel
_2
->
setEnabled
(
b_trans
);
ui
.
aBitrate
_2
->
setEnabled
(
b_trans
);
ui
.
s_3
->
setEnabled
(
b_trans
);
ui
.
aChannels
_2
->
setEnabled
(
b_trans
);
ui
.
aCodecL
abel
->
setEnabled
(
b_trans
);
ui
.
aCodec
Box
->
setEnabled
(
b_trans
);
ui
.
aBitrateLabel
->
setEnabled
(
b_trans
);
ui
.
aBitrate
Spin
->
setEnabled
(
b_trans
);
ui
.
aChannelsLabel
->
setEnabled
(
b_trans
);
ui
.
aChannels
Spin
->
setEnabled
(
b_trans
);
}
void
SoutDialog
::
setSTranscodeOptions
(
bool
b_trans
)
{
ui
.
s
Codec_2
->
setEnabled
(
b_trans
);
ui
.
s
Overlay_2
->
setEnabled
(
b_trans
);
ui
.
s
ubsCodecBox
->
setEnabled
(
b_trans
);
ui
.
s
ubsOverlay
->
setEnabled
(
b_trans
);
}
void
SoutDialog
::
setRawOptions
(
bool
b_raw
)
...
...
@@ -171,7 +171,7 @@ void SoutDialog::setRawOptions( bool b_raw )
void
SoutDialog
::
setOptions
()
{
/* The test is currently done with a QString, it could be done with the index, it'd depend how translation works */
if
(
ui
.
combo
Box
->
currentText
()
==
"Custom"
)
if
(
ui
.
profile
Box
->
currentText
()
==
"Custom"
)
{
ui
.
tabWidget
->
setEnabled
(
true
);
}
...
...
@@ -219,9 +219,9 @@ void SoutDialog::updateMRL()
sout
.
b_udp
=
ui
.
UDPOutput
->
isChecked
();
sout
.
b_sap
=
ui
.
sap
->
isChecked
();
sout
.
b_all_es
=
ui
.
soutAll
->
isChecked
();
sout
.
psz_vcodec
=
strdup
(
qtu
(
ui
.
vCodec
_2
->
itemData
(
ui
.
vCodec_2
->
currentIndex
()
).
toString
()
)
);
sout
.
psz_acodec
=
strdup
(
qtu
(
ui
.
aCodec
_2
->
itemData
(
ui
.
vCodec_2
->
currentIndex
()
).
toString
()
)
);
sout
.
psz_scodec
=
strdup
(
qtu
(
ui
.
s
Codec_2
->
itemData
(
ui
.
vCodec_2
->
currentIndex
()
).
toString
()
)
);
sout
.
psz_vcodec
=
strdup
(
qtu
(
ui
.
vCodec
Box
->
itemData
(
ui
.
vCodecBox
->
currentIndex
()
).
toString
()
)
);
sout
.
psz_acodec
=
strdup
(
qtu
(
ui
.
aCodec
Box
->
itemData
(
ui
.
aCodecBox
->
currentIndex
()
).
toString
()
)
);
sout
.
psz_scodec
=
strdup
(
qtu
(
ui
.
s
ubsCodecBox
->
itemData
(
ui
.
subsCodecBox
->
currentIndex
()
).
toString
()
)
);
sout
.
psz_file
=
strdup
(
qtu
(
ui
.
fileEdit
->
text
()
)
);
sout
.
psz_http
=
strdup
(
qtu
(
ui
.
HTTPEdit
->
text
()
)
);
sout
.
psz_mms
=
strdup
(
qtu
(
ui
.
MMSHEdit
->
text
()
)
);
...
...
@@ -229,10 +229,10 @@ void SoutDialog::updateMRL()
sout
.
i_http
=
ui
.
HTTPPort
->
value
();
sout
.
i_mms
=
ui
.
MMSHPort
->
value
();
sout
.
i_udp
=
ui
.
UDPPort
->
value
();
sout
.
i_ab
=
ui
.
aBitrate
_2
->
value
();
sout
.
i_vb
=
ui
.
vBitrate
_2
->
value
();
sout
.
i_channels
=
ui
.
aChannels
_2
->
value
();
sout
.
f_scale
=
atof
(
qta
(
ui
.
vScale
_2
->
currentText
()
)
);
sout
.
i_ab
=
ui
.
aBitrate
Spin
->
value
();
sout
.
i_vb
=
ui
.
vBitrate
Spin
->
value
();
sout
.
i_channels
=
ui
.
aChannels
Spin
->
value
();
sout
.
f_scale
=
atof
(
qta
(
ui
.
vScale
Box
->
currentText
()
)
);
sout
.
psz_group
=
strdup
(
qtu
(
ui
.
sapGroup
->
text
()
)
);
sout
.
psz_name
=
strdup
(
qtu
(
ui
.
sapName
->
text
()
)
);
...
...
@@ -251,9 +251,9 @@ void SoutDialog::updateMRL()
bool
trans
=
false
;
bool
more
=
false
;
if
(
ui
.
transcodeVideo
_2
->
isChecked
()
||
ui
.
transcodeAudio_2
->
isChecked
()
)
if
(
ui
.
transcodeVideo
->
isChecked
()
||
ui
.
transcodeAudio
->
isChecked
()
)
{
if
(
ui
.
transcodeVideo
_2
->
isChecked
()
)
if
(
ui
.
transcodeVideo
->
isChecked
()
)
{
mrl
=
":sout=#transcode{"
;
mrl
.
append
(
"vcodec="
);
...
...
@@ -267,7 +267,7 @@ if ( ui.transcodeVideo_2->isChecked() || ui.transcodeAudio_2->isChecked() )
trans
=
true
;
}
if
(
ui
.
transcodeAudio
_2
->
isChecked
()
)
if
(
ui
.
transcodeAudio
->
isChecked
()
)
{
if
(
trans
)
{
...
...
modules/gui/qt4/ui/sout.ui
View file @
038dc1ca
...
...
@@ -33,9 +33,6 @@
<layout class="QHBoxLayout" >
<item>
<layout class="QGridLayout" >
<property name="margin" >
<number>3</number>
</property>
<item row="1" column="1" >
<widget class="QLabel" name="fileLabel" >
<property name="enabled" >
...
...
@@ -299,13 +296,10 @@
</widget>
</item>
<item row="2" column="1" >
<widget class="QComboBox" name="
combo
Box" />
<widget class="QComboBox" name="
profile
Box" />
</item>
<item row="4" column="0" colspan="2" >
<widget class="QTabWidget" name="tabWidget" >
<property name="currentIndex" >
<number>3</number>
</property>
<widget class="QWidget" name="tab" >
<attribute name="title" >
<string>_("Encapsulation")</string>
...
...
@@ -384,19 +378,22 @@
</layout>
</widget>
<widget class="QWidget" name="tab_2" >
<property name="enabled" >
<bool>true</bool>
</property>
<attribute name="title" >
<string>_("Video Codec")</string>
</attribute>
<layout class="QGridLayout" >
<item row="0" column="0" >
<widget class="QCheckBox" name="transcodeVideo
_2
" >
<widget class="QCheckBox" name="transcodeVideo" >
<property name="text" >
<string>_("Video")</string>
</property>
</widget>
</item>
<item rowspan="2" row="0" column="1" >
<widget class="QComboBox" name="vCodec
_2
" >
<widget class="QComboBox" name="vCodec
Box
" >
<property name="enabled" >
<bool>false</bool>
</property>
...
...
@@ -406,14 +403,17 @@
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label_2" >
<widget class="QLabel" name="vCodecLabel" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>_("Codec")</string>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="vBitrateLabel
_2
" >
<widget class="QLabel" name="vBitrateLabel" >
<property name="enabled" >
<bool>false</bool>
</property>
...
...
@@ -423,7 +423,7 @@
</widget>
</item>
<item row="2" column="1" >
<widget class="QSpinBox" name="vBitrate
_2
" >
<widget class="QSpinBox" name="vBitrate
Spin
" >
<property name="enabled" >
<bool>false</bool>
</property>
...
...
@@ -448,7 +448,7 @@
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="vScaleLabel
_2
" >
<widget class="QLabel" name="vScaleLabel" >
<property name="enabled" >
<bool>false</bool>
</property>
...
...
@@ -458,7 +458,7 @@
</widget>
</item>
<item row="3" column="1" >
<widget class="QComboBox" name="vScale
_2
" >
<widget class="QComboBox" name="vScale
Box
" >
<property name="enabled" >
<bool>false</bool>
</property>
...
...
@@ -475,28 +475,31 @@
</attribute>
<layout class="QGridLayout" >
<item row="0" column="0" >
<widget class="QCheckBox" name="transcodeAudio
_2
" >
<widget class="QCheckBox" name="transcodeAudio" >
<property name="text" >
<string>_("Audio")</string>
</property>
</widget>
</item>
<item row="1" column="0" >
<widget class="QLabel" name="label" >
<widget class="QLabel" name="aCodecLabel" >
<property name="enabled" >
<bool>false</bool>
</property>
<property name="text" >
<string>_("Codec")</string>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QComboBox" name="aCodec
_2
" >
<widget class="QComboBox" name="aCodec
Box
" >
<property name="enabled" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="2" column="0" >
<widget class="QLabel" name="aBitrateLabel
_2
" >
<widget class="QLabel" name="aBitrateLabel" >
<property name="enabled" >
<bool>false</bool>
</property>
...
...
@@ -506,7 +509,7 @@
</widget>
</item>
<item row="2" column="1" >
<widget class="QSpinBox" name="aBitrate
_2
" >
<widget class="QSpinBox" name="aBitrate
Spin
" >
<property name="enabled" >
<bool>false</bool>
</property>
...
...
@@ -528,7 +531,7 @@
</widget>
</item>
<item row="3" column="0" >
<widget class="QLabel" name="
s_3
" >
<widget class="QLabel" name="
aChannelsLabel
" >
<property name="enabled" >
<bool>false</bool>
</property>
...
...
@@ -538,7 +541,7 @@
</widget>
</item>
<item row="3" column="1" >
<widget class="QSpinBox" name="aChannels
_2
" >
<widget class="QSpinBox" name="aChannels
Spin
" >
<property name="enabled" >
<bool>false</bool>
</property>
...
...
@@ -564,23 +567,23 @@
</attribute>
<layout class="QGridLayout" >
<item row="0" column="0" >
<widget class="QCheckBox" name="transcodeSubs
_2
" >
<widget class="QCheckBox" name="transcodeSubs" >
<property name="text" >
<string>_("Subtitles")</string>
</property>
</widget>
</item>
<item row="0" column="1" >
<widget class="QComboBox" name="s
Codec_2
" >
<widget class="QComboBox" name="s
ubsCodecBox
" >
<property name="enabled" >
<bool>false</bool>
</property>
</widget>
</item>
<item row="1" column="1" >
<widget class="QCheckBox" name="s
Overlay_2
" >
<widget class="QCheckBox" name="s
ubsOverlay
" >
<property name="enabled" >
<bool>
tru
e</bool>
<bool>
fals
e</bool>
</property>
<property name="text" >
<string>_("Overlay subtitles on the video")</string>
...
...
@@ -599,9 +602,6 @@
<layout class="QHBoxLayout" >
<item>
<layout class="QGridLayout" >
<property name="margin" >
<number>3</number>
</property>
<item row="0" column="0" >
<widget class="QCheckBox" name="sap" >
<property name="enabled" >
...
...
@@ -688,9 +688,6 @@
</item>
<item row="7" column="0" colspan="2" >
<layout class="QHBoxLayout" >
<property name="margin" >
<number>0</number>
</property>
<item>
<spacer>
<property name="orientation" >
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment