Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
24th September 2005, 17:37 | #1 | Link |
結城有紀
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
|
An easy way to prevent borked x264-in-mp4 file
The problem has been mentioned in thread x264 mp4 output borked (rev 295)
I just found an easy way to prevent the extremely large dwRate and dwScale: at the bottom of your avs script, simply add assumefps(2997,125) if your clip is @ 23.976fps (in fact, you can also use 24000,1001 to get @ ~23.976024) EDIT: If you are going to fix the fps, please use one of the following: Code:
assumefps(30000,1001) #29.970 assumefps(24000,1001) #23.976 (Although it has been 8 years since I wrote this post, I still want to correct this error because this post is linked from the x264 FAQ post.) Last edited by MeteorRain; 5th August 2013 at 19:49. Reason: Fix an error on assumefps code |
24th September 2005, 18:52 | #2 | Link | |
retired developer
Join Date: Oct 2002
Location: Canada
Posts: 8,978
|
Quote:
__________________
Detritus Software |
|
25th September 2005, 13:47 | #5 | Link |
Mr. Sandman
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
|
rev300 should fix the FPS issue.
__________________
MPEG-4 ASP Custom Matrices: EQM V1(old), EQM AutoGK Sharpmatrix (aka EQM V2), EQM V3HR (updated 01/10/2004), EQM V3LR, EQM V3ULR (updated 04/02/2005), EQM V3UHR (updated 17/12/2004) and EQM V3EHR (updated 05/10/2004) Info about my ASP matrices. MPEG-4 AVC Custom Matrices: EQM AVC-HR Info about my AVC matrices My x264 builds. Mooo!!! |
25th September 2005, 14:44 | #6 | Link |
Registered User
Join Date: Apr 2003
Posts: 24
|
damn... -1670.82 kb/s -_-
and the line above there is "kb/s:345.6" Code:
D:\GITS>"c:\program files\x264\x264.exe" --progress --pass 1 --stats "\x264.stat s" --subme 3 --ref 8 --threads 1 --filter 0:0 --keyint 250 --min-keyint 25 --sce necut 40 --qpmin 10 --qpmax 51 --qpstep 4 --direct temporal --me hex --merange 1 6 --bframes 2 --weightb --b-bias 0 --ipratio 1.40 --pbratio 1.30 --qcomp 0.60 -- analyse p8x8,i8x8,i4x4 --8x8dct -o "D:\GITS\gits_movie.mp4" "D:\GITS\gits_movie. avs" avis [info]: 848x464 @ 29.97 fps (35584 frames) x264 [info]: using cpu capabilities MMX MMXEXT SSE 3DNow! mp4 [info]: initial delay 100 (scale 2997) x264 [info]: slice I:330 Avg QP:23.00 Avg size: 21701 PSNR Mean Y:44.63 U:48.66 V:49.44 Avg:45.61 Global:45.17 x264 [info]: slice P:14663 Avg QP:26.00 Avg size: 2472 PSNR Mean Y:42.73 U:47.3 6 V:48.19 Avg:43.81 Global:43.47 x264 [info]: slice B:20591 Avg QP:28.00 Avg size: 383 PSNR Mean Y:42.79 U:47.5 0 V:48.33 Avg:43.89 Global:43.55 x264 [info]: slice I Avg I4x4:33.4% I8x8:31.1% I16x16:35.5% x264 [info]: slice P Avg I4x4:1.9% I8x8:2.3% I16x16:3.2% P:12.3% P8x8:1.0% PSKIP:79.3% x264 [info]: slice B Avg I4x4:0.2% I8x8:0.3% I16x16:0.3% P:8.0% B:0.5% B8 x8:0.0% DIRECT:0.3% BSKIP:90.4% x264 [info]: 8x8 transform intra:32.1% inter:35.0% x264 [info]: PSNR Mean Y:42.78 U:47.46 V:48.28 Avg:43.87 Global:43.53 kb/s:345.6 encoded 35584 frames, 9.04 fps, -1670.82 kb/s |
25th September 2005, 15:11 | #7 | Link |
retired developer
Join Date: Oct 2002
Location: Canada
Posts: 8,978
|
Good work guys on that bug
__________________
Detritus Software |
25th September 2005, 22:29 | #9 | Link |
clueless n00b
Join Date: Oct 2001
Location: somewhere over the rainbow
Posts: 10,579
|
adding assumefps(3.142) to a perfectly fine script also creates corrupt mp4 output with revision 300..
__________________
For the web's most comprehensive collection of DVD backup guides go to www.doom9.org |
26th September 2005, 12:51 | #10 | Link | |
Mr. Sandman
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
|
Quote:
__________________
MPEG-4 ASP Custom Matrices: EQM V1(old), EQM AutoGK Sharpmatrix (aka EQM V2), EQM V3HR (updated 01/10/2004), EQM V3LR, EQM V3ULR (updated 04/02/2005), EQM V3UHR (updated 17/12/2004) and EQM V3EHR (updated 05/10/2004) Info about my ASP matrices. MPEG-4 AVC Custom Matrices: EQM AVC-HR Info about my AVC matrices My x264 builds. Mooo!!! |
|
26th September 2005, 18:05 | #13 | Link |
Mr. Sandman
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
|
ok... i thought jarod was referring to the encoder crash due to the overflow generated by the dwscale...
just a misunderstanding:P
__________________
MPEG-4 ASP Custom Matrices: EQM V1(old), EQM AutoGK Sharpmatrix (aka EQM V2), EQM V3HR (updated 01/10/2004), EQM V3LR, EQM V3ULR (updated 04/02/2005), EQM V3UHR (updated 17/12/2004) and EQM V3EHR (updated 05/10/2004) Info about my ASP matrices. MPEG-4 AVC Custom Matrices: EQM AVC-HR Info about my AVC matrices My x264 builds. Mooo!!! |
28th September 2005, 12:42 | #14 | Link |
Registered User
Join Date: Aug 2003
Posts: 18
|
Avisynth Filter
Hello everyone!
I wrote a little Avisynth Filter that takes care of the too big scale and rate problem. The filter's function name is "NiceFPS(int x)". x is the maximum new scale (by default 5000) that the function is allowed to use for approximating the original FPS. It chooses the new rate and scale in a way that the resulting rate/scale is as close (or equal) to the original FPS as possible. Do not set x too high - the default value is good enough and the new FPS is most of the time 1/1.000.000 or less away from the original fps. So you WON'T notice any sync issues. example AVS-Script: ----------------------- loadplugin("nicefps.dll") avisource("movie.avi") ... nicefps() ----------------------- I hope you'll find this little filter useful. Feedback is welcome. Wishes, Chris
__________________
entropy is always a matter of context Last edited by eMotionEstimation; 29th September 2005 at 18:36. |
28th September 2005, 12:45 | #15 | Link |
Mr. Sandman
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
|
n1
__________________
MPEG-4 ASP Custom Matrices: EQM V1(old), EQM AutoGK Sharpmatrix (aka EQM V2), EQM V3HR (updated 01/10/2004), EQM V3LR, EQM V3ULR (updated 04/02/2005), EQM V3UHR (updated 17/12/2004) and EQM V3EHR (updated 05/10/2004) Info about my ASP matrices. MPEG-4 AVC Custom Matrices: EQM AVC-HR Info about my AVC matrices My x264 builds. Mooo!!! |
28th September 2005, 12:51 | #16 | Link |
retired developer
Join Date: Oct 2002
Location: Canada
Posts: 8,978
|
Gonna add it to my softs once it's approved. Nice work!
__________________
Detritus Software |
28th September 2005, 16:20 | #19 | Link | |
Pain and suffering
Join Date: Jul 2002
Posts: 1,337
|
Quote:
http://mirror05.x264.nl/eMotionEstimation/nicefps.zip |
|
|
|