Giter Site home page Giter Site logo

ari_stitch example not working about ari HOT 5 CLOSED

jhudsl avatar jhudsl commented on July 28, 2024
ari_stitch example not working

from ari.

Comments (5)

muschellij2 avatar muschellij2 commented on July 28, 2024

The file should be at /tmp/RtmpPa3t1d/file47e92baea8a4.mp4

from ari.

muschellij2 avatar muschellij2 commented on July 28, 2024
library(tuneR)
library(ari)
out = ari_stitch(
  ari_example(c("mab1.png", "mab2.png")),
  list(noise(), noise())) 
out
#> [1] TRUE
#> attr(,"outfile")
#> [1] "/private/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T/RtmpqElJTw/file4c294745acea.mp4"
#> attr(,"images")
#> [1] "/Users/johnmuschelli/Library/R/4.0/library/ari/test/mab1.png"
#> [2] "/Users/johnmuschelli/Library/R/4.0/library/ari/test/mab2.png"
outfile = attr(out, "outfile")
file.exists(outfile)
#> [1] TRUE
file.size(outfile)
#> [1] 39664

Created on 2021-04-28 by the reprex package (v2.0.0)

Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value                       
#>  version  R version 4.0.5 (2021-03-31)
#>  os       macOS Catalina 10.15.7      
#>  system   x86_64, darwin17.0          
#>  ui       X11                         
#>  language (EN)                        
#>  collate  en_US.UTF-8                 
#>  ctype    en_US.UTF-8                 
#>  tz       America/New_York            
#>  date     2021-04-28                  
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version  date       lib source                                  
#>  ari         * 0.4.1    2020-12-09 [1] Github (jhudsl/ari@2638775)             
#>  backports     1.2.1    2020-12-09 [1] CRAN (R 4.0.2)                          
#>  cli           2.4.0    2021-04-05 [1] CRAN (R 4.0.2)                          
#>  crayon        1.4.1    2021-02-08 [1] CRAN (R 4.0.2)                          
#>  digest        0.6.27   2020-10-24 [1] CRAN (R 4.0.2)                          
#>  ellipsis      0.3.1    2020-05-15 [2] CRAN (R 4.0.0)                          
#>  evaluate      0.14     2019-05-28 [2] CRAN (R 4.0.0)                          
#>  fansi         0.4.2    2021-01-15 [1] CRAN (R 4.0.2)                          
#>  fs            1.5.0    2020-07-31 [2] CRAN (R 4.0.2)                          
#>  glue          1.4.2    2020-08-27 [1] CRAN (R 4.0.2)                          
#>  highr         0.8      2019-03-20 [2] CRAN (R 4.0.0)                          
#>  hms           1.0.0    2021-01-13 [1] CRAN (R 4.0.2)                          
#>  htmltools     0.5.1.1  2021-01-22 [1] CRAN (R 4.0.2)                          
#>  httr          1.4.2    2020-07-20 [2] CRAN (R 4.0.2)                          
#>  knitr         1.32     2021-04-14 [1] CRAN (R 4.0.2)                          
#>  lifecycle     1.0.0    2021-02-15 [1] CRAN (R 4.0.2)                          
#>  magrittr      2.0.1    2020-11-17 [1] CRAN (R 4.0.2)                          
#>  MASS          7.3-53.1 2021-02-12 [1] CRAN (R 4.0.2)                          
#>  pillar        1.6.0    2021-04-13 [1] CRAN (R 4.0.2)                          
#>  pkgconfig     2.0.3    2019-09-22 [2] CRAN (R 4.0.0)                          
#>  prettyunits   1.1.1    2020-01-24 [2] CRAN (R 4.0.0)                          
#>  progress      1.2.2    2019-05-16 [2] CRAN (R 4.0.0)                          
#>  purrr         0.3.4    2020-04-17 [2] CRAN (R 4.0.0)                          
#>  R6            2.5.0    2020-10-28 [1] CRAN (R 4.0.2)                          
#>  reprex        2.0.0    2021-04-02 [1] CRAN (R 4.0.2)                          
#>  rlang         0.4.10   2020-12-30 [1] CRAN (R 4.0.2)                          
#>  rmarkdown     2.7      2021-02-19 [1] CRAN (R 4.0.2)                          
#>  rvest         1.0.0    2021-03-09 [1] CRAN (R 4.0.2)                          
#>  sessioninfo   1.1.1    2018-11-05 [2] CRAN (R 4.0.0)                          
#>  signal        0.7-6    2015-07-30 [2] CRAN (R 4.0.0)                          
#>  stringi       1.5.3    2020-09-09 [1] CRAN (R 4.0.2)                          
#>  stringr       1.4.0    2019-02-10 [2] CRAN (R 4.0.0)                          
#>  styler        1.4.1    2021-03-30 [1] CRAN (R 4.0.2)                          
#>  text2speech   0.3.0    2020-12-09 [1] Github (muschellij2/text2speech@a0c9f86)
#>  tibble        3.1.1    2021-04-18 [1] CRAN (R 4.0.2)                          
#>  tuneR       * 1.3.3    2018-07-08 [1] CRAN (R 4.0.2)                          
#>  utf8          1.2.1    2021-03-12 [1] CRAN (R 4.0.2)                          
#>  vctrs         0.3.7    2021-03-29 [1] CRAN (R 4.0.2)                          
#>  webshot       0.5.2    2019-11-22 [2] CRAN (R 4.0.0)                          
#>  withr         2.4.2    2021-04-18 [1] CRAN (R 4.0.2)                          
#>  xfun          0.22     2021-03-11 [1] CRAN (R 4.0.2)                          
#>  xml2          1.3.2    2020-04-23 [2] CRAN (R 4.0.0)                          
#>  yaml          2.2.1    2020-02-01 [2] CRAN (R 4.0.0)                          
#> 
#> [1] /Users/johnmuschelli/Library/R/4.0/library
#> [2] /Library/Frameworks/R.framework/Versions/4.0/Resources/library

from ari.

muschellij2 avatar muschellij2 commented on July 28, 2024

Here is with ari 0.3.5

library(tuneR)
library(ari)
out = ari_stitch(
  ari_example(c("mab1.png", "mab2.png")),
  list(noise(), noise())) 
out
#> [1] TRUE
#> attr(,"outfile")
#> [1] "/private/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T/RtmpaMEFyR/file4cac7f8a0eeb.mp4"
#> attr(,"images")
#> [1] "/Users/johnmuschelli/Library/R/4.0/library/ari/test/mab1.png"
#> [2] "/Users/johnmuschelli/Library/R/4.0/library/ari/test/mab2.png"
outfile = attr(out, "outfile")
file.exists(outfile)
#> [1] TRUE
file.size(outfile)
#> [1] 39572

Created on 2021-04-28 by the reprex package (v2.0.0)

Session info
sessioninfo::session_info()
#> ─ Session info ───────────────────────────────────────────────────────────────
#>  setting  value                       
#>  version  R version 4.0.5 (2021-03-31)
#>  os       macOS Catalina 10.15.7      
#>  system   x86_64, darwin17.0          
#>  ui       X11                         
#>  language (EN)                        
#>  collate  en_US.UTF-8                 
#>  ctype    en_US.UTF-8                 
#>  tz       America/New_York            
#>  date     2021-04-28                  
#> 
#> ─ Packages ───────────────────────────────────────────────────────────────────
#>  package     * version  date       lib source                                  
#>  ari         * 0.3.5    2020-02-08 [1] CRAN (R 4.0.2)                          
#>  backports     1.2.1    2020-12-09 [1] CRAN (R 4.0.2)                          
#>  cli           2.4.0    2021-04-05 [1] CRAN (R 4.0.2)                          
#>  crayon        1.4.1    2021-02-08 [1] CRAN (R 4.0.2)                          
#>  digest        0.6.27   2020-10-24 [1] CRAN (R 4.0.2)                          
#>  ellipsis      0.3.1    2020-05-15 [2] CRAN (R 4.0.0)                          
#>  evaluate      0.14     2019-05-28 [2] CRAN (R 4.0.0)                          
#>  fansi         0.4.2    2021-01-15 [1] CRAN (R 4.0.2)                          
#>  fs            1.5.0    2020-07-31 [2] CRAN (R 4.0.2)                          
#>  glue          1.4.2    2020-08-27 [1] CRAN (R 4.0.2)                          
#>  highr         0.8      2019-03-20 [2] CRAN (R 4.0.0)                          
#>  hms           1.0.0    2021-01-13 [1] CRAN (R 4.0.2)                          
#>  htmltools     0.5.1.1  2021-01-22 [1] CRAN (R 4.0.2)                          
#>  httr          1.4.2    2020-07-20 [2] CRAN (R 4.0.2)                          
#>  knitr         1.32     2021-04-14 [1] CRAN (R 4.0.2)                          
#>  lifecycle     1.0.0    2021-02-15 [1] CRAN (R 4.0.2)                          
#>  magrittr      2.0.1    2020-11-17 [1] CRAN (R 4.0.2)                          
#>  MASS          7.3-53.1 2021-02-12 [1] CRAN (R 4.0.2)                          
#>  pillar        1.6.0    2021-04-13 [1] CRAN (R 4.0.2)                          
#>  pkgconfig     2.0.3    2019-09-22 [2] CRAN (R 4.0.0)                          
#>  prettyunits   1.1.1    2020-01-24 [2] CRAN (R 4.0.0)                          
#>  progress      1.2.2    2019-05-16 [2] CRAN (R 4.0.0)                          
#>  purrr         0.3.4    2020-04-17 [2] CRAN (R 4.0.0)                          
#>  R6            2.5.0    2020-10-28 [1] CRAN (R 4.0.2)                          
#>  reprex        2.0.0    2021-04-02 [1] CRAN (R 4.0.2)                          
#>  rlang         0.4.10   2020-12-30 [1] CRAN (R 4.0.2)                          
#>  rmarkdown     2.7      2021-02-19 [1] CRAN (R 4.0.2)                          
#>  rvest         1.0.0    2021-03-09 [1] CRAN (R 4.0.2)                          
#>  sessioninfo   1.1.1    2018-11-05 [2] CRAN (R 4.0.0)                          
#>  signal        0.7-6    2015-07-30 [2] CRAN (R 4.0.0)                          
#>  stringi       1.5.3    2020-09-09 [1] CRAN (R 4.0.2)                          
#>  stringr       1.4.0    2019-02-10 [2] CRAN (R 4.0.0)                          
#>  styler        1.4.1    2021-03-30 [1] CRAN (R 4.0.2)                          
#>  text2speech   0.3.0    2020-12-09 [1] Github (muschellij2/text2speech@a0c9f86)
#>  tibble        3.1.1    2021-04-18 [1] CRAN (R 4.0.2)                          
#>  tuneR       * 1.3.3    2018-07-08 [1] CRAN (R 4.0.2)                          
#>  utf8          1.2.1    2021-03-12 [1] CRAN (R 4.0.2)                          
#>  vctrs         0.3.7    2021-03-29 [1] CRAN (R 4.0.2)                          
#>  webshot       0.5.2    2019-11-22 [2] CRAN (R 4.0.0)                          
#>  withr         2.4.2    2021-04-18 [1] CRAN (R 4.0.2)                          
#>  xfun          0.22     2021-03-11 [1] CRAN (R 4.0.2)                          
#>  xml2          1.3.2    2020-04-23 [2] CRAN (R 4.0.0)                          
#>  yaml          2.2.1    2020-02-01 [2] CRAN (R 4.0.0)                          
#> 
#> [1] /Users/johnmuschelli/Library/R/4.0/library
#> [2] /Library/Frameworks/R.framework/Versions/4.0/Resources/library

from ari.

The-Pezman avatar The-Pezman commented on July 28, 2024

Ah, thanks. I was able to navigate to the directory and find the video. But how can we specify the output directory in the code?

from ari.

muschellij2 avatar muschellij2 commented on July 28, 2024

Please read the documentation for ?ari_stitch.

from ari.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.