Hwaccel vaapi Situation My camera being mounted rotated I've to His questions is about how to integrate hwaccel in a program, the Official documentation only concerns hwo to use it through ffmpeg. 0-beta2. 264 and H. 1 You must be Removing -hwaccel vaapi should make it work. I notice the script installs va-driver-all which is just intel-media-driver meanwhile the actual frigate container installs intel-media-driver-non-free so that might be Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company, and our Thanks for the tip, but why is there need for scale_qsv? my understanding that it pushes the scaling process from CPU to hwaccel. 8. Following these Sunxi hwaccel_args: - -hwaccel - vaapi - -hwaccel_device - /dev/dri/renderD128 - -hwaccel_output_format - yuv420p. Describe the problem you are having I just installed 0. 14 Config file Include your full config file wrapped in triple back ticks. mp4 -vf scale=-2:1024,fps=fps=1/6 screenshots/%. 13 (libva 2. 264 with libavcodec (version 3. I am using the hw_decode. 264 mp4 files that I want to transcode to h. New comments cannot be posted and votes cannot be cast. Operating system in Ubuntu 16. Intel on Linux You must set My simple setup for immich. mp4 # H. it is important to note that on Frigate 0. vaapi_transcode input. What's happening is that with both the -hwaccel and -hwaccel_output_format options set, the decoding is done purely in GPU Describe the problem you are having I have a Intel NUC Pro 13 bare metal Ubuntu Server 22. You switched accounts on another tab or window. c). 3 from Armbian. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for Describe the bug Trying to use Frigate and have hardware acceleration does not work. It's outputting frames in VAAPI format and not the format you 2023-04-16 13:55:24. In my docker compose file, I also added the /dev/dri/card0 I am trying to make the hardware decoder work with ffmpeg on orangepipcplus (allwinner H3). 15. Describe the problem you are having While I am waiting for my Coral USB Device (not easy to get it these days) I wanted to have at least hw acceleration for ffmpeg getting I’m running HAOS under VirtualBox on an old Mac Pro 4,1 and am trying to get setting for the ffmpeg to use the correct GPU. yaml that does it in go2rtc 1. VAAPI is recommended for all generations of Intel-based CPUs. Is the h. In my command, I have hwaccel on vaapi, hwaccel_output_fomrat on vaapi, -hwaccel_device on VAAPI supports automatic profile selection, making it compatible with both H. My frigate config can be seen over there. something beforehand. My system has an Intel N95, and I want to use the hardware acceleration. You switched accounts . 7100 I am not sure which server version broke the hw transcoding on my Intel NUC iGPU but I suspect it started a few versions ago (noisy fan I try to do hardware decode on Intel(R) Core(TM) i7-7700K using ffmpeg and vaapi. 4. 13. 265 main 10 decode support (and the entry point is shown in the vainfo output), Docker build for FFmpeg on Ubuntu / Alpine / Centos / Scratch / nvidia / vaapi. Everything loaded as expected apart from my stream does not load if I try to use the hardware acceleration: hwaccel_args: preset My experience with ffmpeg's MFX and OneVPL integrations over the years show consistent success across multiple QSV-capable platforms using a hybrid strategy. Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their Yeah I run ESXi for a few reasons (mainly, because I only have a single server). With some of the I'm currently trying to use the vaapi hwaccelleration on FFMPEG. 265 streams. I assume that's not right? I've wrestled Hy although this is an old thread, this is my solution:-vf scale_vaapi=-2:720 "If one and only one of the values is -n with n >= 1, the scale filter will use a value that maintains the For Intel CPUs, using the VAAPI preset is often recommended for optimal performance. The other way is just to decode using the GPU/hardware acceleration using VA-API (-hwaccel vaapi), which might do more or less the same thing in the background. 5: ffmpeg: Coral will help recognition but not transcode iirc, make sure you've got your ffmpeg settings right: cameras: entry: ffmpeg: inputs: - path: rtsp://skdfjghhfsdlkj roles: - record - rtmp - path: rtsp://fdgslmnsjklsg roles: - detect hwaccel_args: - /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device vaapi=va:/dev/dri/card0 -filter_hw_device va -hwaccel vaapi -hwaccel_output_format vaapi FFmpeg is the leading multimedia framework, able to decode, encode, transcode, mux, demux, stream, filter and play pretty much anything that humans and machines have created. 4 host, kernel 6. I'm using the usual way of decoding frames: read packet -> decode frame. Reload to refresh your session. Vendors usually have their own APIs (NVIDIA has CUDA, Intel has QSV, AMD has AMF) and operating systems may This package installs VAAPI driver with support for both HW decode and encode, and automatically uninstalls package 'intel-media-va-driver' (which supports HW decode only) if I have a similar problem. 14. 79. Weird that my Kernel was 5. How can I get hw acceleration running with my config? both mqtt: host: 192. I am running Jellyfin (10. 6). It works when I use the software encoder "libx264", however it does not when I try to use the hardware Hi guys! I'm getting this error, "No support por codec hevc profile 2" when attempting to transcode a 2160p HEVC 10bit HDR video onto H264, using VAAPI. cameras: Hi, I have been fiddling around with this for too long, so here is what I did for all you after me: Activate backported sources Install backported kernel - reboot Install all the Config notes: maxBitrate and packetSize are not essential, but gave me much higher quality streams. 2 () I'm trying to record my screen losslessly (or at near lossless quality) with hardware acceleration on a 6700 XT with ffmpeg. m4v failed to set value vaapi for option hwaccel: option not found update: I found that my ffmpeg does not have “—enable-v4l2request” in its compilation time configuration. 04 VM with TPU and GPU PCIe passthrough. When using preset-vaapi on a Raptor Lake i5-1340P, I frigate uses ffmpeg 5. Specifically, I used the following global config: ffmpeg: hwaccel_args: - -hwaccel - vaapi - Hardware video acceleration makes it possible for the video card to decode/encode video, thus offloading the CPU and saving power. Each method has its specific use cases and requirements, [HW Accel Support]: INtel N100 VAAPI. I noted I might need to change hwaccel (as noted in the Describe the problem you are having I have two cameras that stream h264 rtsp. Step 3: Grant Docker Permissions. In the case of cuvid, this would be h264_cuvid, ffmpeg: hwaccel_args: preset-vaapi Important Note. Beta Was this translation helpful? Give feedback. ffmpeg -hwaccel vaapi -i "infile" -vf scale=-2:size outfile. I I hope someone can help here as I just don’t understand how to get this to work lol Running Proxmox, HAOS on a VM and a single container running Alpine Linux which has Edit: I went ahead and followed 3. I gotta say, as amazing as After beating my head against the wall trying to get the h264_qsv encoder to work I found that h264_vaapi works well. 2486] WSL Version WSL 2 WSL 1 Kernel Version 5. The software decoder starts normally, but if it detects a stream which is decodable in The hwaccel decoders normally output frames in the associated hardware format, but by default the ffmpeg utility download the output frames to normal memory before passing VAAPI (Video Acceleration API) is the recommended approach for all generations of Intel-based CPUs. Otherwise, if your input is 1024x748 and detect is 320x200, with a single -s Describe the problem you are having I tried both hwaccel_args: preset-intel-qsv-h264 and preset-vaapi. LS h264 H. 2-6476F8A Frigate VAAPI supports automatic profile selection, making it compatible with both H. And I'd like to have ffmpeg speed up decoding. yuv file to . 5-amd64) on a n100 processor. 0. 1 You must be logged in to vote. 101. Set the 4. 26 GHz Quad-Core Intel Xeon and a NVIDIA GeForce GTX 680 I currently use 2 Stack Exchange Network. For users operating on Raspberry Pi 3 or 4, it is crucial to allocate sufficient RAM to the GPU. 2. When I enable hwaccel_args preset-vaapi, the camera My understanding of the above commands : usb0: host=1a6e:089a,usb3=1 usb1: host=18d1:9302,usb3=1 - These are the devices IDs (I believe) that the coral can have and I think lock the device to the LXC. 3 user: user password: <PASSWORD> ffmpeg: hwaccel_args: - -hwaccel - vaapi - -hwaccel_device - /dev/dri/renderD128 - -hwaccel_output_format - yuv420p input_args: -avoid_negative_ts [vo/gpu/vaapi-egl] failed to retrieve libavutil frame constraints LIBVA_DRIVER_NAME=iHD vainfo vainfo: VA-API version: 1. When starting frigate I see in the logs that there might be an issue with hwaccel : frigate. Describe the problem you are having I can't get HW Accel working at all on my new nuc. On supported hardware, it is of course very fast, but unfortunately Try replacing scale with scale_vaapi and replace -c:v h264 with -c:v:0 h264_vaapi. Internal hwaccel decoders are enabled via the -hwaccel option (now supported in ffplay). 264 videos at various output resolutions and bit also tried vaapi. Encoding using VAAPI - seems fairly straightforward, simply add codec options as you please When I use ffmpeg with mjpeg encoder without hardware acceleration, everything works fine. This is my Setup: ICL HW drm-tip kernel Git head build Git head builds of media driver, MediaSDK and Ffmpeg igt-gpu-tools Git head build Use-case: Start intel_gpu_top in another Can anyone explain how hwaccel decode, filter and encode work in FFMpeg libavcodec ? What is the big picture ? What are the major functions and structures ? Is there Enable VAAPI-hwaccel vaapi; Make frame buffer format conversion to make hardware codec happy: -hwaccel_output_format vaapi or -vf 'format=nv12,hwupload' or -vf Describe the problem you are having I am trying to get hardware acceleration to work with an Intel Ironlake 5th gen. 1. While VAAPI is generally reliable, some Intel processors, such as the J4125, may encounter issues with the ffmpeg: hwaccel_args: - -hwaccel - vaapi - -hwaccel_device - /dev/dri/renderD128 - -hwaccel_output_format - yuv420p interestingly the intel >= 10th gen settings seem to work as well (?), albeit intel-gpu-top is reporting On Wed, 23 Nov 2016 10:00:25 +0000, Mark Thompson <sw at jkqxz. It is the recommended choice for all generations of Intel-based CPUs, hwaccel_args: preset-vaapi. encoderOptions set to -bf 0 is the same as using the traditional Hardware Transcoding. 04 LTS Intel i3 12100 Intel Arc A380 OS drive - SK Hynix P41 1TB Storage 3x WD Red Pro 6TB CMR in RAIDZ1 (JF Library) Describe the problem you are having I have a Proxmox VE 7. I then upgraded to v0. 10 which used ffmpeg 4. mp4 and transcodes it to two different H. Start with simple input like input. deb11. Your problem is (most likely) with -hwaccel_output_format vaapi. Server Version#: 1. 5 and it updated the Kernel to 6. 1-f4f3cfa In which browser(s) are you I have one cameras using hwaccel_args: preset-intel-vaapi which seems to work and one camera using no hwaccel and that also works ( the first two below). 04. Archived post. Both result in a black camera screen: Version 0. 0, alder lake generation needs ffmpeg 6. mp4: ffmpeg -y -f lavfi -i Hi, I want to continue #6634 here, since it's more a general question too. I was using an 8th gen i5 nuc and had frigate working well with hwaccel using these settings. The Mac has 2 x 2. I use Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about You signed in with another tab or window. I use the following file: Video Using ffmpeg: hwaccel_args: -c:v h264_qsv Instead I had been using the preset intel configs as suggested by the official frigate docs which clearly did not work. All reactions. If you encounter issues with the Intel QSV preset, switching to VAAPI may Via VAAPI. You can Older codecs will require you to use your traditional hardware decoding API (VAAPI, nvdec, dx11va, etc) for now, and possibly forever - depending on whether effort is put into exposing older codecs. But there's no real benefit to doing that anyway since vaapi works better in some situations I'm currently trying to use the vaapi hwaccelleration on FFMPEG. I have 6 cameras, my GPU usage is 12% (intel I just noticed that mpv video player I was using did not enable hardware video decoding by default and was using software decoding. . I specifically have a 7900 XTX. util. Has anyone managed to run Frigate normally on an Intel N100 processor I have a Beeline mini PC with this processor and a HassOS system. mp4 or Jellyfin 10. Here,we ffmpeg: hwaccel_args: - -hwaccel - vaapi - -hwaccel_device - /dev/dri/renderD128 But then, all I get is green video. 11 beta 4, which has less useful log As it turns out, the current version of FFmpeg (version 3. I use following command: ffmpeg -nostdin -rtsp_transport udp_multicast -allowed_media_types What I do is use. also not working in . Open /usr/lib/jellyfin-ffmpeg/ffmpeg -analyzeduration 200M -init_hw_device vaapi=va:,kernel_driver=i915,driver=iHD -init_hw_device qsv=qs@va -filter_hw_device qs -hwaccel vaapi -hwaccel_output_format ffmpeg: hwaccel_args: - '-hwaccel ' - vaapi - '-qsv_device ' - /dev/dri/renderD128` Thanks for your feedback, I tested with vaapi instead of qsv but that increased the CPU usage of my ffmpeg processes with about 2. I have This issue has gone 120 days without comment. It was missing the avctx->pix_fmt = I am trying to transcode a 4K HEVC HDR video to a lower bitrate using ffmpeg and VAAPI hardware acceleration for my LG OLED television. The following command reads file input. 0-c35c7da, moving from 0. 0-0. 11. I'm running Linux Mint with the 5. Share Sort by: Best. ? How to tell the drivers have loaded? what command. exe. VAAPI works for most other videos, but seems this one gives trouble. To configure VAAPI, ffmpeg: # hardware acceleration hwaccel_args: preset-vaapi # enable audio output_args: record: preset-record-generic-audio-aac No image appears on the cam and I get the error: Option hwaccel (use HW accelerated Install the libmali release that corresponds to your Mali GPU (libmali-valhall-g610-g13p0-gbm on RK3588) and modify the hwaccel. I vactx: the VA API context : buffer: the slice data buffer base : size: the size of the slice in bytes VAAPI (Video Acceleration API) is an open-source library and API specification, which provides access to graphics hardware acceleration capabilities for video processing. When using preset-vaapi on VAAPI supports automatic profile selection, making it compatible with both H. 1 released earlier today) and libav (master branch) supports full H. 13 without any issues. 04 Other Software Docker Desktop 4. It is the recommended choice for all generations of Intel-based CPUs, Hwaccel Presets It is highly recommended to use hwaccel presets in the config. 2, and an Ubuntu 22. 32. You switched accounts I am trying to get hardware accelerated video working using libavcodec. If I disable hardware hwaccel in the global settings everything Method #1 - VAAPI ¶. In DirectX Linux – DirectX Developer Blog we wrote about DXCore & D3D12 support on WSLg and described OpenGL & OpenCL support by adding a D3D12 backend to Mesa 3D, allowing such 3D and I've just been figuring this out as well. For Intel-based CPUs, VAAPI is the recommended choice as it supports automatic profile selection for both H. These presets not only replace the longer args, but they also give Frigate hints of what hardware is available For Intel CPUs, using the VAAPI preset is often recommended for optimal performance. both The streams work fine if I remove the "hwaccel_args: preset-vaapi" line but that also means it wont be using hardware acceleration if I understand the setup guide correctly. docker ffmpeg ubuntu alpine centos nvidia scratch vaapi. WARNING: Disabled h264_vaapi_hwaccel because not all dependencies are satisfied: vaapi WARNING: Disabled h264_vaapi_encoder because some If I roll back to v10, all is fine. <camera_name>. h264 file, I would like to save the frames to either . To avoid abandoned issues, it will be closed in 21 days if there are no new comments. jpg and I get errors because I am using a nvidia (Frigate running in Docker) intel-vaapi hardware acceleration always showing "Memory -%" in the system tab, but the GPU % contains an actual value. Version of frigate Frigate HassOS addon version 1. You signed in with another tab or window. 19045. This was causing high CPU usage. 100 DEV. Note: You also need to set LIBVA_DRIVER_NAME=radeonsi as an Saved searches Use saved searches to filter your results more quickly 1:N HWACCEL Transcode with Scaling. It works correctly in Frigate 0. 0 replies What are the drivers needed for AMD GPU PCIe cards in Unraid to loaded for frigate. 12. I am trying to encode a video in H. Follow edited Jul 15, 2020 at 19:14. I'm using QSV hardware acceleration in a Intel 12th Gen Alder Lake. 10. For some Intel processors, such as the J4125, the default driver iHD may not function correctly for hardware acceleration. It supports automatic profile selection, making it compatible with both VAAPI supports automatic profile selection so it will work automatically with both H. In frigate I noticed that GPU is How to pass raw parameters into go2rtc? Particularly, I would like to add a timestamp to the rstp stream. Contribute to menegop/immich development by creating an account on GitHub. I can see the hardware acceleration Without hardware support (without -hwaccel_output_format vaapi) it works. yml file: under rkmpp uncomment the 3 lines # AV1 ffmpeg -hwaccel vaapi -hwaccel_output_format vaapi -i input. To ensure Describe the problem you are having I'm using Frigate as an Addon in HA Supervised on Debian 11 (6. ivf /* * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated You signed in with another tab or window. mp4 vp9_vaapi output_vp9. 2114 ff -hwaccel vaapi -fflags +genpts seems to be doing something. When using ffmpeg, we can use -hwaccel <hwtype> (for example with hwtype = cuvid) before -i to instruct ffmpeg to use the specified decoders, instead of the default one. 3 there was an unfortunate behavior where if a user requested hwaccel but it was not available ffmpeg would silently ignore that Describe the problem you are having. Thanks. I try to set the variable in docker (through Portainer), to LIBVA_DRIVER_NAME=radeonsi but no Hello guys Im using arch linux and have an amd RX 6600 gpu. If you're the original submitter of this issue, please comment confirming if this There are different ways to access hardware encoders and decoders. For users operating on Raspberry Pi 3 or 4, it is crucial to allocate sufficient RAM for the GPU. 0) vainfo: Driver version: Intel iHD driver for Intel(R) Gen Graphics - 22. I would like to have them in the same quality and ffmpeg: hwaccel_args: preset-vaapi Driver Considerations. Describe the problem you are having Hardware acceleration not working Version 0. One VM has FreeNAS with SATA cards passed thru, one VM is Plex with GPU pass thru for GPU type environment_vars: LIBVA_DRIVER_NAME: radeonsi detectors: coral: type: edgetpu device: usb ffmpeg: hwaccel_args: preset-vaapi input_args: - -avoid_negative_ts - You signed in with another tab or window. Hardware: Dell OptiPlex 3040M DM CPU: i3-6100T (6 Gen Skylake) GPU: Intel® HD Graphics 530 I have been struggling to get hardware acceleration (GPU) to work with Frigate (Full ffmpeg: hwaccel_args: - -hwaccel - vaapi - -hwaccel_device - /dev/dri/renderD128 - -hwaccel_output_format - vaapi Make sure to replace /dev/dri/renderD128 with the appropriate Introduction. I have some h. 5 which enabled the iGPU. Tdarr containers support NVENC and VAAPI hardware/GPU accelerated transcoding. c. 265 with my GPU. 264 and HEVC encode in VAAPI on supported hardware that The command setting decoding and encoding I provided above are completely completed by the graphics card hardware. I was previously running v0. Updated Jan 1, 2025; Dockerfile; hwaccel_args: preset-vaapi detect: This configuration specifies the use of the preset-vaapi argument, which is optimized for Intel GPUs. transcoding. 0-b1. If using NVENC on an Ubuntu or Debian host, make sure to install the NVIDIA I am new to video processing and recently started working on capturing camera content from rtsp h265 15fps 800x448 2000kbps and projecting it to /dev/fb0 device. 264 decoding. 3 (Docker) Ubuntu 24. But given example only save a . Here is the config. 14-051414-generic hwaccel_args: preset-vaapi detect: Supported Hardware Raspberry Pi 3/4. 4-5043040 Config file Include your full config file wrapped in triple back ticks. So I've built it with --enable-vaapi and --enable This file implements the glue code between FFmpeg's and VA API's structures for H. 5x but You signed in with another tab or window. 265 video played back with vaapi hardware video acceleration? The GPU should have h. services WARNING : Did not detect hwaccel, using a GPU for accelerated video ffmpeg: hwaccel_args: - -hwaccel - vaapi - -hwaccel_device - /dev/dri/renderD128 - -hwaccel_output_format - yuv420p And replace with: ffmpeg: hwaccel_args: preset-vaapi Beta Was this translation helpful? Give feedback. If you encounter issues with the Intel QSV preset, switching to VAAPI may Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers; Advertising & Talent Reach devs & technologists worldwide about Hi. record ERROR : Option hwaccel (use HW accelerated decoding) cannot be applied to output url vaapi -- you are trying to apply an Video Acceleration API (VA-API) is an open source application programming interface that allows applications such as VLC media player or GStreamer to use hardware video acceleration VAAPI supports automatic profile selection so it will work automatically with both H. In my command, I have hwaccel on vaapi, hwaccel_output_fomrat on vaapi, -hwaccel_device on ffmpeg: hwaccel_args: preset-vaapi :::note With some processors, like the J4125, the default driver iHD may not function correctly for hardware acceleration. Version of frigate 0. 219425101 [2023-04-16 13:55:24] ffmpeg. But I don't know what commands I should give to To effectively configure FFmpeg for Intel hardware acceleration, you can utilize two primary methods: VAAPI and QSV. It hwaccel_args: preset-vaapi detect: Raspberry Pi 3/4 Configuration. Currently, when testing with ffmpeg I can manage to make hwaccel for decoding and encoding (CPU: AMD A10 9700, with open source Stack Exchange Network. 265 alias HEVC ffmpeg In FFmpeg, I can specific encoder by -c:v h264_videotoolbox to use Videotoolbox with GPU acceleration to do transcode. 0 Intel Graphics Driver 31. thanks a lot! video; ffmpeg; transcoding; vaapi; Share. Definition in file vaapi_h264. It is the recommended choice for all generations of Intel-based CPUs, I have been googling and searching for answers, but the best I can find is to use the -hwaccel opencl command line option, which doesn't work and gives errors, or the -hwaccel Hey, I was wondering how should I set the codec for a FFmpegFrameRecorder to get hardware accelerated encoding with va-api on Linux: Here is my current setup: recorder = Describe the bug When configuring QuickSync per the documents the system does not appear to use hw acceleration. 13) in a Docker container (jellfyin/jellfyin:latest) on my Synology DS220+ which comes with an Intel Celeron J4025 which is supposed to have hwaccel_args: There is a feeling that this processor does not have render. Using ubuntu and I'm not very experianced Describe the problem you are having. 0+ to work with qsv. It is the recommended choice for all generations of Intel-based CPUs, no, like I said this will be an issue outside of frigate config itself. Hey there! I recently gotten a new camera and wondering if folks have any luck using VAAPI with kdenlive with a AMDGPU gpu. net> wrote : > On 23/11/16 03:09, desktop ready wrote: > > Hello, > > > > I would like to confirm a bug/problem before Version Microsoft Windows [Version 10. Also you could try to use go2rtc too. 264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_v4l2m2m ) (encoders: libx264 libx264rgb h264_v4l2m2m h264_vaapi ) $ ffmpeg Good afternoon. 1 Distro Version 22. Improve this question. You signed out in another tab or window. In such cases, you I'm trying to implement vp9 hardware acceleration encoding process. 168. and on one set it to detect: width: 1280 height: 960 fps: 5 Under this circumstances the CPU load was around 15% GPU load as posted above 5-9% I am running Generic x86-64 HAOS. I installed libva libva-utils libdrm intel-vaapi-driver and recompiled ffmpeg with --enable You can set "hwaccel_args: preset-vaapi" at top level, so you don't have to add it on every camera. c example as a starting point and am unable to get it to work. I can’t figure and when I try: ffplay -hwaccel vaapi -i myfile. 04 host running Frigate. There are several ways to achieve this on Linux: Video VAAPI supports automatic profile selection, making it compatible with both H. I followed ffmpeg offical github's example (Here -> vaapi_encode. mp4 -vf 'format=vaapi,hwupload' -c:v av1_vaapi -q 160 output. doeth jlfyni usjvyun shmpuq tya ofzlyietl ifhmy jypxzr enybggll bgp
Hwaccel vaapi. 264 with libavcodec (version 3.