Page 1 of 1

Export as video, mux audio to video, work like ffmpeg gui

Posted: Thu Nov 06, 2014 12:59 am
by vin
Suggestion at evaluation that would be great for video-audio editing

-export as video file feature: when use ffmpeg plugin, audacity option for directly save audio to video file using ffmpeg.exe, in other words muxing feature working like ffmpeg gui.
feature with "export as video" with option for select output video container format supported by ffmpeg (mkv, mov, mp4, avi, ..), simply take video stream from loaded source file and mux audio track loaded in audacity,
and additional feature for mux loaded audio to a selected video file (not from video source file)

-muxing feature change/add audio to video (erase and overwrite audio track if present): feature for add audio track and for change current audio track with loaded in Audacity

-feature add audio to a video like second audio stream, without erase/overwrite current audio stream on video

This feature make all in one video-audio editor working fast and easy without need other tools and muxers, without working from command line, using ffmpeg integrated "gui" in export options

Re: Export as video, mux audio to video, work like ffmpeg gu

Posted: Thu Nov 06, 2014 2:31 am
by kozikowski
Will you be here on the forum supporting all those formats? Keeping in mind that Audacity runs on and is supported for all three popular computing platforms.

"My Audacity video export will not open in Apple Final Cut Pro. What could be wrong?"

It's all we can do to support sound services, but it is an interesting idea.

Koz

Re: Export as video, mux audio to video, work like ffmpeg gu

Posted: Thu Nov 06, 2014 12:26 pm
by vin
No it's a different way to work, It's only a ffmpeg muxing using ffmpeg features, nothing new to implement in Audacity core is needed or new formats to add, this feature dont' really open video stream in Audacity, but only work mux-remux audio when export using only ffmpeg command line like a generic ffmpeg GUI, ffmpeg exist for all platforms and think command line are exactly the same and compatible for all versions.

For add these features I think will be necessary only add "video export/muxing options" that use probably only 2-3 ffmpeg command line (copy audio stream and muxing), so probably it's fast and easy to add this feature/gui for export/muxing.

Thanks for evaluation

Re: Export as video, mux audio to video, work like ffmpeg gu

Posted: Fri Nov 07, 2014 10:51 am
by vin
Add this, for already made suggestion for add video playback feature (for easily edit/synch audio with video), this great feature maybe can be added more easily using multiplatform libavcodec libs

Re: Export as video, mux audio to video, work like ffmpeg gu

Posted: Fri Nov 07, 2014 11:18 am
by Gale Andrews
If you know the FFmpeg muxing commands to use, and it does not require having the video stream open, have you tried it? See Exporting to an External Program.

If it works, please show us the steps and the exact commands you use.


Gale

Re: Export as video, mux audio to video, work like ffmpeg gu

Posted: Fri Nov 07, 2014 4:25 pm
by vin
Read a bit of documentation https://www.ffmpeg.org/ffmpeg-all.html then tried with this command line from Audacity Export External program, but don' know if it's a "clean" command line:

ffmpeg.exe -i c:test.avi -i - "%f" -map 0:v -map 1:a -codec copy c:out.mkv

The target file out.mkv is muxed correctly, take video stream from test.avi and audio stream from Audacity, so this test it worked.

But from Audacity Name file box is it necessary use a file name different from output file name used in ffmpeg command line or appear an error and no file(s) are generated.

So finally there are 2 files generated instead one, one by ffmpeg with correct results, and second file named from File Name audacity box that produce video file like original source file (same audio and video streams). dont' know if may depend from not correct ffmepg command line used or is it normal.

Finally add this feature with GUI seem simple, just seems really only add "Export to video" for mux audacity audio with source video stream file (source loaded video file), and "Mux to video" for mux audacity audio with another video stream selectable by user interface (not using loaded video file).

Unfortunately working from command line every time is boring and wastes time, so making a menu/gui feature for this would be great.

Certainly if in the future can be possible a basic video play in synch with audio will be icing on the cake.

Anyhow thanks for support and evaluation