Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#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)

ffmpeg-vda.patch (1.7 KB) - added by Ionic (Mihai Moldovan) 10 years ago.
Enabling VDA on both ffmpeg and ffmpeg-devel.

Download all attachments as: .zip

Change History (6)

Changed 10 years ago by Ionic (Mihai Moldovan)

Attachment: ffmpeg-vda.patch added

Enabling VDA on both ffmpeg and ffmpeg-devel.

comment:1 Changed 10 years ago by dbevans (David B. Evans)

Owner: changed from macports-tickets@… to devans@…
Status: newassigned

testing.

comment:2 Changed 10 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 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 <<<
}}}
Version 1, edited 10 years ago by Ionic (Mihai Moldovan) (previous) (next) (diff)

comment:3 in reply to:  2 Changed 10 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.mkv

to 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 10 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: assignedclosed

ffmpeg with patch committed in r117917. ffmpeg-devel with patch and updated to latest git master committed in r117918.

Thanks for the patch.

comment:5 Changed 10 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.

Note: See TracTickets for help on using tickets.