I/O read error: Invalid file format from external reader in FileBitInputStream

BoxingFan

New member
Hi,
I'm having a problem with a particular file. I edit files like this all the time. I've never had this particular error before, but occasionally I'll get an empty file when the output is complete. Usually when this happens, I just delete any chapter file and re-mux the entire file to remove the tivo encoding, and it ends up being editable just fine from there. This time around, I get this error about 0:15:30 into a 2:15:00 file, and it just outputs the completed portion and quits, and none of my usual workarounds seem to help. I even tried moving the original file to an external hard drive and editing it from there and outputting it to there because I've seen previous posts with similar problems where it was suggested that the hard drive might be part of the problem, but no dice. Same exact issue. I can watch the original video on both VideoRedo and Windows Media Player with no problem. Not even a hiccup at the point where the error seems to be occurring. It's only when I try to convert the file that it has problems. I'm running TVSuite version 3.20.2.609. Any help or advice would be much appreciated.

Here's my log file:
2011-02-25 03:25:47 Program Information
File Name: G:\(FILE NAME REMOVED BY POSTER).TiVo
File Size: 5618229235 ( 5.23 GB )
Program Duration: 02:15:00.14
File Type: TiVo
Encoding: MPEG2
Video stream Id: xE0
Encoding Dimensions: 480 x 480
Display Size: 720 x 480
Aspect Ratio: 4:3
Frame Rate: 29.97 FPS
Bit Rate: 9.000 Mbps
VBV_Buffer: 224 KB
Profile: Main@Main
Progressive: Prog or Int
Chroma: 4:2:0
Audio Format: Layer 2
Audio Stream Id: xC0
Audio Bit Rate: 192 Kbps
Audio Sampling Rate: 48000 Hz
TS Mux Rate (bps): -1

2011-02-25 03:25:47 Starting new Frame Accurate Output Segment: start:55514.889 (00:00:55.13), end:6203112.422 (01:43:23.03)
2011-02-25 03:25:47 XXCount: 0, Real: 1 0
2011-02-25 03:26:56 I/O read error: Invalid file format from external reader in FileBitInputStream
 

Dan203

Senior Developer
Staff member
Have you tried running the file through Quick Stream Fix and saving to a standard .mpg file? And then editing that .mpg file?

Dan
 

Dan203

Senior Developer
Staff member
Th error you're describing is coming from the TiVo DirectShow filter. We use this filter to decrypt .tivo files as it's the only legal way for us to do it. Are you running the most current version of TiVo Desktop? If not then perhaps upgrading will help the issue.

Another option is to use tivodecode to decrypt the file to a standard .mpg file. tivodecode is an open source project which uses code completely independent of TiVo Desktop to decrypt .tivo files. It might work where the TiVo DirectShow filter fails.

Dan
 

BoxingFan

New member
Th error you're describing is coming from the TiVo DirectShow filter. We use this filter to decrypt .tivo files as it's the only legal way for us to do it. Are you running the most current version of TiVo Desktop? If not then perhaps upgrading will help the issue.

Another option is to use tivodecode to decrypt the file to a standard .mpg file. tivodecode is an open source project which uses code completely independent of TiVo Desktop to decrypt .tivo files. It might work where the TiVo DirectShow filter fails.

Dan
I've been trying to get Tivodecode to run or otherwise work for 3 hours now. Please help. I went to the website for the project, downloaded the C++ stuff it said I might need, and then downloaded the Tivdecode, tried opening it (it didn't recognize the extension). So then I tried to follow all the directions it gives in the readme (using shell commands, but typing the exact things it said to type didn't work). These don't even look like executable files. I don't understand what this even is that I've downloaded, and every instruction page or explanation I find has so much techspeak that I don't know what they're even talking about.
 

BoxingFan

New member
Thanks Dan. TivoDecode was able to output the file, although I noticed there was about a 10-second loss of audio at right about the place where the error caused the file to end previously, and a 6 second loss of video in the same area. When I used VideoRedo to cut the excess from the beginning and end of the video, this portion of the video and audio in the output file appears to be fast-forwarding with some pixelation, with an apparent loss of about 10 seconds of both audio and worthwhile video. I guess there was just a corruption in the file around that place? I stupidly deleted the Tivo input file (which had no noticeable errors when playing on its own) after Tivo Decoder worked on it but before checking the output file for issues, so I guess I lost that 6-10 seconds. Oh well.

When Video Redo finished editing the mpeg file, it turned up with 400-something audio frame errors (I don't think I'd ever seen that error before), one input sequence error, and 400-500 something video and audio resync frames removed, which is a record for me. Do you know if there's any way to get Videoredo to trim the file without removing the video frames that were intact after the decode?
 

msmart

New member
ADDED: Sorry, I just realized that this is a v3 thread, I'm using v4

I too, was getting this error on a couple TiVo S2 files during the QSF faze of VAP. By using TivoDecode to convert them to mpeg first allowed them to process correctly.

Here is the log file from one of them (running 614):

Code:
2011-03-28 16:54:31 Program Information 
            File Name: G:\TiVo Recordings\No Ordinary Family - ''No Ordinary Animal'' (Recorded Mar 22, 2011, KNXV).TiVo
            File Size: 1752604698 ( 1.63 GB )
     Program Duration: 00:00:00.00
            File Type: TiVo
             Encoding: MPEG2
      Video stream Id:  xE0
  Encoding Dimensions:  544 x 480
         Display Size:  544 x 480
         Aspect Ratio: 4:3
           Frame Rate:  29.97 FPS
             Bit Rate:  5.800 Mbps
           VBV_Buffer:  224 KB
              Profile:  Main@Main
          Progressive: Prog or Int
               Chroma:  4:2:0
         Audio Format:  Layer 2
      Audio Stream Id:  xC0
       Audio Bit Rate:  192 Kbps
  Audio Sampling Rate:  48000 Hz
    TS Mux Rate (bps): -1

2011-03-28 16:54:33 Starting new Frame Accurate Output Segment: start:0.000 (00:00:00.00),  end:450359962737.044 (125099:52:36.11)
2011-03-28 16:54:33 QuickStream fix flag is ON.
2011-03-28 16:54:33 Preparing to send status to: 0 Audio volume changed
2011-03-28 16:54:33 Sending status: 'Audio volume changed' to module: 'Output muxer - 0', Type: Video frame
2011-03-28 16:54:33 Preparing to send status to: 0 Audio volume changed
2011-03-28 16:54:33 Sending status: 'Audio volume changed' to module: 'Audio recoder - 0', Type: Audio frame
2011-03-28 16:54:33 Adding new graph range, Start:          0 (00:00:00.00), End: 450359962737.04 (125099:52:36.11)
2011-03-28 16:55:30 AudioRecoder thread complete. Stream: 0, Audio Frames, In:63063, Out: 63063
2011-03-28 16:55:30 Output muxer processing thread complete. Video in: 43492, Out: 43492, Buffer: 0
2011-03-28 16:55:30 Output muxer processing thread complete. Audio stream 0 In: 63063, Out: 63063, Buffer: 0
2011-03-28 16:55:30 Muxer add / delete audio: stream: 0, add: 0  delete 0, sync:     -45.17
2011-03-28 16:55:30 I/O read error: Invalid file format from external reader in FileBitInputStream
2011-03-28 16:55:40 Active module list:
   class CStreamProcessAudioCoder
      class CVStreamBuffer<class CAudioFrame>, Fill: 0/61, Free: 61 Txn count: 63065
   class CStreamProcessMuxer
      class CVStreamBuffer<class CVideoFrame>, Fill: 0/50, Free: 51 Txn count: 43493
      class CVStreamBuffer<class CSubtitleFrame>, Fill: 0/50, Free: 51 Txn count: 0
      class CVStreamBuffer<class CAudioFrame>, Fill: 0/101, Free: 101 Txn count: 63063
2011-03-28 16:56:47 Graph, monitoring thread received terminate signal.
2011-03-28 16:56:47 Graph monitoring thread finished.
2011-03-28 16:56:48 COM call: Close
2011-03-28 16:56:48 Destruct CVideoReDoDlgAutoProxy
2011-03-28 16:59:27 Image   support lib: 6.1 build 137.36, ippvct7l.lib
2011-03-28 16:59:27 Decoder support lib: 6.1 build 137.36, ippvct7l.lib
Thanks for the tip, Dan.
 
Last edited:

Dan203

Senior Developer
Staff member
You might want to make sure you're running the latest version of TiVo Desktop from their website. It appears that the "Check for update" function in the program is broken and not finding the latest releases. The newest version fixes all sorts of issues with the new TiVo-TS format used by the Premiere units, it might fix this one as well.

Dan
 

msmart

New member
Thanks Dan, I do have the latest version of TD, 2.8.2.

I'm not too worried (yet) as these were the only two files I've had the problem with. If I have any more problems, I'll deal with it then.
 
Top Bottom