jhudsl / ari

:dancers: The Automated R Instructor
https://jhudatascience.org/ari/
Other
146 stars 37 forks source link

Slides not advancing? #10

Closed vfulco closed 6 years ago

vfulco commented 6 years ago

First made the mistake of using an pre-existing and cut down reveal.js presentation, then rebuilt a brand new one from stock ioslides template.

Have checked all spacing and notation against the repo examples and can't get slides to advance regardless of whether I use the .md or .rmd versions. TIA


title: "test2" author: "foo" date: "May 22, 2018" output: ioslides_presentation

R Markdown

This is an R Markdown presentation. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

Slide with Bullets

Slide with R Output

summary(cars)

Slide with Plot

plot(pressure)
vfulco commented 6 years ago

Hmm...examples are not advancing slides either, "air_comments.Rmd". R version 3.4 on Ubuntu 18.04

vfulco commented 6 years ago

[Solution]

Super cool and easy fix--> these instructions are buried in the ari_narrate.R code.

"If

' making a video from an \code{\link[rmarkdown]{ioslides_presentation}}

' you should use \code{"iterative"}."

Better if it were put right on the main page. Will add PR.

beanumber commented 4 years ago

I'm super-excited about this, but I am having this same issue of slides not advancing on Ubuntu 18.04 with R 3.6.3.

ari_narrate(
  ari_example("ari_comments.Rmd"),
  ari_example("ari_intro.html"),
  voice = "Kendra"
)

I've tried setting the capture_method argument to both iterative and vectorized with no luck.

The text-to-speech part works, but the video just stays on the first slide the whole time.

Any ideas?

ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg developers                            
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  WARNING: library configuration mismatch
  avcodec     configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
  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, concat, from 'ari_input_K2Umk9sI9ESQ.txt':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1046x744 [SAR 72:72 DAR 523:372], 25 tbr, 25 tbn, 25 tbc
Input #1, wav, from '/tmp/RtmpetBeGl/ari_audio_DdxRa91YUGHw.wav':
  Duration: 00:00:34.00, bitrate: 384 kb/s
    Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 24000 Hz, 1 channels (FL), s16, 384 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[swscaler @ 0x55a38a906b20] deprecated pixel format used, make sure you did set range correctly
[libx264 @ 0x55a38a8f29a0] using SAR=1/1
[libx264 @ 0x55a38a8f29a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55a38a8f29a0] profile High, level 3.1
[libx264 @ 0x55a38a8f29a0] 264 - core 152 r2854 e9a5903 - 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=-2 threads=6 lookahead_threads=1 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 '/tmp/RtmpetBeGl/file5d7f5c74d1f1.mp4':
  Metadata:
    encoder         : Lavf57.83.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 1046x744 [SAR 1:1 DAR 523:372], q=-1--1, 25 fps, 12800 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
    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 24000 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc57.107.100 aac
[mp4 @ 0x55a38a8f13e0] Starting second pass: moving the moov atom to the beginning of the file  
frame=    6 fps=4.1 q=-1.0 Lsize=     478kB time=00:00:34.00 bitrate= 115.2kbits/s speed=  23x    
video:4kB audio:469kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.973720%
[libx264 @ 0x55a38a8f29a0] frame I:1     Avg QP: 2.38  size:  3268
[libx264 @ 0x55a38a8f29a0] frame P:2     Avg QP: 3.57  size:    80
[libx264 @ 0x55a38a8f29a0] frame B:3     Avg QP: 4.55  size:   125
[libx264 @ 0x55a38a8f29a0] consecutive B-frames: 33.3%  0.0%  0.0% 66.7%
[libx264 @ 0x55a38a8f29a0] mb I  I16..4: 87.7% 10.5%  1.7%
[libx264 @ 0x55a38a8f29a0] mb P  I16..4:  0.1%  0.0%  0.0%  P16..4:  0.0%  0.0%  0.0%  0.0%  0.0%    skip:99.8%
[libx264 @ 0x55a38a8f29a0] mb B  I16..4:  1.1%  0.0%  0.0%  B16..8:  2.2%  0.0%  0.0%  direct: 0.0%  skip:96.7%  L0:48.5% L1:51.5% BI: 0.0%
[libx264 @ 0x55a38a8f29a0] 8x8 transform intra:10.2% inter:50.0%
[libx264 @ 0x55a38a8f29a0] coded y,uvDC,uvAC intra: 3.5% 0.0% 0.0% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x55a38a8f29a0] i16 v,h,dc,p: 85% 13%  2%  0%
[libx264 @ 0x55a38a8f29a0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 74%  7%  0%  0%  0%  0%  0%  0%
[libx264 @ 0x55a38a8f29a0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 25% 26%  2%  2%  5%  4%  4%  3%
[libx264 @ 0x55a38a8f29a0] i8c dc,h,v,p: 100%  0%  0%  0%
[libx264 @ 0x55a38a8f29a0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x55a38a8f29a0] ref B L0: 99.0%  1.0%
[libx264 @ 0x55a38a8f29a0] kb/s:0.80
[aac @ 0x55a38a8f48e0] Qavg: 51047.008
[1] TRUE
attr(,"outfile")
[1] "/tmp/RtmpetBeGl/file5d7f5c74d1f1.mp4"
attr(,"images")
[1] "/tmp/RtmpetBeGl/ari_img_1_92V7ZFv2K10fR.jpeg" "/tmp/RtmpetBeGl/ari_img_2_92V7ZFv2K10fR.jpeg"
[3] "/tmp/RtmpetBeGl/ari_img_3_92V7ZFv2K10fR.jpeg" "/tmp/RtmpetBeGl/ari_img_4_92V7ZFv2K10fR.jpeg"
[5] "/tmp/RtmpetBeGl/ari_img_5_92V7ZFv2K10fR.jpeg"
attr(,"voice")
[1] "Kendra"
attr(,"service")
[1] "amazon"