April 13, 2021, 02:23:26 AM

News:

--


Cannot seek mkv

Started by roughnecks, April 19, 2017, 10:57:34 PM

Previous topic - Next topic

roughnecks

Hi there.

I have recorded some gameplay with MSI Afterburner, using x264vfw as video format and mkv as container.
When I open that file with Avidemux, I cannot seek to desired position because it doesn't stick. Pressing play it always start from the beginning and advancing the timeline slider (when the "player" is stopped) doesn't get me a preview of the video.

In this situation I cannot go to some point in time to cut where I'd like to, but I only can play the video from the beginning, forcing me to watch it all.

Here's medianfo report:

General
Unique ID                                : 173278224971879922090146890675488471748 (0x825C2C1680A4F879B4B184AAF1B6BAC4)
Complete name                            : D:\Video\Temp\The Tape_2017_04_19_22_38_18_479.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 1.68 GiB
Duration                                 : 38 min 52 s
Overall bit rate                         : 6 194 kb/s
Movie name                               : The Tape_2017_04_19_22_38_18_479.mkv
Encoded date                             : UTC 2017-04-19 22:38:18
Writing application                      : MSIAfterburner.exe v4.3.0.9267
Writing library                          : RivaTuner media encoding library v1.38.0.0

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Baseline@L3.1
Format settings, CABAC                   : No
Format settings, ReFrames                : 1 frame
Codec ID                                 : V_MS/VFW/FOURCC / H264
Duration                                 : 38 min 52 s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 30.000 FPS
Original frame rate                      : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Writing library                          : x264 core 148 r2694bm 3b70645
Encoding settings                        : cabac=0 / ref=1 / deblock=0:0:0 / analyse=0:0 / me=dia / subme=0 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=3 / lookahead_threads=3 / sliced_threads=1 / slices=3 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=0 / intra_refresh=0 / rc=crf / mbtree=0 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=0
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : PCM
Codec ID                                 : A_PCM/INT/LIT
Duration                                 : 38 min 52 s
Bit rate mode                            : Constant
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Bit depth                                : 16 bits
Language                                 : English
Default                                  : Yes
Forced                                   : No



Am I doing something wrong? Thanks

Jan Gruuthuse

Check if you're using the latest 2.6.19 for your windows from: win32_ / win64_ support

If this is latest avidemux 2.6.19. Try a re-mux with mkvtoolnix

If still an issue, make an 10 second recording and upload this sample video as it is.
Info: Upload Hochladen Télécharger Subir

eumagga0x2a

Likely I-frames not marked as keyframes. I have some DVB-C recordings remuxed by older Avidemux versions which exhibit the same symptoms (they are still seekable in mpv though).

Nevertheless, please provide a sample.

roughnecks

Quote from: Jan Gruuthuse on April 20, 2017, 04:20:44 AM
Check if you're using the latest 2.6.19 for your windows from: win32_ / win64_ support

If this is latest avidemux 2.6.19. Try a re-mux with mkvtoolnix

Latest version, yeah, but mkvtoolnix worked. Thanks
Do you know why is this happening and if is there something I can do to fix it for the next recording (I mean, without being forced to re-mux it)?

roughnecks

Quote from: eumagga0x2a on April 20, 2017, 06:23:14 AM
Nevertheless, please provide a sample.

I'm going to do that in a couple hours.


eumagga0x2a

Quote from: roughnecks on April 20, 2017, 09:50:11 AM
[...] mkvtoolnix worked. Thanks

This is a different issue than with my non-seekable MKVs then. Once loaded in Avidemux and saved in copy mode (remuxed), the resulting video becomes seekable in Avidemux. No luck with my own samples.

mirh

April 20, 2017, 07:20:32 PM #7 Last Edit: April 20, 2017, 07:54:10 PM by mirh
In my case, trying to manually set time in this kind of unseekable files, also make the program hang.
EDIT: test case

roughnecks

Quote from: mirh on April 20, 2017, 07:20:32 PM
In my case, trying to manually set time in this kind of unseekable files, also make the program hang.

It crashed to me too when I tried.

Jan Gruuthuse

April 21, 2017, 04:03:51 AM #9 Last Edit: April 21, 2017, 04:37:30 AM by Jan Gruuthuse
Quote from: eumagga0x2a on April 20, 2017, 03:16:35 PM
>8 >8 Once loaded in Avidemux and saved in copy mode (remuxed), the resulting video becomes seekable in Avidemux. >8 >8
as previously stated (above quote)

Load the none seekable mkv's into avidemux.
Save the loaded video with [Copy] for both Video and Audio Output with Output Format set to [Mkv Muxer]
90% chance the saved mkv works normal again.

mean

It seems like it is a mp4 vs annexB issue, i.e. the two different muxing mode of h264
That file is using the non usual one for mkv

Once remuxed with mkvmerge , it works fine

roughnecks

Quote from: mean on April 21, 2017, 05:45:24 AM
It seems like it is a mp4 vs annexB issue, i.e. the two different muxing mode of h264
That file is using the non usual one for mkv

Anything I can change here to make it work?


mean


roughnecks

I can only choose to save to file instead of vfw, but I need vfw to capture within Afterburner. Should I change the FourCC?

mirh

Quote from: mean on April 21, 2017, 05:45:24 AMOnce remuxed with mkvmerge , it works fine
Sure, I can confirm.
It would still be better if it was handled natively though.
If technically infeasible or too much effort-requiring, at least it should not screw up the program.