hardware-acceleration

(FFmpeg) VP9 Vaapi encoding to a .mp4 or .webm container from given official ffmpeg example

别等时光非礼了梦想. 提交于 2019-12-24 07:50:04
问题 I'm trying to implement vp9 hardware acceleration encoding process. I followed ffmpeg offical github's example (Here -> vaapi_encode.c). But given example only save a .yuv file to .h264 file, I would like to save the frames to either .mp4 or .webm container. And having the ability to control the quality, and etc. I'm not reading frames from a file, I'm collecting frames from a live feed. When having full 5 secs of frames from the live feed, encode those frames using vp9_vaapi to a 5 secs .mp4

xamarin no hardware acceleration when deployin to device

此生再无相见时 提交于 2019-12-23 04:46:01
问题 I am developing a xamarin forms application right now and I have some problems with hardware acceleration. Specifically, in the android emulator, hardware acceleration works, ie System.Numerics.Vector.IsHardwareAccelerated returns true. On the device however, it returns false, and thus libraries like ImageSharp are super slow. I already checked the build settings and "Optimize code" is checked everywhere. Also I added HardwareAccelerated = true to the MainActivity.cs in the android project,

Feeding D3D surfaces to Quick Sync encoder MFT does not work

扶醉桌前 提交于 2019-12-23 03:58:22
问题 I want to encode video using the "Intel® Quick Sync Video H.264 Encoder MFT". I'm using the MFT manually, without using a paired decoder MFT, or any other MediaFoundation components. Feeding normal buffers (IMFSamples with buffers created by MFCreateAlignedMemoryBuffer) works well. Now I'm investigating whether I can feed it ID3D11Texture2D surfaces as input (DXGI_FORMAT_NV12, 1280x720) in order to improve performance. I tried to pass IMFSample instances created with

Google Chrome compositor-driven animation affected by jam in main thread

雨燕双飞 提交于 2019-12-23 03:40:19
问题 Here is the fiddle showing the puzzler: https://jsfiddle.net/1rk65nxj/ I am animating this .spinner element using CSS animation. The element itself is promoted to its own compositing layer using will-change: transform and translateZ(0) for fallback. Now, i jam the main thread doing something like: var i = 999999; while ( i > 0) { i--; } Since CSS animations are compositor-driven page updates, I expected the main thread jam not to halt the spinner but it does. Now, the weird thing is, if I

Android 4.0 compatibility issues with Canvas.clipPath

梦想与她 提交于 2019-12-21 20:40:49
问题 Recently my application received quite a lot comments that "it's not working" on Android Ice Cream Sandwich with CM9. I'm not able to reproduce the error on the emulator running Android 4.0 and thanks to the way android market works there's no way I can't contact those people to ask about the details. Luckily, one crash error report caught my eye. I'm using Canvas.clipPath to draw rounded corners... and looks like some phones are throwing UnsupportedOperationException when trying to use that

View.isHardwareAccelerated() is always false

点点圈 提交于 2019-12-21 03:56:21
问题 I've got a View that is hardware accelerated on many devices. Within that View I need to be able to check whether hardware acceleration is used. According to Android SDK documentation, this is done using View.isHardwareAccelerated() . The interesting thing is that when testing on devices that support hardware acceleration, this method always returns false, even though the Views themselves actually are being hardware accelerated. (I've conclusively verified this) It gets more confusing: If I

Android WebView Hardware Acceleration Artefact Workarounds

≯℡__Kan透↙ 提交于 2019-12-21 03:09:27
问题 So there's a known bug with WebView hardware acceleration in Android, see here for example: https://code.google.com/p/android/issues/detail?id=17352 Disabling hardware acceleration is not an option for me. I've read these great references: Android webview slow https://plus.google.com/+PaulIrish/posts/ccP98BTMd5Z http://riamobilesolutions.com/android-webview-scrolling-performance/ My question is that if HWA(Hardware Acceleration) is turned on, does anyone know any CSS/HTML workarounds to

How to decode a H.264 frame on iOS by hardware decoding?

拜拜、爱过 提交于 2019-12-20 09:57:18
问题 I have been used ffmpeg to decode every single frame that I received from my ip cam. The brief code looks like this: -(void) decodeFrame:(unsigned char *)frameData frameSize:(int)frameSize{ AVFrame frame; AVPicture picture; AVPacket pkt; AVCodecContext *context; pkt.data = frameData; pat.size = frameSize; avcodec_get_frame_defaults(&frame); avpicture_alloc(&picture, PIX_FMT_RGB24, targetWidth, targetHeight); avcodec_decode_video2(&context, &frame, &got_picture, &pkt); } The code woks fine,

How to decode a H.264 frame on iOS by hardware decoding?

杀马特。学长 韩版系。学妹 提交于 2019-12-20 09:57:00
问题 I have been used ffmpeg to decode every single frame that I received from my ip cam. The brief code looks like this: -(void) decodeFrame:(unsigned char *)frameData frameSize:(int)frameSize{ AVFrame frame; AVPicture picture; AVPacket pkt; AVCodecContext *context; pkt.data = frameData; pat.size = frameSize; avcodec_get_frame_defaults(&frame); avpicture_alloc(&picture, PIX_FMT_RGB24, targetWidth, targetHeight); avcodec_decode_video2(&context, &frame, &got_picture, &pkt); } The code woks fine,

Checking hardware acceleration availability? (Testing available)

烂漫一生 提交于 2019-12-19 09:02:33
问题 I've written CSS that uses -webkit-transform, -webkit-perspective and several similar. My design looks the bees knees on machines where hardware acceleration is available but is practically unusable when not. How can I check hardware acceleration availability and provide fallback CSS? Side note: Run chrome://gpu-internals/ to manually check for availability. 回答1: Sadly, the answer seems to be 'you can't (yet)'. The Modernizr project lists HW acceleration amongst its 'undetectables': https:/