-
Notifications
You must be signed in to change notification settings - Fork 68
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
Integrated libx264 for higher quality mp4 output #1564
Conversation
@chaosphere2112 nice! How much nicer are the outputs? And are they also smaller? |
@chaosphere2112 looks like you're missing some files. |
@chaosphere2112 you might as well use cdat_confiugre_step for x264 as well. |
@doutriaux1 I just did a dumb thing (removed the ffmpeg_configure_step.cmake.in and x264_configure_step.cmake.in without removing the configure_file command, despite them not being in use). Also forgot to update the ffmpeg() call on canvas to actually take advantage of this stuff. @durack1 A lot better. And, yes, smaller as well.
|
@chaosphere2112 yasm stuff |
@chaosphere2112 great - thanks for doing this.. I also note that the |
@doutriaux1 On the system requirements page we list YASM as a requirement for Ubuntu, though neither of the other platforms. Hm... I can just wrap the configure args to check if YASM is installed and disable it otherwise? |
cmd += ' -r %s ' % rate | ||
if bitrate is not None: | ||
cmd += ' -b:v %sk' % bitrate | ||
cmd += " -pix_fmt yuv420p " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chaosphere2112 are h264
encoded files now the new default for the x.ffmpeg()
and the x.animation()
functions (where x = vcs.init()
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, FFMPEG defaults to using h264 when libx264 is installed. That's the reason for the -pix_fmt yuv420p option (they default to a pixel format that quicktime doesn't support but most other players do, so I went with the lowest common denominator).
Let's hang off a sec on merging this, @doutriaux1; it turns out Cisco provides a binary version of H264 that is properly licensed for anyone to use, so I'm going to try linking against that with ffmpeg and see what happens. |
@doutriaux1 also there's all of the build failures, but that's probably not my fault. |
Looks like we are running into CMake version issue. This is new but I don't know why we didn't see this before. |
@doutriaux1 Rather than porting to OpenH264's source, I'm content just sticking with libx264. It's better supported by FFMPEG, and we already made it work here. I'll push a fresh commit to restart these... not sure why they all failed. |
@chaosphere2112 there are a bunch of |
@chaosphere2112 looks like Ubuntu is hang. Will try on my machine before giving it the final go. Did you try under Ubuntu? |
@chaosphere2112 to fix |
@durack1 I believe this PR is already in master so if the bot started after it went in there is no need for @chaosphere2112 to merge it in, the bots automatically merge master in. |
ooops @durack1 I take it back... the bots WILL merge it in from master, but travis is not a bot... |
@durack1 I think the click_info is an artefact of the baselines being updated for the resize merge and that code actually not making it into garant because it is not a bot. |
6bfac03
to
e24113b
Compare
@doutriaux1 @durack1 Rebased off of master, hopefully we get a clean build this time 😄 |
@doutriaux1 @chaosphere2112 seems like |
@durack1 Dunno; I can't seem to get to the cdash page to see the results. |
@chaosphere2112 try safari, FF is getting blocked by the lab.. |
What are your issues with the cdash page? We have been reconfiguring SSL on all of our servers. If there are specific problems, I can try to work them out with our sysadmins. |
@jbeezley it's likely an issue specific to our side (and firewall, and browser - safari works!), @doutriaux1 has an open ticket with the network folks to stop blocking our connections to https://open.cdash.org |
@durack1 @jbeezley I'm unable to get to it from any of my web browsers (or wget).
Odds are solid you guys upgraded to an SSL version that's too new for our firewall (same thing happened to http://djangoproject.com a while back). Amusingly, it just happened when I tried to connect to https://OpenSSL.org Here's the openssl s_client errors:
|
Indeed! You don't see me trying to port our build to anything else 😄 |
@chaosphere2112 want to refresh/rebase this PR again so those tests get re-issued? I think we're close to an all green! The "Update branch" button/link below might just do it for you.. |
f58af23
to
f77a5c3
Compare
@durack1 Doing so now; fingers crossed 🎱 |
@aashish24 @sankhesh I get this:
We can fix this in another branch later. |
@chaosphere2112 on ubuntu I get:
I think it needs Will try it now. |
@doutriaux1 I have seen the first warning message; I think all that needs to be done is convert the |
@doutriaux1 I'm not having any trouble building libx264 or ffmpeg, but I do run into problems with pip. My ubuntu VM needs a pile of updates, so I'll run those and try again. |
Weird. Mine tried to install pip before setuptools. Worked when I tried again. Building as we speak. |
@chaosphere2112 can you please check that pip_deps refers setuptools_pkg |
It does, which is why I found it odd. |
@chaosphere2112 configure is not in the source path:
one extra directory. |
@chaosphere2112 on my ubuntu I have this extra directory. But not on the bots... I have no idea why. @aashish24 @sankhesh could it be a cmake version difference? |
@doutriaux1 |
(that's before your commit) |
@chaosphere2112 don't know what's going on here. It's not crucial for RC1 (but is for 2.4) so if the other 2 PR pass I will tag RC1 tonight. Unless you get a push that fixes the bots. I won't worry about my machine for now if all bots pass your thing. |
@chaosphere2112 let's try to fix this early tomorrow morning so we can tag rc1 |
Integrated libx264 for higher quality mp4 output
Fixes #1118, and gives us much nicer quality animation output.