Jump to content


Latest Posts

Network Help
Forum: The Ettamogah Pub
Last Reply: Raptor (May 19 2013 12:28 AM)
Is this the Resurrection?
Forum: The Ettamogah Pub
Last Reply: paulo (May 18 2013 05:46 PM)
Which USB Dual Tuner will work on Windows 8 x64 with USB3 port?
Forum: Tuners - Windows 8
Last Reply: SmallTimePrankster (May 18 2013 02:34 PM)
Dead HDHomeRun
Forum: Good Bad & Ugly
Last Reply: NickMarkou (May 18 2013 03:40 AM)
New Plugin - MC Message pop-up
Forum: Windows Media Center Plugins & Addons
Last Reply: BrianLewis (May 17 2013 11:45 AM)

Recent Topics


Photo

CCExtractor & SRT File Out Of Sync


  • Please log in to reply
12 replies to this topic

#1 BTJustice

BTJustice

    MC Apprentice

  • Members
  • Pip
  • 21 posts

Posted 09 June 2012 - 08:28 PM

I have been a long time user of the 1.x versions. I decided to try MCBuddy 2.1 Release 9. It took awhile to get the settings the way I like them, but I am almost there. I use NPVR and convert its .TS recordings to .MP4 to save space.

One problem I am having is with CCExtractor and SRT files.

I am using the -ss 10 option so the audio is in sync with the video which appears to work perfectly AFAICT. In MCEBuddy, I enabled EXTRACT CC and sat the OFFSET at -15 which has the subtitles in sync with both the audio and video.

The problem on some videos is after roughly 10 minutes of a video playing, the subtitles start over again from the beginning. I cannot find a reason for this to be happening.

Another problem is if I enable COMSKIP the SRT files are never in sync no matter what offset I use.

Any help getting will be greatly appreciated. Here is my code I am using for NPVR .TS Recordings (it is shown double-spaced here for some reason though it is not actually)...

[NPVR MP4 High Quality]
Description=High profile, high quality 2 pass MP4 (H.264/AAC) conversion.  Takes the most time but produces the best results.
2pass=true
order=mencoder,ffmpeg
mencoder-unsupported=wtv+h264
mencoder-general=-ss 10 -vf pullup,softskip,yadif=0:-1,hqdn3d,harddup
mencoder-video=-ovc x264 -x264encopts bitrate=1000:me=hex:trellis=2:subq=8:partitions=all:8x8dct:me=hex:ref=8:rc_lookahead=50:keyint=25:keyint_min=20:bframes=3:weight_b:level_idc=41:b_pyramid=normal:direct_pred=auto:mixed_refs:deblock=-1,-1:nofast_pskip:nodct_decimate:threads=auto 
mencoder-audio=-oac faac -faacopts br=160:mpeg=4:tns:object=2
mencoder-audioac3=-oac faac -faacopts br=160:mpeg=4:tns:object=2
mencoder-ext=.avi
mencoder-remuxto=.mp4
mencoder-audiodelay=skip
ffmpeg-general=-async 1 -threads 0
ffmpeg-video=-ss 10 -vf yadif=0:-1,hqdn3d -vcodec libx264 -b 1000k -flags +loop -cmp +chroma -deblock -1:-1 -bt 256k -refs 8 -bf 3 -b_strategy 2 -coder 1 -me_method hex -me_range 16 -subq 8 -partitions +parti4x4+parti8x8+partp8x8+partb8x8 -weightb 1 -mixed-refs 1 -8x8dct 1 -g 25 -keyint_min 20 -level 41 -trellis 2 -sc_threshold 40 -i_qfactor 0.71 
ffmpeg-audio=-acodec libvo_aacenc -ab 160k -ac 2
ffmpeg-audioac3=-acodec libvo_aacenc -ab 160k -ac 2
ffmpeg-ext=.mp4
ffmpeg-audiodelay=skip
CommercialSkipCut=true
CutMP4Alternate=true
FixedResolution=true
SkipCropping=true

And mcebuddy.conf...

[Engine]
Tasks=Convert .TS to .MP4
SearchRecords=NPVR
MaxConcurrentJobs=1
LogJobs=True
LogLevel=3
EngineRunning=False
TempWorkingPath=D:\Temp
Locale=en-US
ProcessPriority=Normal
Announcement=
LatestVersion=2.1.9.1
WakeHour=-1
WakeMinute=-1
StartHour=-1
StartMinute=-1
StopHour=-1
StopMinute=-1
DeleteOriginal=True
ArchiveOriginal=False
AllowSleep=True
MinimumAge=0
SendEmail=False


[NPVR]
SearchPath=D:\Recorded TV
SearchPattern=*.ts
[Convert .TS to .MP4]
Profile=NPVR MP4 High Quality
DestinationPath=D:\Recorded TV
DRC=True
VolumeMultiplier=0
QualityMultiplier=1
CommercialRemoval=No
RenameBySeries=False
AltRenameBySeries=False
DownloadSeriesDetails=true
FileSelection=
MetaSelection=
AudioLanguage=
ExtractXML=False
CustomRenameBySeries=
StartTrim=
EndTrim=
ExtractCC=1,1
CCOffset=-15
MaxWidth=720

Edited by BTJustice, 09 June 2012 - 08:53 PM.


#2 Ramit

Ramit

    MC Mentor

  • Members
  • PipPipPipPipPip
  • 505 posts

Posted 09 June 2012 - 11:36 PM

There are a few bugs in the CC Extractor and Comskip in 2.1.9, this will be fixed in the next version.

One of the major issues is that when comskip is enabled and mencoder is used, Mencoder does not exactly follow the EDL files to the exact seconds and actually DRIFTS over time which causes the SRT files to go out of sync.

there are 2 solutions to this for 2.1.9

1. Add MencoderEDLSkip=true to the profiles
2. Change the order from mencoder,ffmpeg to only ffmpeg

I would appreciate if you can upload your sample original video (TS/WTV/DVRMS) to the FTP server in my signature so I can test it with the next release to ensure it's working.

#3 Ramit

Ramit

    MC Mentor

  • Members
  • PipPipPipPipPip
  • 505 posts

Posted 09 June 2012 - 11:42 PM

The subtitles restarting over is a problem I've never seen before. I'll need a copy of the problem original video to debug this.

Also, why are you using:

CommercialSkipCut=true

This will cause the SRT file to go out of sync with the video, it's simple, when CommercialSkipCut=true is defined the EDL file is generated and NOT used to cut the video but the SRT file is CUT in sync with the EDL file which leaves teh SRT file out of sync with teh video.
so again, why is it being set?

#4 BTJustice

BTJustice

    MC Apprentice

  • Members
  • Pip
  • 21 posts

Posted 10 June 2012 - 04:48 AM

The subtitles restarting over is a problem I've never seen before. I'll need a copy of the problem original video to debug this.

Also, why are you using:

CommercialSkipCut=true

This will cause the SRT file to go out of sync with the video, it's simple, when CommercialSkipCut=true is defined the EDL file is generated and NOT used to cut the video but the SRT file is CUT in sync with the EDL file which leaves teh SRT file out of sync with teh video.
so again, why is it being set?

Uploading video to you now.

It sounded like a good idea at the time reading this...

http://sourceforge.n...anced Commands/

CommercialSkipCut=true (v2.1.4+)

If this parameter is set, it tells MCEBuddy to do the Commercial Scan but NOT to cut the commercials. Instead it will copy the generated EDL file to the output directory along with the converted file.
Comskip generates 2 types of files, EDL and EDLP. Use the ForceEDL and ForceEDLP command to specify which file to use. See above for more details.


I don't want to lose the commercials but instead just skip them.

Edited by BTJustice, 10 June 2012 - 05:35 AM.


#5 Ramit

Ramit

    MC Mentor

  • Members
  • PipPipPipPipPip
  • 505 posts

Posted 10 June 2012 - 08:47 AM

Okay thanks, I just tested the MP4 you uploaded along with the SRT files using a player called KMPlayer. The Subtitles work perfectl in sync all the way to the end, however in between (e.g. from 9 minutes to 12 minutes) the subtitles don't match (the key word is match not sync) the audio.
I checked the SRT file, the SRT file itself is perfectly formed however the CONTENTS itself don't match the audio. I think this is a CCExtractor issue, it isn't extracing the correct subtitles.
Unfortunately there isn't much MCEBuddy can do about it.


Also, let me understand why you're using CommercialSkipCut=true
You want the output video to have the entire mp4 file and the EDL file and then use a EDL complaint player (like mPlayer) to skip the video in real time?

Any particular reason you don't want to cut the video itself?

#6 BTJustice

BTJustice

    MC Apprentice

  • Members
  • Pip
  • 21 posts

Posted 10 June 2012 - 05:49 PM

Also, let me understand why you're using CommercialSkipCut=true
You want the output video to have the entire mp4 file and the EDL file and then use a EDL complaint player (like mPlayer) to skip the video in real time?

Any particular reason you don't want to cut the video itself?

Because Comskip is not perfect. I recorded a show that I later deleted and it cut some of the show out.

I am uploading the log file for the conversion job of the video I uploaded earlier. If you don't need it just delete it.

#7 Ramit

Ramit

    MC Mentor

  • Members
  • PipPipPipPipPip
  • 505 posts

Posted 10 June 2012 - 11:26 PM

Okay, 2 things:

1. Can you try it with 2.2.1 and see how it goes, many CC bugs have been fixed in that.
2. What player are you using to play it back?

#8 BTJustice

BTJustice

    MC Apprentice

  • Members
  • Pip
  • 21 posts

Posted 11 June 2012 - 04:23 AM

Okay, 2 things:

1. Can you try it with 2.2.1 and see how it goes, many CC bugs have been fixed in that.
2. What player are you using to play it back?

1. Installed 2.2.1 last night and let it work on True Blood. It cut half of the "Previously On" stuff and it cut out what would be on next week after the credits. Comskip... GRR!

2. VLC or NPVR.

#9 Ramit

Ramit

    MC Mentor

  • Members
  • PipPipPipPipPip
  • 505 posts

Posted 11 June 2012 - 05:50 AM

hmm...what you're referring to is tuning comskip. (i've changed nothing in comskip settings so don't exepect any changes there). I would highly suggest you look at the comskip tuning guide listed in the Wiki Advanced Commands.

What I was really referring to was extracing the CC and EDL (CommercialSkipCut=true) and how it goes.
Also try KmPlayer and see how it does.

Edited by Ramit, 11 June 2012 - 05:51 AM.


#10 BTJustice

BTJustice

    MC Apprentice

  • Members
  • Pip
  • 21 posts

Posted 12 June 2012 - 09:20 AM

I have got my settings as perfect as I can make them for .TS > .MP4 recordings using MCEBuddy 2.2.1. I am not using COMSKIP. For CC OFFSET, I am using 15 instead of -15.

EDIT: Since the code won't paste right, my mcebuddy.conf and profiles.conf files are attached.

Attached Files


Edited by BTJustice, 12 June 2012 - 09:30 AM.


#11 Ramit

Ramit

    MC Mentor

  • Members
  • PipPipPipPipPip
  • 505 posts

Posted 12 June 2012 - 11:23 PM

Okay so help me understand once more what's the issue with 2.2.1 that you're facing?

#12 BTJustice

BTJustice

    MC Apprentice

  • Members
  • Pip
  • 21 posts

Posted 14 June 2012 - 02:43 PM

Okay so help me understand once more what's the issue with 2.2.1 that you're facing?

The subtitles being WAY OFF if COMSKIP is enabled no matter what offset is used.

#13 Ramit

Ramit

    MC Mentor

  • Members
  • PipPipPipPipPip
  • 505 posts

Posted 16 June 2012 - 09:11 AM

Okay i've tested 2.2.2 with Comskip enabled, with 2 difference profiles NoRecode and MP4 Normal.
I've trued multiple different WTV videos.

Each channel recorded required a different offset (one required 15 while hte other required -3). but each case after adjusting the Offset the output SRT files and Video were PERFECTLY in sycn throughout the video.
I'm using KMPlayer as the playback player for the video + SRT file. I also manually checked the timestamps and they are perfectly in sync.

The video and SRT files are being genreated properly, I would check again on the player you're using to play it back. Try KMPlayer, if you're still facing a problemw tih 2.2.2 please upload the problem file so I can take a look at it.