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. |
13th July 2019, 03:36 | #6901 | Link |
Registered User
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
|
AFAIK, piping can't seek either. The workaround is a giant pain. I have to make a unique .avs for every segment the outputs the right frames using trim, and then I have to make a unique .chp for every segment/x265 call that's shifted by the correct amount.
|
14th July 2019, 04:27 | #6905 | Link | |
結城有紀
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
|
Quote:
Why would a chp file be affected by seeking support? Suppose it's a chapter file, and x265 does not take chapter files as input. Talking about my experience, if I want to backup a movie, usually I want to encode it in multiple segments. I have scripts which can produce "import().trim()" type of AVS files, and I encode them in different batch, then concatenate them together, attach the chapter, and call it a day. |
|
14th July 2019, 09:20 | #6906 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,718
|
3-level Hierarchial Motion Estimation
I see there are two recent commits related to hierachial motion estimation. I couldn't find anything specific as to what the use cases would be, does anyone have any insights? Or is this once again one of those things that just appear in the encoder out of the blue (probably requested by some paying client) and the devs leave it at that.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
14th July 2019, 09:34 | #6907 | Link | |
ffx264/ffhevc author
Join Date: May 2007
Location: /dev/video0
Posts: 1,843
|
Quote:
|
|
14th July 2019, 11:58 | #6908 | Link | |
Registered User
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
|
Quote:
Seek support would simply this since the same .avs and qpfile could be used and only the seek point and frame number on the command line would need to change. This would also be more simple if affinity restrictions from the START command in Windows 10 worked with x265. It seems that somewhere in the Windows 10 feature update chain MS changed the behavior. Affinity restrictions on a .bat file that called an executable used to result in the same affinity restrictions being placed on the executable started by the .bat file. Now it doesn't. Affinity restrictions placed directly on the x265 command line don't even work. (They do work on the x264 command line.) Ideally I would run a batch file with these four lines and be done. Code:
START "Enc #1" /NORMAL /NODE 0 /AFFINITY F000 "C:\HDTV Tools\x265\x265.exe" -F 1 --crf 16.0 -p veryslow ... START "Enc #2" /NORMAL /NODE 0 /AFFINITY 0F00 "C:\HDTV Tools\x265\x265.exe" -F 1 --crf 16.0 -p veryslow ... START "Enc #3" /NORMAL /NODE 0 /AFFINITY 00F0 "C:\HDTV Tools\x265\x265.exe" -F 1 --crf 16.0 -p veryslow ... START "Enc #4" /NORMAL /NODE 0 /AFFINITY 000F "C:\HDTV Tools\x265\x265.exe" -F 1 --crf 16.0 -p veryslow ... |
|
14th July 2019, 15:06 | #6909 | Link | |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,718
|
Quote:
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
|
14th July 2019, 17:34 | #6910 | Link | |
RipBot264 author
Join Date: May 2006
Location: Poland
Posts: 7,806
|
Quote:
__________________
Windows 7 Image Updater - SkyLake\KabyLake\CoffeLake\Ryzen Threadripper |
|
15th July 2019, 12:01 | #6911 | Link | |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
|
I believe it may be possible to use the --pools parameter to control the affinity of x265 instances if it was just documented verbosely enough...
Quote:
Code:
--pools <integer,...> Comma separated thread count per thread pool (pool per NUMA node) '-' implies no threads on node, '+' implies one thread per core on node Code:
x265 --pools 4,"+---" x265 --pools 4,"-+--" x265 --pools 4,"--+-" x265 --pools 4,"---+" |
|
15th July 2019, 12:12 | #6912 | Link | |
Registered User
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
|
Quote:
It has these examples: Code:
"" - default, unspecified, all numa nodes are used for thread pools "*" - same as default "none" - no thread pools are created, only frame parallelism possible "-" - same as "none" "10" - allocate one pool, using up to 10 cores on all available nodes "-,+" - allocate one pool, using all cores on node 1 "+,-,+" - allocate one pool, using only cores on nodes 0 and 2 "+,-,+,-" - allocate one pool, using only cores on nodes 0 and 2 "-,*" - allocate one pool, using all cores on nodes 1, 2 and 3 "8,8,8,8" - allocate four pools with up to 8 threads in each pool "8,+,+,+" - allocate two pools, the first with 8 threads on node 0, and the second with all cores on node 1,2,3 I see no references to core restrictions, only node restrictions in the documentation. Last edited by Stereodude; 15th July 2019 at 12:16. |
|
15th July 2019, 12:27 | #6913 | Link |
German doom9/Gleitz SuMo
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
|
Ah, I missed these examples... I would have given a better guess if I knew them.
So it seems to be: Code:
x265 --pools "4,4,4,4,+,-,-,-" x265 --pools "4,4,4,4,-,+,-,-" x265 --pools "4,4,4,4,-,-,+,-" x265 --pools "4,4,4,4,-,-,-,+" P.S.: I asked in the x265 developer mailing list. Last edited by LigH; 15th July 2019 at 12:42. |
15th July 2019, 13:30 | #6914 | Link | |
Registered User
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
|
Quote:
By my reading and messing with them (I do have a dual Numa node system) you have control over nodes, but not over cores. I'll be curious to see what reply you get on the mailing list. |
|
15th July 2019, 22:23 | #6915 | Link |
結城有紀
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
|
I have never made x265 to set its affinity as I intended so I always use my modded version of avs4x264 to do the job, which overwrites the affinity after x265 launches.
Regarding to your qpfile usage, honestly I have no similar usage of those so I don't have good suggestions for you. Usually if I want to force an IDR I'll just cut that as a new segment. I'll take a quick look at the source code and see if I can find a way to do a seek easily. If it's easy enough to implement I'll slipstream it into my patch set. |
16th July 2019, 02:33 | #6918 | Link | |
Registered User
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
|
Quote:
|
|
16th July 2019, 23:25 | #6920 | Link | |
Registered User
Join Date: Jan 2007
Posts: 729
|
Quote:
Has anybody here tested it? (Edit: also, is it finished/ready for testing yet, or are there more incoming patches to plumb it together?) |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|