SageTV Community  

Go Back   SageTV Community > General Discussion > General Discussion
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

General Discussion General discussion about SageTV and related companies, products, and technologies.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-20-2009, 07:16 PM
kmp14 kmp14 is offline
Sage Aficionado
 
Join Date: May 2008
Location: Chicago, IL
Posts: 264
Utility To Fix Corrupt MPG File

I could swear I have seen references on here to a utility that can attempt to repair a corrupt MPG file. I have not been able to find it again.

Does anyone what I am talking about?

I am trying to get Firewire recording working, and most of the time it works great, but sometimes I get a file that won't play. It gets recorded, and even appears to get comskip processed, but the file won't play on SageTV client, HD200, or even WMP.

Anyway, if such a utility exists, I would like to have it take a crack at one of these files that wont play.

Thanks!
Reply With Quote
  #2  
Old 10-20-2009, 07:29 PM
evilpenguin's Avatar
evilpenguin evilpenguin is offline
SageTVaholic
 
Join Date: Aug 2003
Location: Seattle, WA
Posts: 3,696
The best thing out there is VideoRedo. It's not free, but its an incredibly handy tool.
Reply With Quote
  #3  
Old 10-21-2009, 11:26 AM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
you can also try remuxing the file with tsmuxer (which is free)
__________________
babgvant.com | @babgvant | Missing Remote
Reply With Quote
  #4  
Old 10-26-2009, 08:19 PM
Rico66 Rico66 is offline
Sage Aficionado
 
Join Date: Feb 2009
Posts: 407
Does anybody know how and why .mpg files get corrupted? I had it twice recently that 3 hour long recordings (Sunday night football, recorded via my ATSC/OTA tuner) get corrupted. The files would start and play in Sage while the recording is still in progress, though none of the transport controls would work. But they won't play in Sage anymore once the recording was finished.

I was still able to play them using MPC, and I could even jump forward until a certain point, where apparently a corruption was happening. From that point on MPC would still play them, but without the ability to go forward/backward.
The audio was also slightly out of sync.
Is there a way to prevent this (e.g. some settings) during the recording to prevent this?
Reply With Quote
  #5  
Old 10-27-2009, 07:52 AM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
you could try encoding the streams as transport streams (TS) instead of as a program stream (mpg) by editing the tuner settings in the sage.properties file, TS has more tolerance for error.

things to try:

- check tuner drivers, newest isn't always best (although it usually is)
- check HD controller drivers, if you're running in AHCI mode make sure you have the vendor specific drivers intalled. The MS ones work but performance isn't good.
- defrag the HD
- chkdsk the HD
- make sure your recording dir is excluded from AV scans
- make sure your recording dir is excluded from Windows Search indexing
__________________
babgvant.com | @babgvant | Missing Remote
Reply With Quote
  #6  
Old 10-27-2009, 07:52 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
Are your recording drives formatted for 64k blocks? Is your hard drive going bad?

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
  #7  
Old 10-27-2009, 11:08 AM
Rico66 Rico66 is offline
Sage Aficionado
 
Join Date: Feb 2009
Posts: 407
Quote:
Originally Posted by babgvant View Post
you could try encoding the streams as transport streams (TS) instead of as a program stream (mpg) by editing the tuner settings in the sage.properties file, TS has more tolerance for error.

things to try:

- check tuner drivers, newest isn't always best (although it usually is)
- check HD controller drivers, if you're running in AHCI mode make sure you have the vendor specific drivers intalled. The MS ones work but performance isn't good.
- defrag the HD
- chkdsk the HD
- make sure your recording dir is excluded from AV scans
- make sure your recording dir is excluded from Windows Search indexing
Thanks.
I'll definetly try using TS instead. My hd pvr recordings (which are h.264 TS) don't show any of these problems, which is also a reason why I believe it's not hard disk related. The hard disk is pretty new as well.

The tuner driver is an interesting question as the tuner (Saber DA-1N1-E)gets natively supported in Win 7, but the manufacturer only has an older version on their web site. I used the older driver previously on Vista (with Media Center and Sage), without having problems. So I might try that one as well.
Reply With Quote
  #8  
Old 10-27-2009, 12:09 PM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
One more thing to try is replacing the coax to the tuner card, if it's not shielded correctly or kinked it could be the root cause.
__________________
babgvant.com | @babgvant | Missing Remote
Reply With Quote
  #9  
Old 10-29-2009, 10:47 AM
Rico66 Rico66 is offline
Sage Aficionado
 
Join Date: Feb 2009
Posts: 407
Quote:
Originally Posted by babgvant View Post
One more thing to try is replacing the coax to the tuner card, if it's not shielded correctly or kinked it could be the root cause.
That one is fine. Reception is fine overall.
Reply With Quote
  #10  
Old 10-29-2009, 11:06 AM
Rico66 Rico66 is offline
Sage Aficionado
 
Join Date: Feb 2009
Posts: 407
Also, one more comment about the SATA / AHCI driver. Based on what information are you basing the statement that the Windows inbox driver is worse than the manufacturer's driver?
At least in my case (Win7 x64, 780g based Gigabyte board) the inbox driver performs much better than an AMD driver that I tried. I installed AMD driver (version 1.2.0.125) that I downloaded from the Gigabyte web site, but it performs very erratic, e.g. the system hangs for almost a a minute after log-on with the hard disk LED being on all the time. I also got a 10 second interruption while listening to a song (?!), which I've never had before. So I'm back with the original driver, which works just fine.
Reply With Quote
  #11  
Old 10-29-2009, 10:42 PM
Comitizer Comitizer is offline
Sage Advanced User
 
Join Date: Feb 2009
Location: Calgary, Alberta, Canada
Posts: 174
Quote:
Originally Posted by babgvant View Post
you could try encoding the streams as transport streams (TS) instead of as a program stream (mpg) by editing the tuner settings in the sage.properties file, TS has more tolerance for error.
The original poster is recording with FireWire, I'm doing the same and every once in a while I have this issue. Can you change the encoding type for Firewire recordings? Perhaps this will help solve my problem.
Reply With Quote
  #12  
Old 10-30-2009, 12:53 PM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
How are you capturing the FW recordings?
__________________
babgvant.com | @babgvant | Missing Remote
Reply With Quote
  #13  
Old 10-30-2009, 01:46 PM
Comitizer Comitizer is offline
Sage Advanced User
 
Join Date: Feb 2009
Location: Calgary, Alberta, Canada
Posts: 174
Quote:
Originally Posted by babgvant View Post
How are you capturing the FW recordings?
From my Motorola DCT6200 (I think that's the model) to a firewire port on my WHS. I'm using the drivers from FireSTB and SGraphRecorder is the capture device.
Reply With Quote
  #14  
Old 11-02-2009, 01:04 PM
babgvant babgvant is offline
Sage Icon
 
Join Date: Jul 2008
Location: London
Posts: 1,834
Quote:
Originally Posted by Comitizer View Post
From my Motorola DCT6200 (I think that's the model) to a firewire port on my WHS. I'm using the drivers from FireSTB and SGraphRecorder is the capture device.
I think SGraphRecoder lets you provide a graph. The muxer in the graph determines the container type. If you're not using the sage muxer you could try it; by default it writes TS.
__________________
babgvant.com | @babgvant | Missing Remote
Reply With Quote
  #15  
Old 11-03-2009, 06:54 PM
nyplayer nyplayer is offline
SageTVaholic
 
Join Date: Sep 2005
Posts: 4,997
This file corruption simply occurs in fire-wire captures... It has nothing to do with defrag etc.. I have recorded to an empty fresh formatted drive and get corruption.

There are threads all over the place in the IEE capture thread. I have a total of 8 other tuners and never got a corrupted file until I started capturing fire-wire.... when capturing HD through fire-wire its hit and miss. I simply gave up on it until I get a HDPVR. I only capture the SD recordings through fire-wire using a different graph that demultiplexes and multiplexes.

So it is easy to say you never get corruption.... if you do not capture through fire-wire..
__________________
Channels DVR UBUNTU Server 2 Primes 3 Connects TVE SageTV Docker with input from Channels DVR XMLTV and M3U VIA Opendct.

Last edited by nyplayer; 11-03-2009 at 07:07 PM.
Reply With Quote
  #16  
Old 11-05-2009, 02:05 AM
cychou cychou is offline
Sage Advanced User
 
Join Date: Oct 2004
Location: Sydney, Australia
Posts: 182
Same here for DVB-T capture in Australia. There are always some kind of errors in the capture recordings. It is just a matter of how bad it is. Most of the time, I can ignore it. Sometimes manual fixing using a tool can fix it all.

At times, it is just beyond repair .................

This was never a problem back in the days when I was using hardware MPEG2 encoder, but OTA signal handling is a different story.


http://forums.sagetv.com/forums/show...3&postcount=23
__________________
SageTV 6.6.2 / 42" Plasma Panasonic TH-42PX600A/ Intel Pentium DC E6500/ 2Gb Ram/KWorld DVB-T PC160-2T/ Logitech Harmony Remote X360/ Gigabyte GeForce 8500 GT (Silent)/ Winfast DTV1000T/ WD Caviar Green 808Gb HD/ Win 7 Ultimate/ Mission Cinema 7/ Denon AVR-1800
Reply With Quote
  #17  
Old 11-05-2009, 08:05 AM
gplasky's Avatar
gplasky gplasky is offline
SageTVaholic
 
Join Date: Jul 2003
Location: Howell, MI
Posts: 9,203
There hasn't been much development but this tool should help clean up.

TSPE - Transport Stream Packet Editor

Gerry
__________________
Big Gerr
_______
Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Utility to extract first X bytes from file carlgar The SageTV Community 9 03-04-2008 03:24 PM
Corrupt Installation File Moat General Discussion 2 10-21-2006 10:54 PM
Anyway to recover a wiz.bin.corrupt file? jbuszkie SageTV Software 17 03-04-2006 12:28 PM
Is my Sage Properties File Corrupt? Esrsa4 SageTV Software 4 02-18-2005 09:58 PM
Importing shows after corrupt wiz.bin file. bling_bling_vr6 SageTV Software 3 08-04-2003 01:49 PM


All times are GMT -6. The time now is 06:11 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.