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 March 2023, 12:50 | #61 | Link |
Registered User
Join Date: Dec 2018
Posts: 67
|
Well I just combined the 2-pass to 1-pass and tried a bit around with it. The whole idea for this incredible work .cmd came from the well respected manolito.
If you are thinking about implementing the ultimate mpeg2 encoding settings for ffmpeg you should better stick to the 2-pass with manolito's favorite matrix and suggested settings as there is no way to control the output size in 1-pass. @REM Medium bitrate (b) - set E_BR=4950k, @REM Maximum Bitrate (maxrate) set VBV_MBR=8000k together with @REM HVS Best (for low bitrate) as a matrix is bascially the best if you want to squeeze most of the movies on a DVD5 as fast as possible and if the output is still too big the only chance you have is to reduce the maximum bitrate until it fits. Especially with older movies with a lot of grain you will gain much better quality with a 2-pass DVD9 encode. |
24th March 2023, 16:58 | #62 | Link | |
Moderator
Join Date: Jan 2006
Location: Portland, OR
Posts: 4,904
|
Quote:
If a CRF-style encode is done, with x264/x265 one can do a 1-pass CRF encode, and if it comes out too large, use the data from the 1st encode to do a 2nd pass with ABR. I don't recall if the ffmpeg MPEG-2 encoder has anything like that. Weird to recall I started on DVD authoring 26 years ago this summer (Vancouver Film School workshop using an early beta of Scenarist running on SGI O2 systems, and a Minerva hardware encoder). |
|
14th July 2023, 02:49 | #63 | Link | |
Registered User
Join Date: Dec 2019
Posts: 80
|
Quote:
|
|
17th July 2023, 06:47 | #64 | Link | |
Registered User
Join Date: Jun 2011
Location: Melbourne, Australia
Posts: 90
|
Quote:
I have never used GMJCZP's bat script and cannot comment on it. I have always used the well-respected manolito and his parameters found here: https://forum.doom9.org/showthread.p...47#post1808247 I don't use bat files and prefer to do things manually and copy and paste parameters into Notepad saved as command_history_#.txt. These are then copy / pasted back into command prompt as needed. I had to modified manolito's parameters to suit the PAL format like -s 720x576 -r 25. Also removed -vf scale and pad as he mentions. For the rc buffer underflow warnings. Are you getting many? Is the buffer size set to 1835k as in -bufsize:v:0 1835008 as in manolito's parameter? As for the video isn't being flagged as interlaced, it sound like your source is interlaced. Try this in the FFmpeg command. -flags +ilme+ildct -alternate_scan 1 auto=-1 Last edited by WSC4; 23rd July 2023 at 11:25. |
|
4th August 2023, 21:38 | #65 | Link |
Registered User
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 757
|
Sorry for the late reply, but for now I still can't rejoin Doom9 as I would like. About your proposal I got this:
https://trac.ffmpeg.org/ticket/7469 Since I don't have a video card I can't corroborate this error, so for the moment this statement could not be made. Same thing, I can't review this right now. Last edited by GMJCZP; 4th August 2023 at 21:48. |
24th August 2024, 19:39 | #66 | Link |
Registered User
Join Date: Dec 2018
Posts: 67
|
I just came across something ugly. FFMPEG's mpeg2 encoder seems to have a problem with encoding stills/frozen images. If you SD downscale and encode this one https://workupload.com/file/wbw2LqRdfTN
you'll notice at 00:00:21 and 00:00:58 that you're getting some nasty pumping artifacts. I tried several matrices and also played around with higher medium and max bitrates but that didn't solve the problem. If anyone came across this issue before and has a solution that would be much appreciated. |
25th August 2024, 07:25 | #67 | Link | |
Registered User
Join Date: May 2006
Posts: 4,040
|
Quote:
https://mega.nz/file/HIslHLBK#fqBrUN...Jqq93eKd33nj64 |
|
25th August 2024, 10:18 | #68 | Link | |
Registered User
Join Date: Dec 2018
Posts: 67
|
Quote:
|
|
25th August 2024, 18:22 | #69 | Link | |
Registered User
Join Date: May 2006
Posts: 4,040
|
Quote:
Code:
ffmpeg -y -i "%~1" -c:v mpeg2video -b:v 7000k -maxrate 9800k -bufsize 1835k -bf 2 -b_strategy 2 -intra_matrix "8,8,9,9,10,10,11,11,8,9,9,10,10,11,11,12,9,9,10,10,11,11,12,12,9,10,10,11,11,12,13,13,10,10,11,11,12,13,13,14,10,11,11,12,13,13,14,15,11,11,12,13,13,14,15,15,11,12,12,13,14,15,15,16" -inter_matrix "8,8,9,9,10,10,11,11,8,9,9,10,10,11,11,12,9,9,10,10,11,11,12,12,9,10,10,11,11,12,13,13,10,10,11,11,12,13,13,14,10,11,11,12,13,13,14,15,11,11,12,13,13,14,15,15,11,12,12,13,14,15,15,16" -mbd rd -trellis 2 -mbcmp 2 -precmp 2 -cmp 2 -subcmp 2 -skip_cmp 2 -mpv_flags qp_rd -an -sn -vf scale=720:480,setdar=16/9 "%~1_.vob" Last edited by Sharc; 26th August 2024 at 09:21. |
|
30th August 2024, 00:46 | #71 | Link |
Registered User
Join Date: Dec 2018
Posts: 67
|
I made many tests (different settings and different ffmpeg versions) over the last couple of days. Sadly the issue is ffmpeg related and probably will never be solved.
The only thing which works in such cases (downscaling modern HD productions to SD for a stand alone DVD encode) is the lower quality variant suggested by Sharc (thanks for the help buddy). The solution for the GMJCZP HQ script would be to change the Minimum quantizer (qmin) from 1.0 to 3.5. Anything smaller than 3.5 starts the GOP pulsing/pumping. By doing that the entire hq settings of course don't work anymore and you are left with an average encoding quality and in comparison sharc's basic script would actually look better. If anyone wants to do some further testing here are some samples for scenes with nasty pulsing in HQ-mpeg2 encoding settings https://mega.nz/file/SIMTgS6C#2Ih245...meM4JgI4aNYfiY https://mega.nz/file/TdEFEJiT#0EZoqD...6qG8vCKS9ZJz24 https://mega.nz/file/vIFhVJJQ#WYz_Jl...-7QzHKr2LbFKWU Last edited by Metal-HTPC; 30th August 2024 at 15:12. Reason: further testing |
30th August 2024, 18:59 | #72 | Link | ||
Registered User
Join Date: May 2006
Posts: 4,040
|
Quote:
Quote:
Maybe try with adding -minrate 400k to prevent the bitrate from dropping too low for the problematic static scenes. This will only minimally affect the 'normal' scenes. Last edited by Sharc; 30th August 2024 at 22:59. |
||
19th December 2024, 20:55 | #76 | Link |
Big Bit Savings Now !
Join Date: Feb 2007
Location: close to the wall
Posts: 1,796
|
And there is still HCEnc for the ones who can steer away from ffmpeg and do not have CCE.
Still good enough, and hank315 took great pains to improve it over the years: 5-step selectable luminance gain adapted matrix, dead-zone, P,B ratio, free editable matrices, and to my knowledge it is one of the very few that has implemented real Pan/Scan encoding animated in 1/16th pixel steps since 2008 Never had problems with bitrate overshoot, the VBV decoder's buffer restrictions were supported. HCEnc 0.24 64bit even runs under Win10 Pass 1 250..350..600fps Pass 2 50..75fps on a i9-11900K. and there is 0.28 32bit. http://hank315.nl/
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain) "Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..." Last edited by Emulgator; 19th December 2024 at 21:03. |
1st January 2025, 06:22 | #77 | Link |
Registered User
Join Date: Apr 2010
Location: I have a statue in Hakodate, Japan
Posts: 757
|
I'm noticing that you're having a problem with ffmpeg, if you look closely at the script I posted, a sc_threshold value other than 0 is used, this is because ffmpeg has been a bit lazy in older versions in assigning I-frames to scenes with a lot of movement. Try changing its value to 0 (its default value) and see how it goes.
Last edited by GMJCZP; 1st January 2025 at 06:26. |
7th January 2025, 18:36 | #78 | Link | |
Registered User
Join Date: Dec 2018
Posts: 67
|
I never heard of a 0.24 64bit version of HCencoder. Was that a beta version which is long gone? Just checked videohelp and saw that there even was an update in 2022 with a version 2 in 64bit https://www.videohelp.com/download/HC2Setup64.exe
That is pretty crazy and probably worth checking. I will play around with it. One of the main reasons I switched from HC 0.28 to ffmpeg was to a have a high speed high quality mpeg2 encoder and GMJCP's batch with the crazy collection of tweak settings pretty much blew me away quality wise and the speed is insane. I tried to contact cinemacraft many times to purchase the last 64bit mpeg2 encoder they ever did as in my opinion they are definitely the best quality wise also better than mainconcept. Sadly I never got a reply. That company is probably long gone and there is probably no way to purchase and activate their old software anyways. A buddy of mine still uses and older 2.6x 32bit version for his DVD releases to this day and his DVD's are insane. Quote:
https://forum.doom9.org/showthread.p...53#post2006253 |
|
8th January 2025, 04:30 | #79 | Link |
Big Bit Savings Now !
Join Date: Feb 2007
Location: close to the wall
Posts: 1,796
|
I wouldn't touch that HC2Setup64.exe, hank315 never released setup.exes
BTW at the given speed of CPUs these days and HC's good threading it does not need a 64 bit build to make anyone happy. That old CCE was 32bit AND the winner. hank315's 0.24 beta 16-02-2010 was rather an acadamic example if a 64bit build would work I guess, since he continued improving his 32bit builds from then on. Still you can have it if you like.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain) "Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..." Last edited by Emulgator; 8th January 2025 at 04:32. |
8th January 2025, 14:08 | #80 | Link | |
Registered User
Join Date: Feb 2022
Posts: 159
|
Quote:
There's also an eBay listing for a very late version supporting Windows 10 pro. But you are on your own here. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|