Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x265 encoding #445

Closed
totaam opened this issue Oct 20, 2013 · 9 comments
Closed

x265 encoding #445

totaam opened this issue Oct 20, 2013 · 9 comments

Comments

@totaam
Copy link
Collaborator

totaam commented Oct 20, 2013

Issue migrated from trac ticket # 445

component: core | priority: major | resolution: worksforme

2013-10-20 08:35:20: totaam created the issue


x265.org is an open-source project and free application library for encoding video streams into the H.265/High Efficiency Video Coding (HEVC) format, and is released under the terms of the GNU GPL.

It should be relatively easy to add this encoder as it follows the same layout as x264, with a simpler API too. Stub patch attached.
Decoding has been added to ffmpeg already: FFmpeg Now Supports HEVC/H.265 Decoding - though for this we will need to fix #415 first.

@totaam
Copy link
Collaborator Author

totaam commented Oct 20, 2013

2013-10-20 08:39:59: totaam uploaded file x265.2.patch (16.9 KiB)

better enc_x265 stub patch, removes generated files

@totaam
Copy link
Collaborator Author

totaam commented Feb 13, 2014

2014-02-13 15:02:06: antoine changed status from new to assigned

@totaam
Copy link
Collaborator Author

totaam commented Feb 13, 2014

2014-02-13 15:02:06: antoine commented


FFmpeg & Libav Add H.265 Encoder Via x265: Now today both FFmpeg and libav have integrated x265 encoding support into their respective programs

Looks like x265 is maturing quickly.

@totaam
Copy link
Collaborator Author

totaam commented Feb 23, 2014

2014-02-23 01:28:12: totaam commented


From The world’s fastest VP9 decoder: ffvp9: We did briefly look into x265, one of the more popular HEVC encoders. Unfortunately, it suffers from the same basic issue as libvpx: it can be fast, and it can beat x264, but it can’t do both at the same time.

@totaam
Copy link
Collaborator Author

totaam commented Feb 23, 2014

2014-02-23 16:49:19: totaam commented


encoder implemented in r5562, decoder support added in r5558

Not particularly impressive: on "ultrafast" it is 5 to 20 times slower than x264!

@totaam
Copy link
Collaborator Author

totaam commented Feb 26, 2014

2014-02-26 04:01:59: totaam commented


For the record, this is how fmpeg2 is now built on win32 and osx (added hevc aka h265):

./configure --cpu=i686 --enable-runtime-cpudetect \
    --prefix=/c/ffmpeg-win32-bin \
    --enable-static --enable-shared --enable-gpl \
    --enable-memalign-hack \
    --disable-avdevice --disable-decoders --disable-dxva2 --disable-encoders \
    --disable-devices --disable-muxers --disable-demuxers \
    --disable-postproc --disable-avfilter  --disable-filters --disable-protocols \
    --disable-bsfs --disable-parsers  \
    --enable-swscale \
    --enable-libx264 --enable-decoder=h264 \
    --enable-libvpx --enable-decoder=vp8 --enable-decoder=vp9 \
    --enable-decoder=hevc

trunk versions of ffmpeg2 also support --enable-libx265, but this is not needed for decoding.
For OSX, you must also add the usual GTK --prefix= path.

@totaam
Copy link
Collaborator Author

totaam commented May 19, 2014

2014-05-19 12:48:08: totaam changed status from assigned to closed

@totaam
Copy link
Collaborator Author

totaam commented May 19, 2014

2014-05-19 12:48:08: totaam changed resolution from ** to worksforme

@totaam
Copy link
Collaborator Author

totaam commented May 19, 2014

2014-05-19 12:48:08: totaam commented


This has been working for a while but is of little interest because it is so slow. Closing the ticket without further testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant