Saving from .ts to .ts with edits stops without error

Paul Webster

New member
Recorded from TV (UK DVB-T - Film4 (SD).
Manually edited to strip adverts.
When trying to save it seems to get into the 4th of 5 save sectiond and aborts the save without showing an error message - and returns to the edit screen.
Total saved is 1:15:58 but should be 1:48:22
Stops at
2015-04-18 08:13:30 Graph, monitoring thread received terminate signal.

Code:
           ***** Loading: R:\films\Unknown-201504172056.ts

2015-04-18 08:06:28 Using display driver: VMR9
2015-04-18 08:06:28 VMR 9 (Windowless), MEDIASUBTYPE_YV12 
2015-04-18 08:06:28 VMR 9 (Windowless), MEDIASUBTYPE_YV12 
2015-04-18 08:10:35 Setting output options from profile: No Recode Required
MPEG-2 Transport Stream
2015-04-18 08:10:36 ModuleCollection1 Status: 0, 1, UI:141 EPF:-1 KS:0 VFT:1 13 0 MP: 70
2015-04-18 08:10:36 TS->Mux rate set to ATSC (19.2 Mbps)
2015-04-18 08:10:36 Output mux type: x8
2015-04-18 08:10:36 Adding module to graph: Output muxer
2015-04-18 08:10:36 Setting graph input port: 0 to module: Output muxer port: 0 Accepts EOF
2015-04-18 08:10:36 Adding module to graph: Audio divider:output
2015-04-18 08:10:36 Setting graph input port: 1 to module: Audio divider:output port: 0 Accepts EOF
2015-04-18 08:10:36 Adding module to graph: Audio decoder:0
2015-04-18 08:10:36 Connecting output of Audio divider:output (0) to input of Audio decoder:0 (0)
2015-04-18 08:10:36 Connecting output of Audio decoder:0 (0) to input of Output muxer (2)
2015-04-18 08:10:36 Adding module to graph: Audio decoder:1
2015-04-18 08:10:36 Connecting output of Audio divider:output (1) to input of Audio decoder:1 (0)
2015-04-18 08:10:36 Connecting output of Audio decoder:1 (0) to input of Output muxer (3)
2015-04-18 08:10:36 Setting graph input port: 2 to module: Output muxer port: 1 Accepts EOF
2015-04-18 08:10:36 Graph, passes required: 1
2015-04-18 08:10:36 Graph, Output encoding bitrate: 1.8520 Mbps
2015-04-18 08:10:36 Graph, Encoding dimension:      720 x 576
2015-04-18 08:10:36 Graph, Cropping rect:           (0 x 0 ) - (720 x 576)
2015-04-18 08:10:36 Graph, Maximum GOP:             0
2015-04-18 08:10:36 StreamProcess: Staring output muxer thread.
2015-04-18 08:10:36 Starting graph filter thread: Audio divider:output
2015-04-18 08:10:36 Starting graph filter thread: Audio decoder:0
2015-04-18 08:10:36 Starting graph filter thread: Audio decoder:1
2015-04-18 08:10:36 Graph monitoring thread started.
2015-04-18 08:10:36 Source video information:
 File:                                     Name : R:\films\Unknown-201504172056.ts
                                           Size : 2.996 GB
                                       Duration : 02:22:50.16
                                       Mux type : TS Stream
                                    TS mux rate : 2.705 Mbps
 Video:                                Encoding : MPEG2
                                  VideoStreamID : x5DD
                                     Frame rate : 25.00 fps
                                  Encoding size : 720 x 576
                                   Aspect ratio : 16:9
                                Header bit rate : 1.852 Mbps
                                     VBV buffer : 224 KBytes
                                        Profile : Main@Main
                                    Progressive : Prog or Int
                                         Chroma : 4:2:0
                                       Bit rate : 2.439 Mbps
                                    Field order : Top field first
 Audio Stream: 1 (Primary)                Codec : MPEG
                                      MPEGLayer : Layer 2
                                       Channels : 2.0
                                       Language : eng
                                            PID : x5DE
                                  PES Stream Id : xC0
                                       Bit rate : 192 Kbps
                                  Sampling rate : 48000
                                    Sample size : 16 bits
 Audio Stream: 2                          Codec : MPEG
                                      MPEGLayer : Layer 2
                                       Channels : 1.0
                                       Language : eng
                                            PID : x5DF
                                  PES Stream Id : xC0
                                       Bit rate : 64 Kbps
                                  Sampling rate : 48000
                                    Sample size : 16 bits
 Subtitle: 1-1                             Type : DVB Subpic
                                            PID : 0x5FB
                                       Language : eng
                                           Page : 2

2015-04-18 08:10:36 Starting new Frame Accurate Output Segment: start:311800.944 (00:05:11.20),  end:1733630.244 (00:28:53.15) 
2015-04-18 08:10:36 Preparing to send status to: 0 Audio volume changed
2015-04-18 08:10:36 Sending status: 'Audio volume changed' to module: 'Output muxer - 0', Type: Video frame
2015-04-18 08:10:36 Preparing to send status to: 0 Audio volume changed
2015-04-18 08:10:36 Sending status: 'Audio volume changed' to module: 'Audio divider:output - 0', Type: Audio frame
2015-04-18 08:10:36 Preparing to send status to: 1 Audio volume changed
2015-04-18 08:10:36 Sending status: 'Audio volume changed' to module: 'Output muxer - 1', Type: Subtitle frame
2015-04-18 08:10:36 Adding new graph range, Start:     311801 (00:05:11.20), End: 1733630.24 (00:28:53.15)
2015-04-18 08:10:36 XXCount: 0, Real: 1 0
2015-04-18 08:11:29 Starting new Frame Accurate Output Segment: start:2042646.178 (00:34:02.16),  end:3390635.244 (00:56:30.15) 
2015-04-18 08:11:29 Preparing to send status to: 0 Audio volume changed
2015-04-18 08:11:29 Sending status: 'Audio volume changed' to module: 'Output muxer - 0', Type: Video frame
2015-04-18 08:11:29 Preparing to send status to: 0 Audio volume changed
2015-04-18 08:11:29 Sending status: 'Audio volume changed' to module: 'Audio divider:output - 0', Type: Audio frame
2015-04-18 08:11:29 Preparing to send status to: 1 Audio volume changed
2015-04-18 08:11:29 Sending status: 'Audio volume changed' to module: 'Output muxer - 1', Type: Subtitle frame
2015-04-18 08:11:29 Adding new graph range, Start:    2042646 (00:34:02.16), End: 3390635.24 (00:56:30.15)
2015-04-18 08:11:29 XXCount: 0, Real: 1 0
2015-04-18 08:12:20 Starting new Frame Accurate Output Segment: start:3699651.178 (01:01:39.16),  end:4745639.333 (01:19:05.15) 
2015-04-18 08:12:20 Preparing to send status to: 0 Audio volume changed
2015-04-18 08:12:20 Sending status: 'Audio volume changed' to module: 'Output muxer - 0', Type: Video frame
2015-04-18 08:12:20 Preparing to send status to: 0 Audio volume changed
2015-04-18 08:12:20 Sending status: 'Audio volume changed' to module: 'Audio divider:output - 0', Type: Audio frame
2015-04-18 08:12:20 Preparing to send status to: 1 Audio volume changed
2015-04-18 08:12:20 Sending status: 'Audio volume changed' to module: 'Output muxer - 1', Type: Subtitle frame
2015-04-18 08:12:20 Adding new graph range, Start:    3699651 (01:01:39.16), End: 4745639.33 (01:19:05.15)
2015-04-18 08:12:20 XXCount: 0, Real: 1 0
2015-04-18 08:13:01 XXCount: 0, Real: 1 0
2015-04-18 08:13:01 Starting new Frame Accurate Output Segment: start:5054655.278 (01:24:14.16),  end:6581644.856 (01:49:41.16) 
2015-04-18 08:13:01 Preparing to send status to: 0 Audio volume changed
2015-04-18 08:13:01 Sending status: 'Audio volume changed' to module: 'Output muxer - 0', Type: Video frame
2015-04-18 08:13:01 Preparing to send status to: 0 Audio volume changed
2015-04-18 08:13:01 Sending status: 'Audio volume changed' to module: 'Audio divider:output - 0', Type: Audio frame
2015-04-18 08:13:01 Preparing to send status to: 1 Audio volume changed
2015-04-18 08:13:01 Sending status: 'Audio volume changed' to module: 'Output muxer - 1', Type: Subtitle frame
2015-04-18 08:13:01 Adding new graph range, Start:    5054655 (01:24:14.16), End: 6581644.86 (01:49:41.16)
2015-04-18 08:13:01 XXCount: 0, Real: 1 0
2015-04-18 08:13:30 Graph, monitoring thread received terminate signal.
2015-04-18 08:13:30 Audio decoder:1 processing thread complete. In: 190025, Out: 190025
2015-04-18 08:13:30 Audio decoder:0 processing thread complete. In: 190029, Out: 190029
2015-04-18 08:13:30 Audio divider:output: Process thread complete.
2015-04-18 08:13:30 Graph monitoring thread finished.
2015-04-18 08:13:31 Output muxer processing thread complete. Video in: 113970, Out: 113970, Buffer: 11000
2015-04-18 08:13:31 Output muxer processing thread complete. Audio stream 0 In: 189945, Out: 189945, Buffer: 0
2015-04-18 08:13:31 Muxer add / delete audio: stream: 0, add: 0  delete 0, sync:       0.00
2015-04-18 08:13:31 Output muxer processing thread complete. Audio stream 1 In: 189945, Out: 189945, Buffer: 0
2015-04-18 08:13:31 Muxer add / delete audio: stream: 1, add: 2  delete 0, sync:     -48.00
2015-04-18 08:13:31 Output muxer processing thread complete. Subtitle stream 0 In: 2112, Out: 2112
 

Dan203

Senior Developer
Staff member
Your file might have an EOF flag in the middle which is triggering the premature end. Try running the file through Quick Stream Fix, then editing the fixed file. QSF will strip the extra EOF if that's the issue.
 

Paul Webster

New member
I will try later on - but his is something new since I installed the beta (over my original ...) and it seems to be happening on all recent recordings that I edit.
Videoredo is not putting out the save completion dialogue or an error message - so even if there is something odd in the file itself there appears to be a problem with Videoredo notifying me of error or success.
 

Dan203

Senior Developer
Staff member
Hmmm... Maybe something got corrupted during the upgrade. Try doing a complete uninstall and reinstall.
 

Paul Webster

New member
I tried an uninstall - and then reinstall of Beta.
Same problem.

So - tried a Quick Stream Fix of another recent recording and again it stopped near the end without warning.
This looks strange - but perhaps it applies some sort of maximum when doing s Stream Fix
2015-04-20 22:44:24 Starting new Frame Accurate Output Segment: start:0.000 (00:00:00.00), end:450359962737.044 (5795:20:33.03)
It saved 1h40m29s of 2h22m51s
Looks like this was the point at which things went wrong
2015-04-20 22:48:03 Audio divider:eek:utput: Process thread complete.

Code:
2015-04-20 22:44:08 Starting stream open for: R:\films18\Unknown-201504172056.ts
2015-04-20 22:44:08 Opening: R:\films\Unknown-201504172056.ts in QuickStream Fix Mode.
2015-04-20 22:44:08 After aStream open.
2015-04-20 22:44:08 Is DVRMS: 0.
2015-04-20 22:44:08 Seek to begin.
2015-04-20 22:44:08 Packet classes created.
2015-04-20 22:44:08 Opening file: R:\films\Unknown-201504172056.ts, filetype is: MPEG2 TS  PIDs: x5DD / x5DE 
2015-04-20 22:44:23 Setting output options from profile: No Recode Required
MPEG-2 Transport Stream
2015-04-20 22:44:23 ModuleCollection1 Status: 0, 1, UI:155 EPF:-1 KS:0 VFT:1 13 0 MP: 70
2015-04-20 22:44:23 Opening: R:\films\Unknown-201504172056.ts in QuickStream Fix Mode.
2015-04-20 22:44:24 TS->Mux rate set to ATSC (19.2 Mbps)
2015-04-20 22:44:24 Output mux type: x8
2015-04-20 22:44:24 Adding module to graph: Output muxer
2015-04-20 22:44:24 Setting graph input port: 0 to module: Output muxer port: 0 Accepts EOF
2015-04-20 22:44:24 Adding module to graph: Audio divider:output
2015-04-20 22:44:24 Setting graph input port: 1 to module: Audio divider:output port: 0 Accepts EOF
2015-04-20 22:44:24 Adding module to graph: Audio decoder:0
2015-04-20 22:44:24 Connecting output of Audio divider:output (0) to input of Audio decoder:0 (0)
2015-04-20 22:44:24 Connecting output of Audio decoder:0 (0) to input of Output muxer (2)
2015-04-20 22:44:24 Adding module to graph: Audio decoder:1
2015-04-20 22:44:24 Connecting output of Audio divider:output (1) to input of Audio decoder:1 (0)
2015-04-20 22:44:24 Connecting output of Audio decoder:1 (0) to input of Output muxer (3)
2015-04-20 22:44:24 Setting graph input port: 2 to module: Output muxer port: 1 Accepts EOF
2015-04-20 22:44:24 Graph, passes required: 1
2015-04-20 22:44:24 Graph, Output encoding bitrate: 1.8520 Mbps
2015-04-20 22:44:24 Graph, Encoding dimension:      720 x 576
2015-04-20 22:44:24 Graph, Cropping rect:           (0 x 0 ) - (720 x 576)
2015-04-20 22:44:24 Graph, Maximum GOP:             0
2015-04-20 22:44:24 StreamProcess: Staring output muxer thread.
2015-04-20 22:44:24 Starting graph filter thread: Audio divider:output
2015-04-20 22:44:24 Starting graph filter thread: Audio decoder:0
2015-04-20 22:44:24 Starting graph filter thread: Audio decoder:1
2015-04-20 22:44:24 Graph monitoring thread started.
2015-04-20 22:44:24 Source video information:
 File:                                     Name : R:\films\Unknown-201504172056.ts
                                           Size : 2.996 GB
                                       Duration : 00:00:00.00
                                       Mux type : TS Stream
                                    TS mux rate : 2.705 Mbps
 Video:                                Encoding : MPEG2
                                  VideoStreamID : x5DD
                                     Frame rate : 25.00 fps
                                  Encoding size : 720 x 576
                                   Aspect ratio : 16:9
                                Header bit rate : 1.852 Mbps
                                     VBV buffer : 224 KBytes
                                        Profile : Main@Main
                                    Progressive : Prog or Int
                                         Chroma : 4:2:0
                                    Field order : Top field first
 Audio Stream: 1 (Primary)                Codec : MPEG
                                      MPEGLayer : Layer 2
                                       Channels : 2.0
                                       Language : eng
                                            PID : x5DE
                                  PES Stream Id : xC0
                                       Bit rate : 192 Kbps
                                  Sampling rate : 48000
                                    Sample size : 16 bits
 Audio Stream: 2                          Codec : MPEG
                                      MPEGLayer : Layer 2
                                       Channels : 1.0
                                       Language : eng
                                            PID : x5DF
                                  PES Stream Id : xC0
                                       Bit rate : 64 Kbps
                                  Sampling rate : 48000
                                    Sample size : 16 bits
 Subtitle: 1-1                             Type : DVB Subpic
                                            PID : 0x5FB
                                       Language : eng
                                           Page : 2

2015-04-20 22:44:24 QuickStream fix flag is ON.
2015-04-20 22:44:24 Starting new Frame Accurate Output Segment: start:0.000 (00:00:00.00),  end:450359962737.044 (5795:20:33.03) 
2015-04-20 22:44:24 Preparing to send status to: 0 Audio volume changed
2015-04-20 22:44:24 Sending status: 'Audio volume changed' to module: 'Output muxer - 0', Type: Video frame
2015-04-20 22:44:24 Preparing to send status to: 0 Audio volume changed
2015-04-20 22:44:24 Sending status: 'Audio volume changed' to module: 'Audio divider:output - 0', Type: Audio frame
2015-04-20 22:44:24 Preparing to send status to: 1 Audio volume changed
2015-04-20 22:44:24 Sending status: 'Audio volume changed' to module: 'Output muxer - 1', Type: Subtitle frame
2015-04-20 22:44:24 Adding new graph range, Start:          0 (00:00:00.00), End: 450359962737.04 (5795:20:33.03)
2015-04-20 22:48:03 Audio divider:output: Process thread complete.
2015-04-20 22:48:03 Graph, monitoring thread received terminate signal.
2015-04-20 22:48:03 Audio decoder:0 processing thread complete. In: 251327, Out: 251327
2015-04-20 22:48:03 Audio decoder:1 processing thread complete. In: 251323, Out: 251323
2015-04-20 22:48:03 Graph monitoring thread finished.
2015-04-20 22:48:04 Output muxer processing thread complete. Video in: 150748, Out: 150748, Buffer: 11000
2015-04-20 22:48:04 Output muxer processing thread complete. Audio stream 0 In: 251243, Out: 251243, Buffer: 0
2015-04-20 22:48:04 Muxer add / delete audio: stream: 0, add: 0  delete 0, sync:       0.00
2015-04-20 22:48:04 Output muxer processing thread complete. Audio stream 1 In: 251243, Out: 251243, Buffer: 0
2015-04-20 22:48:04 Muxer add / delete audio: stream: 1, add: 2  delete 0, sync:     -48.00
2015-04-20 22:48:04 Output muxer processing thread complete. Subtitle stream 0 In: 2838, Out: 2838
 

Dan203

Senior Developer
Staff member
Does the audio stream stop short of the video? Maybe there is a secondary audio stream in the video that is stopping short? We only output audio and video together. If the audio ends early then output will stop. Check for multiple streams. Sometimes where will be a second track, like a description track for the blind, that will end abruptly and cause an issue like that. If that's the case then just uncheck the "Allow multiple audio streams" and it should work.
 

dsperber

Member
I have my own TS files I can try editing, and saving to TS. I normally save to MPG but I'll experiment with TS to see if I can duplicate your problem or not.

Note that my TS files are from American TV, MPEG-2. I have both 720p and 1080i TS files, if that's relevant to replicating your symptom.

Just out of curiosity, how do you activate that logging function?
 

dsperber

Member
Well, I didn't have logging active, because I didn't have a problem. Worked perfectly.

Two scenes from 720p TS saved to TS, without any hiccup or stall.

Five scenes from 1080i TS saved to TS, again without a problem.
 

Dan203

Senior Developer
Staff member
Yeah the default is to do basic logging all the time. However there are extended levels of logging you can enable in Tools-Options-General
 

Paul Webster

New member
There are multiple audio streams - primary and voiceover.
I changed the profile to not store multiple streams but it did not make a difference.
So then I uninstalled the Beta and went back to v5 and it would not even start to save the file.
So then I fired up v4 and it is saving the file but at a very very very slow rate ... predicting 114 hours ... but it is saving it (I have played back the file as it is writing via a different player and it works)

I wonder if UK broadcasters have changed something in what is sent over the air and it is causing problems.
I'll leave the V4 saving overnight ... but not for 100+ hours. It is not monopolising CPU or disk though ... very strange.
 

Danr

Administrator
Staff member
@Paul, In V5 how large of an output was created before things stalled out?
 

Paul Webster

New member
Doesn't appear to be a "magic" number
1,220,463,664 bytes
48BECC30 Hex
and it has saved larger files to the same drive before - and there is still
352,156,712,960 bytes free on the drive

With more detailed logging enabled - this is the section towards the end where it seems to be closing down
Code:
2015-04-23 08:43:01 Video, count: 61/265, 01:36:32.10-01:36:34.20, Stream: 0, count: 82 01:36:32.06-01:36:34.04
2015-04-23 08:43:01 Video, count: 61/265, 01:36:33.15-01:36:36.00, Stream: 0, count: 80 01:36:33.11-01:36:35.08
2015-04-23 08:43:01 Video, count: 63/265, 01:36:34.20-01:36:37.05, Stream: 0, count: 90 01:36:34.16-01:36:36.19
2015-04-23 08:43:01 Video, count: 63/265, 01:36:36.00-01:36:38.10, Stream: 0, count: 88 01:36:35.21-01:36:37.23
2015-04-23 08:43:01 Video, count: 61/265, 01:36:37.05-01:36:39.15, Stream: 0, count: 89 01:36:37.03-01:36:39.05
2015-04-23 08:43:01 Video, count: 60/265, 01:36:38.10-01:36:40.20, Stream: 0, count: 87 01:36:38.08-01:36:40.09
2015-04-23 08:43:01 Video, count: 60/265, 01:36:39.15-01:36:42.01, Stream: 0, count: 79 01:36:39.13-01:36:41.09
2015-04-23 08:43:01 Audio divider:output: Process thread complete.
2015-04-23 08:43:01 Audio decoder:0 processing thread complete. In: 190077, Out: 190077
2015-04-23 08:43:01 Graph, monitoring thread received terminate signal.
2015-04-23 08:43:01 Graph monitoring thread finished.
2015-04-23 08:43:02 Output muxer processing thread complete. Video in: 113999, Out: 113999, Buffer: 11000
2015-04-23 08:43:02 Output muxer processing thread complete. Audio stream 0 In: 189993, Out: 189993, Buffer: 0
2015-04-23 08:43:02 Muxer add / delete audio: stream: 0, add: 0  delete 0, sync:       0.00
2015-04-23 08:43:02 Output muxer processing thread complete. Subtitle stream 0 In: 2112, Out: 2112
 
Last edited:

Dan203

Senior Developer
Staff member
That is where it closes, but it doesn't tell us why. Can you send the complete log to use at support AT videoredo.com
 

Paul Webster

New member
Logs provided.

Now here is something strange .... it is now working for that file.

So what has changed?

This morning there were 3 updates on the PC.
Microsoft Updates for Windows 8.1
AVG Free 2015 had updates that performed a reinstall (might have an effect since it is involved in all file access ...
but I do not remember there being a significant update over previous month but you never know)

Java updated (probably unconnected - unless it updates some shared system run-time libraries)

Will try with some of the other videos that were failing.

Also - I saved it with multiple audio streams enabled.
 

Danr

Administrator
Staff member
If you still have that source file, please give it a try with 728c, just posted. Would like to know if it has any issues with that file.
 

Danr

Administrator
Staff member
If you do get the problem again, email the log file (Help>Display log) to me at support. Include as an attachment.
 
Top Bottom