#9557 closed defect (duplicate)
Wrong video codec info with mediainfo
Reported by: | kgp700 | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avcodec |
Version: | git-master | Keywords: | libx264 |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description (last modified by )
Summary of the bug: Wrong video codec info with mediainfo
Precondition :
Use ffmpeg git 2021-10-21 builds or newer build (also reproduce on master branch build 2021-12-19)
How to reproduce:
1.Encoding video with libx264 (Use ffmpeg git 2021-10-21 builds or newer build)
2.Check video file video codec information with Mediainfo ("Writing library" and "Encoding settings")
Encoding parameter : ffmpeg.exe -y -fflags +discardcorrupt -itsoffset 0 -i "F:\origin.mp4" -vcodec libx264 -preset fast -g 60 -keyint_min 60 -b:v 4500k -framerate 60 -threads 0 -r 60 -x264-params ref=2:colorprim=bt709:fullrange=off:me=tesa:ref=6:mixed-refs=1:deblock=0,0:8x8dct=1:bframes=8:merange=50:subme=10:psy-rd=1,0:trellis=2:direct=auto:chroma_me=1:weightp=2:no-dct-decimate=1:no-fast-pskip=1:rc_lookahead=50:qcomp=0.6:ipratio=1.41:aq-mode=1:aq-strength=0.8:b-adapt=1:b-pyramid=1:scenecut=50 -bufsize:v 4500k -maxrate:v 4500k -minrate:v 4500k -acodec aac -strict -2 -aac_tns 0 -aac_is 0 -aac_ms 1 -aac_pns 0 -b:a 256k -map_metadata -1 -map_chapters -1 "F:\encoded.mp4"
Actual Result :
Writing library always "x264 core 160 r3000",
Encoding Settings always "cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=4 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / ..."
Expected Result :
Writing library "x264 core 164 r3075 66a5bc1"
Encoding Settings "cabac=1 / ref=6 / deblock=1:0:0 / analyse=0x3:0x113 / me=tesa / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=50 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / ..."
Comment : When I tried with ffmpeg git 2021-10-18, it was no problem.
When I change encoding parameter, definitly encoding speed and quality was changed.
That means encoding parameter applied but just media info was wrong.
I compared both version commits. I guess these commits have problem.
1.https://github.com/FFmpeg/FFmpeg/commit/7c08cad280a16b346c0a5e0efdfd8333ec54f095
2.https://github.com/FFmpeg/FFmpeg/commit/66f8055c898887c33ab124ca5f00ee60bf5fcf19
3.https://github.com/FFmpeg/FFmpeg/commit/1e22ad2adab194ff65fe20fdda1d451ef30cbaab
I tried build with x264 master and stable build, it was not affected.
I tried overwrite 2021-10-18 libx264.c on lasted master branch, then problem solved
Change History (7)
comment:1 by , 3 years ago
Description: | modified (diff) |
---|
comment:2 by , 3 years ago
Description: | modified (diff) |
---|
comment:3 by , 3 years ago
Description: | modified (diff) |
---|
comment:4 by , 3 years ago
Description: | modified (diff) |
---|
comment:5 by , 3 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
comment:7 by , 2 years ago
Keywords: | libx264 added |
---|
Quasi-duplicate of #9500.