video_export_processing
video_export_processing copied to clipboard
Audio-source
Hi!
Great library. However, I would really like an option to play audio files "on the fly". That would make it possible to use the library as a live-streamer (by the broadcasting the .mp4 to YouTube or Facebook live).
I guess it would be a bit complex to implement the option to play audio files whenever one wants to and have it added to the output, but... maybe a smart solution would be the possibility to choose "system audio" as source? So that it just captures the audio of the entire computer and uses that for the mp4-audio. Then one could play audio-files whenever in processing and it will be added to the video. Maybe there's an easy way to implement this, if ffmpeg has this feature already?
Thanks for any help! :-)
- Jonas
Hi hi,
What the library currently does to add sound is a two pass encoding. First it makes a video without sound, and then attaches an audio file to that video.
I don't currently have the time to work on this. But maybe it's already possible with the latest changes I made, because now you can tweak the command line options sent to ffmpeg, so maybe you could add some arguments to ffmpeg to grab the system audio in real time. I don't know if this would work.
Here are some examples: https://trac.ffmpeg.org/wiki/Capture/Desktop
I suggest you first make it work using ffmpeg, without Processing, by fiddling around with the ffmpeg arguments, and if you make that part work then you can probably make use of those arguments with this library.