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 Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 23rd August 2020, 08:03   #1261  |  Link
amayra
Quality Checker
 
amayra's Avatar
 
Join Date: Aug 2013
Posts: 285
there any reason for not using GitHub Actions or appveyor ?
__________________
I love Doom9
amayra is offline   Reply With Quote
Old 24th August 2020, 13:30   #1262  |  Link
Boardlord
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!
Boardlord is offline   Reply With Quote
Old 24th August 2020, 14:54   #1263  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,812
Quote:
Originally Posted by Boardlord View Post
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!
HW Decoding is not available on AMD GPU. Blame AMD for being stubborn and not providing api to their decoder like Intel or NVidia.
Atak_Snajpera is offline   Reply With Quote
Old 24th August 2020, 14:55   #1264  |  Link
Boardlord
Registered User
 
Join Date: Jan 2002
Posts: 44
Quote:
Originally Posted by Atak_Snajpera View Post
HW Decoding is not available on AMD GPU. Blame AMD for being stubborn and not providing api to their decoder like Intel or NVidia.
Hmm, but I've seen that LAVFilters can utilize the AMD GPU for HW-accelerated playback...?

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.
Boardlord is offline   Reply With Quote
Old 25th August 2020, 06:32   #1265  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,812
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.
Atak_Snajpera is offline   Reply With Quote
Old 25th August 2020, 19:26   #1266  |  Link
jones1913
random user
 
Join Date: May 2014
Location: #Neuland
Posts: 116
Quote:
Originally Posted by Atak_Snajpera View Post
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.
The API exists: AdvancedMediaFramework (AMF)
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
jones1913 is offline   Reply With Quote
Old 18th October 2020, 08:31   #1267  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
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
real.finder is offline   Reply With Quote
Old 18th October 2020, 10:05   #1268  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 450
Here - dav1d 0.7.1, ffmpeg@9b72cea446, zlib 1.2.11, xxHash v0.8.0.
StvG is offline   Reply With Quote
Old 18th October 2020, 11:37   #1269  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,903
Thank you!!
FranceBB is offline   Reply With Quote
Old 18th October 2020, 12:01   #1270  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Thanks
kedautinh12 is offline   Reply With Quote
Old 18th October 2020, 13:11   #1271  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by StvG View Post
Here - dav1d 0.7.1, ffmpeg@9b72cea446, zlib 1.2.11, xxHash v0.8.0.
that was fast! thanks!
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 27th October 2020, 05:27   #1272  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Quote:
Originally Posted by StvG View Post
Here - dav1d 0.7.1, ffmpeg@9b72cea446, zlib 1.2.11, xxHash v0.8.0.
I meet error when index with LSMASH, normally with FFMPEG

error: https://drive.google.com/file/d/1ZNB...ew?usp=sharing
file test: https://drive.google.com/file/d/1yHA...ew?usp=sharing
kedautinh12 is offline   Reply With Quote
Old 27th October 2020, 14:11   #1273  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by kedautinh12 View Post
I meet error when index with LSMASH, normally with FFMPEG

error: https://drive.google.com/file/d/1ZNB...ew?usp=sharing
file test: https://drive.google.com/file/d/1yHA...ew?usp=sharing
I think for mkv nothing better than ffms2, LSMASH is not replacement for ffms2 so it's focuses on what ffms2 fails to do

anyway, let's see what the Developers said about it
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 27th October 2020, 14:45   #1274  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
I don't think that it has anything to do with the MKV container...
The latest HolyWu build from July 2020 does not have this issue, so this is a regression which should be fixed.
manolito is offline   Reply With Quote
Old 27th October 2020, 14:57   #1275  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,812
Quote:
Originally Posted by real.finder View Post
I think for mkv nothing better than ffms2, LSMASH is not replacement for ffms2 so it's focuses on what ffms2 fails to do

anyway, let's see what the Developers said about it
Yes It is. L-SMASH is superior in every way. No idea why people are still glued to non frame accurate filter. You are just asking for troubles when editing video in avisynth.

FFMS


L-SMASH
Atak_Snajpera is offline   Reply With Quote
Old 30th October 2020, 09:18   #1276  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 450
Quote:
Originally Posted by kedautinh12 View Post
I meet error when index with LSMASH, normally with FFMPEG

error: https://drive.google.com/file/d/1ZNB...ew?usp=sharing
file test: https://drive.google.com/file/d/1yHA...ew?usp=sharing
Try with lwlibavvideosource(..., threads=2).

Quote:
Originally Posted by manolito View Post
I don't think that it has anything to do with the MKV container...
The latest HolyWu build from July 2020 does not have this issue, so this is a regression which should be fixed.
My build with threads=2 doesn't have this issue. Obviously I'm using different building environment than HolyWu.
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
StvG is offline   Reply With Quote
Old 30th October 2020, 11:53   #1277  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
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).
manolito is offline   Reply With Quote
Old 30th October 2020, 12:15   #1278  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 450
What ffms2 version do you use? With this one and default threads I have 6 seek issues.
StvG is offline   Reply With Quote
Old 30th October 2020, 12:28   #1279  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,156
Quote:
Originally Posted by StvG View Post
What ffms2 version do you use? With this one and default threads I have 6 seek issues.
I thinks thread=8 very strong for weak computer, can you fixed with default thread for both ffms2 and lsmash??
kedautinh12 is offline   Reply With Quote
Old 30th October 2020, 21:30   #1280  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 3,079
Quote:
Originally Posted by StvG View Post
What ffms2 version do you use? With this one and default threads I have 6 seek issues.
Yes, I used the version you linked to from October 2020.

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?
manolito 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 04:49.


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