I have been searching for a solution for this issue for almost two weeks now but i couldn't a viable solution for it.
I have a software that record videos, and the issue that for some videos VLC would show incorrect time length of 12 hours, but for some videos it will show a correct duration of 3 minutes.
I have tried to compare the the metadata of both videos and both are the same and show the same fps, duration and codec.
I have tried to use another video player which was working correctly. all videos was showing correct timeline.
I have checked my videos on VLC for Linux Ubuntu and windows and both show the same behavior with the same videos.
Note: I have noticed that if i converted the video format from mp2 to mp4 it will show the time correctly.
Is there something that I'm missing?
VLC Version on both Linux and windows is 3.0.18 Vetinari
These are the metadata of both videos using mediainfo tool
General
ID : 1 (0x1)
Complete name : incorrect_timeline.mp2
Format : MPEG-TS
File size : 17.7 MiB
Duration : 3 min 0 s
Overall bit rate mode : Variable
Overall bit rate : 825 kb/s
FileExtension_Invalid : ts m2t m2s m4t m4s tmf ts tp trp ty
Video
ID : 65 (0x41)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L4@Main
Codec ID : 36
Duration : 3 min 0 s
Bit rate : 784 kb/s
Width : 1 280 pixels
Height : 800 pixels
Display aspect ratio : 16:10
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Stream size : 16.8 MiB (95%)
Below is the metadata of the video file that works correctly with VLC.
Thanks in advance.General
ID : 1 (0x1)
Complete name : correct_timeline.mp2
Format : MPEG-TS
File size : 17.8 MiB
Duration : 2 min 59 s
Overall bit rate mode : Variable
Overall bit rate : 827 kb/s
FileExtension_Invalid : ts m2t m2s m4t m4s tmf ts tp trp ty
Video
ID : 65 (0x41)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main@L4@Main
Codec ID : 36
Duration : 2 min 59 s
Bit rate : 787 kb/s
Width : 1 280 pixels
Height : 800 pixels
Display aspect ratio : 16:10
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Stream size : 16.9 MiB (95%)