I'm not sure if I'm using the right word when I say "demux".
Basically, I want to extract the audio & video out of normal video files.
I don't want these components to be re-encoded.
They should be "passthrough", "untouched", "lossless", etc.
I know there's a "Video De/Multiplexers" section here at VideoHelp.
But many of these programs seem to be limited to a specific video format.
Is there any program that can "demux" various file formats? (MKV, Mp4, AVI, TS, etc.)
ffmpeg
Demux audio: -vn -acodec copy
Demux video: -vcodec copy -an
Last edited by videobruger; 11th Oct 2017 at 06:22. Reason: Addendum
Does anyone know how to create a "BAT" file for these commands?
Specifically, I'd love a BAT file that - when executed - could batch process all files in the same folder.
Preferably, it should be portable & name the extracted audio/video automatically.
EDIT: I looked this up, and every batch script out there seems require you output to a fixed format. Wondering why there isn't a script that simply extracts the audio or video to its natural format.
Last edited by jaibubwan; 11th Oct 2017 at 06:50.
Try tsMuxeR
for mp4
Code:mp4box -raw * INPUT.mp4
Rather than trying for one program that does it all, use the mkvmerge family of programs for MKV files. AVI demux for AVI. TSMuxer for TS files. Another work around would be to wrap all of the various file formats in MKV using MKVMerge GUI then use gMKVExtract to extract any streams you want... I have a folder on my computer called Video Tools that contains shortcuts to all the video processing programs I have. The majority are public domain or shareware and a few purchased. Quick and easy to deal with whatever format. For my Media Player (Popcorn A-500) MKV is the best solution so I put all my rips into a MKV container.
SONY 75" Full array 200Hz LED TV, Yamaha A1070 amp, Zidoo UHD3000, BeyonWiz PVR V2 (Enigma2 clone), Chromecast, Windows 11 Professional, QNAP NAS TS851
BAT or CMD can be created in plain Notepad - this is just plain text so nothing special is required. https://www.computerhope.com/issues/ch001666.htm
You should check few threads on this forum - https://forum.videohelp.com/threads/385022-Demux-all-audio-streams-with-ffmpeg - this one can be also useful https://evilshit.wordpress.com/2012/09/27/how-to-split-and-demux-a-file-with-ffmpeg/ .
Natural format can loose some information about stream as such it is wise to use some container - mkv is quite flexible.
And in Unix machines shell is quite powerful so it is possible to create script with analysis and automatic selection - on plain Windows this may be a difficult.
Last edited by pandy; 18th Oct 2017 at 04:07.
...
Last edited by pandy; 18th Oct 2017 at 04:07. Reason: please delete