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. Domains: forum.doom9.org / forum.doom9.net / forum.doom9.se |
|
|
#1262 | Link |
|
Registered User
Join Date: Jan 2002
Posts: 44
|
Long time, no post
![]() I'd like to ask for some help. I've just upgraded to an AMD Ryzen 4000-based laptop with integrated Vega graphics, on dGPU. On my previous laptop I had a crappy Nvidia dGPU, but it still was a tremendous help with transcoding stuff through DGIndex. With this laptop this is out of the picture obviously. What would be the syntax with L-SMASH in Avisynth to utilize the AMD VCN core for HW decoding, to free up the CPU for x264 encoding? If it's not possible with the current compiled binaries, can I build one that includes the capability to use the VCN core? Thanks! |
|
|
|
|
|
#1263 | Link | |
|
RipBot264 author
Join Date: May 2006
Location: Poland
Posts: 7,952
|
Quote:
__________________
Windows 7 Image Updater - SkyLake\KabyLake\CoffeLake\Ryzen Threadripper |
|
|
|
|
|
|
#1264 | Link | |
|
Registered User
Join Date: Jan 2002
Posts: 44
|
Quote:
Edit: through DXVA and/or D3D11 I believe, unless I've totally misunderstood. Sent from my SM-G973F using Tapatalk Last edited by Boardlord; 24th August 2020 at 15:02. |
|
|
|
|
|
|
#1265 | Link |
|
RipBot264 author
Join Date: May 2006
Location: Poland
Posts: 7,952
|
We need proper api like cuvid or quicksync not some hacks via dxva. AMD should stop acting like some special princes and allow third party programmers access to their decoder.
__________________
Windows 7 Image Updater - SkyLake\KabyLake\CoffeLake\Ryzen Threadripper |
|
|
|
|
|
#1266 | Link | |
|
random user
Join Date: May 2014
Location: #Neuland
Posts: 116
|
Quote:
However, AMF decoder is not yet integrated in ffmpeg (but encoder is): https://github.com/GPUOpen-Libraries...AMF/issues/199 Btw. on Linux encoding and decoding works with ffmpeg through vaapi.
__________________
BeHappy Audio Transcoder > <Doom9 forum> <Gleitz forum> <GitHub> MP4.tool GUI for MP4Box & L-SMASH muxer > https://www.mediafire.com/folder/3i6y6cbkyhblm/MP4.tool |
|
|
|
|
|
|
#1267 | Link |
|
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,758
|
there are frame properties PR by Asd-g since a week https://github.com/HolyWu/L-SMASH-Works/pull/12
I think HolyWu is not active these days, so anyone else can build it?
__________________
See My Avisynth Stuff |
|
|
|
|
|
#1271 | Link | |
|
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,758
|
Quote:
__________________
See My Avisynth Stuff |
|
|
|
|
|
|
#1272 | Link | |
|
Registered User
Join Date: Jan 2018
Posts: 2,170
|
Quote:
error: https://drive.google.com/file/d/1ZNB...ew?usp=sharing file test: https://drive.google.com/file/d/1yHA...ew?usp=sharing |
|
|
|
|
|
|
#1273 | Link | |
|
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,758
|
Quote:
anyway, let's see what the Developers said about it
__________________
See My Avisynth Stuff |
|
|
|
|
|
|
#1275 | Link | |
|
RipBot264 author
Join Date: May 2006
Location: Poland
Posts: 7,952
|
Quote:
FFMS ![]() L-SMASH
__________________
Windows 7 Image Updater - SkyLake\KabyLake\CoffeLake\Ryzen Threadripper |
|
|
|
|
|
|
#1276 | Link | ||
|
Registered User
Join Date: Jul 2018
Posts: 609
|
Quote:
Quote:
Code:
#The latest official build (20200728)
lwlibavvideosource("Letter - SHE'S.mkv")
Number of frames: 6518
Length (hh:mm:ss.ms): 00:04:31.855
Frame width: 1920
Frame height: 1080
Framerate: 23.976 (24000/1001)
Colorspace: i420
Frames processed: 6518 (0 - 6517)
FPS (min | max | average): 122.0 | 2021 | 448.1
Process memory usage (max): 105 MiB
Thread count: 37
CPU usage (average): 13.3%
Time (elapsed): 00:00:14.547
Code:
#my build
lwlibavvideosource("Letter - SHE'S.mkv", threads=2)
Number of frames: 6518
Length (hh:mm:ss.ms): 00:04:31.855
Frame width: 1920
Frame height: 1080
Framerate: 23.976 (24000/1001)
Colorspace: i420
Frames processed: 6518 (0 - 6517)
FPS (min | max | average): 104.0 | 2487 | 424.9
Process memory usage (max): 104 MiB
Thread count: 24
CPU usage (average): 10.8%
Time (elapsed): 00:00:15.340
Code:
#ffms2 - no seek issue
ffvideosource("Letter - SHE'S.mkv", threads=8)
Number of frames: 6518
Length (hh:mm:ss.ms): 00:04:31.855
Frame width: 1920
Frame height: 1080
Framerate: 23.976 (24000/1001)
Colorspace: i420
Frames processed: 6518 (0 - 6517)
FPS (min | max | average): 167.8 | 2205 | 1077
Process memory usage (max): 133 MiB
Thread count: 30
CPU usage (average): 29.3%
Time (elapsed): 00:00:06.049
|
||
|
|
|
|
|
#1277 | Link |
|
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,140
|
Thanks for looking into it...
I can confirm that the problem disappears when "threads=2" is specified. Still I think that this should be fixed because the HolyWu builds and also FFVideoSource do not have a problem with the default value for Threads (which means to use the number of threads reported by Windows with a ceiling of 16). |
|
|
|
|
|
#1280 | Link | |
|
Registered User
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,140
|
Quote:
I got curious and made a couple of tests using different source filters with Atak's SeekTester 1.2. I used the default frame limit of 1000 frames. As the source I took the "Letter - SHE'S.mkv" (VP9 Video 1080p). My CPU is a Core i5 third generation (2 physical cores plus hyperthreading). I used the default thread values for all source filters which would be 4 for this CPU. FFMS2 StvG from Oct. 2020: There were 12 corrupted frames out of 1000 frames. FFMS2 StvG from Aug. 2020: Same FFMS2 StvG from April 2020: Same FFMS2 StvG from Nov. 2019: Same FFMS2 C-Plugin latest 2.31 by qyot27 Perfect FFMS2 C-Plugin by Reino: Both available versions fail miserably. Mainly corrupted or inserted frames FFMS2 official version 2.40 by Myrsloik: Fails miserably. Mostly corrupted or inserted frames DirectShowSource with LAV Filters: Many inserted frames DSS2Mod with LAV Filters (preroll=15): Perfect LWLibavVideoSource by HolyWu: Perfect Ok, these results are only for this specific VP9 source file. Other source formats may behave differently, but I find this very interesting. Any comments? |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|