Avidemux Forum

Avidemux => Windows => Topic started by: TCmullet on May 03, 2015, 07:32:02 PM

Title: Demuxing AVIs
Post by: TCmullet on May 03, 2015, 07:32:02 PM
Just the program title implies that it can be done.  I have AVI with video that is h.264 and audio that is pcm.

I've used Avidemux as an editor lots.  But I'm not clear as to the steps for demuxing into the elementary streams.  Can someone please give the steps to demux AVIs, including what extension to give the video file?  I need to be sure the audio-only and video-only streams are a true elementary stream with the correct extensions, and not simply the only stream INSIDE a container.  (We really need default extensions everywhere.)

Title: Re: Demuxing AVIs
Post by: Jan Gruuthuse on May 04, 2015, 05:58:06 AM
Probably the way you need:
load video
Save audio only:
- Menu: Audio: Select Track: leave only one track selected -> [OK]
- Menu: Audio: Save Audio: give name example: Track1
-- for AC3 add extension .ac3
-- for MP2 add extension .mp2

Save video only
- Menu: Audio: Select Track: deselect all tracks -> [OK]
- Leave Video and Audio Output set to [Copy]
Select the container in Output Format:
- AVI Muxer
- MP4 Muxer
- MP4v2 Muxer
- MKV Muxer

RAW: specialist needs, not handled by avidemux afterwards in this format.
extracting the video only to raw:
leave both video and audio output set to [Copy]
set Output Format to [Video Only]
now use save and give it a name, don't add an extension.
The video should be saved with extention .raw
Title: Re: Demuxing AVIs
Post by: zakk on May 04, 2015, 01:00:18 PM
Quote from: TCmullet on May 03, 2015, 07:32:02 PM
and not simply the only stream INSIDE a container.
If you have video and audio then there are 2 streams, obviously.
Title: Re: Demuxing AVIs
Post by: TCmullet on May 05, 2015, 02:50:46 PM
Quote from: Jan Gruuthuse on May 04, 2015, 05:58:06 AM
Probably the way you need:
load video
Save audio only:
- Menu: Audio: Select Track: leave only one track selected -> [OK]
- Menu: Audio: Save Audio: give name example: Track1
-- for AC3 add extension .ac3
-- for MP2 add extension .mp2
Thanks for trying, Jan.

This item makes sense.  And for PCM, I'd give extension .wav.

Quote
Save video only
- Menu: Audio: Select Track: deselect all tracks -> [OK]
- Leave Video and Audio Output set to [Copy]
Select the container in Output Format:
- AVI Muxer
- MP4 Muxer
- MP4v2 Muxer
- MKV Muxer
This doesn't make sense, as you're specifying an output "container", and elementary streams are not "in a container".
Quote
RAW: specialist needs, not handled by avidemux afterwards in this format.
extracting the video only to raw:
leave both video and audio output set to [Copy]
set Output Format to [Video Only]
now use save and give it a name, don't add an extension.
The video should be saved with extention .raw
I'm not sure why you say "specialist needs", as elementary streams are used widely.  MpegVCR demuxes Mpeg program streams (.mpg) into elementary streams (.mpv and .mpa).  It also remuxes elementary streams back into program streams.  Other Mpeg2 demuxers create .m2v and .mp2, which are content-identical to the previous .mpv and .mpa.

Saved with extension .raw?  I've never seen an elementary stream with extension of .raw.  I think I've heard that H.264 elementary streams are supposed to have an extension of .264.

The specialist needs in this case is using DGDecNV, which requires elementary video streams, not .avi.

Is it possible that we are to conclude that AviDemux is not meant to demux .AVIs, but only to internally do so for the purpose of remuxing into a desired output container?  If that's the case, then I'd have to hunt for a program that will successfully and correctly demux .avi and create proper elementary streams from it.

Your thoughts, please?
Title: Re: Demuxing AVIs
Post by: Jan Gruuthuse on May 05, 2015, 03:02:57 PM
I guess when you need extracting streams you would do this with ffmpeg? http://ffmpeg.org/ffmpeg.html#Advanced-options
Title: Re: Demuxing AVIs
Post by: TCmullet on May 05, 2015, 04:54:44 PM
Oh dear.  I"ve always avoided ffmpeg as it is command-line only, and I always have very long file names.

So please tell.  Are you confirming that AVIDemux does not demux AVIs to elementary streams?
Title: Re: Demuxing AVIs
Post by: Jan Gruuthuse on May 06, 2015, 05:01:29 AM
audio: yes
video: see what it produces. I got .raw and could do nothing with that. Perhaps you get a better result at your end.