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. |
24th April 2020, 11:13 | #1221 | Link |
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...?
|
24th April 2020, 11:14 | #1222 | Link | |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
Quote:
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. |
|
24th April 2020, 11:49 | #1223 | Link |
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. |
24th April 2020, 11:55 | #1224 | Link |
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
|
I agree. In that case there's just DGDecNV as far as I can see.
__________________
Groucho's Avisynth Stuff |
24th April 2020, 16:21 | #1227 | Link |
HeartlessS Usurer
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: 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. |
24th April 2020, 18:56 | #1228 | Link | |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
|
Quote:
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 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? |
|
24th April 2020, 21:44 | #1230 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Quote:
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. |
|
24th April 2020, 21:52 | #1231 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
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. |
|
11th May 2020, 13:46 | #1232 | Link | |
Registered User
Join Date: Oct 2018
Posts: 133
|
Quote:
|
|
27th May 2020, 10:22 | #1233 | Link |
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) 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? |
27th May 2020, 10:32 | #1234 | Link |
Registered User
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
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
27th May 2020, 10:52 | #1235 | Link |
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 |
27th May 2020, 11:12 | #1236 | Link |
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) 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 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) |
27th May 2020, 11:19 | #1237 | Link | ||
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Quote:
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:
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
||
27th May 2020, 11:28 | #1238 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
that don't show the Progress in any way
__________________
See My Avisynth Stuff |
27th May 2020, 11:58 | #1239 | Link |
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. |
27th May 2020, 12:30 | #1240 | Link | |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
Quote:
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.
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists Last edited by stax76; 27th May 2020 at 12:34. |
|
|
|