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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 24th April 2020, 11:13   #1221  |  Link
bruno321
Registered User
 
Join Date: Oct 2018
Posts: 133
Thanks for the explanation. For the moment, for uninteresting reasons, I can't update the XP installation. What I've been doing is either mux into an mkv and use ffvideosource, or use the very old DGAVCDec, which doesn't always work. I was wondering if there was a better alternative in the XP scenario, but perhaps there isn't...?
bruno321 is offline   Reply With Quote
Old 24th April 2020, 11:14   #1222  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by bruno321 View Post
If there's no LSMASHVideo for XP, what's a good alternative that would allow me to feed an m2ts directly into avspmod?
Here's a link to qyot27's last XP-compatible FFMS2 C-plugin.

Edit - The best alternative for XP would be an older version (2052?) of DG's source filter for Nvidia cards but I don't know if he would be willing to make it available. Also, it's not free but the few bucks he charges are well worth it.
__________________
Groucho's Avisynth Stuff

Last edited by Groucho2004; 24th April 2020 at 11:17.
Groucho2004 is offline   Reply With Quote
Old 24th April 2020, 11:49   #1223  |  Link
bruno321
Registered User
 
Join Date: Oct 2018
Posts: 133
Thanks. I already use ffvideosource succesfully, but then I feed it a demuxed mkv. In the avisynth.nl page I see that ffvideosource also accepts m2ts files, but I read that

"M2TS, TS: Seeking seems to be off a few frames here and there"

which makes me a bit anxious.
bruno321 is offline   Reply With Quote
Old 24th April 2020, 11:55   #1224  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by bruno321 View Post
"M2TS, TS: Seeking seems to be off a few frames here and there"

which makes me a bit anxious.
I agree. In that case there's just DGDecNV as far as I can see.
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Old 24th April 2020, 15:15   #1225  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Quote:
Originally Posted by Groucho2004 View Post
The best alternative for XP would be an older version (2052?) of DG's source filter for Nvidia cards but I don't know if he would be willing to make it available. Also, it's not free but the few bucks he charges are well worth it.
Thanks for the mention, Groucho! I thought DGDecNV 2053 should work on XP. Does it not? Also, 2052 has always been available in the binaries area.
videoh is offline   Reply With Quote
Old 24th April 2020, 15:16   #1226  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Quote:
Originally Posted by bruno321 View Post
"M2TS, TS: Seeking seems to be off a few frames here and there"

which makes me a bit anxious.
Shouldn't matter if you are just transcoding with linear access.
videoh is offline   Reply With Quote
Old 24th April 2020, 16:21   #1227  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
You could just do away with ffms and LSmash altogether, this does a faily good job, never (well rarely) problems,
just convert to AVI and have pretty much 100% frame accuracy and zero problems.

DEMO.BAT
Code:
REM https://forum.doom9.org/showthread.php?p=1908619#post1908619
REM We DO NOT LIKE SPACES [EDIT: nor accents] IN FILE NAMES (REM == REMark ie comment)

setlocal

REM Where to Find ffmpeg
set FFMPEG="C:\BIN\ffmpeg.exe"

REM Where to get INPUT files, No terminating Backslash, "." = current directory (ie same as dir .bat file)
set INDIR="."

REM Where to place OUTPUT files, No terminating Backslash. "." would be same as .bat file, ".\OUT" = OUT folder in same directory as bat file.
set OUTDIR="D:"

REM Below, can add INPUT extensions as eg *.WEBM (SPACE separated, Batch Processes all INPUT type files in INDIR)
FOR %%A IN (*.AVI *.MKV *.MP4 *.MOV *.QT *.3GP *.DVB *.VOB *.MPG *.MPEG *M2P *.PS *.TS *.DIVX *.XVID *.FLV *.WMV *.ASF *.MXF) DO (

REM ****** Un-REM [ie SELECT] ONLY one of below lines, Comment out ie REM the remaining lines.
    %FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo  -acodec pcm_s16le "%OUTDIR%\%%~nxA.AVI"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec huffyuv  -acodec pcm_s16le "%OUTDIR%\%%~nxA.AVI"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec magicyuv -acodec pcm_s16le "%OUTDIR%\%%~nxA.AVI"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec v410     -acodec pcm_s16le "%OUTDIR%\%%~nxA.AVI"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec r210     -acodec pcm_s16le "%OUTDIR%\%%~nxA.AVI"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec copy     -acodec copy      "%OUTDIR%\%%~nxA.MKV"
REM %FFMPEG% -i "%INDIR%\%%A" -vcodec utvideo  -acodec copy      "%OUTDIR%\%%~nxA.MKV"
REM %FFMPEG% -i "%INDIR%\%%A" -vn              -acodec pcm_s16le "%OUTDIR%\%%~nxA.WAV"
REM *****************************************************************************************.

)
Pause

REM ... Above Command lines, What they do if UnREM'ed (and all others REM'ed, UnREM=UnCOMMENT ) :
REM      (1) Convert Video to UtVideo  lossless, Convert Audio to 16 bit PCM audio (output AVI).
REM      (2) Convert Video to HuffYUV  lossless, Convert Audio to 16 bit PCM audio (output AVI).
REM      (3) Convert Video to MagicYUV lossless, Convert Audio to 16 bit PCM audio (output AVI).
REM      (4) Convert Video to v410 Uncompressed 4:4:4 10-bit lossless, Convert Audio to 16 bit PCM audio (output AVI).
REM      (5) Convert Video to r210 Uncompressed RGB 10-bit lossless, Convert Audio to 16 bit PCM audio (output AVI).
REM      (6) Remux, copy both video and audio (output MKV - see file extension at the end of the Remux line, ie MKV).
REM      (7) Convert Video to UtVideo lossless, copy audio (output MKV).
REM      (8) Skip any video, Convert Audio to 16 bit PCM (output WAV).
REM *****************************************************************************************.
REM    In the UnREM'ed command Line [ie without a preceding REM]:-
REM      '-vcodec utvideo' means convert video using utvideo codec.
REM      '-vcodec copy' means copy video rather than convert.
REM      '-vn' means no video output, use instead of eg '-vcodec utvideo'
REM      '-acodec pcm_s16le' means convert audio using pcm_s16le codec.
REM      '-acodec copy' means copy audio rather than convert.
REM      '-an' means no audio output, use instead of eg '-acodec pcm_s16le'
REM      The file extension at end of the line determines output container, eg '.AVI'
REM
REM      From Command line with ffmpeg somewhere in your environment PATH:-
REM        'ffmpeg -codecs >D:\ffmpeg_codecs.txt'
REM          Writes a txt file of ffmpeg available codecs to D:\
REM          At start of txt file it shows a 'legend' or 'key' for codecs that can be used for video and audio,
REM          use only ENCODING SUPPORTED codecs, prefereably LOSSLESS.
REM          Supported codecs will vary with ffmpeg version.
REM *****************************************************************************************.
EDIT: Best make seperate BAT/CMD files for your required options.
EDIT: You may be able to remux eg WMV into eg MP4 (or whatever) does not necessarily mean that it will play OK in your player.
EDIT: At the very least you could give it a try instead of starting another thread on "How to open this difficult file" [life aint forever].
EDIT: I still use DGIndex for DVD VOB (otherwise almost always this, unless some kind of test scenario).
__________________
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; 24th April 2020 at 16:47.
StainlessS is offline   Reply With Quote
Old 24th April 2020, 18:56   #1228  |  Link
FranceBB
Broadcast Encoder
 
FranceBB's Avatar
 
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
Quote:
Originally Posted by bruno321 View Post
Was this the last build for XP users? I'm trying it now with latest AVS+ and I'm getting "system exception -- access violation".

(If there's no LSMASHVideo for XP, what's a good alternative that would allow me to feed an m2ts directly into avspmod? DirectShowSource is giving me "no video")
AFAIK the last XP compatible version of LSMASH is the 2015-03-16 build you can find here: https://www.mediafire.com/folder/17q...t/LSMASH-Works

It works fine, however there's a catch: it only supports 8bit planar, so if you index an high bit depth file (10bit or higher), it's gonna index it and output 16bit interleaved instead, which ain't a big deal, since you can convert it back to 16bit planar anyway, but still...
Besides, since it's quite old, it might not be able to index new files like AV1 and other things. Your best shot for pretty much everything other than some particular cases is ffms2 C plugin which has been updated by qyot27 for quite some time before he/she dropped support: http://www.mediafire.com/file/oi31n1...lastxp.7z/file

(I'm like 99% sure he's a dude, but he has a girl as an avatar so I'll leave the 1% margin open for doubt/discussion)

ffms2 will be able to decode more things and it also supports planar high bit depth, which means that if you index a 10bit planar source, you'll get a 10bit planar output and so on.

Bonus bit: CoRoNe is still compiling ffmpeg for Windows XP x86, so whenever you can't index something, there's always ffmpeg lossless (huffyuv or lagarith or utvideo or ffv1 or whatever). I also asked him to compile ffms2 c plugin with his very own changes to ffmpeg so that we can keep it XP-compatible; he didn't reply yet but I hope he will do it.

https://rwijnsma.home.xs4all.nl/files/ffmpeg/?C=M;O=D

Quote:
Originally Posted by videoh View Post
Update to Win10.
You mean "downgrade" to Windows10 hahaha
Jokes aside, I'm pretty sure everybody has a Win10 copy for productivity stuff just like I do for Visual Studio, AVID Media Composer, Protools, Davinci Resolve and also Avisynth, but I'm still attached to my beloved XP for leisure (and AVS is also leisure xD)...


@StainlessS... good bat, it might come in handy. Out of curiosity, do you still have your copy of XP or did you ditch it when you moved to Windows 7?
FranceBB is offline   Reply With Quote
Old 24th April 2020, 19:56   #1229  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Quote:
Originally Posted by FranceBB View Post
You mean "downgrade" to Windows10 hahaha
I used to like you.
videoh is offline   Reply With Quote
Old 24th April 2020, 21:44   #1230  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Quote:
still have your copy of XP or did you ditch it when you moved to Windows 7
Still have on several machines, two never on-line (well one is a laptop which I only use for playing movie whilst at my Win7 m/c),
and another one which rarely goes on-line (except in guise of Cinnamon Mint EDIT: Usually just to update it), EDIT: that one is my regular encode machine.
Also got two or three more Laptops with XP on them, I always forget bout them, never turned them on for a couple of years.
EDIT: Probably dumped about 6 to 8 XP m/c's in last 4 or 5 years, P4 or less.
__________________
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; 24th April 2020 at 23:33.
StainlessS is offline   Reply With Quote
Old 24th April 2020, 21:52   #1231  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by FranceBB View Post
(I'm like 99% sure he's a dude, but he has a girl as an avatar so I'll leave the 1% margin open for doubt/discussion)
indeed it's just his waifu avatar

Quote:
Originally Posted by FranceBB View Post
You mean "downgrade" to Windows10 hahaha
I really see win10 better than win7

but still, nothing better than winxp even if I don't use it now
__________________
See My Avisynth Stuff

Last edited by real.finder; 24th April 2020 at 21:56.
real.finder is offline   Reply With Quote
Old 11th May 2020, 13:46   #1232  |  Link
bruno321
Registered User
 
Join Date: Oct 2018
Posts: 133
Quote:
Originally Posted by bruno321 View Post
Was this the last build for XP users? I'm trying it now with latest AVS+ and I'm getting "system exception -- access violation".

(If there's no LSMASHVideo for XP, what's a good alternative that would allow me to feed an m2ts directly into avspmod? DirectShowSource is giving me "no video")
FWIW I don't have a problem using LWLibavVideoSource, which I hadn't read about until today.
bruno321 is offline   Reply With Quote
Old 27th May 2020, 10:22   #1233  |  Link
leon
Registered User
 
Join Date: Nov 2013
Posts: 136
Using LSMASH 20200322 in VapourSynth, HW decoding doesn't seem to work. I'm trying to decode H.264 8bit in a simple script like this:

Code:
clip = core.lsmas.LWLibavSource(source=r"D:\video.mkv", prefer_hw=1)
I don't see any GPU usage. Am I doing something wrong?

And apparently "prefer_hw" can take just about any value, could you please make it fail in the case of invalid values and also if the selected decoder is not available?
leon is offline   Reply With Quote
Old 27th May 2020, 10:32   #1234  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
@leon

Please provide avsmeter benchmark results like so:

https://forum.doom9.org/showpost.php...postcount=3407
stax76 is offline   Reply With Quote
Old 27th May 2020, 10:52   #1235  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
maybe make an optional cmd tools to do index for LSMASH will be a good idea, so user can now when the indexing finish, like ffindex
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 27th May 2020, 11:12   #1236  |  Link
leon
Registered User
 
Join Date: Nov 2013
Posts: 136
My script:

Code:
LoadPlugin("C:\Program Files\MeGUI\tools\lsmash\LSMASHSource.dll")

LSMASHVideoSource("D:\video.mp4", prefer_hw=1)
GPU info:

Code:
Video card:                 NVIDIA GeForce GT 440
GPU version:                GF108
Video memory size:          2048
OpenCL version:             OpenCL 1.1 CUDA
Graphics driver version:    22.21.13.8569 (NVIDIA 385.69) / Win7 64
Result:

Code:
Frames processed:               1453 (0 - 1452)
FPS (min | max | average):      583.0 | 2460 | 1602
Memory usage (phys | virt):     62 | 63 MiB
Thread count:                   18
CPU usage (average):            73%

GPU usage (average):            0%
VPU usage (average):            0%
GPU memory usage:               273 MiB

Time (elapsed):                 00:00:00.907

AVS version: AviSynth+ 0.1 (r2728, MT, i386)
leon is offline   Reply With Quote
Old 27th May 2020, 11:19   #1237  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
Originally Posted by real.finder View Post
maybe make an optional cmd tools to do index for LSMASH will be a good idea, so user can now when the indexing finish, like ffindex
Code:
ffmpeg.exe -i input.avs -hide_banner

@leon

Please also post the avsmeter benchmark result for software decoding:

Code:
LSMASHVideoSource("D:\video.mp4")
Quote:
AVS version: AviSynth+ 0.1 (r2728, MT, i386)
I suggest to use avisynth 3.6.
stax76 is offline   Reply With Quote
Old 27th May 2020, 11:28   #1238  |  Link
real.finder
Registered User
 
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
Quote:
Originally Posted by stax76 View Post
Code:
ffmpeg.exe -i input.avs -hide_banner
that don't show the Progress in any way
__________________
See My Avisynth Stuff
real.finder is offline   Reply With Quote
Old 27th May 2020, 11:58   #1239  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
I have a hunch that gpu decoding with lsmash needs at least OpenCL 1.2.

Edit: What I meant to say is that the cuvid support for your card is probably insufficient gpu decoding.
__________________
Groucho's Avisynth Stuff

Last edited by Groucho2004; 27th May 2020 at 13:20.
Groucho2004 is offline   Reply With Quote
Old 27th May 2020, 12:30   #1240  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
that don't show the Progress in any way
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.

Last edited by stax76; 27th May 2020 at 12:34.
stax76 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 18:26.


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