Hi, everyone! Sorry if this request seems a little odd, or might be too complicated, but I'd appreciate any helpful feedback.
Can the kind folks over here dumb down for me a tutorial to build either ffmpeg or Handbrake with x264-paff (https://github.com/kierank/x264-paff), PLEASE? Some of you are probably familiar with it. It's x264, basically, but with the additional ability/feature, whatever, of PAFF-interlacing and interlaced encoding, in addition to MBAFF, which the base x264 already has. I don't know why to this day it still hasn't been merged into the main source code. It'd literally make x264 the best H.264 encoder around, and make people like me very happy.
Anyways, if it's not too hard and time-consuming, a pre-built Handbrake, specifically, with the encoder would be even better. But you can go ahead and provide detailed instructions for going about on building them myself.
Thanks a lot, in advance, and have a wonderful day!
+ Reply to Thread
Results 1 to 30 of 36
-
-
as an idea: you could try using https://github.com/m-ab-s/media-autobuild_suite and adjust the path to the x264 source (assuming the build process didn't change the last few years for x264)
users currently on my ignore list: deadrats, Stears555, marcorocchini -
-
see this thread here - https://ffmpeg-user.ffmpeg.narkive.com/bpS1lotM/interlaced-x264
x264 does not support PAFF -
I used mbas, adjusted the path to x264-paff-git (build/media-suite_deps.sh and build/media-suite_compile.sh) and attached x264 and ffmpeg build with that x264 version. (32&64bit)
No clue, whether this does what you want,... (especially no clue whether using that version with ffmpeg actually works as intended)
Cu Selurusers currently on my ignore list: deadrats, Stears555, marcorocchini -
-
The additional switch is --field-encode
Code:--field-encode Enable field encoding - one frame will be encoded as two fields
Scan type : Interlaced
Scan type, store method : Separated fields
Scan order : Top Field First -
-
The bare minimum is the field order (tff, bff) and the new switch . --sar if it's SD
Note the defaults are different for this build than "normal" builds. There is a max GOP of 500, 6 refs
It would look something like this
Code:x264 --tff --field-encode -o output.ext input.ext
I tried feeding separated fields stream (in addition to interleaved fields input), as well the ffmpeg libx264 build - but there are issues with every combination either with timestamps, frame/field size, and some crashing with some decoders. This is not a "proper" polished or finished PAFF build
The general consensus from dev's is "interlace is dead." Why invest time into something dead. MBAFF is superior in terms of efficiency. x264 development basically stopped 10 years ago, the only commits are for SIMD commits, a few bug fixes. AVC is now considered a "legacy" format now too , and people have moved on . (Yes I know there are a few situation where PAFF is required - it won't happen unless someone sponsors $$ it) -
My input has 4:2:2 chroma so I got this error:
Code:resize [warning]: converting from yuv422p to yuv420p x264 [error]: field encoding is not compatible with vfr
The general consensus from dev's is "interlace is dead." Why invest time into something dead. MBAFF is superior in terms of efficiency. x264 development basically stopped 10 years ago, the only commits are for SIMD commits, a few bug fixes. AVC is now considered a "legacy" format now too , and people have moved on . (Yes I know there are a few situation where PAFF is required - it won't happen unless someone sponsors $$ it) -
I don't see how "interlace is dead"! It's 2024, and more than half of the world's watching interlaced TV. It's not going away yet. Why make something as simple so frustrating and nerve-wrecking?! I just want to re-encode my archival footage in peace.
-
422 should be
Code:--input-csp i422 --output-csp i422
What is the source file? You can convert it to CFR, or use aviysnth input
Because it already works, and MBAFF has been production ready for many years
MBAFF's not working for me. -
-
Not really sure, on what could truly be the problem, but MBAFF encodes always kind of struggle to play on my PC, while PAFF encodes play back smoothly and with minimal to no stuttering, if any.
And MBAFF works fine for that . Many broadcast providers use MBAFF instead of PAFF. Many retail BD's use MBAFF encoding instead of PAFF . The main reason is better quality , or lower bandwidth for a certain level of quality - which of course appeals to broadcasters
(Yes I know there are a few situation where PAFF is required - it won't happen unless someone sponsors $$ it)
P.S. SORRY for the late reply. I've been extremely busy the last couple of days, so couldn't reply right away. Thanks a lot for your help. -
It might your software isn't deinterlacing automatically , or you don't have it setup properly
Dunno about you, but I haven't come across anybody that uses MBAFF, especially for broadcasting. I collect satellite feeds, and the majority of them are PAFF. From the most unknown and low-profile feeds to extremely high profile ones like the Grammys, or something else, they are all PAFF. Even a few rare IPTV streams that happen to be interlaced use PAFF.
(Yes I know there are a few situation where PAFF is required - it won't happen unless someone sponsors $$ it)
P.S. SORRY for the late reply. I've been extremely busy the last couple of days, so couldn't reply right away. Thanks a lot for your help.
Contact Kieran Kunhya (kierank on Github) since he's the maintainer of that fork
Sponsoring a project tends to bring more people "out of the woodwork" -
It might your software isn't deinterlacing automatically , or you don't have it setup properly
Contact Kieran Kunhya (kierank on Github) since he's the maintainer of that fork
Sponsoring a project tends to bring more people "out of the woodwork" -
Then why does mbaff work ok for everyone else, but not you?
e.g. it works ok in MPCHC/LAV, Potplayer. You can pause , go frame by frame to check - they automatically double rate deinterlace to 59.94p/ 50p . 100% definitely ok for 10-15 years for 8bit 4:2:0. A software playback problem would have been dealt with a long time ago... e.g. it works ok on Hardware players, such as HDTV's , android players. This would have been a critical bug fixed a long time ago, on multiple fronts, libavcodec, x264 - had it been an issue
But 10bit 4:2:2 AVC will not be HW accelerated by anything - so if the decoding path is through GPU or HW decoding, and there is no SW deinterlacer setup in the path, it might not process properly automatically - you might have to enable it manually
What software are you using, what decoder, what setup ? HW or SW decoding ?
What hardware ?
Or maybe you didn't encode it properly ? Such as wrong field order ?
Contact Kieran Kunhya (kierank on Github) since he's the maintainer of that fork
Sponsoring a project tends to bring more people "out of the woodwork"
EDIT: just tested this right now
All these mbaff x264 encoded pixel formats play ok automatically deinterlaced in MPCHC+LAV for me 8bit420 , 8bit422, 10bit422Last edited by poisondeathray; 21st Feb 2024 at 14:23.
-
Doubt if bounty able to convince Kieran or someone else to work on PAFF in x264 will be lower than https://www.mainconcept.com/ffmpeg#buy-now .
-
Not really sure, honestly. And to be clear, I never said MBAFF encodes do not get de-interlaced whatsoever on my end. I only said they "struggle to play on my PC." I do pause, check the frames, and the rate indeed is doubled to 50 for PAL, and to 59.94 for NTSC, though, usually when playing back PAFF encodes. With MBAFF, there are often lots of dropped frames. This applies to/for both my own encodes, and those downloaded from the internet. This is not a constant occurrence, but a frequent one. On the other hand, even 10-bit 4:2:2 PAFF is smooth. Trust me, I wouldn't make up a whole story simply because I want x264 to get PAFF support.
Contact Kieran Kunhya (kierank on Github) since he's the maintainer of that fork
Sponsoring a project tends to bring more people "out of the woodwork"Proper channel is still kierank , let him know you're offering a bounty . You can try VideoLAN , or even a post a ffmpeg developer bounty -
Why would it be any higher or the same in price as the "AVC Broadcast Encoder Plugin", though? As far as I know, base x264 does almost everything offered by that plugin, for free! It's not even like PAFF support is what really is giving that product its price tag. Especially not, considering there are modified x264 forks with PAFF support that could do the same job if one managed to find them. More than likely, the "Pre-configured encoding and multiplexer profiles for professional Sony and Panasonic cameras" give it the hefty price tag.
-
I'm not doubting your observation, but don't you want to understand the actual problem ?
This sounds like an older hardware issue (or it could still be misconfigured SW)
Can you answer the previous questions on hardware configuration and software used ?
If there was critical issue that affected everybody - this would make it a high priority issue - and you wouldn't have to pay a developer to convince them to work on it . And it would be examined at both sides; MBAFF encoding and the decoding side in libavcodec to see where the problem was
Other options:
Upgrading HW would be less expensive than hiring a developer
Cheapest way for smooth MBAFF playback if you don't have sufficient HW resources is to add a cheap GPU card (at least for 4:2:0 AVC)
You can encode 4:2:0 AVC PAFF using NVEenc using a cheap card as well . Sure, the quality isn't as good as x264 with MBAFF, but it' s decent if you use enough bitrate
AVC PAFF comes with many commercial NLE's as well (e.g. Vegas, Premiere), usually the licensed mainconcept AVC variety . Again, quality is lower than x264 MBAFF, but it's decent if you use enough bitrate -
You probably no need commercial license for broadcast AVC encoder - there is fundamental difference between x264 and Mainconcept products - you get warranty and proven broadcast (x264 is proven but without warranty). Don't get me wrong - using x264, no need to use Mainconcept and no need to have PAFF. Try to raise some action, collect at least 4..5 figures bounty and convince someone to create broadcast PROVEN PAFF for x264, soon there will be need to create interlace support for x265 (h.265 formally is progressive but left some backdoor for interlaced content) so perhaps this can be extended on both.
added after brief:
Or use ChatGPT or similar fancypancy ML crap to create working code (perhaps using Kieran PAFF as entry point - not sure about copyright and license). -
You would have to pay a bounty for the decoding side too - because proper interlaced decoder doesn't exist for HEVC either, professional or open source. Encoder is useless without any decoding tools. And it wouldn't be part of the "official" specifications (unless they update it) or would it necessarily work on hardware chips - it would be some "other" project limited to open source software
h266 / VVC is in the same situation - it does not include proper support for interlace either . The fact that 2 generations of codecs omit proper interlace support in their official specifications should suggest something obvious.... -
You are absolutely right about lack of formal requirements on decoders to support interlace content encoding in h.265/h.266 and i never claimed anything opposite.
If i recall correctly interlace content encoding (after separating frame to fields) in h.265 was briefly mentioned during h.265 standardization process.
This will be less efficient but still can be option to consider if someone searching for higher compression than h.264 can deliver.
For HW decoders this proposed encoding method is not substantially different than PAFF but of course it is up to implementer to deliver proper implementation.
Hope it is clear now. -
It's highly unlikely to be an older hardware issue. I'm using a relatively low-laptop with a 10th gen i3 CPU, and a weakly 4 GBs of RAM.
Upgrading HW would be less expensive than hiring a developer
Cheapest way for smooth MBAFF playback if you don't have sufficient HW resources is to add a cheap GPU card (at least for 4:2:0 AVC)
You can encode 4:2:0 AVC PAFF using NVEenc using a cheap card as well . Sure, the quality isn't as good as x264 with MBAFF, but it' s decent if you use enough bitrate
AVC PAFF comes with many commercial NLE's as well (e.g. Vegas, Premiere), usually the licensed mainconcept AVC variety . Again, quality is lower than x264 MBAFF, but it's decent if you use enough bitrate
Similar Threads
-
"code":400,"error":true,"message" on http://getwvkeys.cc
By johnsonkiss in forum Video Streaming DownloadingReplies: 14Last Post: 25th Jul 2024, 21:45 -
getwvkeys.cc code":400,"error":true,"message":"Failed to get license: 405
By Koldunas in forum Newbie / General discussionsReplies: 0Last Post: 27th Sep 2023, 02:44 -
{"code": 2048, "message": "Authentication failed"} when getting license
By warmachine in forum Video Streaming DownloadingReplies: 2Last Post: 26th May 2023, 16:34 -
How Can I Copy "Special" Subtitles From Musicals?
By Agrajag27 in forum Blu-ray RippingReplies: 12Last Post: 7th Feb 2021, 17:18 -
Why x264 "placebo" preset produce bigger file than "very slow"?
By aleaksunder in forum Video ConversionReplies: 21Last Post: 2nd Mar 2019, 07:25