Comments (7)
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.
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.
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 resultingly2video.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.
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.
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.
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 withffmpeg = 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.
Debian switched to FFmpeg again in 2015, with Stretch (released in 2017).
from ly2video.
Related Issues (20)
- cli option --videoDef not used HOT 1
- --scroll-notes missing int conversion HOT 1
- New Release? HOT 2
- Error: Failed to parse ly2video line HOT 6
- ERROR: Didn't find any notes HOT 23
- Fonts can be less painful
- beatmaps
- Work better with Windows HOT 4
- Q: Getting Line Breaks into class TimeCode HOT 15
- Replace TiMidity++ with FluidSynth HOT 1
- ly2video.py referenced in readme is not included HOT 1
- PIL is dead and uninstallable from pip HOT 2
- ly2video, is it still usable? HOT 1
- Switch to modern Pillow version HOT 2
- Suggestion: Virtual keyboard HOT 1
- Video frozen for the last part HOT 4
- Dockerfile for ly2video HOT 1
- An AUR dependency does not exist HOT 1
- Support for alpha background HOT 1
- midi file extension not honored / misleading error message HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ly2video.