Herong's Tutorial Notes on CD/DVD
Dr. Herong Yang, Version 2.14

Demuxing (Demultiplexing) Data Streams in Movie VOB Files

This section provides a tutorial on how to demux or demultiplex audio or video streams in a movie VOB file with 'vStrip'.

The next test I did was to demux (demultiplex) an audio or video stream from a movie VOB file with vStrip using 4 command options.

  • "-d": Turn on the demux mode.
  • "-oFile": Save output to a file.
  • "-!": Strip everything.
  • "0xnn": Hex value of a stream ID.

1. Run vStrip command to demux the video stream out of the sample VOB file:

C:\>cd \temp

C:\temp>\local\vStrip\vStrip dolby-bestsound.vob 
   -! -d -ovideo.mpg 0xe0

Demux-Mode enabled.
All remapping disabled.
Found 0xBF = Private 2 [@LBA 0]
Saving 0xE0 = Video 0 [PTS 0:00:00.220 @LBA 1]
  Width = 704
  Height = 576
  Aspect-ratio = [2] 4:3 display
  Frame-rate = [3] 25 fps
Found 0xBD = Private 1, sub 0x80 [PTS 0:00:00.220 @LBA 62]
Found 0xBE = Padding [@LBA 198]

Summary:
MPEG Packs = 32290
System headers = 110
Private 1 packets = 1457, total bytes = 2938178
  Sub 0x80 packets = 1457, total bytes = 2938178
Padding packets = 6353, total bytes = 12726315
Private 2 packets = 220, total bytes = 219780
Video 0 packets = 24481, total bytes = 49188154

2. Test the video stream file, which is in MPG (MPEG) format, with MPlayer. It plays well. But of course, there is no sound.

3. Run vStrip command to demux an audio stream out of the sample VOB file with the stream ID of 0xBD and the sub stream ID of 0x80:

C:\temp>\local\vStrip\vStrip dolby-bestsound.vob 
   -! -d -oaudio.xbd 0xbd 0x80

Demux-Mode enabled.
All remapping disabled.
Found 0xBF = Private 2 [@LBA 0]
Found 0xE0 = Video 0 [PTS 0:00:00.220 @LBA 1]
  Width = 704
  Height = 576
  Aspect-ratio = [2] 4:3 display
  Frame-rate = [3] 25 fps
Saving 0xBD = Private 1, sub 0x80 [PTS 0:00:00.220 @LBA 62]
Found 0xBE = Padding [@LBA 198]

Summary:
MPEG Packs = 32290
System headers = 110
Private 1 packets = 1457, total bytes = 2938178
  Sub 0x80 packets = 1457, total bytes = 2938178
Padding packets = 6353, total bytes = 12726315
Private 2 packets = 220, total bytes = 219780
Video 0 packets = 24481, total bytes = 49188154

4. Try to play the audio file with MPlayer. But MPlayer fails to detect the file format.

Sections in This Chapter

Downloading and Installing vStrip

Ripping Off VOB Files from DVD with vStrip

Listing Data Streams in Movie VOB Files

Demuxing (Demultiplexing) Data Streams in Movie VOB Files

Splitting Large Movie VOB Files with vStrip

Dr. Herong Yang, updated in 2007
Demuxing (Demultiplexing) Data Streams in Movie VOB Files