Opened 11 years ago
Closed 8 years ago
#3604 closed enhancement (fixed)
SDL2 support for avdevice and ffplay
Reported by: | Tiago O. | Owned by: | |
---|---|---|---|
Priority: | wish | Component: | avdevice |
Version: | git-master | Keywords: | sdl |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Attachments (2)
Change History (7)
comment:1 by , 11 years ago
comment:2 by , 9 years ago
Keywords: | sdl added |
---|
by , 9 years ago
Attachment: | 0001-ffplay-convert-ffplay-to-use-SDL2.patch added |
---|
by , 9 years ago
Attachment: | 0002-avdev-Add-SDL2-output-device.patch added |
---|
comment:3 by , 9 years ago
I've attached two patches, one is the ffplay updated to SDL2 (by cus [1] I just updated the patch to current git), and the other is porting the SDL avdevice to SDL2, which is mostly done I'm just stuck on a few things, mainly issues with the event loop (it seems to be blocking window decoration interaction)
[1] https://github.com/cus/ffplay/commit/54114b9ec179e69d6dd6d813b9a6d39ae9e57ba4
comment:4 by , 9 years ago
those patches arent applied to current git.
patch -p1 < 0001-ffplay-convert-ffplay-to-use-SDL2.patch patching file configure Hunk #1 succeeded at 1997 (offset 33 lines). Hunk #2 succeeded at 3048 (offset 87 lines). Hunk #3 succeeded at 5727 (offset 96 lines). Hunk #4 succeeded at 6341 with fuzz 2 (offset 100 lines). Hunk #5 succeeded at 6497 (offset 102 lines). patching file ffplay.c Hunk #3 succeeded at 273 (offset -1 lines). Hunk #4 succeeded at 287 (offset -1 lines). Hunk #5 succeeded at 313 (offset -1 lines). Hunk #6 succeeded at 360 (offset -1 lines). Hunk #16 succeeded at 1212 (offset -1 lines). Hunk #17 succeeded at 1227 (offset -1 lines). Hunk #18 succeeded at 1257 (offset -1 lines). Hunk #19 succeeded at 1306 (offset -1 lines). Hunk #20 succeeded at 1609 (offset -1 lines). Hunk #21 succeeded at 1688 (offset -1 lines). Hunk #22 succeeded at 1715 (offset -1 lines). Hunk #23 succeeded at 1728 (offset -1 lines). Hunk #24 succeeded at 1754 (offset -1 lines). Hunk #25 succeeded at 1767 (offset -1 lines). Hunk #26 succeeded at 1860 (offset -1 lines). Hunk #27 succeeded at 1923 (offset -1 lines). Hunk #28 succeeded at 2117 (offset -1 lines). Hunk #29 succeeded at 2237 (offset -1 lines). Hunk #30 succeeded at 2256 (offset -1 lines). Hunk #31 succeeded at 3115 (offset 11 lines). Hunk #32 succeeded at 3206 (offset 11 lines). Hunk #33 succeeded at 3225 (offset 11 lines). Hunk #34 succeeded at 3389 (offset 11 lines). Hunk #35 succeeded at 3444 (offset 11 lines). Hunk #36 FAILED at 3692. Hunk #37 succeeded at 3737 with fuzz 2 (offset 18 lines). 1 out of 37 hunks FAILED -- saving rejects to file ffplay.c.rej patch -p1 < 0002-avdev-Add-SDL2-output-device.patch patching file configure Hunk #1 succeeded at 2859 (offset 83 lines). patching file libavdevice/Makefile patching file libavdevice/alldevices.c patching file libavdevice/sdl2.c
cant compile even if char dummy_videodriver[] = "SDL_VIDEODRIVER=dummy";
is removed.
the last well done git is 1e109bbbf13324562b6186fb0ef758c9cef5cfd3
.
comment:5 by , 8 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Version: | unspecified → git-master |
FFmpeg switched to SDL2 today.
See also macports ticket https://trac.macports.org/ticket/43100