trouble processing video from obs replay buffer

Started by mdemo, August 09, 2017, 02:06:53 AM

Previous topic - Next topic

mdemo

I think it has to do with there not being a proper keyframe at the start.

I use QuickSync.

Sample file: https://www.amazon.com/clouddrive/share/4HnR9MDQI00ZjvWA53AKgo1EH99HRpxDlz1LtptCVgP


*************************
  Avidemux v2.6.21
*************************
http://www.avidemux.org
Code      : Mean, JSC, Grant Pedersen
GFX       : Nestor Di, nestordi@augcyl.org
Design    : Jakub Misak
FreeBSD   : Anish Mistry, amistry@am-productions.biz
Audio     : Mihail Zenkov
Mac OS X  : Kuisathaverat, Harry van der Wolf
Win32     : Grant Pedersen

Compiler: GCC 4.9.1
Build Target: Microsoft Windows (x86-64)
User Interface: Qt (5.3.1)
Operating System: Microsoft Windows (6.2.9200; 64-bit)
Time: Tue Aug 08 21:42:17 2017


[HandleAction] 01:48:56-736 ************ NextKFrame **************
[nextKeyFrame] 01:48:56-737 Current PTS :0 ms
[convertLinearTimeToSeg] 01:48:56-737 Frame time=0, taking first segment
[searchNextKeyFrameInRef] 01:48:56-737 Found nextkeyframe 133 0:0:0 at frame 0
[nextKeyFrame] 01:48:56-738 next kf PTS :133 ms
[DecodePictureUpToIntra] 01:48:56-738  DecodeUpToInta 0 ref:0
[edCache] Flush
[canSupportThis] 01:48:56-741 DXVA2 not enabled
[lookup] 01:48:56-741 No Matching Hw accel
[ADM_FFgetFormat] 01:48:56-742 No Hw Accel for that
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:56-776  decode error for frame 0, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:56-792  decode error for frame 1, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:56-811  decode error for frame 2, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:56-829  decode error for frame 3, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:56-849  decode error for frame 4, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:56-868  decode error for frame 5, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:56-886  decode error for frame 6, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:56-903  decode error for frame 7, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:56-937  decode error for frame 8, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:56-955  decode error for frame 9, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:56-975  decode error for frame 10, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:56-997  decode error for frame 11, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:57-018  decode error for frame 12, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:57-038  decode error for frame 13, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:57-056  decode error for frame 14, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:57-071  decode error for frame 15, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:57-103  decode error for frame 16, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:57-120  decode error for frame 17, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:57-141  decode error for frame 18, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:57-161  decode error for frame 19, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:57-181  decode error for frame 20, not necessarily a problem
[decompressImage] uncompress failed
[DecodePictureUpToIntra] 01:48:57-201  decode error for frame 21, not necessarily a problem
[DecodePictureUpToIntra] 01:48:57-202  Could not find decoded frame, wanted PTS :0 PTS=133 ms, 133333 us
ReadIndex:0, WriteIndex:0
Not used 0
Not used 1
Not used 2
Not used 3
Not used 4
Not used 5
Not used 6
Not used 7
[seekToIntraPts] 01:48:57-202  seeking for frame at 133 ms failed
[HandleAction] 01:49:01-682 ************ OPEN_APP_LOG **************

Jan Gruuthuse

Strange no images here on Avidemux v2.7.0 (170809_bf7f7f450ed)

MediaInfo:
General
Complete name                            : /media/jan/Work/xp1000/Replay 2017-08-08 20-52-16.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 411 MiB
Duration                                 : 30s 0ms
Overall bit rate                         : 115 Mbps
Encoded date                             : UTC 1904-01-01 00:00:00
Tagged date                              : UTC 1904-01-01 00:00:00
Writing application                      : Lavf57.66.102

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.2
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 2 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 30s 0ms
Bit rate                                 : 114 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 60.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.914
Stream size                              : 410 MiB (100%)
Encoded date                             : UTC 1904-01-01 00:00:00
Tagged date                              : UTC 1904-01-01 00:00:00

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 29s 977ms
Bit rate mode                            : Constant
Bit rate                                 : 128 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 44.1 KHz
Frame rate                               : 43.066 fps (1024 spf)
Compression mode                         : Lossy
Stream size                              : 469 KiB (0%)
Title                                    : simple_aac_recording
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : UTC 1904-01-01 00:00:00
Tagged date                              : UTC 1904-01-01 00:00:00

Jan Gruuthuse

#2
Perhaps related?
Just noticed these 2 in terminal output:
<<Parsing Mdia>>
[HDLR]
hdlr video found

<<Parsing Mdia>>
[HDLR]
hdlr audio found

Jan Gruuthuse

vlc and video plays with errors, image information missing. (grey blocks)
How did you capture/record this desktop video?


Jan Gruuthuse

#5
You could try with another encoder selection like: x264 Encoder

Only reason I can think of: your are using: Hardware (QSV) encoding?
Software decoding could have issues with this, if QSV encoding format has some other formatting in use?
Apparently you have two flavours of OBS. What are you using:
- OBS Studio
- OBS Classic

wait and see if developer(s) step in regarding hardware related

for developer(s): google: Build FFmpeg Intel's QSV-based encoders with Intel's Media SDK
hints:
bundled with the SDK:  libdrm, libva, libmfx
some hardware could be unsupported by any SDK version, like processors earlier than Ivy Bridge


Jan Gruuthuse


mdemo

Quote from: Jan Gruuthuse on August 09, 2017, 06:43:20 AM
You could try with another encoder selection like: x264 Encoder

I tried that, and the resulting video has no problems in avidemux. However, it seems my machine can't handle 1080p@60fps with software encoding.

Interestingly, the QSV-encoded videos are all 30 seconds long, while the software-encoded ones are all a bit shorter by a random amount. I think this points to some kind of problem with trimming the replay buffer or seeking to the first keyframe, but I don't really know how MPEG works in depth.