1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

New program for 1 step TTG downloads, decryption, encoding - kmttg

Discussion in 'TiVo Home Media Features & TiVoToGo' started by moyekj, Mar 15, 2008.

  1. Jun 16, 2009 #901 of 10411
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    SD=Standard Definition, right? (I've only got series 2 devices, so I don't know all the fancy jargon)

    You should still have access to throw it at my FTP server.

    EDIT: Let me know if your password doesn't work, and I'll send you a new one.
     
  2. Jun 17, 2009 #902 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    Aha, Series 2 devices only explains a lot. For Series 2 Tivo is encoding from analog recordings in a very controlled manner, so mpeg2 defects should not be present. For Series 3 devices with cable cards recording from digital channels there is no encoding happening and you are at the mercy of any defects that develop in the digital transmissions. So it's no wonder you've never seen the problem.
     
  3. Jun 17, 2009 #903 of 10411
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    I'll still run an encode if you throw a file at my FTP site.
     
  4. Jun 17, 2009 #904 of 10411
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    The Daily Show on Comedy Central is another program where I see A/V sync issues (with no VideoRedo). Sometimes the audio doesn't get out-of-sync for 15-20 minutes, so you need to check the end and not just the beginning.
     
  5. Jun 17, 2009 #905 of 10411
    camnito

    camnito New Member

    20
    0
    Apr 1, 2009
    That's right. And for the record, I did get the idea from TVAP. I agree that during batch and auto-download mode, it is better to go with the two-step process outlined earlier, but it would also be cool to allow the pause/resume when working with a single show.
     
  6. Jun 17, 2009 #906 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    OK, this was a pretty easy integration already added in development version. There is now an extra config boolean option "Use VideoRedo GUI to review commercials" that if set will start VideoRedo GUI following commercial detection job using the .VPrj file where you can review/adjust edits visually as desired. Then as soon as you close the VideoRedo GUI the next job in the pipe (normally would be the commercial cut job) will proceed.
    NOTE: I configured it only to work if you are in GUI mode, not auto transfers mode since obviously you wouldn't want the GUI coming up in service mode anyway.
     
  7. Jun 17, 2009 #907 of 10411
    camnito

    camnito New Member

    20
    0
    Apr 1, 2009
    Wow, that was fast! I would gladly help test it if you wish. How do I get a hold of the dev version? I looked on the code page and didn't see it.

    Thanks,

    Cam
     
  8. Jun 17, 2009 #908 of 10411
    Icarus

    Icarus New Member

    360
    0
    Jun 15, 2002
    Upcountry...
    Just to clarify, with this new mode enabled, the next job will still be the commercial cut job, correct?

    During manual review, we just update the project (VPrj) with the possibly modified cuts.

    -David
     
  9. Jun 17, 2009 #909 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    Yes, if you have Ad Cut enabled then as soon as you close VideoRedo GUI then the Ad Cut job will kick in (plus any other jobs enabled after Ad Detect).
    i.e. The point is to pause following commercial detection and bring up VideoRedo GUI to give you a chance to visually inspect/correct detected commercials and then continue on as normal with possibly corrected cut points once VideoRedo GUI is closed.
     
  10. Jun 18, 2009 #910 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    bkdtv, AudioNutz and I have been privately working on the ffmpeg A/V sync issues for bad mpeg files. It looks like ffmpeg versions around February 2008 or earlier have much better behavior for A/V sync issues. For example, try the ffmpeg in this older kmttg tools package AND add -async 50 option. For me that results in perfect A/V sync and no audio distortion for both my short & long testcases with the ipod profiles and a few others.
    However that earlier version has problems as well:
    * AC3 support in MP4 is not there so the h264 & tivo profiles do not work.
    * That ffmpeg crashes with xbox360 & ps3 profiles

    In any case would be interesting to see your results using that version AND -async 50 option.
     
  11. Jun 18, 2009 #911 of 10411
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    Kevin,
    Have you thought about reporting this issue to the folks that work on ffmpeg? Maybe this is a simple fix, since it once worked in 2008?
     
  12. Jun 18, 2009 #912 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    The reason I hesitate to do that is because I know if I clean up the source mpeg with VideoRedo QS Fix first then there are no issues even when using latest ffmpeg builds, so really it's more the faulty mpeg files that are to blame. Note that handbrake also has many issues with these faulty mpeg files as does mencoder, so it's not purely an ffmpeg issue. All 3 of those binaries share similar base libraries and so that's not too surprising, but in all cases fixing the source mpeg file solves the problem.
     
  13. Jun 18, 2009 #913 of 10411
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    It was just a thought. I compiled the latest ffmpeg, and I'm getting the same sync issues.

    I tried to compile a build from Feb of last year, and it wouldn't compile.
     
  14. Jun 18, 2009 #914 of 10411
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    The older version cleared up A/V sync on three of my four SD recordings, but it did not do the same for the recording from Comedy Central. The Comedy Central recording exhibits high-pitched sqeaks and horrible stutter, making the audio track useless.

    That may be as good as we're going to get for now. Are you able to include both versions of ffmpeg, and use the newer version for the other profiles? And will you always use the latest version when the user has VideoRedo installed and Quickstream checked?

    Fyi the last version you gave me still tries to encode two videos at once with jobs set to 1.
     
  15. Jun 18, 2009 #915 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    Ideally I'd like to find one version that works with all encoding profiles and add -async 50 to all the ffmpeg profiles. If there is such a "magic" version then it would be good for the Mac OSX tool set to be updated to that version as well.

    NOTE: To complicate matters more there is some GPL issue with libfaac now such that building ffmpeg with AAC support enabled and distributing freely under GPL license is no longer allowed. I think ffmpeg developers are working on their own AAC library but for now latest builds of ffmpeg cannot include AAC support and be distributed - one can build it for personal use only...

    OK thanks, I'll look into it.
     
  16. Jun 18, 2009 #916 of 10411
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    I'm still looking, but I'll need to set it aside soon for the weekend. The magic bullet (For Mac) seems to be the ffmpeg that's in the Mac tools package, except for those few episodes that you're having trouble with. In those cases, a comskip/comcut irons it out... Every time... Then jkust use any old argument that you like.

    The other thing that seems to work 100% of the time is when I use my VisualHub binary with an ffmpeg style argument. Then it works 100% of the time, without sync issues, and without doing the comskip/comcut.

    I would be happy to try any suggestions.
     
  17. Jun 19, 2009 #917 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    mencoder (used in comcut step) works to fix that short 5 minute one but not for my longer 1 hour case or bdktv's testcases so is not a cure all.

    I think I'm officially giving up on looking for the cure all ffmpeg. I've tried about 15 different versions from 2007 to present and none of them are the "magic bullet". As mentioned the older ones are better at preserving A/V sync for broken mpegs but lack support for AC3 in mpeg4 and crash with a couple of profiles. The newer ones distort audio. Note that in all cases once VideoRedo is used to clean up the broken mpegs then all ffmpeg versions I tried worked fine.

    NOTE: handbrake also can't handle these broken mpegs properly without first fixing with VideoRedo as well.

    So VideoRedo remains as the sole silver bullet fix all and well worth every penny of $50 for Plus version.
     
  18. Jun 19, 2009 #918 of 10411
    bkdtv

    bkdtv New Member

    7,902
    0
    Jan 9, 2003
    DC Metro Area
    These mockups might give you some ideas.....

    Current release version

    [​IMG]
    Pictured updated to reflect current version.


    Mockups

    In all shots, highlighting is used in the list to indicate which recordings are already queued.

    [​IMG] [​IMG]
    In second shot, the timer under status is estimated time remaining.

    [​IMG] [​IMG]
    In second shot, the timer under status is estimated time remaining.

    [​IMG] [​IMG]
    In second shot, the timer under status is estimated time remaining.

    [​IMG]

    Mockups based on unreleased v0p6e version.

    I think I first two shots are the most intuitive. I really like the refresh button and the capacity info, but adding that extra line of info right below the tab and job options makes the UI seem a little cluttered. That TiVo capacity info could be moved to a status bar at the bottom, but I wonder how it would look/work to have a small square refresh button as part of the tab, perhaps with a ( ) type graphic.
     
  19. Jun 19, 2009 #919 of 10411
    AudioNutz

    AudioNutz New Member

    318
    0
    Nov 9, 2008
    I just thought of an idea. You're basically using the "copy" feature in mencoder (when comcuting) that fixes up the audio/video so that ffmpeg can encode without any glitches. What about this:

    1. When no comcut is happening, build in a ffmpeg step that does -vcodec copy and -acodec copy and then does the encode on the resulting file. I know it's a 2-pass operation, but the 1st step should be quick.

    or...

    2. Have mencoder do the -oac copy -ovc copy even when there is no comcut steps selected, to fix up the mpeg file before it hits ffmpeg. You could even add this as a selectable option (Mencoder QS Fix) so that you only select it on the shows that you know will need it. (It would even go nicely with the auto-transfers)

    I haven't tried these yet, but it's an idea...
     
  20. Jun 19, 2009 #920 of 10411
    moyekj

    moyekj Well-Known Member

    11,134
    27
    Jan 23, 2006
    Mission...
    AudioNutz, but the whole problem is neither the ffmpeg copy or mencoder copy work to "fix" the source mpeg file in most cases. The short 5 min clip I gave you looks like an exception that does work when running it through mencoder, but my 1 hr testcase and several of bkdtv testcases do not work when doing the same. So the problem is finding a free solution which works to clear up problems in most cases which so far we have not found.
     

Share This Page