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: 65
|
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,878
|
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: 754
|
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: 65
|
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,022
|
Quote:
https://mega.nz/file/HIslHLBK#fqBrUN...Jqq93eKd33nj64 |
|
25th August 2024, 10:18 | #68 | Link | |
Registered User
Join Date: Dec 2018
Posts: 65
|
Quote:
|
|
25th August 2024, 18:22 | #69 | Link | |
Registered User
Join Date: May 2006
Posts: 4,022
|
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: 65
|
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,022
|
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. |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|