Author Topic: resampleFps have no results with x264  (Read 184 times)

S_Flash

  • Newbie
  • *
  • Posts: 5
resampleFps have no results with x264
« on: August 17, 2018, 07:00:19 PM »
Hello!
Avidemux 2.7.1 - Release (Windows)

in convert.py:
Code: [Select]
adm.videoCodec("x264", "useAdvancedConfiguration=False", "general.params=CBR=28800", "general.threads=2", "general.preset=slow", ...
...
adm.addVideoFilter("resampleFps", "mode=1", "newFpsDen=1000", "newFpsNum=25000")
...

Filter resampleFps was added from filters GUI.
Using Batch mode to convert couple of files in cli mode.

Result for each in MediaInfo:

Code: [Select]
Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.2
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 5 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 26mn 10s
Bit rate                                 : 28.8 Mbps
Width                                    : 720 pixels
Height                                   : 480 pixels
Display aspect ratio                     : 3:2
Frame rate mode                          : Variable
Frame rate                               : 25.000 fps
Minimum frame rate                       : 8.333 fps
Maximum frame rate                       : 25.126 fps
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 3.333
Stream size                              : 5.28 GiB (99%)
Writing library                          : x264 core 152 r2854 e9a5903
Encoding settings                        : cabac=1 / ref=5 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=hex / subme=8 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=2 / 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=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=abr / mbtree=1 / bitrate=28800 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Encoded date                             : UTC 2018-08-17 15:58:52
Tagged date                              : UTC 2018-08-17 17:06:39


I mean this lines:
Frame rate mode                          : Variable
Frame rate                                   : 25.000 fps
Minimum frame rate                   : 8.333 fps
Maximum frame rate                     : 25.126 fps

UPD: This issue looks like only for MP4 and MP4v2 Muxers. Mkv Muxer show correct data.

How to force constant fps (framerate) for MP4v2 Muxer?
« Last Edit: August 17, 2018, 09:42:08 PM by S_Flash »

Jan Gruuthuse

  • Hero Member
  • *****
  • Posts: 6052
Re: resampleFps have no results with x264
« Reply #1 on: August 18, 2018, 06:16:30 AM »
Please use latest nightly, not Avidemux 2.7.1 - Release.
https://avidemux.org/nightly/

make settings within avidemux gui and save as project compare settings against previous above settings.
Only use avidemux gui, not cli.
Report back please on your next text.

S_Flash

  • Newbie
  • *
  • Posts: 5
Re: resampleFps have no results with x264
« Reply #2 on: August 18, 2018, 07:39:00 AM »
Thanks.
Used avidemux_r180807_win64Qt5_535
.py configs was identical
But now MP4v2 convert now have correct fps values in QT. Looks like All Ok!
Cli version unstable.
« Last Edit: August 18, 2018, 08:23:40 AM by S_Flash »

eumagga0x2a

  • Hero Member
  • *****
  • Posts: 2201
Re: resampleFps have no results with x264
« Reply #3 on: August 18, 2018, 02:35:04 PM »
There were no changes post-release which might be related to FPS jitter, especially the MP4v2 muxer hasn't been touched for ages. Please provide a sample source video (preferably < 500 MiB in size) which would allow to reproduce the issue and the project script you are using. If you can't provide a sample, please provide at least MediaInfo output for the source video.

If timestamps in the source video exhibit jitter, also the Avidemux output will have jitter.