Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.
/ docker-ffmpeg-vaapi Public archive

Archived due to requirement on outdated kernel

License

Notifications You must be signed in to change notification settings

pocka/docker-ffmpeg-vaapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

docker-ffmpeg-vaapi

This repository contains a docker image for FFmpeg with VAAPI.

Recommended: Use 3.x kernel. This image might not work on the newer kernel.

Install

Pull the image from DockerHub.

docker pull pocka/ffmpeg-vaapi

Example

This example shows you the case: Convert MPEG2-TS(input.ts) to MP4(H.264)(output.mp4) and scale it to 1280x720.

docker run \
  --privileged \
  -v /dev/dri:/dev/dri \
  -v `pwd`:/data \
  pocka/ffmpeg-vaapi \
    -vaapi_device /dev/dri/renderD128 \
    -hwaccel vaapi \
    -hwaccel_output_format vaapi \
    -i input.ts \
    -vf 'format=nv12|vaapi,hwupload,scale_vaapi=w=1280:h=720' \
    -c:v h264_vaapi \
    output.mp4

For more detail of VAAPI option, see Livav's document.

About

Archived due to requirement on outdated kernel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published