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

(partial) Fix libav transcoding for some people #449

Closed
wants to merge 3 commits into from

Conversation

dreamcat4
Copy link
Contributor

Many thanks to @kvaster for his patch.
It does not break anything previous. And it does not fix completely.

This fixes for versions of ffmpeg and libav which are:

  • Not too old.
  • Not too New.
  • Older ones should still work too. Just I don't have so can't test.
  • Have tested on ffmpeg-2.2.4 and all works fine. Can't see no segfault, or other errors. Transcoding work well for direct Play button, and for the Plex plugin realriot/tvheadend-ng.
  • Does not fix for very newest versions of ffmpg/libav.

Why? the newest ffmpeg/libav versions have removed at some unknown recent commit in recent months the deprecated function avcodec_decode_audio3. Which tvheadend currently still uses / depends upon.

https://github.com/FFmpeg/FFmpeg/blob/97478ef5fe7dd2ff8da98e381de4a6b2b979b485/doc/APIchanges#L1029-1034

We should replace entirely the deprecated _audio3 function to the newer avcodec_decode_audio4 function. And make a new minimum version requirement = 54.40.0. However that change is more risk / complex than these ones. And not done yet. So is not included with this pull request.

source: http://pastebin.com/fGLBsdqb
Many thanks / all credit to @kvaster

[12:15] < kvaster> I've made a patch for newer libav locally. Will be able to submit today a bit later.
[12:17] < kvaster> http://pastebin.com/fGLBsdqb
[12:23] < kvaster> it was just small api changes inside libav, I'm worried only about audio stream buffer sizes.
[12:24] < kvaster> Anyway this is working for me at least.
@perexg
Copy link
Contributor

perexg commented Aug 7, 2014

Merged.

@perexg perexg closed this Aug 7, 2014
@perexg perexg reopened this Aug 7, 2014
@perexg perexg closed this Aug 7, 2014
@dreamcat4
Copy link
Contributor Author

For completeness, another commit by BtbN has abandoned changes for newer ffmpg version. Possibly untested or broken.

https://github.com/BtbN/tvheadend/compare/ffmpeg-2.1

He said it segfaulted however.

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

Successfully merging this pull request may close these issues.

None yet

2 participants