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. |
![]() |
#41 | Link | ||
Registered User
Join Date: Feb 2004
Posts: 192
|
Quote:
I changed to 640x480, SAR=1/1, because it doesn't make any difference in how it looks, and it results in smaller files at a given CRF value (38,400 less pixels to encode). I still haven't tried doing a fully BD-compliant encode like poisondeathray talked about. I need to figure out what can be excised from the script in the link he posted, while still resulting in a BD-compliant encode, because I don't want to do 2-pass, nor use "preset veryslow," and I don't think "tune film" is necessary either. I tried this... Code:
ffmpeg -i input.mkv -vf "fieldmatch,yadif=deint=interlaced,decimate,scale=704x360:flags=lanczos,pad=720:480:8:60" -an -f yuv4mpegpipe - | x264 --crf 18 --bluray-compat --vbv-maxrate 40000 --vbv-bufsize 30000 --level 4.1 --keyint 24 --open-gop --slices 4 --pulldown 32 --fake-interlaced --colorprim "smpte170m" --transfer "smpte170m" --colormatrix "smpte170m" --sar 10:11 -o output.264 Quote:
Last edited by MaximRecoil; 16th January 2023 at 22:30. |
||
![]() |
![]() |
![]() |
#43 | Link |
Registered User
Join Date: Feb 2004
Posts: 192
|
Thanks, that seems to be working. I had your example from post #30 in front of me when I made the script but somehow that part got lost in the shuffle. I must have accidentally deleted it during the various copy and pasting I was doing from the script at the site you linked to, and from my own previous scripts.
|
![]() |
![]() |
![]() |
#44 | Link |
Registered User
Join Date: May 2006
Posts: 3,964
|
When using --fake-interlaced you should also include --pic-struct for BD compliance.
I am not sure whether --pic-struct gets inserted by default, but adding it explicitly doesn't do any harm. In the past (years ago) tsMuxer did not support any of the --pulldown options, but this may have changed with newer releases. Edit: The current tsMuxer seems to support pulldown 32, as far as I can tell. Last edited by Sharc; 17th January 2023 at 11:39. |
![]() |
![]() |
![]() |
#45 | Link |
Registered User
Join Date: Feb 2004
Posts: 192
|
It was worth a try but it didn't work well. I encoded the video stream using the script that I posted in post #41 (after adding the missing arguments to make it work) and then I compiled it along with the original AC3 audio as a BD using DVDLogic EasyBD Lite 1.1. Then I copied the 00000.m2ts file from the BDMV\STREAM folder to a USB drive and tried it in my BD player. The interlacing artifacts were even worse than with my plain IVTC'd encodes.
There's a scene I've been using for reference where a car pulls into a driveway. There are prominent interlacing artifacts visible on the car's chrome trim. With my plain IVTC'd encodes, once the car and camera stop moving the interlacing artifacts mostly go away, but with this soft-telecined encode I just tried, the interlacing artifacts remain just as prominent when the car and camera are stationary as when they are moving. Do you think that would make a difference regarding the interlacing artifacts being worse? |
![]() |
![]() |
![]() |
#47 | Link |
Registered User
Join Date: Feb 2004
Posts: 192
|
Thanks. I guess there's nothing else to try other than making DVD-compliant encodes, but I don't want to do that, not even if I knew the ins and outs of MPEG-2 encoding. If it were just a few files I might look into it, but for over 100 total hours of video, with each file ending up ~three times as big for the same quality, that's too much.
|
![]() |
![]() |
![]() |
#48 | Link | |
Registered User
Join Date: May 2006
Posts: 3,964
|
Quote:
I seem not to be able to reproduce your reported judder and/or residual combing issues here, with any of the propsed re-telecining solutions. But of course I don't have your player. I tested on PC and streaming to (modern) TV only. Are you familiar with Avisynth (or VirtualDub2)? Did you analyze your files (source, IVTC'd, re-telecined variants) by stepping through the fields? Does the fields sequence behave as expected? Last edited by Sharc; 17th January 2023 at 14:55. |
|
![]() |
![]() |
![]() |
#49 | Link | |||
Registered User
Join Date: Feb 2004
Posts: 192
|
Quote:
Quote:
The prominent interlacing artifacts that all of my encodes have had so far are player-dependent too, so I wouldn't expect anyone to be able to reproduce it unless they have the same BD player that I have (Sony BDP-S480) or one with the same hardware and firmware. As I mentioned, my WD TV Live hardware player doesn't produce the prominent interlacing artifacts when playing my encodes. Furthermore, even if you had the same BD player that I do, you'd also need a 15 kHz CRT TV, because digital TVs operate completely differently. Even if you had a digital TV that can accept a 15 kHz analog video signal (i.e., one that has a composite input jack as many of them do), the results would still be totally different, because a digital TV has to buffer, process, scale a 480i signal into something it can not only display, but display full screen. On the other hand, an analog video signal directly drives the electron guns in a CRT in real-time, which is why they have no display lag, which is what makes them preferable for playing classic video games, particularly among "speed runners" who rely on a bunch of "frame perfect" tricks to get the fastest times. Quote:
By the way, you can also use the original VirtualDub for that (there's an FFmpeg-based plug-in that allows you to choose "FFmpeg Supported Files" in the "Files of type" drop-down menu in the "Open video file" dialog box). In my experience, it's very stable too, unlike VirtualDub2, which I've had crash on me several times, but VirtualDub2 still has the advantage of being able to encode with modern codecs and containers. |
|||
![]() |
![]() |
![]() |
#50 | Link | |||||
Registered User
Join Date: May 2006
Posts: 3,964
|
Quote:
Quote:
Quote:
Quote:
Quote:
Last edited by Sharc; 17th January 2023 at 19:55. |
|||||
![]() |
![]() |
![]() |
#51 | Link | ||||
Registered User
Join Date: Feb 2004
Posts: 192
|
Quote:
![]() When the video is actually playing in a player that can generate an analog 480i / NTSC video signal from the digital video, they all get turned into fields (half of a frame, combed), 59.94 of them per second, and that blend of a field and frame that you always see when stepping through in VDub and similar PC programs never actually happens during proper 480i playback. Quote:
Quote:
Quote:
By the way, do you know if it's a good idea in general to have... Code:
--colorprim "smpte170m" --transfer "smpte170m" --colormatrix "smpte170m" I know that BD-compliant full HD videos are BT.709 and BD- or DVD-compliant SD videos are BT.601, and specifying "smpte170m" in the encoding script results in BT.601 according to MediaInfo, but what happens if you don't include that in the script when encoding a BT.709 HD video to SD resolution? MediaInfo doesn't show any information about it in my HD-to-SD encodes that didn't specify "smpte170m" in the script. Last edited by MaximRecoil; 17th January 2023 at 18:31. |
||||
![]() |
![]() |
![]() |
#52 | Link | ||
Registered User
Join Date: May 2006
Posts: 3,964
|
Quote:
Quote:
Last edited by Sharc; 17th January 2023 at 20:06. |
||
![]() |
![]() |
![]() |
#53 | Link | |||
Registered User
Join Date: Feb 2004
Posts: 192
|
Quote:
Quote:
Quote:
I got some Newhart (TV Series 1982–1990) DVDs that I ordered in the mail today, seasons 3 to 8, and luckily, they are authentic (for some strange reason Amazon and eBay are flooded with bootleg Newhart DVD sets, featuring single-layer DVDs and video files shrunk with DVDFab software to fit onto single-layer DVDs, about 60% the size of the originals). I ripped season 3 so I can watch it on my BD player (like I said before, its disc drive is screwed up, so ripping discs to a USB drive is the only way I can watch them on that player). I've watched several episodes so far and I have yet to notice any interlacing artifacts at all. The same goes for all my other DVDs. I wish I knew why my BD player handles the interlacing so well with DVDs but not with AVC encodes, not even a BD-compliant one (which turned out to be the worst of all, ironically). Last edited by MaximRecoil; 17th January 2023 at 23:37. |
|||
![]() |
![]() |
![]() |
#54 | Link | |
Registered User
Join Date: May 2006
Posts: 3,964
|
Quote:
Summary of my findings regarding (re-)telecining in AVC: - IVTC works with ffmpeg as discussed - Hard telecining works with ffmpeg as discussed - Soft telecining with ffmpeg requires x264 piping as discussed. The resulting telecined elementary .264 output needs to be correctly remuxed into a container though. Feasability is tool (and player) dependent. Usually remuxing and BD authoring tools will request to remove or ignore the soft-pulldown, or the tool removes it automatically, hence outputting progressive (IVTC'd) frames. May need some more tests, but I give up for now ;-) Last edited by Sharc; 18th January 2023 at 11:20. |
|
![]() |
![]() |
![]() |
#55 | Link | ||
Registered User
Join Date: Feb 2004
Posts: 192
|
Quote:
Quote:
Plain IVTC = prominent interlacing artifacts and moire when things are onscreen that are susceptible to those effects such as chrome trim on a moving car from certain angles (sawtooth effect), or a thin, closely-spaced pinstripe pattern on a shirt (moire effect). Hard-telecine = Exactly the same as plain IVTC when the player decides to play it properly; otherwise, severe judder. Fake-interlace = Significantly worse interlacing artifacts than plain IVTC and hard-telecine. Commercial DVD (as a point of comparison) = perfect. One thing I forgot to check is the source file for interlacing artifacts. I did check for judder by watching the opening scene of an episode in which the camera pans (and it does have some judder, not severe), but I didn't check for interlacing artifacts in the car pulling into the driveway scene that I've been using for reference. I'll do that later. |
||
![]() |
![]() |
![]() |
#56 | Link |
Registered User
Join Date: May 2006
Posts: 3,964
|
In the DVD/mpeg2 realm hard- and soft telecine is standard and well supported.
In the Blu-Ray realm I have seen - telecined Extras (Trailers etc.) in SD resolution and mpeg2 format - hard-telecined Extras in HD resolution and AVC format. I have however never met soft-telecined AVC HD material on Blu-Ray discs. Of course my view is incomplete. In my tests I found hard-telecining for AVC (x264) to be much less problematic for various muxing and playback scenarios. Soft-telecine for AVC (x264) has more pitfalls and dependencies, although it is more efficient. Last edited by Sharc; 18th January 2023 at 15:38. |
![]() |
![]() |
![]() |
#57 | Link | |
Registered User
Join Date: Feb 2004
Posts: 192
|
Quote:
Overall the source is worse in my BD player than my IVTC'd encode, because there's no improvement on the interlacing artifacts, plus it has some judder + strobing that my IVTC'd encodes don't have. If professionally encoded interlaced AVC files (from Geneon Universal Entertainment) can't match a DVD in my player in terms of how well the interlacing is handled, then there's pretty much no chance that I can do any better with anything I try. I guess I'll just stick with plain IVTC'd encodes for these files. It must be a case of my BD player simply not handling interlacing with AVC files as well as it does with DVD/MPEG-2, because, like you said, "in the DVD/mpeg2 realm hard- and soft telecine is standard and well supported." Sony probably didn't place a lot of importance on handling AVC interlacing well, because it's not common to begin with (I have no idea why they decided to interlace these source files in the first place). My player was made in 2011 when BD had been around for 5 years and DVD had been around for 15 years. |
|
![]() |
![]() |
![]() |
#58 | Link |
Registered User
Join Date: May 2006
Posts: 3,964
|
Out of pure curiosity:
How does this file play when you put it on an USB stick and play it from there with your BD player? Excessive judder? interlacing artefatcs? etc. https://www.mediafire.com/file/nswlq...muxed.zip/file |
![]() |
![]() |
![]() |
#59 | Link | ||
Registered User
Join Date: Feb 2004
Posts: 192
|
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#60 | Link |
Registered User
Join Date: May 2006
Posts: 3,964
|
Try again. Still the same?
https://www.mediafire.com/file/nswlq...ldown.zip/file Last edited by Sharc; 18th January 2023 at 22:54. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|