it gives me variable framerate...??? And the source has constant framerate... any help appreciated...
+ Reply to Thread
Results 1 to 27 of 27
-
-
Complete name : C:\Users\Balema\VidCoder Files\kew - 0.00.00-0.00.20.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42
File size : 14.2 MiB
Duration : 20s 11ms
Overall bit rate mode : Variable
Overall bit rate : 5 932 Kbps
Encoded date : UTC 2014-02-22 12:01:18
Tagged date : UTC 2014-02-22 12:02:08
Writing application : HandBrake 0.9.9 2013051800
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 8 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 19s 978ms
Bit rate mode : Variable
Bit rate : 5 403 Kbps
Maximum bit rate : 14.7 Mbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Frame rate : 23.976 fps
Minimum frame rate : 23.974 fps
Maximum frame rate : 23.981 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.245
Stream size : 13.1 MiB (92%)
Writing library : x264 core 130 r2273 b3065e6
Encoding settings : cabac=1 / ref=8 / deblock=1:1:0 / analyse=0x3:0x113 / me=umh / subme=9 / 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=-1 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=1 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=5403 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=14700 / vbv_bufsize=35000 / nal_hrd=vbr / ip_ratio=1.40 / aq=1:1.10
Encoded date : UTC 2014-02-22 12:01:18
Tagged date : UTC 2014-02-22 12:02:08
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 20s 11ms
Bit rate mode : Variable
Bit rate : 452 Kbps
Maximum bit rate : 714 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 1.08 MiB (8%)
Language : English
Encoded date : UTC 2014-02-22 12:01:18
Tagged date : UTC 2014-02-22 12:02:07Last edited by Balema; 22nd Feb 2014 at 06:03.
-
Don't know why, but when ever I select .mp4 it gives variable FPS, when I select mkv it gives Constant FPS. Maybe it's a bug........
Got my retirement plans all set. Looks like I only have to work another 5 years after I die........ -
help for command line says this:
Code:-r, --rate Set video framerate (5/10/12/15/23.976/24/25/29.97) Be aware that not specifying a framerate lets HandBrake preserve a source's time stamps, potentially creating variable framerate video --vfr, --cfr, --pfr Select variable, constant or peak-limited frame rate control. VFR preserves the source timing. CFR makes the output constant rate at the rate given by the -r flag (or the source's average rate if no -r is given). PFR doesn't allow the rate to go over the rate specified with the -r flag but won't change the source timing if it's below that rate. If none of these flags are given, the default is --cfr when -r is given and --vfr otherwise
-
That's nice and all, but why does the output vary between .mp4 and mkv when the framerate is 23.976. When the framerate is 29.976, all is well with both .mp4 and mkv outputs................
Sounds like a bug to me, but what do I know...............
For the record.......no such issues when encoding with ffmpeg the same input videos without the "-r 24000/1001" command.Last edited by racer-x; 22nd Feb 2014 at 16:39.
Got my retirement plans all set. Looks like I only have to work another 5 years after I die........ -
maybe, but well nobody is perfect, but that Handbrake command line seems to be some powerful tool otherwise, wandering why it did not catch here more, it deals with DVD's, mp4's, x264 settings, it just will not load avisynth script, that is why perhaps
-
In addition to selecting "Constant Framerate", set framerate (FPS) to be 25 FPS or whatever the original file is,
don't leave it as "Same as Source".
Even if you put constant framerate it'll output variable for some sources.
This has always been a problem with Handbrake / Vidcoder, which is one reason I avoid it mostly. -
Yes, I agree. If it would just load Avisynth scripts, it would be darn near perfect.....
It's still pretty good and I use it quite a bit just the same. It's great for converting dvd or BD into mkv file I can play on my Samsung TV via usb or my Tablet.Got my retirement plans all set. Looks like I only have to work another 5 years after I die........ -
I put 23976 to framerate then set to constant and still it gives me variable framerates... I can't understand...
-
I even put and the -r 25 -crf to see if it will give me constant framerate but nothing...
-
-
Or don't use Handbrake/Vidcoder. I have no trouble getting CFR MP4s.
PHP Code:Complete name : E:\Basant\Basant.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom
File size : 2.26 GiB
Duration : 2h 25mn
Overall bit rate mode : Variable
Overall bit rate : 2 227 Kbps
Encoded date : UTC 2014-02-17 04:11:04
Tagged date : UTC 2014-02-17 04:11:04
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 3 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 2h 25mn
Bit rate mode : Variable
Bit rate : 1 999 Kbps
Maximum bit rate : 25.0 Mbps
Width : 640 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.271
Stream size : 2.03 GiB (90%)
Writing library : x264 core 129 r2245 bc13772
Encoding settings : cabac=1 / ref=3 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=25000 / vbv_bufsize=25000 / crf_max=0.0 / nal_hrd=vbr / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2014-02-17 04:11:04
Tagged date : UTC 2014-02-17 04:13:50
-
The problem has something to do with handbrake's muxing to MP4, not the encoding itself. You can demux the h.264 stream to an elementary stream and see that it is indeed CFR.
-
-
Most s/w have little bugs like this. AviDemux is a great tool, but doesn't correctly interpret my 60p MTS clips. It thinks they are 120 fps. When ever I use AviDemux to cut my 60p MTS files, I have to run the output files through TsMuxeR to straighten them back to 59.94 fps. It's a pain, but I rarely do those things anyway.
Got my retirement plans all set. Looks like I only have to work another 5 years after I die........ -
I tried with a mp4 file for source but the same thing... I give up...
PS. I noticed that it gives me encoded files with Format profile : Base Media / Version 2 and Codec ID : mp42 but I want to have Format profile : Base Media and Codec ID : isom, does anyone knows what to change? -
[QUOTE=Balema;2304127] I don't know what manono uses but I use the x264 command line encoder.
But why do you care so much? The h.264 video is encoded CFR, it's just the MP4 container that says it's VFR. If you have some device that freaks out with VFR MP4 encode as MKV then remux with MkvToMp4.Last edited by jagabo; 24th Feb 2014 at 12:43.
-
-
AviSynth scripts fed into XviD4PSP. The scripts aren't strictly necessary as it'll take the video input directly. But it creates and uses AviSynth scripts itself and you can do some filtering within the program, if you wish. Because it doesn't accept AviSynth input I find Handbrake and Vidcoder less than useless. Try deinterlacing with QTGMC or unblending something within Handbrake. It can't be done.
-
If you check the Handbrake log file for one of those "variable" constant frame rate encodes, you'll find it says it's encoding using a constant frame rate.
Here's something I noticed while playing around. I don't know if it means anything but maybe it'll help someone more clever than myself understand.
This is the first 5 frames of "original" video, courtesy of ffdshow's on screen display. I ran a test encode using MeGUI and the result was the same:
Here's the first 5 frames again after encoding with Handbrake:
Note the overlapping raw frame timestamps and also the gaps. By the 5th frame the raw frame timestamps match the original video. That pattern seems to keep repeating. So then.....
Here's some math which makes sense according to what MediaInfo is reporting. Take the second "Handbrake" frame (current frame 1):
834083 - 417000 = 417083
1000/41.7083 = 23.976
Same again, but this time (because the timestamps from the previous frame overlap):
834083 - 417083 = 417000
1000/41.7000 = 23.980815 (very close to the maximum frame rate reported by MediaInfo - 23.981)
Apply the same logic to frame three (current frame 2) while accounting for the "gap":
1251194 - 834083 = 417111
1000/41.7111 = 23.97443 (very close to the minimum frame rate reported by MediaInfo - 23.974)
I don't really understand any of that, but at least the math makes sense to me.
Oddly enough, I ran the same encode using Handbrake again, this time with MKV as the output, and while the raw frame timestamps were exactly the same, MediaInfo reported a constant 23.976fps. Maybe I'm completely on the wrong track......
Here's a bit of the Handbrake logfile from the above encode:
frame rate: 23.976 fps -> constant 23.976 fps
+ filters
+ Framerate Shaper (1:27000000:1126125)
+ frame rate: 23.976 fps -> constant 23.976 fps
I'd be interested to learn more about the framerate shaper line. ie how it shapes the frame rate.
1/27 x 1126125 = 41708.333333333 or
27000000/1126125 = 23.976023976
I did. After remuxing the extracted h264 stream, MediaInfo reports a constant frame rate and ffdshow reports the same "Raw frame timestamps" as the original video.Last edited by hello_hello; 27th Feb 2014 at 10:05.
Similar Threads
-
Variable or Constant Framerate?
By JackDanielZ in forum Video ConversionReplies: 56Last Post: 4th Aug 2015, 07:14 -
Audio settings for Vidcoder
By carlmart in forum AudioReplies: 4Last Post: 28th Aug 2013, 21:38 -
Converting 1920 x 1080 AVCHD Settings for Vidcoder
By Tom Saurus in forum Video ConversionReplies: 10Last Post: 13th Nov 2012, 17:31 -
Handbreake & Vidcoder picture size problem (HD settings)
By Chainsaw_1 in forum Video ConversionReplies: 3Last Post: 13th Mar 2012, 11:41 -
Converting a "variable framerate" to constant framerate?
By vieo in forum Video ConversionReplies: 6Last Post: 2nd Sep 2010, 09:05