This project has moved and is read-only. For the latest updates, please go here.

removing comercials only

Jan 22, 2013 at 6:34 PM

I am using WMC as a pvr and only want to remove the commercials, not  necessarily re encode. Is there a way to do this using MCEBuddy? Great job people!

Thanks,

Tool

Jan 22, 2013 at 9:05 PM

You can try the TS from WTV/DVRMS/TS or the WTV Unprocessed profiles. If you original video is MPEG2, then using the profiles with Copy encoder will remove commercials without recoding them.

Jan 22, 2013 at 9:10 PM

Thanks for your reply. I guess I have a lot of reading to do to understand your reply and implement what is needed.

Jan 22, 2013 at 9:20 PM

You can simply start by selecting one of these 3 profiles from the drop down list in the Conversion Task options from depending on what file type you're looking at:

1. TS from WTV/DVRMS/TS - which will create a TS files

2. WTV Unprocessed - which will create a WTV file

3. AVI MPEG2 - which will create a AVI file

Jan 22, 2013 at 10:23 PM

Just going thru my setup with the same goal, to 'just remove the commercials' in WMC 7. 

 I suspect you want the WTV Unprocessed option.  The AVI option implies re-encoding,  AVI and TS files show up in the Media Library,  so far I found that only WTV and DVRMS show up in Recorded TV.

I do have a question as I am using the WTV Unprocessed option with the same goal but I believe it is re-encoding my mpeg2 audio into ac3 audio, which is OK within WMC, but there is an issue when accessing media center via my WD TV Live Plus which has a known problem with the ac3 encoding and I get no sound.   I know it works with the original audio encoding.

Looking in profiles.conf and at the [WTV Unprocessed] profile, I see the following lines:

ffmpeg-audio=-acodec ac3 -ab 192k
ffmpeg-audioac3=-acodec ac3 -ab 384K

which I believe are causing this re-encoding. 

What would I change them to, to retain the original audio encoding?  I believe was the original question and drills into the suggestion to use the 'Copy encoder'?

 

 

Jan 23, 2013 at 3:01 AM

First the AVI MPEG-2 does not recode, actually if uses a -vcodec copy so it essentially copies the video stream but recodes the audio stream to keep it in sync.

However as I'm writing this I'm creating a new AVI MPEG2 profile for the next 2.3.12 beta release tomorrow which will use the copy encoder

 

Regarding the WTV unprocessed: this is the latest profile as per the BETA release.

 

[WTV Unprocessed]
Description=Creates WTV (MPEG-2) files by copying the video directly. It does not resize, remove black bars, deinterlace your videos or select audio language. Use this if you have high quality HD recordings which don't need processing.
order=copy,ffmpeg
copy-remuxto=.wtv
copy-audiodelay=skip
ffmpeg-general=-threads 0
ffmpeg-video=-ss 3 -vcodec mpeg2video -qscale 2 -map 0:a -map 0:v
ffmpeg-audio=-acodec ac3 -ab 192k
ffmpeg-audioac3=-acodec ac3 -ab 384K
ffmpeg-ext=.wtv
ffmpeg-audiodelay=skip
FixedResolution=true
SkipCropping=true

if you notice the order of encoders are copy followed by ffmpeg. ie. if copy fails then it falls back to ffmpeg

 

the Copy encoder is a special encoder with no audio/video parameters so essentially it just moves the input file into a WTV format after removing commercials. Please note that this profile only works correctly in the latest BETA release due to a bug.

 

the FFMPEG is backup, which is where the AC3 codec comes into the picture. This helps maintain audio video sync but if you'd like you can replace that with -acodec copy  to just copy over the original stream without recoding it.

Jan 26, 2013 at 8:06 PM

Thanks for your responses! I have it working removing commercials using show analyzer, with the audio out of sync after the first few minutes, and the video quality is degraded. Not a complaint just an observation. I will keep reading and figure this out.

Jan 29, 2013 at 8:01 AM

try the latest 29th jan BETA release