Opened 5 years ago

Closed 2 years ago

#3604 closed enhancement (fixed)

SDL2 support for avdevice and ffplay

Reported by: toazz 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)

0001-ffplay-convert-ffplay-to-use-SDL2.patch (40.4 KB) - added by ethe 3 years ago.
0002-avdev-Add-SDL2-output-device.patch (15.3 KB) - added by ethe 3 years ago.

Download all attachments as: .zip

Change History (7)

comment:1 Changed 5 years ago by devans@macports.org

comment:2 Changed 3 years ago by Timothy_Gu

  • Keywords sdl added

Changed 3 years ago by ethe

comment:3 Changed 3 years ago by ethe

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 Changed 3 years ago by ponpon

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 Changed 2 years ago by cehoyos

  • Resolution set to fixed
  • Status changed from new to closed
  • Version changed from unspecified to git-master

FFmpeg switched to SDL2 today.

Note: See TracTickets for help on using tickets.