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. |
![]() |
#6801 | Link | |
The cult of personality
Join Date: May 2013
Location: Planet Vegeta
Posts: 121
|
Quote:
video: wrapped_avframe, yuv420p10le in cmd so I guess this is ok. what about my other question about better way to encode next time? |
|
![]() |
![]() |
![]() |
#6802 | Link | |
Registered User
Join Date: Dec 2002
Posts: 5,570
|
Quote:
filtering + 1st pass + filtering + 2nd pass + .. > filtering + encode to lossless + 1st pass from lossless + 2nd pass from lossless .. But you are encoding CRF, e.g. now instead of filtering + x265 crf you do filtering + x264 lossless + x265 crf. That's slower? |
|
![]() |
![]() |
![]() |
#6803 | Link | |
The cult of personality
Join Date: May 2013
Location: Planet Vegeta
Posts: 121
|
Quote:
while if I wanna encode 720p only (from horriblesubs tv shows), then yes I go vpy directly without lossless. what do you do for encoding BDs to 1080 and 720? |
|
![]() |
![]() |
![]() |
#6804 | Link |
Registered User
Join Date: Dec 2002
Posts: 5,570
|
So you encode to multiple resolutions? Ok, then it may make sense to create an intermediate to only do (slow) filtering once.
I think you may save a little bit of time/CPU by saving to uncompressed y4m/yuv instead of encoding x264 lossless as intermediate. But with slow filtering + slow x265 it will probably not make too much of a difference either way. And the size of the file increases so the wear on the HDD/SSD increases. P.S.: ffmpeg allows multiple outputs but I don't know how it affects speed and it may result in HDD fragmentation. I don't. Last edited by sneaker_ger; 1st May 2019 at 22:20. |
![]() |
![]() |
![]() |
#6805 | Link | |
The cult of personality
Join Date: May 2013
Location: Planet Vegeta
Posts: 121
|
Quote:
I encode on a dedicated server so no problem about HDD xD, or so I think. |
|
![]() |
![]() |
![]() |
#6806 | Link |
Registered User
Join Date: Dec 2002
Posts: 5,570
|
You don't need VirtualDub. vspipe can create y4m files. But yes, unsurprisingly, uncompressed files are bigger than compressed ones...
But again: if you are doing slow filtering and slow x265 encoding the difference between uncompressed or lossless x264 --preset ultrafast intermediate is probably not worth worrying about. If you want to know exactly you have to benchmark it. Last edited by sneaker_ger; 1st May 2019 at 22:38. |
![]() |
![]() |
![]() |
#6807 | Link | |
The cult of personality
Join Date: May 2013
Location: Planet Vegeta
Posts: 121
|
Quote:
Code:
ffmpeg -i inputfile.vpy -c:v rawvideo outputfile.yuv Code:
vspipe script.vpy output.raw I will try next time to see how much time will it take. Lossless x264 ultrafast 1080p is about 8 hours. |
|
![]() |
![]() |
![]() |
#6808 | Link | |
Broadcast Encoder
Join Date: Nov 2013
Location: Germany
Posts: 1,279
|
Quote:
Alternatively, you can use other lossless codecs like FFV1, HuffYUV or Lagarith, although my suggestion is UTVideo or FFV1.
__________________
Broadcast Encoder Avisynth memes Videotek - Audacity XP LUT Collection - FFAStrans SafeColorLimiter - AAA |
|
![]() |
![]() |
![]() |
#6809 | Link | |
The cult of personality
Join Date: May 2013
Location: Planet Vegeta
Posts: 121
|
Quote:
Also, now x265 inputs it directly but it encodes it WAY much slower for IDK reason. Also file size is so freaking huge, maybe I did something bad despite using the exact same encoding commands: Code:
x265_64bit_10bit.exe --preset slower --crf 17 --ref 6 --rd 6 --psy-rd 1 --ctu 32 --aq-strength 0.8 --output-depth 10 --input-res 1920x1080 --fps 24000/1001 --input "C:\videp.yuv" --output "C:\output.hevc" pause Last edited by ~ VEGETA ~; 3rd May 2019 at 15:00. |
|
![]() |
![]() |
![]() |
#6810 | Link | |||
Broadcast Encoder
Join Date: Nov 2013
Location: Germany
Posts: 1,279
|
Quote:
Quote:
Quote:
I mean, x265 is still gonna use its internal decoder to take the source in input, right? Encoding-wise, I wonder whether its own internal decoder is more optimized for taking one thing in input rather than the other, or perhaps is just the way things have been allocated... but that cannot be since each source is lossless and there are little differences on filesize to justify a big speed different, besides compressed lossless, although with less space, still have to be "decoded", while uncompressed lossless files are ready to go but way bigger, so perhaps the hard drive is not fast enough to justify an uncompressed source as it takes longer to buffer it than decoding a losslessly compressed one... I don't know. Perhaps someone can enlighten me as well about this.
__________________
Broadcast Encoder Avisynth memes Videotek - Audacity XP LUT Collection - FFAStrans SafeColorLimiter - AAA Last edited by FranceBB; 4th May 2019 at 07:17. |
|||
![]() |
![]() |
![]() |
#6811 | Link |
Helenium(Easter)
Join Date: Aug 2017
Location: Hsinchu, Taiwan
Posts: 99
|
x265-3.0_Au+24-4217e691387c-win64-multilib
Code:
x265 [info]: HEVC encoder version 3.0_Au+24-4217e691387c x265 [info]: build info [Windows][GCC 9.1.1][64 bit] 8bit+10bit+12bit x265 [info]: (libavcodec 58.52.101) x265 [info]: (libavformat 58.27.103) x265 [info]: (libavutil 56.26.101) x265 [info]: (lsmash 2.16.1)
__________________
Monochrome Anomaly Last edited by Wolfberry; 16th May 2019 at 04:05. |
![]() |
![]() |
![]() |
#6812 | Link | |
Registered User
Join Date: Nov 2007
Posts: 50
|
Quote:
And if it is slower than others lossless codecs in compression, it is also slower in decompression ! I am not surprised that x265 encoded slower too, you should try UTVideo instead. |
|
![]() |
![]() |
![]() |
#6817 | Link |
...?
Join Date: Nov 2005
Location: Florida
Posts: 1,258
|
*cough*. We're still on the same forum page.
LAVF input is only supported through patches. MCW more or less put the kibosh on the idea of it being in the upstream source a few years ago, IIRC. Something about not wanting to deal with the maintenance burden of input modules other than raw and y4m, as I recall. I mean, I use the LAVF support patches for my personal builds of x265 CLI, but more often than not, I just use libx265 through FFmpeg, which is probably more what MCW expects people to do if they want all the exotic input file support. |
![]() |
![]() |
![]() |
#6818 | Link |
Registered User
Join Date: Jul 2018
Posts: 164
|
Last time I tested avs input with this patch was quite slower than avs2yuv+x265.
|
![]() |
![]() |
![]() |
#6820 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,658
|
How do I use the patch?
x265.exe --crf 18 --output C:\out.hevc C:\test.avs Code:
[avs2 @ 0000000002763500] Format avs2 detected only with low score of 1, misdetection possible! [avs2 @ 0000000002763500] Could not find codec parameters for stream 0 (Video: avs2, none): unspecified size Consider increasing the value for the 'analyzeduration' and 'probesize' options [NULL @ 0000000002747480] No codec provided to avcodec_open2() [NULL @ 0000000002747480] No codec provided to avcodec_open2() lavf [error]: could not find decoder for video stream x265 [error]: unable to open input file <C:\Users\frank\Daten\Samples\test_temp\test.avs> |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|