Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
0d0fdb0a
Commit
0d0fdb0a
authored
Jun 04, 2011
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sdl: use the filename for defining the window title, if not specified
This allows a more efficient use of the commandline.
parent
ba91bf58
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
outdevs.texi
doc/outdevs.texi
+3
-6
avdevice.h
libavdevice/avdevice.h
+1
-1
sdl.c
libavdevice/sdl.c
+3
-1
No files found.
doc/outdevs.texi
View file @
0d0fdb0a
...
@@ -45,8 +45,8 @@ For more information about SDL, check:
...
@@ -45,8 +45,8 @@ For more information about SDL, check:
@table @option
@table @option
@item window_title
@item window_title
Set the SDL window title, if not specified default to
"SDL video
Set the SDL window title, if not specified default to
the filename
outdev"
.
specified for the output device
.
@item icon_title
@item icon_title
Set the name of the iconified SDL window, if not specified it is set
Set the name of the iconified SDL window, if not specified it is set
...
@@ -63,12 +63,9 @@ If not specified it defaults to the size of the input video.
...
@@ -63,12 +63,9 @@ If not specified it defaults to the size of the input video.
The following command shows the @file{ffmpeg} output is an
The following command shows the @file{ffmpeg} output is an
SDL window, forcing its size to the qcif format:
SDL window, forcing its size to the qcif format:
@example
@example
ffmpeg -i INPUT -vcodec rawvideo -pix_fmt yuv420p -window_size qcif -f sdl
none
ffmpeg -i INPUT -vcodec rawvideo -pix_fmt yuv420p -window_size qcif -f sdl
"SDL output"
@end example
@end example
Note that the name specified for the output device is ignored, so it
can be set to an arbitrary value ("none" in the above example).
@section sndio
@section sndio
sndio audio output device.
sndio audio output device.
...
...
libavdevice/avdevice.h
View file @
0d0fdb0a
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
#define LIBAVDEVICE_VERSION_MAJOR 53
#define LIBAVDEVICE_VERSION_MAJOR 53
#define LIBAVDEVICE_VERSION_MINOR 1
#define LIBAVDEVICE_VERSION_MINOR 1
#define LIBAVDEVICE_VERSION_MICRO
0
#define LIBAVDEVICE_VERSION_MICRO
1
#define LIBAVDEVICE_VERSION_INT AV_VERSION_INT(LIBAVDEVICE_VERSION_MAJOR, \
#define LIBAVDEVICE_VERSION_INT AV_VERSION_INT(LIBAVDEVICE_VERSION_MAJOR, \
LIBAVDEVICE_VERSION_MINOR, \
LIBAVDEVICE_VERSION_MINOR, \
...
...
libavdevice/sdl.c
View file @
0d0fdb0a
...
@@ -78,6 +78,8 @@ static int sdl_write_header(AVFormatContext *s)
...
@@ -78,6 +78,8 @@ static int sdl_write_header(AVFormatContext *s)
float
sar
,
dar
;
/* sample and display aspect ratios */
float
sar
,
dar
;
/* sample and display aspect ratios */
int
i
,
ret
;
int
i
,
ret
;
if
(
!
sdl
->
window_title
)
sdl
->
window_title
=
av_strdup
(
s
->
filename
);
if
(
!
sdl
->
icon_title
)
if
(
!
sdl
->
icon_title
)
sdl
->
icon_title
=
av_strdup
(
sdl
->
window_title
);
sdl
->
icon_title
=
av_strdup
(
sdl
->
window_title
);
...
@@ -201,7 +203,7 @@ static int sdl_write_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -201,7 +203,7 @@ static int sdl_write_packet(AVFormatContext *s, AVPacket *pkt)
#define OFFSET(x) offsetof(SDLContext,x)
#define OFFSET(x) offsetof(SDLContext,x)
static
const
AVOption
options
[]
=
{
static
const
AVOption
options
[]
=
{
{
"window_title"
,
"SDL window title"
,
OFFSET
(
window_title
),
FF_OPT_TYPE_STRING
,
{.
str
=
"SDL video outdev"
},
0
,
0
,
AV_OPT_FLAG_ENCODING_PARAM
},
{
"window_title"
,
"SDL window title"
,
OFFSET
(
window_title
),
FF_OPT_TYPE_STRING
,
{.
str
=
NULL
},
0
,
0
,
AV_OPT_FLAG_ENCODING_PARAM
},
{
"icon_title"
,
"SDL iconified window title"
,
OFFSET
(
icon_title
)
,
FF_OPT_TYPE_STRING
,
{.
str
=
NULL
},
0
,
0
,
AV_OPT_FLAG_ENCODING_PARAM
},
{
"icon_title"
,
"SDL iconified window title"
,
OFFSET
(
icon_title
)
,
FF_OPT_TYPE_STRING
,
{.
str
=
NULL
},
0
,
0
,
AV_OPT_FLAG_ENCODING_PARAM
},
{
"window_size"
,
"SDL window forced size"
,
OFFSET
(
window_size
)
,
FF_OPT_TYPE_STRING
,
{.
str
=
NULL
},
0
,
0
,
AV_OPT_FLAG_ENCODING_PARAM
},
{
"window_size"
,
"SDL window forced size"
,
OFFSET
(
window_size
)
,
FF_OPT_TYPE_STRING
,
{.
str
=
NULL
},
0
,
0
,
AV_OPT_FLAG_ENCODING_PARAM
},
{
NULL
},
{
NULL
},
...
...
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