brarcher / video-transcoder

Android app for video and audio transcoder, based on FFmpeg
GNU General Public License v3.0
483 stars 57 forks source link

Multiplexing separate video + audio #31

Open PacoBell opened 6 years ago

PacoBell commented 6 years ago

Some videos (i.e. WebM from YouTube) come as separate video and audio files. I would like this app to be able to mux in any audio track.

brarcher commented 6 years ago

I think this could be a good idea. Presently Android's VideoView is used to provide a preview of the video. That does not support separate audio and video streams. A different preview mechanism would need to be used. In addition, there would need to be configurations for video/audio offsets in case the user does not want them starting at the same time.

I'll probably not pursue this change myself, but if someone else were interested I could help with reviews.

phuyuk commented 6 years ago

Merging mp4 and m4a from Youtube downloads would be super-useful - for me, anyway. The higher resolution streams are frequently delivered as separate video and audio.

The bundled FFMPEG executable is handling the task very nicely (... -acodec copy -vcodec copy .... ). I've merged nearly 40 Youtube downloads in tbe past week (without offsets). Aside from the command line interface, it's fabulous. So, +1.