PDA

View Full Version : Playing mkv container with vp9 codec



Mickkie
30-11-17, 00:44
Hi All,

I'm trying to play a youtube video which contains the following streams:

Input #0, matroska,webm, from 'test1.mkv':
Metadata:
ENCODER : Lavf57.71.100
Duration: 00:12:51.99, start: 0.000000, bitrate: 784 kb/s
Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv, bt709/unknown/unknown), 1178x720, SAR 1:1 DAR 589:360, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
Metadata:
DURATION : 00:12:51.933000000
Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp (default)
Metadata:
HANDLER_NAME : SoundHandler
DURATION : 00:12:51.994000000


but the video shows heavy tearing at the top fifth of the screen while the rest is frozen, or jumps. The audio is fine. Should the Mut@nt be able to play it? If I were to transcode it, what codecs should I use?

Andy_Hazza
30-11-17, 05:55
As a test could you remux it using TsMuxeR on your Windows platform and change it to .m2ts container as opposed to .mkv
It will only take a few minutes.


Sent from my iPhone using Tapatalk

Mickkie
30-11-17, 10:09
Thank you Andy, I tried to remux it with ffmpeg because I don't have a MSWindows PC and there seems to be something in the original file which creates an error:


Input #0, matroska,webm, from 'Test1.mkv':
Metadata:
ENCODER : Lavf57.71.100
Duration: 00:12:51.99, start: 0.000000, bitrate: 784 kb/s
Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv, bt709/unknown/unknown), 1178x720, SAR 1:1 DAR 589:360, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
Metadata:
DURATION : 00:12:51.933000000
Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp (default)
Metadata:
HANDLER_NAME : SoundHandler
DURATION : 00:12:51.994000000
Output #0, mpegts, to 'Test1.m2ts':
Metadata:
encoder : Lavf57.71.100
Stream #0:0(eng): Video: vp9 (Profile 0), yuv420p(tv, bt709/unknown/unknown), 1178x720 [SAR 1:1 DAR 589:360], q=2-31, 30 fps, 30 tbr, 90k tbn, 1k tbc (default)
Metadata:
DURATION : 00:12:51.933000000
Stream #0:1: Audio: aac (LC), 44100 Hz, stereo, fltp (default)
Metadata:
HANDLER_NAME : SoundHandler
DURATION : 00:12:51.994000000
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x1d4a650] Application provided invalid, non monotonically increasing dts to muxer in stream 0: 2970 >= 2970
av_interleaved_write_frame(): Invalid argument
frame= 3 fps=0.0 q=-1.0 Lsize= 152kB time=00:00:00.03 bitrate=37735.8kbits/s speed=53.4x
video:137kB audio:1kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 10.586982%
Conversion failed!

It may be the video stream is problematic to start with and it's not a container problem, because I don't have problems playing other .mkv videos.

Mickkie
30-11-17, 11:33
Aha! I transcoded using a different video codec (x265) and the resultant file plays fine:

ffmpeg -i Test1.mkv -codec:v libx265 -codec:a copy Test2.m2ts

Problem solved. :)