Skip to content

FFMPEG #974: Use latest FFMPEG 3.4 - #981

Closed
sgothel wants to merge 1 commit into
HandBrake:masterfrom
sgothel:ffmpeg
Closed

sgothel wants to merge 1 commit into
HandBrake:masterfrom
sgothel:ffmpeg

Conversation

@sgothel

@sgothel sgothel commented Nov 7, 2017

Copy link
Copy Markdown
Contributor

Patch for #974
moving to FFMPEG 3.4 from LIBAV 12.2.

All patches have been moved to subfolder 'old' since they do not apply cleanly anymore.
Work has to be performed to validate whether patches are still required.

The re-ordering of to be linked modules was required to solve
statically linked dependencies. See libhb/module.defs etc.

Patch for HandBrake#974
moving to FFMPEG 3.4 from LIBAV 12.2.

All patches have been moved to subfolder 'old' since they do not apply cleanly anymore.
Work has to be performed to validate whether patches are still required.

The re-ordering of to be linked modules was required to solve
statically linked dependencies. See libhb/module.defs etc.
@sr55

sr55 commented Nov 8, 2017

Copy link
Copy Markdown
Contributor

We'll get some feedback soon. We are just having some internal discussions about how we proceed with this.

@cehoyos

cehoyos commented Nov 12, 2017

Copy link
Copy Markdown

A11 needs another look.

A01-matroskaenc-pgs-duration.patch: Looks ok, sent to ffmpeg-devel
A04-dv-eof.patch: In FFmpeg since September 2015
A05-p10-output-support.patch: In FFmpeg since August 2016 (missing copyright btw)
A06-edit-list-offset.patch: I don't know of open edit-list issues in FFmpeg, if you find them, please tell me!
A09-mkv-block-ts-offset.patch: Merged into FFmpeg a month ago
A10-mp4-aac-roll.patch: Something similar looking is in FFmpeg
A11-elst-audio-pad.patch: Needs a bug report or a patch
A13-mkv-fix-seek-crash.patch: Fixed in FFmpeg November 2016
A14-aacenc-high-bitrate-crash.patch: Not relevant for FFmpeg (and fixed a long time ago)
A17-mkv-rawvideo.patch: Fixed in June 2011
A18-avi-broken-index.patch: Fixed in 2012
A19-h264-refs.patch: FFmpeg-patch from 2011
A20-hvc1-override.patch: In FFmpeg since June
P01-solaris.patch: Looks hardly relevant
P02-darwin-pic.patch: What's wrong with --enable-pic?

@cehoyos

cehoyos commented Nov 12, 2017

Copy link
Copy Markdown

Concerning configure:
Why don't you use --disable-all? This would simplify everything a lot.
If not:

--disable-ffmpeg
--disable-ffplay
--disable-ffprobe
--disable-ffserver
Unneded since you use --disable-programs

You can use --enable-encoder=aac,ac3,eac3,flac (same for --enable-muxer)

--enable-zlib
--enable-bzlib
--enable-pthreads
Please remove them, they have no effect.

@cehoyos

cehoyos commented Nov 12, 2017

Copy link
Copy Markdown

Finally: Please look into https://trac.ffmpeg.org/ticket/6304
I suspect the fix is trivial and would make many users happy.

@jstebbins

Copy link
Copy Markdown
Contributor

ffmpeg is deprecating libavresample. So we'll have to replace our use of this with libswresample.

@cehoyos

cehoyos commented Nov 27, 2017

Copy link
Copy Markdown

This will not be an issue for the foreseeable future: Several other projects also still use libavresample.

@jstebbins

Copy link
Copy Markdown
Contributor

I have historically made a point of changing APIs immediately when something is deprecated. It may not "be an issue". But it is what I would like see happen.

@cehoyos

cehoyos commented Nov 27, 2017

Copy link
Copy Markdown

As said, I suggest to first fix https://trac.ffmpeg.org/ticket/6304
This will have the sideeffect that many people will test Handbrake with FFmpeg. Switching software resamplers should not be an issue afair.

@jstebbins

Copy link
Copy Markdown
Contributor

As said, I suggest to first fix https://trac.ffmpeg.org/ticket/6304
This will have the sideeffect that many people will test Handbrake with FFmpeg. Switching software resamplers should not be an issue afair.

That's not your decision to make

@cehoyos

cehoyos commented Dec 1, 2017

Copy link
Copy Markdown

Of course!
While I don't understand your point - after all, you agreed that we know of no other incompatibility - I can only offer my opinion, you have to decide;-)

@jstebbins

Copy link
Copy Markdown
Contributor

I'm hoping to incentivize someone to do it. Otherwise the work will fall on me. The majority of core libhb maintenance is on me.

@sgothel sgothel closed this Dec 26, 2017
@sgothel
sgothel deleted the ffmpeg branch December 26, 2017 01:46
@bradleysepos

Copy link
Copy Markdown
Contributor

@sgothel Any particular reason you closed a couple of your pull requests? Perhaps you deleted your remote branch on accident?

@sgothel

sgothel commented Dec 26, 2017 •

Copy link
Copy Markdown
Contributor Author

@bradleysepos @sr55 @jstebbins yes, what a mess - this was my last rebase for sure :)
Referenced old pull requests in the new ones.
From here, I won't use rebase anymore .. just confusing this communication channel here.

@sgothel

sgothel commented Dec 26, 2017

Copy link
Copy Markdown
Contributor Author

@jstebbins I would commit on the swresample move 'as we go' within 2018, if that is fine with you.

@jstebbins

Copy link
Copy Markdown
Contributor

I haven't looked at the differences between swresample and avresample yet, so I don't really know how big a task this is. But there is a largish chunk of code in HandBrake using avresample and I'm hoping not to get stuck porting it myself. I consider porting it part of the work required to move to ffmpeg since the port would not be necessary otherwise. I would really like to see it done before any HandBrake release is made with ffmpeg support enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

5 participants