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. |
18th August 2010, 12:21 | #2403 | Link |
Registered User
Join Date: Jul 2008
Posts: 56
|
cuvidDecodePicture() error
Dear Neuron
I am having trouble processing a Blu-ray rip. I have indexed the m2ts file and encoding to x264 using megui latest build. The file index runs fine and then I create the avs script and begin enconding. Everything is running fine, but when enconding reaches around 1:47:00 in the timeline (the movie is 2:13:28 long) the cuvidDecodePicture() error appears. Is it an error caused by the rip or is it a DG NV tools error? The mediainfo stream data is: Video ID : 4113 (0x1011) Menu ID : 1 (0x1) Format : VC-1 Format profile : AP@L3 Duration : 2h 13mn Bit rate : 25.1 Mbps Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16:9 Frame rate : 23.976 fps Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.505 Stream size : 23.4 GiB (94%) Thnks for your support |
18th August 2010, 12:44 | #2404 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
Hard to say. Please tell me the name and region of the BluRay so that I can buy it for testing. Alternatively, trim the M2TS (using the TS trim function) to isolate the problem part and post a link to it.
What is the error number given with the error popup? |
18th August 2010, 15:29 | #2405 | Link | |
Registered User
Join Date: Jul 2008
Posts: 56
|
Quote:
I'll trim the m2ts and post results It showed no error, only a popup with that message. The popup had a accept button, and pressing it the enconding continued until next error, which apperared every 3-5 frames until I aborted. I forgot tomention that it indicated DGMultisource in the title part of the popup. Thanks again |
|
19th August 2010, 00:26 | #2407 | Link | |
Registered User
Join Date: Jul 2008
Posts: 56
|
Quote:
I have demuxed vc1 stream to vc1 raw file using megui HD stream extractor (eac3to 3.24). The file now encodes nicely, not a single error So it must be caused by some m2ts info or structure that crashed DG NV Tools... Thanks neuron for suggesting the possible workaround, and zathor for your interest |
|
19th August 2010, 12:36 | #2409 | Link |
Registered User
Join Date: Oct 2009
Location: crow-land
Posts: 540
|
I receive an error crash from x264 using the latest NV when I place this .bat file in a folder with one or more mpeg2 .mpg files and run it. Not sure why. It works with an equivalent non-NV dgindex version of the .bat file. Suggestions on how to prevent the crash are welcomed.
Some of the paths may need changing to suit you machine. Yes I know it's awful .bat coding, but a quick cut'n'paste from here and there is easy. Code:
@echo on REM REM convert all SD .MPG into .MP4, one at a time REM SET sourcePath=.\ SET DonePath=.\done\ MD "%DonePath%" for %%f in ("%sourcePath%*.mpg") do ( CALL :dgindexNV "%%f" ) for %%f in ("%sourcePath%*.dgi") do ( CALL :NV "%%f" MOVE "%%f" "%DonePath%" ) pause exit :dgindexNV @echo on REM SETLOCAL ENABLEDELAYEDEXPANSION set PARF1=%~f1% set PARF2=%~dpn1% set parpath=%~dp1% set pard2v=%~dpn1%.d2v set pardgi=%~dpn1%.dgi set PARtemp=%~1%-temp.MP4 set PARmp4=%~dpn1%.MP4 set PARAC3mp4=%~dpn1%.AC3.MP4 set PARMP2mp4=%~dpn1%.MP2.MP4 set parAC3=%~dpn1%.ac3 set parMP2=%~dpn1%.mp2 "C:\software\DGindex\DGIndexNV.exe" -i "%PARF1%" -a -o "%pardgi%" -e @echo off goto :EOF :NV @ECHO Start ----------------------------------------------------------------------------------------- @echo on REM SETLOCAL ENABLEDELAYEDEXPANSION set PARF1=%~f1% set PARF2=%~dpn1% set parpath=%~dp1% set pard2v=%~dpn1%.d2v set pardgi=%~dpn1%.dgi set PARtemp=%~1%-temp.MP4 set PARmp4=%~dpn1%.MP4 set PARAC3mp4=%~dpn1%.AC3.MP4 set PARMP2mp4=%~dpn1%.MP2.MP4 set parAC3=%~dpn1%.ac3 set parMP2=%~dpn1%.mp2 SET theBitrate=2000 REM "C:\software\DGindex\DGIndexNV.exe" -i "%PARF1%" -a -o "%pardgi%" -e IF EXIST "%parAC3%" DEL "%parAC3%" FOR %%A in ("%~dpn1*ms.ac3") DO ( ECHO ------------------ ECHO Deleting "%parAC3%" DEL "%parAC3%" ECHO Renamnig "%%~A" to "%parAC3%" MOVE "%%~A" "%parAC3%" ECHO ------------------ ) IF EXIST "%parMP2%" DEL "%parMP2%" FOR %%A in ("%~dpn1*ms.mp2") DO ( ECHO ------------------ ECHO Deleting "%parMP2%" DEL "%parMP2%" ECHO Renamnig "%%~A" to "%parMP2%" MOVE "%%~A" "%parMP2%" ECHO ------------------ ) SET avs1=%PARF2%.avs echo SetMTmode(mode=5,threads=1) # start with mode=5 forAVIsource http://forum.doom9.org/showthread.php?p=1067216#post1067216 > "%avs1%" echo SetMemoryMax(128) >> "%avs1%" echo LoadPlugin("C:\SOFTWARE\DGindex\DGDecodeNV.dll") >> "%avs1%" echo LoadPlugin("C:\SOFTWARE\DGindex\DGDecode.dll") >> "%avs1%" echo LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\mt_masktools.dll") >> "%avs1%" echo LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\mvtools2.dll") >> "%avs1%" echo LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\unfilter.dll") >> "%avs1%" echo #LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\RemoveGrain.dll") >> "%avs1%" echo LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\RemoveGrainSSE2.dll") >> "%avs1%" echo #LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\Repair.dll") >> "%avs1%" echo LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\RepairSSE2.dll") >> "%avs1%" echo #LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\RemoveDirt.dll") >> "%avs1%" echo LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\RemoveDirtSSE2.dll") >> "%avs1%" echo Import("C:\Program Files\AviSynth 2.5\LimitedSharpenFaster.avs") >> "%avs1%" echo ##MPEG2Source("%pard2v%",info=0,ipp=true,cpu=6) >> "%avs1%" echo ##MPEG2Source("%pard2v%",info=0,ipp=true,cpu=4) >> "%avs1%" echo ##MPEG2Source("%pard2v%",info=0,ipp=true,cpu=0) >> "%avs1%" echo DGMultiSource("%pardgi%",deinterlace=0) >> "%avs1%" echo #DGMultiSource("%pardgi%",deinterlace=2,resize_w=%Width%,resize_h=%Height%) #deinterlace=2 means double rate deinterlacing >> "%avs1%" echo #trim(1,-999999) # fix a double-framerate bug in NV per http://forum.doom9.org/showthread.php?p=1391556#post1391556 >> "%avs1%" echo AssumeTFF() >> "%avs1%" echo Assumefps(25) >> "%avs1%" echo #LAST.HEIGHT==1088 ? cropbottom(8) : LAST >> "%avs1%" echo #Separatefields() >> "%avs1%" echo #LimitedSharpenFaster(smode=4,strength=100) >> "%avs1%" echo #http://www.aquilinestudios.org/avsfilters/sharpeners.html#unfilter >> "%avs1%" echo # HSharp and VSharp (-100 to 100) determine the amount of sharpening/smoothing to be >> "%avs1%" echo # done in the horizontal and vertical directions respectively. >> "%avs1%" echo #-100 gives the smoothest result, 100 the sharpest; 0 does nothing. >> "%avs1%" echo #UnFilter(10,10) >> "%avs1%" echo #Weave() >> "%avs1%" echo #TRIM(0,1000) >> "%avs1%" "C:\software\X264\x264.exe" --thread-input --threads 3 --profile high --level 4.1 --preset fast --interlaced --tff --no-cabac --bitrate %theBitrate% --sar 16:11 -o "%PARtemp%" "%AVS1%" IF NOT EXIST "%parMP2%" "C:\software\ffmpeg\0-LATEST-BETA\bin\ffmpeg.exe" -i "%PARF1%" -y -ar 44100 -ac 2 -ab 256k -acodec mp2 -vol 1024 "%parMP2%" IF EXIST "%parAC3%" "C:\SOFTWARE\MP4box\MP4Box.exe" -add "%PARtemp%" -add "%parAC3%":lang=eng -new "%PARAC3mp4%" IF EXIST "%parMP2%" "C:\SOFTWARE\MP4box\MP4Box.exe" -add "%PARtemp%" -add "%parMP2%":lang=eng -new "%PARMP2mp4%" DEL "%PARtemp%" DEL "%parAC3%" DEL "%parMP2%" DEL "%avs1%" DEL "%pard2v%" REM SAR = DAR / PAR REM for 16:9 720x576i use --sar=16:11 (most 4:3 are in 16:9 shell frame nowadays, so use this) REM for 16:9 1440x1080i use --sar=4:3 REM for 16:9 1920x1080i use --sar=1:1 @echo off @ECHO End ----------------------------------------------------------------------------------------- GOTO :EOF Last edited by hydra3333; 19th August 2010 at 12:43. |
19th August 2010, 19:58 | #2411 | Link |
21 years and counting...
Join Date: Oct 2002
Location: Germany
Posts: 716
|
neuron2,
I have a question about the use of Remote Desktop. I realised that DGIndexNV does not work in a RD session, probably because the video driver can't be adressed directly. Like mentioned in the FAQ. But what about a job already "in progress"? Yesterday I accidently logged onto my workstation while a frameserving job to x264 was still in progress. The encode did not interrupt and ran to the end. I roughly checked the file afterwards and it seems that frameserving still worked, even while in a RD session. Was I just lucky or does RD only "affect" acessing the video driver and will not interfere with an already running process? Would be nice to know if I could use RD while frameserving is in progress, just like I used to with "normal" DGindex. |
19th August 2010, 20:20 | #2412 | Link | |
Mr. Sandman
Join Date: Sep 2003
Location: Haddonfield, IL
Posts: 11,768
|
Quote:
__________________
MPEG-4 ASP Custom Matrices: EQM V1(old), EQM AutoGK Sharpmatrix (aka EQM V2), EQM V3HR (updated 01/10/2004), EQM V3LR, EQM V3ULR (updated 04/02/2005), EQM V3UHR (updated 17/12/2004) and EQM V3EHR (updated 05/10/2004) Info about my ASP matrices. MPEG-4 AVC Custom Matrices: EQM AVC-HR Info about my AVC matrices My x264 builds. Mooo!!! |
|
19th August 2010, 20:53 | #2413 | Link |
Registered User
Join Date: Oct 2002
Location: The Pandorica
Posts: 527
|
Otherwise to start frameserving remotely you can use vnc. I used tightvnc successfully to do that myself.
__________________
PC specs for bug reports: Intel Core i7-4790K @4Ghz Win10(Linux VM) PCI express NVIDIA RTX 2060 SUPER graphics card http://twitter.com/cwebdesign |
20th August 2010, 00:05 | #2414 | Link | |
Registered User
Join Date: Jul 2008
Posts: 56
|
Quote:
I'll try to trim the problem part, But I do not know how-to...Can you provide me some guidance on how to trim m2ts files without re-encoding? Where can I find the TS trim function? I will try to provide you the trimmed stream. Thanks again |
|
20th August 2010, 00:15 | #2415 | Link |
Registered User
Join Date: Jul 2008
Posts: 56
|
Hi:
I've just found and reviewed eac3to logfile and I have found these errors logged Code:
eac3to v3.24 M2TS, 1 video track, 1 audio track, 1 subtitle track, 2:13:38, 24p /1.001 1: Chapters, 27 chapters 2: VC-1, 1080p24 /1.001 (16:9) 3: AC3, Spanish, 5.1 channels, 640kbps, 48kHz, dialnorm: -27dB 4: Subtitle (PGS), Spanish [v02] Extracting video track number 2... [v02] Creating file "E:\Ultimas\MainMovie\INVICTUS\F1_T2_Video - .vc1"... [v02] [0:54:16] The source file seems to be damaged (discontinuity). <WARNING> [v02] [1:38:44] The source file seems to be damaged (discontinuity). <WARNING> [v02] [1:45:41] The source file seems to be damaged (discontinuity). <WARNING> [v02] [1:45:41] The source file is encrypted. <WARNING> [v02] [1:45:41] The source file seems to be damaged (discontinuity). <WARNING> [v02] [1:45:41] The source file seems to be damaged (discontinuity). <WARNING> [v02] [1:45:41] The source file seems to be damaged (adaptation field too big). <WARNING> [v02] [1:45:41] The source file seems to be damaged (discontinuity). <WARNING> [v02] [1:45:42] Skipping dirty PES bytes... <WARNING> [v02] [1:45:42] The source file seems to be damaged (discontinuity). <WARNING> [v02] [1:45:42] The source file seems to be damaged (discontinuity). <WARNING> [v02] Video has a gap of 7 frames at playtime 0:54:16. <WARNING> Video track 2 contains 192240 frames. eac3to processing took 13 minutes, 33 seconds. Done. Do you still want the trimmed stream? |
20th August 2010, 08:03 | #2416 | Link | |
Deblender
Join Date: Nov 2007
Posts: 18
|
Quote:
Edit: Looks like I overlooked the tiny little post right above...
__________________
This post has been created out of recycled electrons only |
|
20th August 2010, 08:30 | #2417 | Link |
Registered User
Join Date: Oct 2002
Location: France
Posts: 2,309
|
I've, by accident, discovered a reproductible way to make DGDecNV crash in VDub. The idea is to queue 2 successive jobs wich will fail because of an error, and the second will generate a crash. One way to reproduce is the following : Create an avisynth script with only the DG command (with any m2ts file). Configure VDub with YV12 color depth in both input and ouput, and use huffyuv for compression output (this will in fact trig an error saying that codec can't handle the color format). Create 2 queue jobs with 'save avi' and start them. First job will be halted by the error (everything goes normaly), but second will generate a crash.
Last edited by jpsdr; 20th August 2010 at 10:29. |
20th August 2010, 12:34 | #2419 | Link |
Guest
Join Date: Jan 2002
Posts: 21,901
|
Can you produce the crash with a small file and just a script processed by x264, i.e., without the batch file? If so, please post a link to the source file, and give me your script. Also give me the x264 and Avisynth versions numbers as well as the x264 command line.
|
20th August 2010, 13:40 | #2420 | Link |
Registered User
Join Date: Oct 2009
Location: crow-land
Posts: 540
|
Sure. x264 v1688, TSP's MT avisynth 2.5.7, NV v2024, XP-sp3, nvidia 8800GT, nvidia driver 258.96, intel Q9450.
Source 4Mb http://www.mediafire.com/?w1jqd2c76n2ku9o or http://download972.mediafire.com/n7j...2ku9o/cut2.mpg cut2.bat Code:
@echo on del cut2.mp4 "C:\software\DGindex\DGIndexNV.exe" -i "cut2.mpg" -a -o "cut2.dgi" -e "C:\software\X264\x264.exe" --thread-input --threads 3 --profile high --level 4.1 --preset fast --interlaced --tff --no-cabac --bitrate 2000 --sar 16:11 -o "cut2.mp4" "cut2.avs" pause cut2.avs Code:
SetMTmode(mode=5,threads=1) # start with mode=5 forAVIsource http://forum.doom9.org/showthread.php?p=1067216#post1067216 SetMemoryMax(128) LoadPlugin("C:\SOFTWARE\DGindex\DGDecodeNV.dll") LoadPlugin("C:\SOFTWARE\DGindex\DGDecode.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\mt_masktools.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\mvtools2.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\unfilter.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\RemoveGrainSSE2.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\RepairSSE2.dll") LoadPlugin("C:\Program Files\AviSynth 2.5\plugins-zzz\RemoveDirtSSE2.dll") Import("C:\Program Files\AviSynth 2.5\LimitedSharpenFaster.avs") DGMultiSource("cut2.dgi",deinterlace=0) AssumeTFF() Assumefps(25) Last edited by hydra3333; 20th August 2010 at 13:43. |
Thread Tools | Search this Thread |
Display Modes | |
|
|