Bug 200310 - multimedia/handbrake This build of x264 requires high depth input. Rebuild to support 8-bit input.
Summary: multimedia/handbrake This build of x264 requires high depth input. Rebuild to...
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2015-05-18 18:46 UTC by Jens Grassel
Modified: 2016-05-22 07:55 UTC (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jens Grassel 2015-05-18 18:46:21 UTC
Hi,

after not using it for a while I was trying to encode some material with handbrake but it crashes after the first pass.

However the log for the first pass is flooded with thousands of error messages like this:

x264 [error]: This build of x264 requires high depth input. Rebuild to support 8-bit input.

I'm running 10.1-RELEASE with the latest patches and handbrake is compiled from ports.

Any ideas?

% uname -a
FreeBSD thor.rostock.home 10.1-RELEASE-p10 FreeBSD 10.1-RELEASE-p10 #0: Wed May 13 06:54:13 UTC 2015     root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  amd64

% pkg info handbrake         
handbrake-0.10.1_2
Name           : handbrake
Version        : 0.10.1_2
Installed on   : Wed Apr 22 16:59:15 CEST 2015
Origin         : multimedia/handbrake
Architecture   : freebsd:10:x86:64
Prefix         : /usr/local
Categories     : multimedia
Licenses       : GPLv2
Maintainer     : ports@FreeBSD.org
WWW            : http://handbrake.fr/
Comment        : Versatile DVD ripper and video transcoder
Options        :
	X11            : on
Shared Libs required:
	libxml2.so.2
	libx264.so.142
	libvpx.so.1
	libvorbisenc.so.2
	libvorbis.so.0
	libtheoraenc.so.1
	libtheoradec.so.1
	libsamplerate.so.0
	libpangocairo-1.0.so.0
	libpango-1.0.so.0
	libogg.so.0
	libnotify.so.4
	libmp3lame.so.0
	libintl.so.8
	libgtk-3.so.0
	libgthread-2.0.so.0
	libgobject-2.0.so.0
	libgmodule-2.0.so.0
	libglib-2.0.so.0
	libgio-2.0.so.0
	libgdk_pixbuf-2.0.so.0
	libgdk-3.so.0
	libfribidi.so.0
	libfreetype.so.6
	libfontconfig.so.1
	libdbus-glib-1.so.2
	libdbus-1.so.3
	libcairo.so.2
	libcairo-gobject.so.2
	libatk-1.0.so.0
	libass.so.5
Comment 1 John Marino freebsd_committer freebsd_triage 2015-05-19 09:34:55 UTC
Note that this port has no maintainer, so chances are nobody is going to answer this question.
Comment 2 Thomas Zander freebsd_committer freebsd_triage 2015-07-06 04:26:45 UTC
Handbrake was updated to 0.10.2 some time ago. Does the problem still exist with the latest version?
Comment 3 Kubilay Kocak freebsd_committer freebsd_triage 2015-07-06 10:18:53 UTC
Hi, I'm the maintainer of the multimedia/x264 port. Currently the port defaults to 8-bit encoding, but has an option for HI10P. Is this the option that was used that handbrake is outputting the error with?

If so, and it turns out that x264 & handbrake need to be build similarly together (8 vs 10 bit), then perhaps we could look at creating a x264-hi10p slave port for those ports like handbrake to depend on.

Thoughts?
Comment 4 Jens Grassel 2015-07-07 14:59:49 UTC
(In reply to Thomas Zander from comment #2)

The problem persists. :-(
Comment 5 Thomas Zander freebsd_committer freebsd_triage 2015-07-19 18:29:04 UTC
For me, the question is: Handbrake does bring its own x264 tarball which gets extracted but not built and linked.
Although using bundled codecs is usually not desired, in this case it might be the right thing to do.
Didn't get around to play with that mess of a build system yet, though. koobs?
Comment 6 Thomas Zander freebsd_committer freebsd_triage 2016-05-15 12:09:43 UTC
There have been multiple updates to the handbrake port by now, including some changes in the build system. Any news on whether this problem is reproducible with latest ports tree?
Comment 7 Vladimir Omelchuk 2016-05-15 12:48:11 UTC
I was trying to encode some files and all files (*.ts) was encoded without any errors!

Play encode file:
$ mpv vlc_record_1+1_160508.m4v 
Playing: vlc_record_1+1_160508.m4v
 (+) Video --vid=1 (*) (h264)
 (+) Audio --aid=1 --alang=und (*) (aac)
File tags:
 Title: vlc_record_1+1_160508
AO: [oss] 48000Hz stereo 2ch s32
VO: [opengl] 716x574 => 763x574 yuv420p
AV: 00:02:13 / 00:44:50 (4%) A-V: -0.000

<uname>
FreeBSD 10.3-RELEASE-p2 amd64

$ pkg info handbrake 
handbrake-0.10.5
Name           : handbrake
Version        : 0.10.5
Installed on   : Thu May  5 13:04:49 2016 EEST
Origin         : multimedia/handbrake
Architecture   : freebsd:10:x86:64
Prefix         : /usr/local
Categories     : multimedia
Licenses       : GPLv2
Maintainer     : ports@FreeBSD.org
WWW            : http://handbrake.fr/
Comment        : Versatile DVD ripper and video transcoder
Options        :
	FDK_AAC        : off
	X11            : on
Shared Libs required:
	libdbus-glib-1.so.2
	libnotify.so.4
	libtheoraenc.so.1
	libpango-1.0.so.0
	libfreetype.so.6
	libfribidi.so.0
	libcairo.so.2
	libvorbisenc.so.2
	libgtk-3.so.0
	libxml2.so.2
	libcairo-gobject.so.2
	libatk-1.0.so.0
	libvpx.so.3
	libgmodule-2.0.so.0
	libgdk_pixbuf-2.0.so.0
	libgio-2.0.so.0
	libsamplerate.so.0
	libtheoradec.so.1
	libogg.so.0
	libglib-2.0.so.0
	libgobject-2.0.so.0
	libdbus-1.so.3
	libx264.so.144
	libintl.so.8
	libvorbis.so.0
	libmp3lame.so.0
	libass.so.5
	libfontconfig.so.1
	libgthread-2.0.so.0
	libgdk-3.so.0
	libpangocairo-1.0.so.0
Comment 8 Jens Grassel 2016-05-16 11:01:32 UTC
I'm having no issues with the current build. The libx264 port is compiled with HI10P set off (default).
Comment 9 Vladimir Omelchuk 2016-05-17 13:14:31 UTC
root@vladiom:/usr/ports/multimedia/libx264 # make showconfig
===> The following configuration options are available for libx264-0.144.2533_1:
     ASM=on: Use optimized assembly code
     DEBUG=off: Build with debugging support
     GCC=off: Build with modern GCC (from ports)
     HI10P=off: Enable High 10 Profile 10-bit encoding
     PGO=off: Use Profile-Guided Optimization
===> Use 'make config' to modify these settings
Comment 10 Thomas Zander freebsd_committer freebsd_triage 2016-05-22 07:55:29 UTC
Thanks for double checking and reporting!