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

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development
Register FAQ Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 7th May 2017, 14:25   #681  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,854
70% CPU usage according to avsmeter using a 4k hevc sample.
stax76 is offline   Reply With Quote
Old 7th May 2017, 14:45   #682  |  Link
raffriff42
Retried Guesser
 
raffriff42's Avatar
 
Join Date: Jun 2012
Posts: 1,371
Quote:
Originally Posted by stax76 View Post
70% CPU usage according to avsmeter using a 4k hevc sample.
This might be why:https://ffmpeg.org/ffmpeg-all.html
Quote:
Note that most acceleration methods are intended for playback and will not be faster than software decoding on modern CPUs.
Additionally, ffmpeg will usually need to copy the decoded frames from the GPU memory into the system memory, resulting in further performance loss.
This option is thus mainly useful for testing.
raffriff42 is offline   Reply With Quote
Old 7th May 2017, 15:01   #683  |  Link
dipje
Registered User
 
Join Date: Oct 2014
Posts: 259
although you must not look at the cpu usage for stuff like that (because a lot of it might just be 'waiting for response from gpu' in which time other filters might happily run) it's a bit hit or miss here as well.

'h264' vs 'h264_cuvid' on my gtx1060, pure decoding of 1920x1080 h264 4:2:0 8bit, vapoursynth benchmark -> +/- 125fps vs 190fps. If I resample the file to 4:4:4: 16bit, then run f3kdb on it with a 'dither down back to 10bit' I get 35.2fps vs 39.8 fps. So a boost, but a small one.

Then, a 1920x1080 HEVC 4:2:2 10bit file, 'hevc' vs 'h265_cuvid'. Software decoding reaches 19.7 fps, then if I switch to 'hevc_cuvid' I get around 4.5 fps... which keeps on dropping bit by bit till it goes less than 1 fps then Vapoursynth crashes. So something is not right there :P. (LAVFilters refuses to use cuvid for the same file btw, so who knows they know it shouldn't work at all?)
dipje is offline   Reply With Quote
Old 7th May 2017, 15:09   #684  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,181
NVDECODE 10 bit needs the not yet released Video Codec SDK 8.0.

(Or has it been?)
sneaker_ger is offline   Reply With Quote
Old 7th May 2017, 15:09   #685  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,854
Quote:
Originally Posted by Selur View Post
for me it's dxva2 and cuvid
dxva2 and qsv for me

Code:
OS          : Windows 10 Pro
CPU         : Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
GPU         : NVIDIA GeForce GTX 1060 6GB, Intel(R) HD Graphics 530
stax76 is offline   Reply With Quote
Old 7th May 2017, 21:23   #686  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,669
"h264_cuvid" works for me, much lower CPU usage, and it translates to faster actual encoding (tested with no filters, just decoding/encoding).

But issues with frames out of order, stuck frames (duplicates), etc.. ie. unreliable. I have similar experiences with full GPU encode/decode with ffmpeg or rigaya's nvencc also - the issue is the decoding part for all of them - because replacing with sw decoding works. lsmash "h264_cuvid" seems completely unreliable in terms of 1:1 frame consistency. It doesn't matter if threads=1 or indexed.

Even DirectShowSource() with a configured GPU decoder through lav or .grf is more reliable. That is saying a lot (!)

I couldn't get "h264_qsv" to work, it looks like software decoding speed and cpu usage (it even shows correct frames ). This was on r929 from the_weirdo

Last edited by poisondeathray; 7th May 2017 at 21:34.
poisondeathray is offline   Reply With Quote
Old 18th June 2017, 07:25   #687  |  Link
B.F.
Registered User
 
B.F.'s Avatar
 
Join Date: Jul 2004
Location: Russia, Novosibirsk
Posts: 82
Is there any way to get fpsnum/fpsden commands working?
No matter what I tryed, this settings just ignored.
B.F. is offline   Reply With Quote
Old 18th June 2017, 07:59   #688  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,181
It should "just work". Post a sample of your source and your complete script.
sneaker_ger is offline   Reply With Quote
Old 19th June 2017, 01:00   #689  |  Link
B.F.
Registered User
 
B.F.'s Avatar
 
Join Date: Jul 2004
Location: Russia, Novosibirsk
Posts: 82
https://www.dropbox.com/s/pigfbxmkaegc0ew/321.mkv?dl=0
LWLibavVideoSource("321.mkv", fpsnum = 24000, fpsden = 1001)
It works on other source files, but not on this one.
B.F. is offline   Reply With Quote
Old 19th June 2017, 05:22   #690  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,669
Quote:
Originally Posted by B.F. View Post
https://www.dropbox.com/s/pigfbxmkaegc0ew/321.mkv?dl=0
LWLibavVideoSource("321.mkv", fpsnum = 24000, fpsden = 1001)
It works on other source files, but not on this one.
interesting that fpsnum , fpsden work with ffms2 but not lsmash on that one
poisondeathray is offline   Reply With Quote
Old 19th June 2017, 06:44   #691  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,181
Mkvextract says first video timecode at 10003ms, no audio timecodes. I'd say the file can be considered broken. If you created it yourself I'd open a ticket on the respective bug tracker (ffmpeg?).
sneaker_ger is offline   Reply With Quote
Old 19th June 2017, 13:41   #692  |  Link
B.F.
Registered User
 
B.F.'s Avatar
 
Join Date: Jul 2004
Location: Russia, Novosibirsk
Posts: 82
No, thats not my file, thats small piece of one of the files I need to encode.
And there is a lot of files like that in the internets.
And if ffms2 works on that one, L-SMASH should work too.
B.F. is offline   Reply With Quote
Old 11th July 2017, 20:17   #693  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,669
Several lsmash versions (I didn't check very old versions), both avisynth and vpy, crash when opening ULRG (UT Video Codec RGB24), but ffms2 is able to open no problems . I know there are differences between original VFW and ffmpeg/libav versions in terms of decoders, but not sure about encoder. Eitherway, it doesn't matter if it was written by the ffmpeg/libav implementation, or with the VFW version they all induce crash

EDIT: probably don't need a sample but just in case

Code:
colorbars()
Trim(0,1)
showframenumber()
converttorgb24()
Both ffmpeg and vfw encoder versions included
https://www.mediafire.com/?914801rwjq07k22

Last edited by poisondeathray; 11th July 2017 at 20:25.
poisondeathray is offline   Reply With Quote
Old 12th July 2017, 10:18   #694  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by poisondeathray View Post
Several lsmash versions (I didn't check very old versions), both avisynth and vpy, crash when opening ULRG (UT Video Codec RGB24), but ffms2 is able to open no problems .
AVISource() also has no problems with this. I always use it for UTVideo.
Groucho2004 is offline   Reply With Quote
Old 12th July 2017, 16:09   #695  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,669
Quote:
Originally Posted by Groucho2004 View Post
AVISource() also has no problems with this. I always use it for UTVideo.
Same here, the VFW version has the fastest decoder > libavcodec version . The later is about 2/3 speed and apparently doesn't have all the optimizations yet . But that doesn't help , say linux or mac users using vpy . But if ffms2 can do it, lsmash should be able to I woudl think
poisondeathray is offline   Reply With Quote
Old 1st August 2017, 23:02   #696  |  Link
speedyrazor
Registered User
 
Join Date: Mar 2003
Posts: 194
I have been using LibavSMASHSource in VapourSynth 64 for a while, very successfully. I am now trying to use this on the below XDCAM HD 422 file, but I get an error, any suggestions please:

General
Complete name : M:\797.mov
Format : QuickTime
Format/Info : Original Apple specifications
Commercial name : XDCAM HD422
File size : 22.8 GiB
Duration : 59 min 0 s
Overall bit rate : 55.4 Mb/s
Encoded date : UTC 2014-02-15 02:48:42
Tagged date : UTC 2014-02-15 02:48:42
Writing application : Omneon OmMedia.dll 6.4.0.5 02-27-2012 18:28:44,ex={0,-1},rng={0,-1,0},trimAu,exPre

Video
ID : 1
Format : MPEG Video
Commercial name : XDCAM HD422
Format version : Version 2
Format profile : 4:2:2@High
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : M=3, N=12
Format settings, picture structure : Frame
Codec ID : xd5c
Duration : 59 min 0 s
Bit rate mode : Constant
Bit rate : 50.0 Mb/s
Width : 1 920 pixels
Clean aperture width : 1 888 pixels
Height : 1 080 pixels
Clean aperture height : 1 062 pixels
Display aspect ratio : 16:9
Clean aperture display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Top Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.965
Time code of first frame : 00:00:00:00
GOP, Open/Closed : Closed
Stream size : 20.6 GiB (90%)
Language : English
Encoded date : UTC 2014-02-15 03:30:44
Tagged date : UTC 2014-02-15 03:30:44
Source :

Audio #1
ID : 2
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Muxing mode : Wave
Codec ID : sowt / 1
Duration : 59 min 0 s
Bit rate mode : Constant
Bit rate : 1 536 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Bit depth : 16 bits
Stream size : 648 MiB (3%)
Language : English
Encoded date : UTC 2014-02-15 03:30:44
Tagged date : UTC 2014-02-15 03:30:44
Source :

Audio #2
ID : 3
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Muxing mode : Wave
Codec ID : sowt / 1
Duration : 59 min 0 s
Bit rate mode : Constant
Bit rate : 1 536 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Bit depth : 16 bits
Stream size : 648 MiB (3%)
Language : English
Encoded date : UTC 2014-02-15 03:30:44
Tagged date : UTC 2014-02-15 03:30:44
Source :

Audio #3
ID : 4
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Muxing mode : Wave
Codec ID : in24 / 1
Duration : 59 min 0 s
Bit rate mode : Constant
Bit rate : 2 304 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Bit depth : 24 bits
Stream size : 972 MiB (4%)
Language : English
Encoded date : UTC 2014-02-15 03:30:44
Tagged date : UTC 2014-02-15 03:30:44
Source :

Other
ID : 5
Type : Time code
Format : QuickTime TC
Duration : 59 min 0 s
Time code of first frame : 00:00:00:00
Time code, striped : Yes
Language : English
Encoded date : UTC 2014-02-15 03:30:44
Tagged date : UTC 2014-02-15 03:30:44
speedyrazor is offline   Reply With Quote
Old 1st August 2017, 23:09   #697  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,669
Quote:
Originally Posted by speedyrazor View Post
I have been using LibavSMASHSource in VapourSynth 64 for a while, very successfully. I am now trying to use this on the below XDCAM HD 422 file, but I get an error, any suggestions please:
What error specifically ? Was there an message ?

I noticed the MOV container; XDCAM HD422 in MXF container works ok in 64bit vpy with lsmash - could it be container related issue ? Maybe try re-wrapping it
poisondeathray is offline   Reply With Quote
Old 1st August 2017, 23:55   #698  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,498
SpeedyRazor,
Quote:
I have been using LibavSMASHSource
Would you like to clarify, LSMASHVideoSource or LWLibavVideoSource.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Old 2nd August 2017, 00:17   #699  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,669
Quote:
Originally Posted by StainlessS View Post
SpeedyRazor,

Would you like to clarify, LSMASHVideoSource or LWLibavVideoSource.
vapoursynth version is slightly different than avisynth version

LibavSMASHSource, and LWLibavSource
poisondeathray is offline   Reply With Quote
Old 2nd August 2017, 00:46   #700  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 11,498
A rose by any other name would smell as sweat.

Thanx PDR, was not expecting that.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???
StainlessS is offline   Reply With Quote
Reply


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:16.


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