I have a webm which is a screen recording generated by MediaCapture. Under certain conditions, the video playback time is different in Chrome and Firefox. For example, a video showing 14 minutes on Chrome shows 15 seconds on Firefox. My application uses Video.js to play these files and the same problem is manifesting there. I want to resolve this and keep it consistent across browsers. Here is the ffmpeg info about one such webm .
Input #0, matroska,webm, from '../weird.webm':
Metadata:
encoder : Chrome
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0(eng): Audio: opus, 48000 Hz, mono, fltp (default)
Stream #0:1(eng): Video: h264 (Baseline), yuv420p(tv, bt709, progressive), 1440x900, SAR 1:1 DAR 8:5, 29.50 fps, 29.50 tbr, 1k tbn (default)
Output #0, null, to 'pipe:':
Metadata:
encoder : Lavf59.27.100
Stream #0:0(eng): Video: h264 (Baseline), yuv420p(tv, bt709, progressive), 1440x900 [SAR 1:1 DAR 8:5], q=2-31, 29.50 fps, 29.50 tbr, 1k tbn (default)
Stream #0:1(eng): Audio: opus, 48000 Hz, mono, fltp (default)
Stream mapping:
Stream #0:1 -> #0:0 (copy)
Stream #0:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[null @ 0x15663d680] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 2820 >= 2820
Last message repeated 8 times
frame= 243 fps=0.0 q=-1.0 Lsize=N/A time=00:00:10.76 bitrate=N/A speed=1.24e+04x
video:682kB audio:68kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
0