Opened 14 years ago

Closed 12 years ago

Last modified 12 years ago

#1279 closed enhancement (fixed)

Mac hardware MPEG2 decoding

Reported by: Nigel Owned by: Nigel
Priority: minor Milestone: 0.21
Component: mythtv Version: head
Severity: low Keywords: OS X IDCT Accellent Mac
Cc: Ticket locked: yes

Description

Jeremiah Morris and Dave Abrahams have managed to add HW support. It uses someone else's reverse engineering of Apple's undocumented graphics processor DVD playback APIs. See http://www.defyne.org/dvb/accellent.html
It is still fairly buggy (nasty hangs on the Mac), and it weaves its way into lots of MythTV, but I would rather add it sooner than later.

Change History (21)

comment:1 Changed 14 years ago by Nigel

(In [8953]) Some of the new Mac hardware decode code. See #1279

comment:2 Changed 14 years ago by Nigel

(In [8961]) Slightly better name for Accelent drivers (Mac hardware acceleration). See #1279

comment:3 Changed 14 years ago by Nigel

(In [8963]) Mac hardware MPEG decoding. See #1279

comment:4 Changed 14 years ago by Nigel

(In [8964]) (Slightly) better names for these. See #1279

comment:5 Changed 14 years ago by Nigel

(In [8974]) Fix by Geoffrey Kruse (renamed the files, forgot to change the #includes.) See #1279

comment:6 Changed 14 years ago by Nigel

(In [9017]) Disable Mac HW acceleration for now, it'll be a while before its all checked in See #1279

comment:7 Changed 13 years ago by Nigel

Status: newassigned

I am still trying to work out how this all fits together. The XvMC stuff in libs/libmythtv/avformatdecoder.cpp is very tidy, and we should be able to make the Accellent interface similar, but I am still trying to work out how the Mac HW is actually initialised.

comment:8 Changed 13 years ago by Nigel

Milestone: 0.200.21
Severity: mediumlow

I now have more of a feel for how this works. <BR> There has been very little feedback from other users, though, and it consistently crashes my machines if fed a HD signal, so I think it will have to wait a bit longer.

comment:9 in reply to:  8 Changed 13 years ago by SlicerDicer

Replying to nigel:

I now have more of a feel for how this works. <BR> There has been very little feedback from other users, though, and it consistently crashes my machines if fed a HD signal, so I think it will have to wait a bit longer.

I am unable to get it to compile on my mac it crashes out everytime. I did try activating it. Is there something special I need to do? I can test all forms of HD.

comment:10 Changed 13 years ago by Nigel

(In [11631]) Rename of Mac Hardware Acceleration stuff, from Accellent to DVDV. John (the original author) meant DVDV(ideo) as the name for the technology. Accellent was just the hacky player he wrote. Shorter, too! See #1279

comment:11 Changed 13 years ago by Nigel

(In [11632]) Rename of Mac Hardware Acceleration stuff, from Accellent to DVDV. John (the original author) meant DVDV(ideo) as the name for the technology. Accellent was just the hacky player he wrote. Shorter, too! See #1279

comment:12 Changed 13 years ago by Nigel

(In [11633]) This was renamed to videoout_dvdv.h. See #1279

comment:13 Changed 13 years ago by Nigel

(In [11634]) Rename of Mac Hardware Acceleration stuff, from Accellent to DVDV. John (the original author) meant DVDV(ideo) as the name for the technology. Accellent was just the hacky player he wrote. Shorter, too! See #1279

comment:14 Changed 13 years ago by Nigel

(In [11635]) Rename of Mac Hardware Acceleration stuff, from Accellent to DVDV. John (the original author) meant DVDV(ideo) as the name for the technology. Accellent was just the hacky player he wrote. Shorter, too! See #1279

comment:15 Changed 13 years ago by Nigel

(In [11636]) Rename of Mac Hardware Acceleration stuff, from Accellent to DVDV. John (the original author) meant DVDV(ideo) as the name for the technology. Accellent was just the hacky player he wrote. Shorter, too! See #1279

comment:16 Changed 13 years ago by Nigel

(In [11673]) A few more parts of the Mac hardware acceleration changes. I am still working on the final libavcodec/mpeg12.c and avformatdecoder.cpp changes, though. See #1279.

comment:17 Changed 12 years ago by Janne Grunau

Version: head

comment:18 Changed 12 years ago by Nigel

(In [14031]) After ffmpeg resync, HAVE_DVDV not defined by configure. See #1279

comment:19 Changed 12 years ago by danielk

(In [14063]) Refs #2287. #1279. This applies an updated version of DVDV code to libavcodec.

John Dagliesh wrote the original DVDV code and Nigel did the original merge, see #1279, this just updates the merge to work with the latest changes in how ffmpeg handles codecs and commits the mpeg12.c and dvdv.c portions of the patch.

you need to rerun ./configure before recompiling (to pick up the new codec define.)

comment:20 Changed 12 years ago by Nigel

Resolution: fixed
Status: assignedclosed

After more than a year of procrastinating, it is now in the VID-fixes branch, which will soon become trunk. There are lots of bugs (buffer management issues, some streams cause weirdly rotated macroblocks on Intel, may crash with HD streams on PPC), but they belong in separate tickets.

comment:22 Changed 12 years ago by stuartm

Ticket locked: set
Note: See TracTickets for help on using tickets.