All my hardware encodes playback jerky:

Discuss about generic usage of MediaCoder.

Moderator: HuggiL

Post Reply
flagpole
Modest
Modest
Posts: 236
Joined: Tue Jan 26, 2010 10:12 pm
Contact:

All my hardware encodes playback jerky:

Post by flagpole » Fri Oct 12, 2018 7:36 pm

Not in vlc but on my standalone player.

Basically my standalone player needs black bars adding to it so i do a quick NVENC, bump up the bitrate and transfer to to my hardware player. But recently (i've changed nothing,) it's been playing back jerky. and i think its to do with the frame rate.

So i've encoded the first minute with x264 and again with NVENC, no other settings are changed.

NVENC:
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L3
Format settings : 2 Ref Frames
Format settings, CABAC : No
Format settings, RefFrames : 2 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 59 s 977 ms
Bit rate : 3 407 kb/s
Width : 720 pixels
Height : 404 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 FPS
Original frame rate :23.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.488
Stream size : 24.4 MiB (97%)
Default : Yes
Forced : No


X264:
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 59 s 977 ms
Bit rate : 962 kb/s
Width : 720 pixels
Height : 404 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (23976/1000) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.138
Stream size : 6.88 MiB (91%)
Writing library : x264 core 157 r2935 545de2f
Encoding settings : opencl=1 / cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=7 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=19.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Default : Yes
Forced : No



I don't know where this is coming from, i can't remove it with the header eiditor in MKVToolNix. It's completely changed my work flow.
my quant puzzles http://puzzles.nigelcoldwell.co.uk go look :)

dcol
Beginner
Beginner
Posts: 3
Joined: Mon Jul 30, 2018 3:06 am

Re: All my hardware encodes playback jerky:

Post by dcol » Fri Nov 02, 2018 8:48 am

I can't use NVENC since the last few updates, also get jerky video. Now I even get the jerky video using QuickSync. What happened. MediaCoder use to be my goto for encoding. Now I went back to Handbrake. Does a good job, just a lot slower.

Half the time MC doesn't even start up.

stanley
Site Admin
Site Admin
Posts: 4109
Joined: Mon May 15, 2006 7:43 pm
Location: Sydney

Re: All my hardware encodes playback jerky:

Post by stanley » Mon Nov 05, 2018 10:56 pm

Which revisions before and after?
When things work together, things work.

flagpole
Modest
Modest
Posts: 236
Joined: Tue Jan 26, 2010 10:12 pm
Contact:

Re: All my hardware encodes playback jerky:

Post by flagpole » Mon Nov 12, 2018 3:36 am

I don't know. Tomorrow i shall try installing some old versions and see.
my quant puzzles http://puzzles.nigelcoldwell.co.uk go look :)

flagpole
Modest
Modest
Posts: 236
Joined: Tue Jan 26, 2010 10:12 pm
Contact:

Re: All my hardware encodes playback jerky:

Post by flagpole » Wed Dec 05, 2018 9:54 pm

I'm using build 5920 and they playback fine. I'm using the same preset as on the latest version.
my quant puzzles http://puzzles.nigelcoldwell.co.uk go look :)

flagpole
Modest
Modest
Posts: 236
Joined: Tue Jan 26, 2010 10:12 pm
Contact:

Re: All my hardware encodes playback jerky:

Post by flagpole » Wed Dec 05, 2018 10:57 pm

So the mediainfo for build 5930 looks like this

General
Complete name : C:\Users\Nigel\Documents\Nigel\incoming\5930.mp4
Format : MPEG-4
Codec ID : M4V (isom/avc1/M4A /M4V /mp42)
File size : 21.3 MiB
Duration : 3 min 0 s
Overall bit rate mode : Variable
Overall bit rate : 993 kb/s
Encoded date : UTC 2018-12-05 11:17:52
Tagged date : UTC 2018-12-05 11:17:52

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 2 min 59 s
Bit rate : 894 kb/s
Maximum bit rate : 2 110 kb/s
Width : 720 pixels
Height : 404 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Original frame rate : 23.976 (23976/1000) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.128
Stream size : 19.2 MiB (90%)
Writing library : x264 core 152 r2851kMod ba24899
Encoding settings : opencl=1 / cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / fade_compensate=0.00 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=7 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=21.0000 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2018-12-05 11:17:52
Tagged date : UTC 2018-12-05 11:17:52
Codec configuration box : avcC

Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 3 min 0 s
Bit rate mode : Variable
Bit rate : 96.0 kb/s
Maximum bit rate : 117 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 2.06 MiB (10%)
Encoded date : UTC 2018-12-05 11:16:09
Tagged date : UTC 2018-12-05 11:17:52

and 5938
General
Complete name : C:\Users\Nigel\Documents\Nigel\incoming\5938.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 21.3 MiB
Duration : 3 min 0 s
Overall bit rate : 993 kb/s
Writing application : Lavf58.12.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, RefFrames : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 2 min 59 s
Bit rate : 893 kb/s
Width : 720 pixels
Height : 404 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (23976/1000) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.128
Stream size : 19.2 MiB (90%)
Writing library : x264 core 155 r2901 7d0ff22
Encoding settings : opencl=1 / cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=7 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=21.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Menus : 3
Codec configuration box : avcC

Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 3 min 0 s
Bit rate mode : Constant
Bit rate : 96.0 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 2.06 MiB (10%)
Default : Yes
Alternate group : 1
Menus : 3

Menu #1
ID : 3
Codec ID : text
Duration : 3 min 0 s
Language : English
Menu For : 1,2

(This is software encoding obviously, turns out it was all my encodes, not just hardware)
So i think i'm ok. for some reason the muxer changed between 5930 and 5938 but if i add mp4box to the preset hopefully that will fix it.

We are left with what caused to muxer to change and why ffmpeg plays back jerky on my hardware player. but i guess somethings we were not meant to know everything.
my quant puzzles http://puzzles.nigelcoldwell.co.uk go look :)

Post Reply