Code Monkey home page Code Monkey logo

Comments (7)

aspiers avatar aspiers commented on August 19, 2024

Thanks a lot for the info; however I'm rather puzzled, since I seem to have a newer ffmpeg than you and there is no deprecation:

ffmpeg version 1.0.1 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jan 20 2013 21:32:11 with gcc 4.7 (SUSE Linux)

Any ideas?

from ly2video.

WebDrake avatar WebDrake commented on August 19, 2024

I looked into this in more depth, and it seems like it's one of those lovely fork wars that crop up from time to time. The reason for the Ubuntu deprecation message is because the ffmpeg in Ubuntu/Debian is an old version of ffmpeg included in the libav distribution for backwards compatibility: see,
http://blog.pkh.me/p/13-the-ffmpeg-libav-situation.html
https://bugs.launchpad.net/ubuntu/+source/libav/+bug/939863

So, it's a Debian/Ubuntu ffmpeg package issue rather than an ffmpeg issue in general, but it may be that up-to-date ffmpeg is not being offered on other distros either.

In light of that, it looks like there may be a need to support both converters if ly2video is to be successfully packaged across distros. Which one is preferred for use might be made to depend on ffmpeg version number and/or on a config setting (e.g. if ffmpeg > 0.8.5 or if avconv is not available, then use ffmpeg; else use avconv).

from ly2video.

aspiers avatar aspiers commented on August 19, 2024

Sounds good. I'd be delighted to accept a pull request adding support for avconv ;-) It should be easy for you to figure out the correct avconv invocation:

  • Run ly2video with the -k option
  • cd to the resulting ly2video.tmp/notes directory
  • Experiment with avconv until you have a command-line which can build a video out of all the .png files in that directory

Once we know the right invocation, adding the appropriate logic to ly2video to use it where needed should be trivial.

from ly2video.

WebDrake avatar WebDrake commented on August 19, 2024

I'll see what I can do. Python isn't one of my languages but I guess this should not be too hard in and of itself.

from ly2video.

aspiers avatar aspiers commented on August 19, 2024

I've changed the issue title and description, because it seems that ffmpeg being deprecated is wholly untrue (thanks for the useful links above which explain this), and I don't want this project to help spread that notion.

from ly2video.

WebDrake avatar WebDrake commented on August 19, 2024

Yes, the deprecation is not of FFmpeg per se, but the fact that that package is no longer being supported in Debian (and hence, its derivatives). Fortunately the two programs, ffmpeg and avconv, seem to have identical APIs. As a temporary workaround, the following seems to suffice:

  • in the line in ly2video.py which reads, ffmpeg = options.winFfmpeg + "ffmpeg", replace this with ffmpeg = options.winFfmpeg + "avconv"
  • In the function callFfmpeg, there is a line that reads, "-i", wavPath,. Immediately after this, add another entry: "-c:a:1", "libmp3lame" (I think "-acodec", "libmp3lame" may also work).

The first of these ensures that ly2video calls avconv and not ffmpeg, and the second ensures that it is using the correct audio codec. "-c", "copy" will also work, but will embed a WAV file into the video, with all the corresponding implications for size.

from ly2video.

Stemby avatar Stemby commented on August 19, 2024

Debian switched to FFmpeg again in 2015, with Stretch (released in 2017).

from ly2video.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.