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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th January 2021, 15:49   #1  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
x264 10 bit decoder and script

I have a bunch of files I encoded years ago as x264 10 bit, some 4:2:0 and others 4:4:4.

With my horror, I discovered there are no hw decoder for those formats and my TV is dying trying to playing them.

I am so used to DGIndexNV that I almost don't know anything about other decoders.

What can I use to decode them and feed as same bitdepth stream to x265?

A script example would be great.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 29th January 2021, 00:26   #2  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,419
FFMS2 or L-SMASH-Works. There's really not much to using those source filters at all; the index will get created on script open, but for FFMS2 you can create it ahead of time with ffmsindex. For LwLibav*Source, there is no separate indexing app aside from aui_indexer (right?), but you can just open the script in ffprobe to see the indexing process without it then continuing onto encoding.


Then hand it over to libx265 in FFmpeg, which keeps the input depth without having to force it the way the x265 CLI* requires.

*requires a patched build of x265's CLI that accepts AviSynth input.

Code:
ffmpeg -i input.avs -vcodec libx265 [x265 options] output-video.mp4
Remux with the audio content.


Although honestly, I'd probably just transcode straight through ffmpeg and not bother with AviSynth in this case, unless you also wanted to use AviSynth filters on the videos.
Code:
ffmpeg -i input.mkv -vcodec libx265 [x265 options] -acodec copy output.mkv
qyot27 is offline   Reply With Quote
Old 29th January 2021, 13:07   #3  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,542
Quote:
Originally Posted by qyot27 View Post
There's really not much to using those source filters at all; the index will get created on script open, but for FFMS2 you can create it ahead of time with ffmsindex.
I saw you can specify color space. Is there any need or will it recognize 10 bit / 4:4:4 automatically and feed to AVS?

I prefer to use AVS to x265 instead of FFMPEG to have the possibility to use other filters too.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 29th January 2021, 13:59   #4  |  Link
qyot27
...?
 
qyot27's Avatar
 
Join Date: Nov 2005
Location: Florida
Posts: 1,419
They've supported the high bit depth formats in avsplus for a long time. The colorspace parameter is for doing the resampling in the source filter; usually that isn't necessary.
qyot27 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:01.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.