#42863 closed enhancement (fixed)
Enable VDA (Video Decode Acceleration) in ffmpeg + ffmpeg-devel if supported by OS
Reported by: | Ionic (Mihai Moldovan) | Owned by: | dbevans (David B. Evans) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.2.1 |
Keywords: | haspatch | Cc: | jeremyhu (Jeremy Huddleston Sequoia), dbevans (David B. Evans) |
Port: | ffmpeg ffmpeg-devel |
Description
For 10.6.3 and up, enable VDA HW acceleration support.
Attachments (1)
Change History (6)
Changed 11 years ago by Ionic (Mihai Moldovan)
Attachment: | ffmpeg-vda.patch added |
---|
comment:1 Changed 11 years ago by dbevans (David B. Evans)
Owner: | changed from macports-tickets@… to devans@… |
---|---|
Status: | new → assigned |
testing.
comment:2 follow-up: 3 Changed 11 years ago by Ionic (Mihai Moldovan)
If you're feeling advanturous, fetch http://mpv.io/ and configure + build + install it with waf, then run mpv -vo opengl-hq -hwdec vda yourfavoriteH264video.mkv to see VDA in action (and inspect mpv's output to make sure VDA is actually being used:
Trying to use hardware decoding. Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264] Selected audio codec: ATSC A/52A (AC-3) [lavc:ac3] AO: [coreaudio] 48000Hz stereo 2ch float AV: 00:00:00 / 00:41:17 (0%) A-V: 0.000 Cache: 99% VO: [opengl-hq] 1280x720 => 1280x720 vda <<<
comment:3 Changed 11 years ago by dbevans (David B. Evans)
Replying to ionic@…:
If you're feeling advanturous, fetch http://mpv.io/ and configure + build + install it with waf, then run
mpv -vo opengl-hq --hwdec=vda yourfavoriteH264video.mkvto see ffmpeg with VDA in action (and inspect mpv's output to make sure VDA is actually being used:
Trying to use hardware decoding. Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [lavc:h264] Selected audio codec: ATSC A/52A (AC-3) [lavc:ac3] AO: [coreaudio] 48000Hz stereo 2ch float AV: 00:00:00 / 00:41:17 (0%) A-V: 0.000 Cache: 99% VO: [opengl-hq] 1280x720 => 1280x720 vda <<<
Since you've done this already, it would great if you'd put together a Portfile for mpv and submit it on a separate ticket. I'd be glad to commit it for you. The waf PortGroup makes it pretty simple.
comment:4 Changed 11 years ago by dbevans (David B. Evans)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 Changed 11 years ago by Ionic (Mihai Moldovan)
Please have a look at #40844, I added a new mpv Portfile (and minimal patches) there. Sorry it took me so long.
Enabling VDA on both ffmpeg and ffmpeg-devel.