vivictorg / vivictpp

Vivict++ is an easy to use tool for subjective comparison of the visual quality of different encodings of the same video source.
GNU General Public License v2.0
79 stars 6 forks source link

Does not play MPEG-TS files #67

Open slhck opened 2 days ago

slhck commented 2 days ago

I have these two files I want to compare:

https://storage.googleapis.com/aveq-storage/examples/vivictpp/Dancers_8s-premium.ts

https://storage.googleapis.com/aveq-storage/examples/vivictpp/Dancers_8s-plus.ts

When I open each one individually in vivictpp, I can press Space and they will play.

Yet, when I specify both, playback no longer works upon pressing Space; instead it toggles a small window showing frame information (Edit: This just seems to be the "pause" state.)

image

Both videos play fine in ffplay and mpv. When I convert them to MP4 they also play fine in vivictpp:

ffmpeg -i <input> -c:v copy <output>

This is Vivict++ 1.1.0 running under macOS without hardware acceleration.

Do you have any idea why the MPEG-TS files might not be supported?

grusell commented 2 days ago

This would be because the timestamps are not aligned between the files, this is an area that needs improvement. Adjusting the 'frameoffset' by pressing '<' and '>' keys is a workaround, but it is a bit annoying when the difference is rather large. I think vivict could handle this better by:

grusell commented 2 days ago

I will look into fixing this

slhck commented 2 days ago

You're right, I noticed this just now, trying to calculate full reference quality metrics. For some reason the frames are not aligned, apparently a different configuration of the original encoding service.

If you have an easy fix, that'd be great, but it's also not trivial, I think, to find good alignments in all cases.