Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Pkg.test demo "video_recording.jl" has a load error #219

Open
CrashBurnRepeat opened this issue Nov 1, 2017 · 4 comments
Open

Pkg.test demo "video_recording.jl" has a load error #219

CrashBurnRepeat opened this issue Nov 1, 2017 · 4 comments

Comments

@CrashBurnRepeat
Copy link
Contributor

When loading video_recording.jl in the Pkg.test demo, the following error gets thrown. Might this be from a difference in macOS to Windows or Linux path naming conventions/functions that return path names?

LoadError: could not spawn `ffmpeg -f rawvideo -pixel_format rgb24 -s:v 1362x1362 -i pipe:0 -vf vflip -y /Users/crashburnrepeat/fxdkBHdE.mkv`: no such file or directory (ENOENT)
_jl_spawn(::String, ::Array{String,1}, ::Ptr{Void}, ::Base.Process, ::Base.PipeEndpoint, ::Base.DevNullStream, ::Base.TTY) at ./process.jl:360
#374 at ./process.jl:512 [inlined]
setup_stdio(::Base.##374#375{Cmd}, ::Tuple{Pipe,Base.DevNullStream,Base.TTY}) at ./process.jl:499
#spawn#373(::Nullable{Base.ProcessChain}, ::Function, ::Cmd, ::Tuple{Pipe,Base.DevNullStream,Base.TTY}) at ./process.jl:511
spawn(::Cmd, ::Tuple{Pipe,Base.DevNullStream,Base.TTY}) at ./process.jl:506
open(::Cmd, ::String, ::Base.DevNullStream) at ./process.jl:583
create_video_stream(::String, ::GLWindow.Screen) at /Users/crashburnrepeat/.julia/v0.6/GLVisualize/src/videotool.jl:12
include_from_node1(::String) at ./loading.jl:576
include(::String) at ./sysimg.jl:14
_test_include(::String, ::ExampleRunner.RunnerConfig) at /Users/crashburnrepeat/.julia/v0.6/GLVisualize/src/../examples/ExampleRunner.jl:323
inner_test(::String, ::ExampleRunner.RunnerConfig, ::GLWindow.Screen, ::Base.RefValue{Bool}, ::Base.RefValue{Int64}, ::ExampleRunner.#increase#23{Base.RefValue{Int64}}) at /Users/crashburnrepeat/.julia/v0.6/GLVisualize/src/../examples/ExampleRunner.jl:376
make_tests(::ExampleRunner.RunnerConfig) at /Users/crashburnrepeat/.julia/v0.6/GLVisualize/src/../examples/ExampleRunner.jl:456
run(::ExampleRunner.RunnerConfig) at /Users/crashburnrepeat/.julia/v0.6/GLVisualize/src/../examples/ExampleRunner.jl:482
include_from_node1(::String) at ./loading.jl:576
include(::String) at ./sysimg.jl:14
include_from_node1(::String) at ./loading.jl:576
include(::String) at ./sysimg.jl:14
process_options(::Base.JLOptions) at ./client.jl:305
_start() at ./client.jl:371
while loading /Users/crashburnrepeat/.julia/v0.6/GLVisualize/examples/introduction/video_recording.jl, in expression starting on line 27

System information:

Graphics/Displays:

Intel HD Graphics 530:

  Chipset Model: Intel HD Graphics 530
  Type: GPU
  Bus: Built-In
  VRAM (Dynamic, Max): 1536 MB
  Vendor: Intel (0x8086)
  Device ID: 0x191b
  Revision ID: 0x0006
  Automatic Graphics Switching: Supported
  gMux Version: 4.0.29 [3.2.8]
  Metal: Supported

Radeon Pro 460:

  Chipset Model: AMD Radeon Pro 460
  Type: GPU
  Bus: PCIe
  PCIe Lane Width: x8
  VRAM (Total): 4096 MB
  Vendor: ATI (0x1002)
  Device ID: 0x67ef
  Revision ID: 0x00c0
  ROM Revision: 113-C980AF-908
  Automatic Graphics Switching: Supported
  gMux Version: 4.0.29 [3.2.8]
  EFI Driver Version: 01.00.908
  Metal: Supported
  Displays:
    Color LCD:
      Display Type: Built-In Retina LCD
      Resolution: 2880 x 1800 Retina
      Pixel Depth: 32-Bit Color (ARGB8888)
      Main Display: Yes
      Mirror: Off
      Online: Yes
      Rotation: Supported
      Automatically Adjust Brightness: No
      Connection Type: DisplayPort

Hardware:

Hardware Overview:

  Model Name: MacBook Pro
  Model Identifier: MacBookPro13,3
  Processor Name: Intel Core i7
  Processor Speed: 2.9 GHz
  Number of Processors: 1
  Total Number of Cores: 4
  L2 Cache (per Core): 256 KB
  L3 Cache: 8 MB
  Memory: 16 GB
  Boot ROM Version: MBP133.0226.B25
  SMC Version (system): 2.38f7

Memory:

Memory Slots:

  ECC: Disabled
  Upgradeable Memory: No

    BANK 0/DIMM0:

      Size: 8 GB
      Type: LPDDR3
      Speed: 2133 MHz
      Status: OK
      Manufacturer: 0x802C
      Part Number: 0x4D5435324C31473332443450472D30393320

    BANK 1/DIMM0:

      Size: 8 GB
      Type: LPDDR3
      Speed: 2133 MHz
      Status: OK
      Manufacturer: 0x802C
      Part Number: 0x4D5435324C31473332443450472D30393320

NVMExpress:

Apple SSD Controller:

    APPLE SSD SM1024L:

      Capacity: 1 TB (1,000,555,581,440 bytes)
      TRIM Support: Yes
      Model: APPLE SSD SM1024L
      Revision: CXS6AA0Q
      Link Width: x4
      Link Speed: 8.0 GT/s
      Detachable Drive: No
      BSD Name: disk0
      Partition Map Type: GPT (GUID Partition Table)
      Removable Media: No

Software:

System Software Overview:

  System Version: macOS 10.12.6 (16G29)
  Kernel Version: Darwin 16.7.0
  Time since boot: 8 days 1:51
@SimonDanisch
Copy link
Member

Do you have ffmpeg installed and accessible via the path? I need to figure out how to make this a dependency of glvisualize - or maybe just rely on VideoIO.

@CrashBurnRepeat
Copy link
Contributor Author

Fair point. I went and installed ffmpeg and the demo at least runs now, although based on the REPL messages I don't think it's working properly. If I'm understanding the code correctly, this is supposed to produce a video of the cat model changing colors? In any event, this is the REPL message I get:

ffmpeg version 3.4 Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 9.0.0 (clang-900.0.38)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/3.4 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-gpl --enable-ffplay --enable-frei0r --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-librtmp --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-opencl --enable-videotoolbox --disable-lzma --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags=-I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 --enable-nonfree
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, rawvideo, from 'pipe:0':
  Duration: N/A, start: 0.000000, bitrate: 1113026 kb/s
    Stream #0:0: Video: rawvideo (RGB[24] / 0x18424752), rgb24, 1362x1362, 1113026 kb/s, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
[swscaler @ 0x7fb160009200] Warning: data is not aligned! This can lead to a speed loss
[libx264 @ 0x7fb160008600] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x7fb160008600] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
[libx264 @ 0x7fb160008600] 264 - core 148 r2795 aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - 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=4 threads=12 lookahead_threads=2 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, matroska, to '/Users/crashburnrepeat/fxdkBHdE.mkv':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p, 1362x1362, q=-1--1, 25 fps, 1k tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.107.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[rawvideo @ 0x7fb160002400] Invalid buffer size, packet size 3162564 < expected frame_size 5565132
Error while decoding stream #0:0: Invalid argument
Now showing video_recording.jl:

frame=    8 fps=0.0 q=-1.0 Lsize=      33kB time=00:00:00.20 bitrate=1360.7kbits/s speed=0.371x    
video:33kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.521966%
[libx264 @ 0x7fb160008600] frame I:3     Avg QP:20.23  size:  5028
[libx264 @ 0x7fb160008600] frame P:5     Avg QP:26.74  size:  3515
[libx264 @ 0x7fb160008600] mb I  I16..4: 33.7% 63.6%  2.7%
[libx264 @ 0x7fb160008600] mb P  I16..4:  8.0% 26.9%  1.6%  P16..4:  1.0%  0.1%  0.0%  0.0%  0.0%    skip:62.4%
[libx264 @ 0x7fb160008600] 8x8 transform intra:67.5% inter:75.3%
[libx264 @ 0x7fb160008600] coded y,u,v intra: 2.7% 0.3% 1.8% inter: 0.6% 0.3% 0.4%
[libx264 @ 0x7fb160008600] i16 v,h,dc,p: 81% 17%  1%  2%
[libx264 @ 0x7fb160008600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 18% 64%  0%  0%  0%  0%  0%  0%
[libx264 @ 0x7fb160008600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 19% 20%  2%  9% 10%  4%  2%  2%
[libx264 @ 0x7fb160008600] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x7fb160008600] ref P L0: 60.4% 34.3%  5.3%
[libx264 @ 0x7fb160008600] kb/s:816.45

I also looked on my computer for the /Users/crashburnrepeat/fxdkBHdE.mkv file just in case, but no dice.

@SimonDanisch
Copy link
Member

this looks good. i think the file will get deleted after you run this!

@CrashBurnRepeat
Copy link
Contributor Author

All I see though is the cat object in red, which I'm guessing is the final color in the sequence. Is there supposed to be another accompanying visualization?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants