In trial. Worked great for 3 days. Now preview timeline is messed up.

mjitkop

New member
Hello, new future user here (I hope!) currently evaluating TVSuite V6.

I found out about VideoReDo from mentions in the Channels DVR forums and decided to give it a try.
I must say that after removing commercials from 2 movies with it on day one, I was in love! :love:
It creates beautiful and smooth transitions, just the way I like them, by just encoding around cut points. Fantastic! :cool:

However, 2 days ago, major disappointment: the preview timeline started messing up with the frames and now it's hard to tell which frame is actually the one selected.
Here is an example where you can see duplicate frame numbers and also out or order:

videoredo_timeline_messedup.png

Also, you can see after frame number 16.26.03 (if that is even the real number) that the sound waveform is missing.

For info, here are some specs of my computer:

pc_specs.png

This problem has occurred with all the videos I have loaded in the past 2 days.
In case this is relevant, here is what MediaInfo reports about the last video that I loaded:

General
ID : 0 (0x0)
Complete name : D:\DVR\Movies\Top Gun (1986) 2022-01-14-1900.mpg
Format : MPEG-TS
File size : 3.93 GiB
Duration : 2 h 31 min
Overall bit rate mode : Variable
Overall bit rate : 3 708 kb/s
Law rating : TV-14 (LV)
FileExtension_Invalid : ts m2t m2s m4t m4s tmf ts tp trp ty

Video
ID : 256 (0x100)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : 27
Duration : 2 h 31 min
Nominal bit rate : 3 500 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 148 r2579M 73ae2d1
Encoding settings : cabac=1 / ref=2 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=2 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=4 / lookahead_threads=1 / sliced_threads=0 / nr=250 / decimate=1 / interlaced=0 / bluray_compat=0 / stitchable=1 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=2pass / mbtree=1 / bitrate=3500 / ratetol=1.0 / qcomp=0.60 / qpmin=5 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=7000 / vbv_bufsize=3500 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 257 (0x101)
Menu ID : 1 (0x1)
Format : AAC LC SBR
Format/Info : Advanced Audio Codec Low Complexity with Spectral Band Replication
Commercial name : HE-AAC
Format version : Version 4
Format settings : Implicit
Muxing mode : ADTS
Codec ID : 15-2
Duration : 2 h 31 min
Bit rate mode : Variable
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 23.438 FPS (2048 SPF)
Compression mode : Lossy
Delay relative to video : -10 ms

Text #1
ID : 256 (0x100)-CC1
Menu ID : 1 (0x1)
Format : EIA-608
Muxing mode : SCTE 128 / DTVCC Transport
Muxing mode, more info : Muxed in Video #1
Duration : 2 h 31 min
Bit rate mode : Constant
Stream size : 0.00 Byte (0%)
CaptionServiceName : CC1

Text #2
ID : 256 (0x100)-CC3
Menu ID : 1 (0x1)
Format : EIA-608
Muxing mode : SCTE 128 / DTVCC Transport
Muxing mode, more info : Muxed in Video #1
Duration : 2 h 31 min
Bit rate mode : Constant
Stream size : 0.00 Byte (0%)
CaptionServiceName : CC3
If there is anything else you need from me in order to fix this problem, please let me know.

Since first experiencing the problem, I tried to clean my PC by removing temporary files and I also restarted the machine, which I don't do very often because this a server that is running Channels DVR, Plex, and Home Assistant.
That didn't help.

Coincidentally, this started happening right after I started getting reminders that my trial period was going to end and I should purchase a key.
I'm not suggesting that this is related, it is just an observation. ;)

I really hope somebody can help me fix this 🙏 because I really want it! 🤤 My money is ready! 💰
 

jmc

Well-known member
Frame rate mode : Variable

I believe, depending on amount of "Variable" (think 1 frame)...is not supported
 

Fentropic

Member
However, 2 days ago, major disappointment: the preview timeline started messing up with the frames and now it's hard to tell which frame is actually the one selected.
Here is an example where you can see duplicate frame numbers and also out or order:

View attachment 3364

Also, you can see after frame number 16.26.03 (if that is even the real number) that the sound waveform is missing.
What is your source for that one. HDHR, TVE, M3U or PlayOn Cloud?

Also are the frames you're showing part of the program, or an ad?

Most likely it's not a VFR (Variable Frame Rate), but ads inserted in the stream are sometimes 30fps with the program being 29.97, or 60fps with the program being 59.94.
In that case, once you cut the ads out it will be fine.
 

Dan203

Senior Developer
Staff member
What is your source for that one. HDHR, TVE, M3U or PlayOn Cloud?

Also are the frames you're showing part of the program, or an ad?

Most likely it's not a VFR (Variable Frame Rate), but ads inserted in the stream are sometimes 30fps with the program being 29.97, or 60fps with the program being 59.94.
In that case, once you cut the ads out it will be fine.
If it is just the ads you might be able to remove them using QSF. In the QSF dialog you can click "enable filters" and it will scan the file looking for alternate resolutions and frame rates. Just pick the one that corresponds to the main video and everything else, that doesn’t match, will be thrown out.
 

Fentropic

Member
If it is just the ads you might be able to remove them using QSF. In the QSF dialog you can click "enable filters" and it will scan the file looking for alternate resolutions and frame rates. Just pick the one that corresponds to the main video and everything else, that doesn’t match, will be thrown out.
I've tried that previously. Problem is some ads are the same dimension as the program (i.e. 1920x1080) but different frame rate (30 vs 29.97) and the filter only respects resolution changes, not frame rate.
Here's the thread https://videoredo.net/msgBoard/index.php?threads/source-frame-rate-option-explained.37471/

I just make sure my cuts extend a frame or two into the program on each side (front & back) of my ad cuts.
 
Last edited:

Dan203

Senior Developer
Staff member
I've tried that previously. Problem is some ads are the same dimension as the program (i.e. 1920x1080) but different frame rate (30 vs 29.97) and the filter only respects resolution changes, not frame rate.
Here's the thread https://videoredo.net/msgBoard/index.php?threads/source-frame-rate-option-explained.37471/

I just make sure my cuts extend a frame or two into the program on each side (front & back) of my ad cuts.
It works with frames rates too, but only if they’re reported correctly in the NALs. For H.264/H.265 that isn’t always the case.
 

mjitkop

New member
Thank you all for your replies.

I just tried QSF with filters and it showed only one resolution and frame rate:

videoredo_qsf.png

I proceeded to save the "fixed" video and got this:

videoredo_qsf_results.png

After that, I played the new file in VLC and the audio was completely out of sync, being several seconds behind the video. In other words, much worse than the original video.

I agree that the source may not give the best quality video file but it's still fine when played with VLC or another player.

What is your source for that one. HDHR, TVE, M3U or PlayOn Cloud?
TVE. To be exact, the Paramount Network channel.

Also are the frames you're showing part of the program, or an ad?
The first frame in the preview is (supposed to be) the last frame of the ad segment, all others are the movie.

once you cut the ads out it will be fine
That's exactly what I'm trying to do but the preview timeline is messed up so I'm not exactly sure how I can cut with frame accuracy in this case.
I need the preview to be accurate because not only do I go by the video frames to select my cut points, but I also look at the sound waveform. If the sound waveform is missing, I'm totally blind.

In the QSF dialog you can click "enable filters" and it will scan the file looking for alternate resolutions and frame rates. Just pick the one that corresponds to the main video and everything else, that doesn’t match, will be thrown out.
That's a very cool feature!

Conclusion at this time: problem not fixed.

My trial period ends tomorrow so I think this is trying to tell me that this is not for me, unfortunately.
Maybe it just doesn't work with all TVE sources.

I guess for now I will continue to use Avidemux even though it only cuts accurately without reencoding on key frames.

I'm open to other suggestions. Please keep them coming. I'm willing to try anything for as long as my trial period is active!
 

Fentropic

Member
However, 2 days ago, major disappointment: the preview timeline started messing up with the frames and now it's hard to tell which frame is actually the one selected.
Here is an example where you can see duplicate frame numbers and also out or order:

videoredo_timeline_messedup.png


Also, you can see after frame number 16.26.03 (if that is even the real number) that the sound waveform is missing.
I proceeded to save the "fixed" video and got this:

videoredo_qsf_results.png


I'm open to other suggestions. Please keep them coming. I'm willing to try anything for as long as my trial period is active!
I cut TVE and M3U streams from Channels DVR all the time.
A lot of the TVE/M3U streams come with timestamp issues which is why you see repeated frame times under the audio waveform and sometimes large jumps in the time.
Sometimes the audio actually does drop out in the source for a short time (I even see that on Cable recordings from my HDHR Prime).
All those frames being removed in the output save are probably because you haven't cut all of the commercial content.

I found the best way to cure it is use single frame view on the thumbnail strip.
Find the start of a commercial and just look at the thumbnail images and the full video, ignoring the audio waveform.
Start your cut one or two frames before the commercial starts and one or two frames after the commercial ends.
Then when you save you should have little to no resync frames removed and the audio will be in sync.
 
Last edited:

mjitkop

New member
use single frame view on the thumbnail strip
Sorry, I don't know what this means. Is it a setting in VideReDo?
Maybe you can show a screenshot so I know what it looks like?

Start your cut one or two frames before the commercial starts and one or two frames after the commercial ends.
The perfectionist side of me is screaming: "WHAT? ARE YOU CRAZY?! I WANT FRAME ACCURACY!!"
The rational side of me is saying: "Fair enough, I can give it a try."
:LOL:
 

mjitkop

New member
During the first 3 days of my trial, I successfully edited 10 movies recorded on Lifetime and got perfect transitions. VideReDo was flawless.
Unfortunately, I deleted the original video files after I saved the clean versions so I can't reload them in VideReDo now.

However, I do have other movies recorded on Lifetime that are waiting to be cleaned up.
I just loaded one now and started creating cut points. I was very hopeful at first because I was able to define the first two ad segments to remove but then the preview timeline started acting up again like this:

videoredo_lifetime_preview_nok.png

These frames are from the movie as I was browsing through it.

Very frustrating because I had no problems (10 times!) from the same channel earlier in the week.
 

Fentropic

Member
These frames are from the movie as I was browsing through it.
When you see audio lost like that, zoom out the thumbnail view to 0.25 or 0.5 seconds to see how big of a gap in the audio you have,
Sometimes it's unavoidable because it's in the source and nothing you can do (like I said I get that from Cable sometimes).
Other tools probably never show you that and just drop the frames when saving.
 

mjitkop

New member
Thanks for the tips!

It's getting late now (12:30 AM) so lights out for today.
I will look at this tomorrow. Last day of the trial so hopefully it will work out.

Thanks again for your support.
 

BZee

Member
IIRC the developers have extended a trial for someone who was having problems during their trial period. Wouldn't hurt to ask.
 

musicvid

Member
I think your broadcast source simply has too many errored frames to sync properly. Record something at 3am -- does it show the same problems?
 

mjitkop

New member
I think your broadcast source simply has too many errored frames to sync properly. Record something at 3am -- does it show the same problems?
I could schedule recordings at 3am but that will be beyond my trial period so I won't be able to check tomorrow.

Unless, as @BZee mentioned, I can be granted an extension of my trial period so that I can finalize my tests. I see that @Dan203 is a senior developer and staff member. @Dan203 would that be possible? 🙏
 

Fentropic

Member
I could schedule recordings at 3am but that will be beyond my trial period so I won't be able to check tomorrow.
The missing audio is in the TVE source stream.
Run redetect commercial against one of those recordings that shows missing audio and examine the comskip log.
Search for 'Jump' and 'Strange' in the log.
On those lines in the log you will see the PTS jumps forward or backward in time.
Here's an example of one I had
Code:
Strange audio pts step of 2959.04642 instead of 0.00000 at frame 509
Jump in base apts from 17.52342 to 2976.56930, delta=2959.04588
Strange audio pts step of -2959.17342 instead of 0.00000 at frame 512
Jump in base apts from 2976.56930 to 17.39537, delta=-2959.17392
Strange video pts step of 2959.16028 instead of 0.03387 at frame 512
Strange audio pts step of -2959.17342 instead of 0.00000 at frame 514
Jump in base apts from 2976.56932 to 17.39540, delta=-2959.17392
Strange video pts step of -2959.10738 instead of 0.03387 at frame 514
Strange video pts step of 2959.16028 instead of 0.03387 at frame 514
Strange video pts step of -2959.10738 instead of 0.03387 at frame 516
Corrupted stream from the Network broadcaster.
 

Dan203

Senior Developer
Staff member
I could schedule recordings at 3am but that will be beyond my trial period so I won't be able to check tomorrow.

Unless, as @BZee mentioned, I can be granted an extension of my trial period so that I can finalize my tests. I see that @Dan203 is a senior developer and staff member. @Dan203 would that be possible? 🙏
Send an email to support, they can give you an extension
 
Top Bottom