[FFmpeg-trac] #9557(avcodec:new): Wrong video codec info with mediainfo

FFmpeg trac at avcodec.org
Sun Dec 19 08:21:48 EET 2021


#9557: Wrong video codec info with mediainfo
------------------------------------+-----------------------------------
             Reporter:  kgp700      |                    Owner:  (none)
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avcodec
              Version:  git-master  |               Resolution:
             Keywords:              |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |
------------------------------------+-----------------------------------
Description changed by kgp700:

Old description:

> 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.
> 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.

New description:

 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.
 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.

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/9557#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list