How mux mpg format (MPEG-2 codec) and ac3 format (AC3 codec) in AVI container.
SOLUTION:
Better is make DVD (mpeg2 (HCEnc) & ac3/dts (eac3to)) with DVDAuthorGUI.
+ Reply to Thread
Results 1 to 21 of 21
-
Last edited by Mark22; 16th May 2015 at 09:23.
-
Thou shalt not abuse.
You may be able to multiplex MPEG-2 video into AVI (despite the AVI container not supporting some features of MPEG-2 videos, like B frames), but you won't easily find a VfW codec or DirectShow filter recognizing this format in AVI, because it is very uncommon. MPEG-2 video belongs in an MPEG Program Stream or Transport Stream. Maybe in Matroska, because this is a universal container supporting a lot of different formats.
What kind of reason would there be to multiplex MPEG-2 video in AVI? Would you try to edit it in VirtualDub? ... Wrong decision. Editing MPEG-2 video requires different tools, not VirtualDub. -
ffdshow includes both DirectShow and VFW "MPEG in AVI" decoders.
Here's an example ffmpeg batch file that can remux MPEG2+AC3 from a MPG file into an AVI file:
Code:"c:\program files\ffmpeg\bin\ffmpeg" -i %1 -vcodec copy -acodec copy "%~d1%~p1%~n1.avi"
The bigger issue is why you want to do this as MPEG2 video in an AVI container is somewhat unusual and many programs can't handle it. -
I wonder why you'd do this ... well, considering the previous responders all know a lot more than I do, I should be wondering too.
Do you have some device that says it accepts .avi files? Just putting mpeg2 and ac3 streams in an avi file won't work in that case. Avi is just a container. It's the audio/video formats that are important. Unfortunately the docs for devices often aren't clear on this. If a device wants .avi files you should use divx or xvid video and mp3 audio generally. -
Yes, the MPEG Program Stream container (normally named with ".MPG") is pretty widely supported.
-
How to mux .mpg and .ac3 to .vob or .mpg? - Simple stream copy video and audio to container
Which program to use? -
To be picky: AC3 in an MPEG Program Stream would possibly not be recognized if it wasn't usual on DVD Video. Without the additional DVD specs, it would just be a substream in the "Private Stream 2" and thus be ignored by software which only and strictly supports MPEG specs, as Dolby Digital does not belong to MPEG. But now that DVD Video is so common, most MPEG PS demuxers will check for PS2 substreams, even if there is no whole DVD structure.
I'd like to add ProjectX.jar and the "ancient" bbMpeg to software which possibly does that. But even IfoEdit could be used to "author" a minimalistic DVD, if the material is mostly DVD Video compliant (IfoEdit doesn't check it very reliably). -
"DVD players" are only supposed to play "DVD Video" discs. They are not expected to play anything else; if they do, you are lucky.
Regarding "an application not supporting a format": First learn to separate a filename extension from a file format. Files with the same format may have several different extensions. Files with the same extension may have different formats. Of course, Imago supports MPEG-2 video. It may support it only as elementary stream though, not already multiplexed, which may be solved by demultiplexing it before multiplexing. And it may support it only with one extension, but not another, which could be solved by simply renaming the filename extension.
Only the filename extension tells you nothing about the file format. MediaInfo does, instead. -
You can do it with MPEG Video Wizard DVD 5.0.
-
Last edited by Mark22; 30th Nov 2014 at 07:56.