Comments (5)
Figured out how to convert audio to video. Seems like you need to add an image, and then loop over it.
eg
ffmpeg -loop 1 -i 20180919_053412_0.jpg -i test-audio.m4a -shortest short-outputfile.mp4
and using fluent ffmpeg
/**
* Converting this ffmpeg compand into a fluent-ffmpeg one to make a module out of it
* ffmpeg -loop 1 -i 20180919_053412_0.jpg -i test-audio.m4a -shortest short-outputfile.mp4
*/
const ffmpeg = require('fluent-ffmpeg');
let videoSrc = 'test-audio.m4a';
let imageSrc = '20180919_053412_0.jpg';
let outpuFileName= 'short-outputfile-fluent.mp4';
// multiple inputs https://github.com/fluent-ffmpeg/node-fluent-ffmpeg#mergetofilefilename-tmpdir-concatenate-multiple-inputs
ffmpeg(videoSrc)
.input(imageSrc)
.loop()
.output(outpuFileName)
.withVideoCodec('libx264')
// shortest is used to avoid looping indefinitely
.addOptions(['-shortest'])
// .withVideoBitrate(1024)
.withAudioCodec('aac')
// when done executing returning output file name to callback
.on('end', function() {
console.log(`Done processing ${outpuFileName}`);
// callback(outputName);
})
.run();
more details here https://trello.com/c/AjGPSIvf
Need to decide if just use a default black image, or whether to allow to supply an image?
and/or add captions to the file? wave form? don't relly want to "re-invent" audiogram... so something simple, and modular would be good. Suggestions welcome.
- Need to make this into a self contained module
- add to autoEdit
from autoedit_2.
Alternatively if going down the generate an audio wave form video from audio file, then no need to do the looping of the image. (could just add captions)
This command seem to work
ffmpeg -i test-audio.m4a -filter_complex "[0:a]showwaves=s=1920x1080:mode=line,format=yuv420p[v]" -map "[v]" -map 0:a -c:v libx264 -c:a copy output-wave.mp4
see video example of effect https://youtu.be/jrY9h9OFBCM
from autoedit_2.
Next steps considering to add support for audio
- waveform module (see above) - for audio only
- caption module (see above) - for audio and video, for so called "silent video" on social media (twitter in this casE)
- put it all together and add to autoEdit
from autoedit_2.
made some improvement on tweet-that-clip
npm module to enable functionalities discussed above. pietrop/tweet-that-clip#1.
Got adding support for burnt in captions and audio (with animated wave form) to work.
However going to try and do some refactoring/cleaning up before merging to master.
It will then be possible to update the module in autoEdit, and try and integrate it (eg generating an srt from the clip selection burn in the captions etc..)
Suggestions and help welcome :)
from autoedit_2.
updated to TweetThatClip 2.0.1 and started integration
- UI in transcription view for audio / video select (while figure out how to do it programmatically, in a reliable way).
- Add support for captions - convert words in timecode segment, into srt in tmp folder, and pass path as param. to burn caption in tweet, audio or video.
from autoedit_2.
Related Issues (20)
- how can add speaker into my transcription with IBM HOT 3
- wich is size max for upload for watson HOT 2
- when will update this to version3?
- I'm not able to download AutoEdit 2 text
- No option to stop or delete after starting transcription HOT 1
- SRT/VTT Add option without Transcriptions HOT 1
- Stuck in "Demo Mode" with CEP Panel HOT 2
- Where does autoEdit save transcription/PaperEdit sessions? HOT 5
- Is there a web based version of this editor? HOT 6
- Update User Manual new IBM credentials info
- Update autoEdit to IBM credentials to `iam_apikey` and `url`
- Update autoEdit to new IBM credentials system
- Offline transcription on Linux and Windows HOT 8
- Min height for video element
- BBC News Labs adapter file name issue
- check links in product page www.autoEdit.io HOT 1
- .srt captions process endlessly (Windows 10) HOT 5
- i cant install in windows 10 HOT 1
- i want to contribute with translation to spanish UI HOT 1
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 autoedit_2.