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 27th May 2020, 12:43   #1241  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by stax76 View Post
Sure it does.

1. It's exactly what staxrip does.

2. I verified it in the console.

Try a large enough file and delete an existing index file before.
ok, that seems right



edit: thanks

edit2: but I think small cmd tools that can do this will be better
__________________
See My Avisynth Stuff

Last edited by real.finder; 27th May 2020 at 12:50.
real.finder is offline   Reply With Quote
Old 27th May 2020, 13:05   #1242  |  Link
leon
Registered User
 
Join Date: Nov 2013
Posts: 136
Quote:
Originally Posted by stax76 View Post
Please also post the avsmeter benchmark result for software decoding
I did software decoding within VS and the result was the same for both, besides it says that the GPU utilisation is 0 anyway.

Quote:
Originally Posted by Groucho2004
I have a hunch that gpu decoding with lsmash needs at least OpenCL 1.2.
My guess also was that my GPU is just too old for this. Maybe I'll try it on my iGPU (QSV).
And if that's the case maybe notify the user?
leon is offline   Reply With Quote
Old 27th May 2020, 13:18   #1243  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by leon View Post
My guess also was that my GPU is just too old for this.
See my edit above. I meant to say cuvid, not OpenCL.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 27th May 2020, 14:22   #1244  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
but I think small cmd tools that can do this will be better
Somebody has to build and maintain this for avisynth and for vapoursynth and for x86 and for x64, a lot of work...

Piping tools might support this or accept feature requests.

Last edited by stax76; 27th May 2020 at 14:25.
stax76 is offline   Reply With Quote
Old 27th May 2020, 16:38   #1245  |  Link
leon
Registered User
 
Join Date: Nov 2013
Posts: 136
I did test it with other videos and video formats. Also I get HW decoding with LAV Video Decoder (CUVID) for the same video.

Quote:
General
Complete name : D:\video.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/avc1)
File size : 13.0 MiB
Duration : 48 s 482 ms
Overall bit rate mode : Variable
Overall bit rate : 2 250 kb/s
Encoded date : UTC 2011-03-02 16:59:19
Tagged date : UTC 2011-03-02 16:59:19

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.1
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference : 4 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 48 s 482 ms
Bit rate : 2 000 kb/s
Maximum bit rate : 31.3 Mb/s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 29.970 (30000/1001) FPS
Original frame rate : 29.970 (29970/1000) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.072
Stream size : 11.7 MiB (90%)
Writing library : x264 core 95
Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x101 / me=hex / subme=1 / psy=1 / psy_rd=0.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0 / threads=18 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=abr / mbtree=1 / bitrate=2000 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Encoded date : UTC 2011-03-02 16:59:19
Tagged date : UTC 2011-03-02 16:59:19
Codec configuration box : avcC

Audio
ID : 1
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : mp4a-40-2
Duration : 48 s 390 ms
Bit rate mode : Variable
Bit rate : 125 kb/s
Maximum bit rate : 199 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 44.1 kHz
Frame rate : 43.066 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 740 KiB (6%)
Encoded date : UTC 2011-03-02 16:59:19
Tagged date : UTC 2011-03-02 16:59:19

Other #1
ID : 65536
Type : Hint
Format : RTP
Codec ID : rtp
Duration : 48 s 343 ms
Bit rate mode : Variable
Encoded date : UTC 2011-03-02 16:59:19
Tagged date : UTC 2011-03-02 16:59:19

Other #2
ID : 65537
Type : Hint
Format : RTP
Codec ID : rtp
Duration : 48 s 482 ms
Encoded date : UTC 2011-03-02 16:59:19
Tagged date : UTC 2011-03-02 16:59:19
Code:
AVSMeter 3.0.0.4 (x86), (c) Groucho2004, 2012-2020
AviSynth+ 0.1 (r2728, MT, i386) (0.1.0.0)
[h264 @ 003DEFC0] Reinit context to 1280x720, pix_fmt: yuv420p
[h264_cuvid @ 03F85040] Cannot load cuvidGetDecodeStatus
[h264_cuvid @ 03F85040] Failed loading nvcuvid.
Creating lwi index file 100%
[AVIOContext @ 003B8680] Statistics: 13242701 bytes read, 28 seeks
[h264 @ 03E2B8C0] Reinit context to 1280x720, pix_fmt: yuv420p
[h264_cuvid @ 03E2D040] Cannot load cuvidGetDecodeStatus
[h264_cuvid @ 03E2D040] Failed loading nvcuvid.
[h264 @ 03E2D400] Reinit context to 1280x720, pix_fmt: yuv420p

Number of frames:                     1453
Length (hh:mm:ss.ms):         00:00:48.482
Frame width:                          1280
Frame height:                          720
Framerate:                          29.970 (30000/1001)
Colorspace:                           i420
[AVIOContext @ 03EF6E00] Statistics: 98362 bytes read, 2 seeks

@Groucho2004

I don't really know whether it's related, but what's your Nvidia driver version?

Last edited by leon; 27th May 2020 at 16:48.
leon is offline   Reply With Quote
Old 27th May 2020, 18:08   #1246  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by leon View Post
@groucho2004

i don't really know whether it's related, but what's your nvidia driver version?
436.48
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 27th May 2020, 19:29   #1247  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by stax76 View Post
Somebody has to build and maintain this for avisynth and for vapoursynth and for x86 and for x64, a lot of work...

Piping tools might support this or accept feature requests.
or better it work with the video directly and only need LSMASHSource.dll so then no need to update it every time
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 28th May 2020, 19:35   #1248  |  Link
leon
Registered User
 
Join Date: Nov 2013
Posts: 136
Well, that version is not available for my card. Thanks anyway.
leon is offline   Reply With Quote
Old 30th May 2020, 00:24   #1249  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
L-Smash Source meet error
https://forum.doom9.org/showthread.p...21#post1914021
kedautinh12 is offline   Reply With Quote
Old 31st May 2020, 14:36   #1250  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,806
Quote:
Originally Posted by HolyWu View Post
https://github.com/HolyWu/L-SMASH-Wo...ks_20200531.7z
  • Update to FFmpeg-20200530-4391289.
  • Update to dav1d 0.7.0.
  • AviSynth: Properly handle libdir in meson and plugin's entry point for non-Windows.
  • VideoSource: Try to fix more dropped frame cases in H.264 stream.
Thank you! Wonky_monkey's sample is now correctly decoded in non-linear mode
Atak_Snajpera is offline   Reply With Quote
Old 31st May 2020, 17:07   #1251  |  Link
kedautinh12
Registered User
 
Join Date: Jan 2018
Posts: 2,153
Thanks
kedautinh12 is offline   Reply With Quote
Old 20th July 2020, 07:52   #1252  |  Link
edison
Registered User
 
Join Date: Dec 2005
Posts: 106
Does L-SMASH Source support 8K HEVC hw decoding on NVIDIA Turing GPU now?

Ok, I had the answer: yes.

but its speed is very slow( 3.x fps in AVSPMod, nvidia rtx 2070, the GPU video decoder usage is about 5%).

Last edited by edison; 21st July 2020 at 13:17.
edison is offline   Reply With Quote
Old 24th July 2020, 15:22   #1253  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
This may require a MOV container with a video codec actually supporting an alpha channel. I doubt any common video codec supported in MP4 does (maybe x265 if encoded not in YUV but in GBRA based profiles, if they exist).

Please check if Videezy really provides "Transparent footage Stock Video Footage" as the page title claims.

PS: "walking couple" and "girl biking" are stored in ProRes 4444 with alpha channel.

Someone with Blender experience could probably produce transparent videos.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 24th July 2020 at 15:35.
LigH is offline   Reply With Quote
Old 24th July 2020, 15:42   #1254  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,346
Quote:
Originally Posted by HolyWu View Post
Could someone prodive a short video sample with alpha channel in MP4 or MOV? I'm adding support for alpha channel formats and hence needing a valid sample for testing.
Thanks for adding alpha support

PNG in mov (12.1MB)

http://www.mediafire.com/file/h4e0fc...n_PNG.mov/file
poisondeathray is offline   Reply With Quote
Old 27th July 2020, 10:01   #1255  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
Success
Code:
crowd_run = RawSource("crowd_run_2160p50.y4m").ConvertToRGB32()
walking_couple = LSMASHVideoSource("walking_Couple.mov").ConvertToRGB32().AssumeFPS(crowd_run.FrameRate)
crowd_run.Trim(0, walking_couple.FrameCount)
layer(crowd_run.Spline16Resize(1280,720), walking_couple.Spline16Resize(1280,720)).ConvertToYV12()
Using AviSynth+ r2772 and RawSourcePlus v0.01; script ran out of memory in 32-bit VirtualDub2, but 64-bit worked.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 27th July 2020 at 10:04.
LigH is offline   Reply With Quote
Old 27th July 2020, 14:31   #1256  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
trim past end of clip [ie last frame + 1, assuming should both be same length for Layer, probably dont cause error but could have some consequence later in script]
Code:
crowd_run.Trim(0, walking_couple.FrameCount)
maybe either
Code:
crowd_run.Trim(0, walking_couple.FrameCount - 1)
or
Code:
crowd_run.Trim(0, - walking_couple.FrameCount)
EDIT:
Ignore me, below line in BLUE does nothing [ maybe should also be crowd_run=... ]
Code:
crowd_run = RawSource("crowd_run_2160p50.y4m").ConvertToRGB32()
walking_couple = LSMASHVideoSource("walking_Couple.mov").ConvertToRGB32().AssumeFPS(crowd_run.FrameRate)
crowd_run.Trim(0, walking_couple.FrameCount)  # Assign to last and then ignore as assigns below Layer line to last
layer(crowd_run.Spline16Resize(1280,720), walking_couple.Spline16Resize(1280,720)).ConvertToYV12()
__________________
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 ???

Last edited by StainlessS; 27th July 2020 at 14:52.
StainlessS is offline   Reply With Quote
Old 28th July 2020, 07:40   #1257  |  Link
LigH
German doom9/Gleitz SuMo
 
LigH's Avatar
 
Join Date: Oct 2001
Location: Germany, rural Altmark
Posts: 6,753
@StainlessS: OK, I did a mistake, and it didn't even matter...

@HolyWu: I didn't mean it's your fault that I ran out of RAM. May be caused by processing 4K UHD videos as source and the x264 encoder requesting several frames at once before starting to encode.
__________________

New German Gleitz board
MediaFire: x264 | x265 | VPx | AOM | Xvid

Last edited by LigH; 28th July 2020 at 07:46.
LigH is offline   Reply With Quote
Old 11th August 2020, 15:30   #1258  |  Link
outhud
Registered User
 
Join Date: Aug 2018
Posts: 21
On building for VapourSynth, I get:

Code:
../video_output.c: In function ‘determine_colorspace_conversion’:
../video_output.c:613:15: error: ‘AV_PIX_FMT_Y210LE’ undeclared (first use in this 
function); did you mean ‘AV_PIX_FMT_P010LE’?
  613 |             { AV_PIX_FMT_Y210LE,       pfYUV422P10, 1 },
      |               ^~~~~~~~~~~~~~~~~
      |               AV_PIX_FMT_P010LE
Any hint to what I'm missing?

I didn't see an L-SMASH thread for Vapoursynth. Sorry if this is in the wrong place.

Last edited by outhud; 11th August 2020 at 15:38.
outhud is offline   Reply With Quote
Old 11th August 2020, 16:44   #1259  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
Most likely your build environment lacks libavutil includes or so (libavutil/pixfmt.h)
__________________
Me on GitHub
PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070
DJATOM is offline   Reply With Quote
Old 12th August 2020, 08:42   #1260  |  Link
outhud
Registered User
 
Join Date: Aug 2018
Posts: 21
Quote:
Originally Posted by DJATOM View Post
Most likely your build environment lacks libavutil includes or so (libavutil/pixfmt.h)
Thanks, just needed to update my libavutil as AV_PIX_FMT_Y210LE was added in February. Seems the default Ubuntu 20.04 focal repository doesn't have it.
outhud 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 21:11.


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