WTV with comskip doesn't preserve surround sound

Feb 12, 2013 at 4:53 AM
I want to convert my wtv files to mp4 while cutting commercials with comskip while preserving the 5.1 audio track. It works without comskip just fine. Enabling comskip, I no longer get surround sound. My solution as of now is to run two conversions. The first one removes commercials and outputs a WTV. I then use the commercial free WTV to run conversion to MP4. Doing this, I get a commercial free MP4 with 5.1 sound. I'd like to skip the first conversion and just go straight to MP4. Anyway of doing this in one conversion with comskip enabled? I've tried both MEncoderEDLSkip=true and CutMP4Alternate=true to no avail. As I mentioned, it works without comskip, but that is less ideal. Any insight would be helpful.

First profile is WTV Unprocessed

Here's the second profile.
[MP4 Fast-modified]
Description=Fast MP4 (H.264/AAC) conversion. Fastest conversion but lower quality, more sensitive to errors in the source video.
order=handbrake
handbrake-general=--strict-anamorphic --modulus 2 --verbose=2 -f mp4 --decomb --detelecine -4
handbrake-video=-e x264 -b 1500 -x -r 23.976 --cfr cabac=0:ref=2:bframes=1:weightp=0:8x8dct=0:trellis=0:subq=6:me=hex:b_adapt=0:threads=auto
handbrake-audio=-a 1,1 -E faac,copy -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-fallback ffac3
handbrake-audioac3=-a 1,1 -E faac,copy -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-fallback ffac3
handbrake-ext=.mp4
handbrake-audiodelay=skip
Coordinator
Feb 12, 2013 at 12:04 PM
Post the logs of the conversion when you get no surround sound. You can upload them to the MCEBuddy server.
Feb 12, 2013 at 5:59 PM
Here are the logs. I did one with and without comskip for comparison.
MCEBuddy Logs - No Surround + Surround
Coordinator
Feb 12, 2013 at 6:22 PM
From what I see you're using a custom profile, they key line here being:

-E faac,copy -B 160,0 -6 dpl2,auto -R Auto,Auto -D 0,0 --gain=0,0 --audio-fallback ffac3

You're taking teh 1st audio track (which happens to to be 5.1) and the encoding it to stereo and ALSO copying it a second 5.1 stream. very cool indeed and nicely done.

the issue is later on when the file is being cut after encoding using mp4box, mp4box is not able to recognize the 2nd steram:
--> IsoMedia import - skipping track ID 3 (unknown type 'ac-3')

Hence you're not getting 5.1 audio with comskip.

There are 2 way to fix this, for BOTH you HAVE to upgrade to the latest BETA version of MCEBuddy (2.3.11 doesn't support either)
  1. with the latest BETA version MP4Box has a few fixes, it should resolve this problem
  2. If it doesn't add the following lines to your profile
    PreConversionCommercialRemover=true
    UniversalCommercialRemover=true
The first one will force the commercials to be removed before conversion
the second will force mcebuddy to use a special method will preserves multi channel audio
Feb 12, 2013 at 7:24 PM
Joining early release to try out the beta. I'll let you know if it fixes the issue. Thanks.