Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
d09767fb
Commit
d09767fb
authored
Jan 24, 2010
by
Pierre Ynard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: add the RTSP protocol to the sout dialog
It is set up to use the TS muxer
parent
a466be03
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
3 deletions
+70
-3
modules/gui/qt4/components/sout/sout_widgets.cpp
modules/gui/qt4/components/sout/sout_widgets.cpp
+51
-0
modules/gui/qt4/components/sout/sout_widgets.hpp
modules/gui/qt4/components/sout/sout_widgets.hpp
+11
-0
modules/gui/qt4/dialogs/sout.cpp
modules/gui/qt4/dialogs/sout.cpp
+8
-3
No files found.
modules/gui/qt4/components/sout/sout_widgets.cpp
View file @
d09767fb
...
@@ -226,6 +226,57 @@ QString MMSHDestBox::getMRL( const QString& mux )
...
@@ -226,6 +226,57 @@ QString MMSHDestBox::getMRL( const QString& mux )
}
}
RTSPDestBox
::
RTSPDestBox
(
QWidget
*
_parent
)
:
VirtualDestBox
(
_parent
)
{
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
QLabel
*
rtspOutput
=
new
QLabel
(
qtr
(
"This module outputs the transcoded stream to a network via "
"RTSP."
),
this
);
layout
->
addWidget
(
rtspOutput
,
0
,
0
,
1
,
-
1
);
QLabel
*
RTSPLabel
=
new
QLabel
(
qtr
(
"Path"
),
this
);
QLabel
*
RTSPPortLabel
=
new
QLabel
(
qtr
(
"Port"
),
this
);
layout
->
addWidget
(
RTSPLabel
,
2
,
0
,
1
,
1
);
layout
->
addWidget
(
RTSPPortLabel
,
1
,
0
,
1
,
1
);
RTSPEdit
=
new
QLineEdit
(
this
);
RTSPEdit
->
setText
(
"/"
);
RTSPPort
=
new
QSpinBox
(
this
);
RTSPPort
->
setMaximumSize
(
QSize
(
90
,
16777215
)
);
RTSPPort
->
setAlignment
(
Qt
::
AlignRight
|
Qt
::
AlignTrailing
|
Qt
::
AlignVCenter
);
RTSPPort
->
setMinimum
(
1
);
RTSPPort
->
setMaximum
(
65535
);
RTSPPort
->
setValue
(
5544
);
layout
->
addWidget
(
RTSPEdit
,
2
,
1
,
1
,
1
);
layout
->
addWidget
(
RTSPPort
,
1
,
1
,
1
,
1
);
CS
(
RTSPPort
);
CT
(
RTSPEdit
);
}
QString
RTSPDestBox
::
getMRL
(
const
QString
&
mux
)
{
if
(
RTSPEdit
->
text
().
isEmpty
()
)
return
""
;
QString
path
=
RTSPEdit
->
text
();
if
(
path
[
0
]
!=
'/'
)
path
.
prepend
(
qfu
(
"/"
)
);
QString
port
;
port
.
setNum
(
RTSPPort
->
value
()
);
QString
sdp
=
"rtsp://:"
+
port
+
path
;
SoutMrl
m
;
m
.
begin
(
"rtp"
);
m
.
option
(
"sdp"
,
sdp
);
m
.
option
(
"mux"
,
"ts"
);
m
.
end
();
return
m
.
getMrl
();
}
UDPDestBox
::
UDPDestBox
(
QWidget
*
_parent
)
:
VirtualDestBox
(
_parent
)
UDPDestBox
::
UDPDestBox
(
QWidget
*
_parent
)
:
VirtualDestBox
(
_parent
)
{
{
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
QGridLayout
*
layout
=
new
QGridLayout
(
this
);
...
...
modules/gui/qt4/components/sout/sout_widgets.hpp
View file @
d09767fb
...
@@ -90,6 +90,17 @@ class MMSHDestBox: public VirtualDestBox
...
@@ -90,6 +90,17 @@ class MMSHDestBox: public VirtualDestBox
QSpinBox
*
MMSHPort
;
QSpinBox
*
MMSHPort
;
};
};
class
RTSPDestBox
:
public
VirtualDestBox
{
Q_OBJECT
;
public:
RTSPDestBox
(
QWidget
*
_parent
=
NULL
);
virtual
QString
getMRL
(
const
QString
&
);
private:
QLineEdit
*
RTSPEdit
;
QSpinBox
*
RTSPPort
;
};
class
UDPDestBox
:
public
VirtualDestBox
class
UDPDestBox
:
public
VirtualDestBox
{
{
Q_OBJECT
;
Q_OBJECT
;
...
...
modules/gui/qt4/dialogs/sout.cpp
View file @
d09767fb
...
@@ -74,6 +74,7 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, const QString&
...
@@ -74,6 +74,7 @@ SoutDialog::SoutDialog( QWidget *parent, intf_thread_t *_p_intf, const QString&
ui
.
destBox
->
addItem
(
qtr
(
"File"
)
);
ui
.
destBox
->
addItem
(
qtr
(
"File"
)
);
ui
.
destBox
->
addItem
(
"HTTP"
);
ui
.
destBox
->
addItem
(
"HTTP"
);
ui
.
destBox
->
addItem
(
"MS-WMSP (MMSH)"
);
ui
.
destBox
->
addItem
(
"MS-WMSP (MMSH)"
);
ui
.
destBox
->
addItem
(
"RTSP"
);
ui
.
destBox
->
addItem
(
"RTP / MPEG Transport Stream"
);
ui
.
destBox
->
addItem
(
"RTP / MPEG Transport Stream"
);
ui
.
destBox
->
addItem
(
"RTP Audio/Video Profile"
);
ui
.
destBox
->
addItem
(
"RTP Audio/Video Profile"
);
ui
.
destBox
->
addItem
(
"UDP (legacy)"
);
ui
.
destBox
->
addItem
(
"UDP (legacy)"
);
...
@@ -159,18 +160,22 @@ void SoutDialog::addDest( )
...
@@ -159,18 +160,22 @@ void SoutDialog::addDest( )
caption
=
qfu
(
"WMSP"
);
caption
=
qfu
(
"WMSP"
);
break
;
break
;
case
3
:
case
3
:
db
=
new
RTSPDestBox
(
this
);
caption
=
qfu
(
"RTSP"
);
break
;
case
4
:
db
=
new
RTPDestBox
(
this
,
"ts"
);
db
=
new
RTPDestBox
(
this
,
"ts"
);
caption
=
"RTP/TS"
;
caption
=
"RTP/TS"
;
break
;
break
;
case
4
:
case
5
:
db
=
new
RTPDestBox
(
this
);
db
=
new
RTPDestBox
(
this
);
caption
=
"RTP/AVP"
;
caption
=
"RTP/AVP"
;
break
;
break
;
case
5
:
case
6
:
db
=
new
UDPDestBox
(
this
);
db
=
new
UDPDestBox
(
this
);
caption
=
"UDP"
;
caption
=
"UDP"
;
break
;
break
;
case
6
:
case
7
:
db
=
new
ICEDestBox
(
this
);
db
=
new
ICEDestBox
(
this
);
caption
=
"Icecast"
;
caption
=
"Icecast"
;
break
;
break
;
...
...
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