Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
2b17a74d
Commit
2b17a74d
authored
Feb 13, 2024
by
J. Dekker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avdevice: deprecate sdl outdev
Signed-off-by:
J. Dekker
<
jdek@itanimul.li
>
parent
e4c0cdf8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
outdevs.texi
doc/outdevs.texi
+7
-1
sdl2.c
libavdevice/sdl2.c
+10
-0
version_major.h
libavdevice/version_major.h
+2
-0
No files found.
doc/outdevs.texi
View file @
2b17a74d
...
...
@@ -408,7 +408,13 @@ ffmpeg -i INPUT -f pulse "stream name"
@section sdl
SDL (Simple DirectMedia Layer) output device.
SDL (Simple DirectMedia Layer) output device. Deprecated and will be removed.
For monitoring purposes in FFmpeg, pipes and a video player such as ffplay can be used:
@example
ffmpeg -i INPUT -f nut -c:v rawvideo - | ffplay -
@end example
"sdl2" can be used as alias for "sdl".
...
...
libavdevice/sdl2.c
View file @
2b17a74d
...
...
@@ -51,6 +51,7 @@ typedef struct {
SDL_Rect
texture_rect
;
int
inited
;
int
warned
;
}
SDLContext
;
static
const
struct
sdl_texture_format_entry
{
...
...
@@ -165,6 +166,15 @@ static int sdl2_write_header(AVFormatContext *s)
int
i
,
ret
=
0
;
int
flags
=
0
;
if
(
!
sdl
->
warned
)
{
av_log
(
sdl
,
AV_LOG_WARNING
,
"The sdl output device is deprecated due to being fundamentally incompatible with libavformat API. "
"For monitoring purposes in ffmpeg you can output to a file or use pipes and a video player.
\n
"
"Example: ffmpeg -i INPUT -f nut -c:v rawvideo - | ffplay -
\n
"
);
sdl
->
warned
=
1
;
}
if
(
!
sdl
->
window_title
)
sdl
->
window_title
=
av_strdup
(
s
->
url
);
...
...
libavdevice/version_major.h
View file @
2b17a74d
...
...
@@ -37,5 +37,7 @@
#define FF_API_BKTR_DEVICE (LIBAVDEVICE_VERSION_MAJOR < 62)
// reminder to remove the opengl device on next major bump
#define FF_API_OPENGL_DEVICE (LIBAVDEVICE_VERSION_MAJOR < 62)
// reminder to remove the sdl2 device on next major bump
#define FF_API_SDL2_DEVICE (LIBAVDEVICE_VERSION_MAJOR < 62)
#endif
/* AVDEVICE_VERSION_MAJOR_H */
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