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

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th April 2023, 17:35   #1  |  Link
Starduster
Registered User
 
Starduster's Avatar
 
Join Date: Jun 2007
Location: Ann Arbor, MI
Posts: 124
.avs shows fine but ffmpeg creates black video

I'm not sure what I'm doing wrong. I have an .avs file:

Code:
sld1 = DirectShowSource("2023-04-22 21-48-24_3.mp4", fps=27.97, convertfps=True)
sld1=sld1.ConvertToRGB32().Spline36Resize(1280, 720).SSRC(22050)

sld2 = DirectShowSource("RickettsRodman.mp4", fps=27.97, convertfps=True)
sld2=sld2.ConvertToRGB32().Spline36Resize(1280, 720).SSRC(22050)
sld2=sld2.LanczosResize(930,720)
sld2=sld2.AddBorders(175,0,175,0)
sld1 ++ sld2
When you play the .avs it looks fine. But I'm trying to create an .mp4 with ffmpeg and I have audio but a black screen. I've tried a number of different arguments:

Code:
ffmpeg -i test.avs output.mp4
ffmpeg -i test.avs -vcodec libx264 output.mp4
ffmpeg -i test.avs -v:c libx264rgb output.mp4
Feel like I'm just guessing now. What did I do wrong?
__________________
Life is more interesting viewed upside down
Starduster is offline   Reply With Quote
Old 25th April 2023, 19:38   #2  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Maybe try variations of below to figure out problem. [1st step is to find out if problem is in your script, or ffmpeg command (or both)]
Code:
Colorbars(width=1280,height=720)
Trim(0,-1000) # 1000 frames

ConvertToYV12()         # Test problem is with RGB32 (EDIT: maybe ffmpeg dont like the alpha channel, and so is black, perhaps RGB24 would work)
#Assumefps(27.97)       # Your Non standard framerate
#Assumefps(24000,1001)  # 23.976
Assumefps(30000,1001)   # 29.97

Return last
As supplied above (and with my ffmpeg.exe), first two ffmpeg commands OK,
but third produces
Code:
c:\Z>ffmpeg -i test.avs -v:c libx264rgb output.mp4
Invalid loglevel "libx264rgb". Possible levels are numbers or:
"quiet"
"panic"
"fatal"
"error"
"warning"
"info"
"verbose"
"debug"
"trace"
EDIT: Not sure, but does "-v:c" not mean "copy video", with isolated (ie without any indicated) meaning of "libx264rgb" unpredicatable (at least by me).
Code:
c:\Z>ffmpeg -i test.avs -v:c libx264rgb output.mp4
EDIT: below same red error (invalid loglevel) output as above
Code:
c:\Z>ffmpeg -i test.avs -v:c output.mp4
EDIT: Below works.
Code:
ffmpeg -i test.avs -vcodec libx264rgb output.mp4
EDIT:
Here a Bat file with a few comments that might be handy.
Code:
REM https://forum.doom9.org/showthread.php?p=1908619#post1908619
REM We DO NOT LIKE SPACES IN FILE NAMES (REM == REMark ie comment)
REM We DO NOT LIKE ACCENTS IN FILE NAMES.


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      -sn   "%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 %FFMPEG% -i "%INDIR%\%%A" -vcodec rawvideo -f rawvideo  -an        "%OUTDIR%\%%~nxA.rawvideo"


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 NO SUBTITLES, copy both video and audio but NOT subtitles(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      (9) Convert Video to rawvideo uncompressed, Convert Audio to 16 bit PCM audio (output y4m).
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: I usually use BAT files similar to above BAT file to extract 'difficult' video to AVI for simple AviSource() input, where
other Avisynth source filters have difficulty reading a clip. (hence tendency to use Lossless encoders)

EDIT: Might also benefit from investigation of below in blue (maybe -b:2 means stereo, and 96k is bitrate)
Code:
ffmpeg -i test.avs -vcodec libx264 -acodec aac -b:2 96k output.mp4
EDIT: With script "ConvertToYV12()" commented out [ie RGB32] and "-vcodec libx264rgb", produces good output.

EDIT: With script "ConvertToYV12()" commented out [ie RGB32] and "-vcodec libx264", produces good output.
__________________
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; 25th April 2023 at 22:04.
StainlessS is offline   Reply With Quote
Old 25th April 2023, 22:13   #3  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
I kinda suspect that problem might be your ffmpeg.exe,
here:- https://www.mediafire.com/file/xa1zb...ffmpeg.7z/file
the one I'm using (I think maybe by PatMan), supports avs input, perhaps yours dont properley support it.
Maybe not the most recent version, but not so old (maybe about XMas issue).
Is static linked, ie no dll files needed.
__________________
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; 26th April 2023 at 01:27.
StainlessS is offline   Reply With Quote
Old 25th April 2023, 22:54   #4  |  Link
Starduster
Registered User
 
Starduster's Avatar
 
Join Date: Jun 2007
Location: Ann Arbor, MI
Posts: 124
I downloaded that ffmpeg and got the message that I'm using a 64 bit Avisynth... Took a look and I was using Avisynth+ on this machine. So I uninstalled that and found I had 2.58, 2.60, and Plus. Not sure what I should be running but installed 2.60 and tried. Playing the .avs by double-clicking still worked but this time using:
Code:
ffmpeg -i _Atest.avs -vcodec libx264rgb -acodec aac _output.mp4
I get "unknown error occured." I assume the ffmpeg.7z you referenced is 32 bit... which should match the Avisynth 2.6. Wondering if it's something in the .mp4 that's odd. Here is a link to one of them. http://chloericketts.com/video/rickettsrodman.mp4
and I'm using Atest.avs:

Code:
sld2 = DirectShowSource("RickettsRodman.mp4", fps = 30, convertfps = True)
sld2=sld2.ConvertToRGB32().Spline36Resize(1280, 720) #.SSRC(22050,fast=True)
sld2=sld2.LanczosResize(930,720)sld2=sld2.AddBorders(175,0,175,0)
sld2
__________________
Life is more interesting viewed upside down
Starduster is offline   Reply With Quote
Old 25th April 2023, 23:19   #5  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
I'm using Avs+ x64 (dont even have x86 installed).

Yes, I think you may be correct that is x86 ffmpeg
I think maybe Patman exe I was thinking of is x264 or x265, and the ffmpeg.exe I use/posted is by the guy that still supports XP compatible x86 ffmpeg,
so I think should work on both x86 and x64 machines,
Works for me on x64 machine with x64 AVS+, and x86 ffmpeg.exe.

FranceBB knows the guys name that supports XP compatible ffmpeg x86 (name begins with "R" I think).

So far as I know, it should not matter if ffmpeg is x86 and Avs+/plugins are x64, ffmpeg is simply using output of AVS+ x64, as input to ffmpeg.
Well it works for me with mismatch in avs+ [x64] and ffmpeg [x86].

Quote:
I assume the ffmpeg.7z you referenced is 32 bit
You have to extract the exe from the compressed 7z file (like zip file) use 7Zip, or I imagine WinZip and WinRar can also extract it).
And I suggest that you call my ffmpeg.exe like so, (with full path)
"D:\ffmpeg.exe -i _Atest.avs -vcodec libx264rgb -acodec aac _output.mp4"
So you are using the right one. If works better than can replace the ffmpeg.exe wherever it resides on your machine.

Nope, the one I thought I might be using was from Reino (ffmpeg-5.2-2131-fcd557a-win32-dev-xpmod-sse.7z):- https://rwijnsma.home.xs4all.nl/files/ffmpeg/
but big difference in sizes.
__________________
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; 26th April 2023 at 00:09.
StainlessS is offline   Reply With Quote
Old 25th April 2023, 23:39   #6  |  Link
Starduster
Registered User
 
Starduster's Avatar
 
Join Date: Jun 2007
Location: Ann Arbor, MI
Posts: 124
Yes, I have 7zip and used its ffmpeg.exe for my test. That's the one that gave the error... but now it's using the Avisynth 6.0 which is 32 bit. Were you able to use the file and avisynth code I referenced with any success?
__________________
Life is more interesting viewed upside down
Starduster is offline   Reply With Quote
Old 26th April 2023, 00:19   #7  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
With same ffmpeg and same avs+ x64,
script [I changed to LSmash, DirectShowSource is infamous for its being not frame accurate,and output was a bit choppy]
Code:
#sld2 = DirectShowSource(".\RickettsRodman.mp4", fps = 30, convertfps = True)
sld2  = LSmashVideoSource(".\RickettsRodman.mp4", fpsnum = 30, fpsden = 1)
sld2A = LSmashAudioSource(".\RickettsRodman.mp4")
sld2  = AudioDub(sld2,sld2A)

sld2 = sld2.ConvertToRGB32().Spline36Resize(1280, 720) #.SSRC(22050,fast=True)
sld2 = sld2.LanczosResize(930,720)sld2=sld2.AddBorders(175,0,175,0)
sld2
Output of ffmpeg
Code:
c:\Z>ffmpeg -i _Atest.avs -vcodec libx264rgb -acodec aac _output.mp4
ffmpeg version 5.0-full_build-www.gyan.dev Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 11.2.0 (Rev5, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv
  --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt
  --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libdavs2
  --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2
  --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype
  --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec
  --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libshaderc --enable-vulkan --enable-libplacebo
  --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame
  --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb
  --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband
  --enable-libsoxr --enable-chromaprint
  libavutil      57. 17.100 / 57. 17.100
  libavcodec     59. 18.100 / 59. 18.100
  libavformat    59. 16.100 / 59. 16.100
  libavdevice    59.  4.100 / 59.  4.100
  libavfilter     8. 24.100 /  8. 24.100
  libswscale      6.  4.100 /  6.  4.100
  libswresample   4.  3.100 /  4.  3.100
  libpostproc    56.  3.100 / 56.  3.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, avisynth, from '_Atest.avs':
  Duration: 00:00:17.73, start: 0.000000, bitrate: 0 kb/s
  Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 1280x720, 30 fps, 30 tbr, 30 tbn
  Stream #0:1: Audio: pcm_f32le, 48000 Hz, stereo, flt, 3072 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264rgb))
  Stream #0:1 -> #0:1 (pcm_f32le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264rgb @ 000002d85a5777c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264rgb @ 000002d85a5777c0] profile High 4:4:4 Predictive, level 3.1, 4:4:4, 8-bit
[libx264rgb @ 000002d85a5777c0] 264 - core 164 r3081 19856cc - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 -
http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.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=-2 threads=18 lookahead_threads=3 sliced_threads=0
nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0
weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to '_output.mp4':
  Metadata:
    encoder         : Lavf59.16.100
  Stream #0:0: Video: h264 (avc1 / 0x31637661), rgb24(pc, gbr/unknown/unknown, progressive), 1280x720, q=2-31, 30 fps, 15360 tbn
    Metadata:
      encoder         : Lavc59.18.100 libx264rgb
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
  Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc59.18.100 aac
frame=  532 fps= 77 q=-1.0 Lsize=   11040kB time=00:00:17.72 bitrate=5101.6kbits/s speed=2.55x
video:10741kB audio:280kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.181316%
[libx264rgb @ 000002d85a5777c0] frame I:9     Avg QP:24.45  size: 48457
[libx264rgb @ 000002d85a5777c0] frame P:241   Avg QP:27.22  size: 31993
[libx264rgb @ 000002d85a5777c0] frame B:282   Avg QP:27.83  size: 10111
[libx264rgb @ 000002d85a5777c0] consecutive B-frames: 18.4% 29.3% 10.2% 42.1%
[libx264rgb @ 000002d85a5777c0] mb I  I16..4:  9.5% 82.8%  7.6%
[libx264rgb @ 000002d85a5777c0] mb P  I16..4:  4.6% 14.5%  2.1%  P16..4: 23.4% 11.9%  7.1%  0.0%  0.0%    skip:36.4%
[libx264rgb @ 000002d85a5777c0] mb B  I16..4:  0.5%  2.2%  0.6%  B16..8: 22.0%  3.8%  0.9%  direct: 1.4%  skip:68.7%  L0:46.2% L1:46.9% BI: 6.9%
[libx264rgb @ 000002d85a5777c0] 8x8 transform intra:70.2% inter:84.9%
[libx264rgb @ 000002d85a5777c0] coded y,u,v intra: 48.9% 63.4% 62.1% inter: 8.7% 15.3% 14.6%
[libx264rgb @ 000002d85a5777c0] i16 v,h,dc,p: 18% 58%  8% 16%
[libx264rgb @ 000002d85a5777c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 38% 16%  4%  5%  4%  7%  4%  7%
[libx264rgb @ 000002d85a5777c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 28% 18%  5%  7%  6%  8%  4%  5%
[libx264rgb @ 000002d85a5777c0] Weighted P-Frames: Y:0.8% UV:0.8%
[libx264rgb @ 000002d85a5777c0] ref P L0: 64.3% 15.0% 13.7%  7.0%  0.1%
[libx264rgb @ 000002d85a5777c0] ref B L0: 90.0%  8.1%  1.9%
[libx264rgb @ 000002d85a5777c0] ref B L1: 98.2%  1.8%
[libx264rgb @ 000002d85a5777c0] kb/s:4961.42
[aac @ 000002d85a579400] Qavg: 1533.798

c:\Z>
Above edited for screen wrap.

MediaInfo, showing rgb colorspace as requested in
Code:
"ffmpeg.exe -i _Atest.avs -vcodec libx264rgb -acodec aac _output.mp4"
Code:
General
Complete name                            : C:\Z\_output.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 10.8 MiB
Duration                                 : 17 s 734 ms
Overall bit rate                         : 5 100 kb/s
Writing application                      : Lavf59.16.100

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 4:4:4 Predictive@L3.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 17 s 734 ms
Bit rate                                 : 4 962 kb/s
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 30.000 FPS
Color space                              : RGB
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.179
Stream size                              : 10.5 MiB (97%)
Writing library                          : x264 core 164 r3081 19856cc
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.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=-2 / 
threads=18 / lookahead_threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / 
bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 
/ scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / i
p_ratio=1.40 / aq=1:1.00
Color range                              : Full
Matrix coefficients                      : RGB

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 17 s 728 ms
Source duration                          : 17 s 749 ms
Bit rate mode                            : Constant
Bit rate                                 : 129 kb/s
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 spf)
Compression mode                         : Lossy
Stream size                              : 279 KiB (3%)
Source stream size                       : 280 KiB (3%)
Default                                  : Yes
Alternate group                          : 1
Displays fine in Potplayer.
__________________
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; 26th April 2023 at 01:52.
StainlessS is offline   Reply With Quote
Old 26th April 2023, 00:37   #8  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
And output from DebugView when encoding in ffmpeg
Code:
00000003    0.00000000  [10436] AvsInit:
00000004    0.00002290  [10436] AvsInit: Auto load plugins script ENTRY
00000005    0.00008390  [10436] AvsInit:
00000006    0.00455310  [10436] AvsInit_ShowInfo:
00000007    0.00457470  [10436] AvsInit_ShowInfo: AvsInit_Version     = 1.10
00000008    0.00463810  [10436] AvsInit_ShowInfo: GScript Available   = AVS+
00000009    0.00466120  [10436] AvsInit_ShowInfo: RT_Stats Version    = 2.00Beta13
00000010    0.00472220  [10436] AvsInit_ShowInfo: SysInfo Version     = 0.129000
00000011    0.00474530  [10436] AvsInit_ShowInfo: SysInfo.dll DIR     = C:\VideoTools\AvisynthRepository\AVSPLUS372_x64\plugins
00000012    0.00480890  [10436] AvsInit_ShowInfo: VersionString       = AviSynth+ 3.7.3 (r3825, master, x86_64)
00000013    0.00482950  [10436] AvsInit_ShowInfo: SetMemoryMax        = 4096
00000014    0.00489100  [10436] AvsInit_ShowInfo: Avisynth Bitness    = 64
00000015    0.00491150  [10436] AvsInit_ShowInfo: WorkingDir          = C:\VideoTools\AvisynthRepository\AVSPLUS372_x64\plugins\
00000016    0.00497570  [10436] AvsInit_ShowInfo: ProcessName         = c:\BIN\ffmpeg.exe EDIT: The one I posted
00000017    0.00499620  [10436] AvsInit_ShowInfo: ParentProcessName   = cmd.exe
00000018    0.00505770  [10436] AvsInit_ShowInfo: OSVersionString     = Windows 10 (x64) (Build 19045)
00000019    0.00507840  [10436] AvsInit_ShowInfo: OSVersionNumber     = 10.000000
00000020    0.00515430  [10436] AvsInit_ShowInfo: OS Bitness          = 64
00000021    0.00517720  [10436] AvsInit_ShowInfo: CPUName             = Intel(R) Core(TM) i7-8700 CPU @ 3.20GHz / Coffee Lake (Core i7)
00000022    0.00523480  [10436] AvsInit_ShowInfo: Cores               = 06:12 (Phy:Log)
00000023    0.00525790  [10436] AvsInit_ShowInfo: CPU Extensions      = MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, SSE4.2, FMA3, RDSEED, ADX, AVX, AVX2
00000024    0.00532140  [10436] AvsInit_ShowInfo: Total Memory        = 32653MB
00000025    0.00535160  [10436] AvsInit_ShowInfo: Avail Memory        = 27881MB'
00000026    0.00540710  [10436] AvsInit_ShowInfo: Screen Res          = 1280x1024 EDIT: My Debug Screen is primary (dual monitor)
00000027    0.00542770  [10436] AvsInit_ShowInfo: Screen BitsPerPixel = 32
00000028    0.00548390  [10436] AvsInit_ShowInfo: Time                = Wednesday 26 April 2023 00:33:09[GMT Summer Time]
00000029    0.00550400  [10436] AvsInit_ShowInfo: User TEMP Dir       = C:\Users\steve\AppData\Local\Temp
00000030    0.00552970  [10436] AvsInit_ShowInfo: ComSpec             = C:\WINDOWS\system32\cmd.exe
00000031    0.00554910  [10436] AvsInit_ShowInfo: Computer Name       = OMEN-W10H
00000032    0.00556800  [10436] AvsInit_ShowInfo: User Name           = steve
00000033    0.00558710  [10436] AvsInit_ShowInfo:
00000034    0.01323380  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\Dehalo_alpha_MT2.avsi
00000035    0.01383250  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\Dehalo_Beta.avsi
00000036    0.01811850  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\dither.avsi
00000037    0.02728620  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\ExTools.avsi
00000038    0.04134670  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\Favc.avsi
00000039    0.04287120  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\FineBeta.avsi
00000040    0.04422330  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\FrameRateConverter.avsi
00000041    0.04610940  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\FrameSurgeon.avsi
00000042    0.04657900  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\GradePack.avsi
00000043    0.05201620  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\InpaintDelogo.avsi
00000044    0.05828170  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\JohnFPS.avsi
00000045    0.05875610  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\MakeframeGenny.avsi
00000046    0.05911150  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\McDegrain.avsi
00000047    0.06002340  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\Misc.avsi
00000048    0.06139790  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\QTGMC.avsi
00000049    0.06884220  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\RoboSplice.avsi
00000050    0.07212980  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\SetMTMode.avsi
00000051    0.07454140  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\Spotless.avsi
00000052    0.07500920  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\Stab_light.avsi
00000053    0.07604250  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\TransformsPack.avsi
00000054    0.09694190  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\Utils-r41.avsi
00000055    0.11727610  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\Waveform_Filmstrip.avsi
00000056    0.11811920  [10436] AvsInit_DImport:     Importing ... C:\VideoTools\AvisynthRepository\GIMPORT\Zs_RF_Shared.avsi
00000057    0.13255601  [10436] AvsInit_DImport:         IMPORTED 23 scripts from 'C:\VideoTools\AvisynthRepository\GIMPORT'
00000058    0.13625710  [10436] AvsInit_DImport:         IMPORTED 0 scripts from 'C:\VideoTools\AvisynthRepository\AVSPLUS372_x64\plugins\GIMPORT'
00000059    0.15972480  [10436] AvsInit_DLoadConditional: STARTING DLL SCAN on C:\VideoTools\AvisynthRepository\MACHINE
00000060    0.16251110  [10436] AvsInit_DLoadConditional: nnedi3.dll                       LoadPlugin OK from 2_WIN7_0\5_AVS26x64\8_AVX2
00000061    0.16544279  [10436] AvsInit_DLoadConditional: DePan.dll                        LoadPlugin OK from 2_WIN7_0\5_AVS26x64\0_CPP
00000062    0.16621560  [10436] AvsInit_DLoadConditional: DePanEstimate.dll                LoadPlugin OK from 2_WIN7_0\5_AVS26x64\0_CPP
00000063    0.16719230  [10436] AvsInit_DLoadConditional: dfttest.dll                      LoadPlugin OK from 2_WIN7_0\5_AVS26x64\0_CPP
00000064    0.16854940  [10436] AvsInit_DLoadConditional: DGDecodeNV.dll                   LoadPlugin OK from 2_WIN7_0\5_AVS26x64\0_CPP
00000065    0.16986980  [10436] AvsInit_DLoadConditional: FFMS2.dll                        LoadPlugin OK from 2_WIN7_0\5_AVS26x64\0_CPP
00000066    0.17125240  [10436] AvsInit_DLoadConditional: LSMASHSource.dll                 LoadPlugin OK from 2_WIN7_0\5_AVS26x64\0_CPP
00000067    0.17377280  [10436] AvsInit_DLoadConditional: masktools2.dll                   LoadPlugin OK from 2_WIN7_0\5_AVS26x64\0_CPP
00000068    0.17449830  [10436] AvsInit_DLoadConditional: MedianBlur2.dll                  LoadPlugin OK from 2_WIN7_0\5_AVS26x64\0_CPP
00000069    0.17607960  [10436] AvsInit_DLoadConditional: mvtools2.dll                     LoadPlugin OK from 2_WIN7_0\5_AVS26x64\0_CPP
00000070    0.17683430  [10436] AvsInit_DLoadConditional: neo-vague-denoiser.dll           LoadPlugin OK from 2_WIN7_0\5_AVS26x64\0_CPP
00000071    0.17704611  [10436] AvsInit_DLoadConditional: !!! Skipping File 2_WIN7_0\5_AVS26x64\0_CPP\nnedi3.dll, already loaded from 2_WIN7_0\5_AVS26x64\8_AVX2
00000072    0.17783470  [10436] AvsInit_DLoadConditional: RemoveDirt.dll                   LoadPlugin OK from 2_WIN7_0\5_AVS26x64\0_CPP
00000073    0.17903630  [10436] AvsInit_DLoadConditional: TIVTC.dll                        LoadPlugin OK from 2_WIN7_0\5_AVS26x64\0_CPP
00000074    0.18184450  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\5_AVS26x64\0_CPP\DePan.dll, already loaded from 2_WIN7_0\5_AVS26x64\0_CPP
00000075    0.18201420  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\5_AVS26x64\0_CPP\DePanEstimate.dll, already loaded from 2_WIN7_0\5_AVS26x64\0_CPP
00000076    0.18218599  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\5_AVS26x64\0_CPP\dfttest.dll, already loaded from 2_WIN7_0\5_AVS26x64\0_CPP
00000077    0.18234821  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\5_AVS26x64\0_CPP\masktools2.dll, already loaded from 2_WIN7_0\5_AVS26x64\0_CPP
00000078    0.18250699  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\5_AVS26x64\0_CPP\MedianBlur2.dll, already loaded from 2_WIN7_0\5_AVS26x64\0_CPP
00000079    0.18266730  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\5_AVS26x64\0_CPP\mvtools2.dll, already loaded from 2_WIN7_0\5_AVS26x64\0_CPP
00000080    0.18282600  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\5_AVS26x64\0_CPP\nnedi3.dll, already loaded from 2_WIN7_0\5_AVS26x64\8_AVX2
00000081    0.18299080  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\5_AVS26x64\0_CPP\TIVTC.dll, already loaded from 2_WIN7_0\5_AVS26x64\0_CPP
00000082    0.18528150  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\4_AVS26Stdx64\0_CPP\ffms2.dll, already loaded from 2_WIN7_0\5_AVS26x64\0_CPP
00000083    0.18545499  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\4_AVS26Stdx64\0_CPP\masktools2.dll, already loaded from 2_WIN7_0\5_AVS26x64\0_CPP
00000084    0.18561880  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\4_AVS26Stdx64\0_CPP\neo-vague-denoiser.dll, already loaded from 2_WIN7_0\5_AVS26x64\0_CPP
00000085    0.18578270  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\4_AVS26Stdx64\0_CPP\nnedi3.dll, already loaded from 2_WIN7_0\5_AVS26x64\8_AVX2
00000086    0.18594439  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\4_AVS26Stdx64\0_CPP\RemoveDirt.dll, already loaded from 2_WIN7_0\5_AVS26x64\0_CPP
00000087    0.18872871  [10436] AvsInit_DLoadConditional: DGDecode.dll                     LoadPlugin OK from 0_XP\3_AVS25x64\0_CPP
00000088    0.18892510  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\3_AVS25x64\0_CPP\ffms2.dll, already loaded from 2_WIN7_0\5_AVS26x64\0_CPP
00000089    0.18910670  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\3_AVS25x64\0_CPP\LSMASHSource.dll, already loaded from 2_WIN7_0\5_AVS26x64\0_CPP
00000090    0.18926010  [10436] AvsInit_DLoadConditional: !!! Skipping File 0_XP\3_AVS25x64\0_CPP\masktools2.dll, already loaded from 2_WIN7_0\5_AVS26x64\0_CPP
00000091    0.19099849  [10436] AvsInit_DLoadConditional: STARTING SCRIPT SCAN on C:\VideoTools\AvisynthRepository\MACHINE
00000092    0.19486099  [10436] AvsInit_DLoadConditional:   14 dll's   LOADED : 17 dll's   SKIPPED : 0 dll's   FAILED
00000093    0.19489430  [10436] AvsInit_DLoadConditional:   0 scripts LOADED : 0 Scripts SKIPPED : 0 scripts FAILED
Maybe its your player that dont like RGB32, and shows as black due to Alpha channel.
(x264 RGBA in mp4 would also be a lot bigger I think).
__________________
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; 26th April 2023 at 00:46.
StainlessS is offline   Reply With Quote
Old 26th April 2023, 00:57   #9  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Potplayer OK,
VLC OK,
MPC-HC (open OK from within MPC-HC via file menu), Windows Explorer right click open in MPC-HC does nothing.
Windows Media Player, shows Black Screen, same as your original problem.

Avoid RGB with Alpha Channel, ie use YV12 [Return ConvertToYV12() at end of script ]

EDIT: Ignore the MPC-HC problem, It dont open other files either, I must have a problem there.
EDIT: Damn, about 5->10 mintues after trying to open another mp4 in MPC-HC via Explorer right click, it jumped up and started to play,
perhaps Antivirus was scanning entire mp4 file or something.

EDIT: From the ffmpeg text output [looks like its any RGB within an Mp4 (and not just alpha) that is the problem for Windows MediaPlayer]
Code:
 Stream #0:0: Video: h264 (avc1 / 0x31637661), rgb24(pc, gbr/unknown/unknown, progressive), 1280x720, q=2-31, 30 fps, 15360 tbn
__________________
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; 26th April 2023 at 01:48.
StainlessS is offline   Reply With Quote
Old 26th April 2023, 01:02   #10  |  Link
Starduster
Registered User
 
Starduster's Avatar
 
Join Date: Jun 2007
Location: Ann Arbor, MI
Posts: 124
Well... thanks a ton for all that. I'm going to reinstall Avisynth+ and try again. The video player is just Windows Media Player. I'll let you know how it goes.
__________________
Life is more interesting viewed upside down
Starduster is offline   Reply With Quote
Old 26th April 2023, 01:45   #11  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Yep, dont use Windows Media Player (that IS the problem), and avoid rgb in mp4, use YV12.
__________________
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 26th April 2023, 02:48   #12  |  Link
Starduster
Registered User
 
Starduster's Avatar
 
Join Date: Jun 2007
Location: Ann Arbor, MI
Posts: 124
You are correct. Media player won't play it but VLC and Chrome play it fine. I downloaded a new version of Avisynth+ and installed that with your ffmpeg. Thanks so much for the help!
__________________
Life is more interesting viewed upside down
Starduster 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 11:59.


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