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   #1321  |  Link
amayra
Quality Checker
 
amayra's Avatar
 
Join Date: Aug 2013
Posts: 271
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   #1322  |  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   #1323  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,536
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   #1324  |  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   #1325  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,536
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   #1326  |  Link
jones1913
random user
 
Join Date: May 2014
Location: #Neuland
Posts: 108
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   #1327  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,055
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   #1328  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 164
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   #1329  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Germany
Posts: 1,285
Thank you!!
FranceBB is online now   Reply With Quote
Old 18th October 2020, 12:01   #1330  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 263
Thanks
kedautinh12 is offline   Reply With Quote
Old 18th October 2020, 13:11   #1331  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,055
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   #1332  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 263
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   #1333  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,055
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   #1334  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 2,961
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   #1335  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,536
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   #1336  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 164
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   #1337  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 2,961
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   #1338  |  Link
StvG
Registered User
 
Join Date: Jul 2018
Posts: 164
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   #1339  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 263
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   #1340  |  Link
manolito
Registered User
 
manolito's Avatar
 
Join Date: Sep 2003
Location: Berlin, Germany
Posts: 2,961
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 22:09.


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