Hello

It's been quite some time since I was brainstroming around this forum etc to get my workflow going and I build a pretty good one.


I thought I messed up since in Sony Vegas it reports that i have two audio streams, i think it just makes up the "sorround downmix" all by it self.

I didn't start any project with the clips yet but I was trying to research the web how to properly do downmix, and was wondering if you guys think the auto-downmix from Vegas is OK or is this a more complex subject and I would have to learn all the mixing stuff ?

---------------------------------------------------------------------------

But another thing that popped up is this weird MENU entry in MEDIAINFO after the clips are extracted, but FFMPEG doesn't display any more streams than video and audio (5.1) and i've checked the MAPpings and seems to be all fine to me, but I definitely don't know everything with FFMPEG. I'm not sure if this is connected to the vegas displaying more

I do understand the audio config, yes I also have set up 5.1 with Vegas 13 in which I attempted my own cutom downmix but didn't guite got the feeling of it, there just seems a big difference between the plain 5.1 and the auto-downmix, I fear that auto downmix is missing some audio but the 5.1 obviously sounds better so im not sure which one to pick.

I was just wondering if this is a big deal or not or how, now that I have done the hardwork, redoing the clip extraction is very easy and fast now, it's all automated in batches.

The process:
1. The VOBs are CONCAT with this command:

Code:
ffmpeg -loglevel verbose -i "concat:VTS_01_1.VOB|VTS_01_2.VOB|VTS_01_3.VOB|VTS_01_4.VOB" -map 0:1 -map 0:2 -c copy -threads 8 -f mpegts VTS_01_CON_INTERMEDIATE.mpg
So this mapping here should only copy video and audio1 (which is english 5.1)

2. The Intermediate is further processed to MPG:
Code:
ffmpeg -loglevel verbose -i VTS_01_CON_INTERMEDIATE.MPG -map 0:0 -vcodec mpeg2video -b:v 3000k -minrate 2000k -maxrate 6000k -bufsize 500k -vf "scale=864x486,fieldmatch" -map 0:1 -acodec copy -threads 8 -f mpegts VTS_01_FIN_DVDx.mpg
3. Then the clips get extracted from ...FIN...mpg with:
Code:
ffmpeg -loglevel verbose -i VTS_01_FIN.mpg -ss 00:02:00 -to 00:01:00 -map 0:0 -map 0:1 -c copy -f mpegts SG1_S0E0_#_001.mpg
///////////////////////////////////////////////
This is the MediaInfo from VOB1
Code:
General
Complete name                            : C:\SG-1-MPG-TMP\VTS_01_1.VOB
Format                                   : MPEG-PS
File size                                : 1 024 MiB
Duration                                 : 40mn 2s
Overall bit rate mode                    : Variable
Overall bit rate                         : 3 576 Kbps

Video
ID                                       : 224 (0xE0)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : Variable
Duration                                 : 40mn 2s
Bit rate mode                            : Variable
Bit rate                                 : 2 673 Kbps
Maximum bit rate                         : 9 802 Kbps
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan order                               : 2:3 Pulldown
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.323
Time code of first frame                 : 00:59:59;00
Time code source                         : Group of pictures header
Stream size                              : 765 MiB (75%)

Audio #1
ID                                       : 189 (0xBD)-128 (0x80)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Muxing mode                              : DVD-Video
Duration                                 : 40mn 1s
Bit rate mode                            : Constant
Bit rate                                 : 448 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 128 MiB (13%)

Audio #2
ID                                       : 189 (0xBD)-129 (0x81)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format profile                           : Dolby Digital
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Muxing mode                              : DVD-Video
Duration                                 : 40mn 1s
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 55.0 MiB (5%)

Audio #3
ID                                       : 189 (0xBD)-130 (0x82)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format profile                           : Dolby Digital
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Muxing mode                              : DVD-Video
Duration                                 : 40mn 1s
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 55.0 MiB (5%)

Text #1
ID                                       : 189 (0xBD)-32 (0x20)
Format                                   : RLE
Format/Info                              : Run-length encoding
Muxing mode                              : DVD-Video
Duration                                 : 39mn 58s
Delay relative to video                  : 1s 1ms

Text #2
ID                                       : 224 (0xE0)-CC3
Format                                   : EIA-608
Muxing mode, more info                   : Muxed in Video #1
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)

Menu
----------

//////////////////////////////////////////////
This is the MediaInfo from INTERMEDIATE
Code:
General
ID                                       : 1 (0x1)
Complete name                            : C:\SG-1-MPG-TMP\VTS_01_CON_INTERMEDIATE.mpg
Format                                   : MPEG-TS
File size                                : 3.83 GiB
Duration                                 : 2h 54mn
Overall bit rate mode                    : Variable
Overall bit rate                         : 3 137 Kbps

Video
ID                                       : 256 (0x100)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : Variable
Codec ID                                 : 2
Duration                                 : 2h 54mn
Bit rate mode                            : Variable
Bit rate                                 : 2 529 Kbps
Maximum bit rate                         : 9 802 Kbps
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan order                               : 2:3 Pulldown
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.305
Time code of first frame                 : 00:59:59;00
Time code source                         : Group of pictures header
Stream size                              : 3.08 GiB (81%)

Audio
ID                                       : 257 (0x101)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : 129
Duration                                 : 2h 54mn
Bit rate mode                            : Constant
Bit rate                                 : 448 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 559 MiB (14%)

Text
ID                                       : 256 (0x100)-CC3
Menu ID                                  : 1 (0x1)
Format                                   : EIA-608
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 2h 54mn
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)

Menu
ID                                       : 4096 (0x1000)
Menu ID                                  : 1 (0x1)
Duration                                 : 2h 54mn
List                                     : 256 (0x100) (MPEG Video) / 257 (0x101) (AC-3)
Service name                             : Service01
Service provider                         : FFmpeg
Service type                             : digital television
----------

//////////////////////////////////////////////
This is the MediaInfo from FINAL
Code:
General
ID                                       : 1 (0x1)
Complete name                            : C:\SG-1-MPG-TMP\VTS_01_FIN_DVDx.mpg
Format                                   : MPEG-TS
File size                                : 4.86 GiB
Duration                                 : 2h 54mn
Overall bit rate mode                    : Variable
Overall bit rate                         : 3 987 Kbps

Video
ID                                       : 256 (0x100)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@High 1440
Format settings, BVOP                    : No
Format settings, Matrix                  : Default
Format settings, GOP                     : Variable
Codec ID                                 : 2
Duration                                 : 2h 54mn
Bit rate mode                            : Variable
Bit rate                                 : 3 337 Kbps
Maximum bit rate                         : 6 000 Kbps
Width                                    : 864 pixels
Height                                   : 486 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 29.970 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.265
Time code of first frame                 : 00:00:00:00
Time code source                         : Group of pictures header
GOP, Open/Closed                         : Open
GOP, Open/Closed of first frame          : Closed
Stream size                              : 4.07 GiB (84%)

Audio
ID                                       : 257 (0x101)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : 129
Duration                                 : 2h 54mn
Bit rate mode                            : Constant
Bit rate                                 : 448 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 559 MiB (11%)

Menu
ID                                       : 4096 (0x1000)
Menu ID                                  : 1 (0x1)
Duration                                 : 2h 54mn
List                                     : 256 (0x100) (MPEG Video) / 257 (0x101) (AC-3)
Service name                             : Service01
Service provider                         : FFmpeg
Service type                             : digital television
-----------------------------



////////////////////////////////////////////////////////////
And this is the MediaInfo from Clip + Vegas Stereo Downmix Thingy


the early ones are stereo only so i put that in for comparison
-----------------------------



////////////////////////////////////////////////////////////
This is the Intermediate Batch Process

-----------------------------



////////////////////////////////////////////////////////////
And the Final Batch Process



----------------
-----------------
----------------


So the idea was If I can do a proper and high-quality downmix (if this even exists) with FFMPEG , so I would leave the 5.1 and an added 2 ch audio stream right there in the files so it would be easier to just pick which one without some Sony Vegas automation. And I want to get rid of that MENU stream if it's not some bug by MediaInfo.


Any ideas? I was out of this for a few months so kind of getting back since I have like 30% to do and need to finish this to release some space on my SSD, i will get back to it but i just posted this tread to get me started again.