Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (9)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Les thèmes de MediaSpip

    4 juin 2013

    3 thèmes sont proposés à l’origine par MédiaSPIP. L’utilisateur MédiaSPIP peut rajouter des thèmes selon ses besoins.
    Thèmes MediaSPIP
    3 thèmes ont été développés au départ pour MediaSPIP : * SPIPeo : thème par défaut de MédiaSPIP. Il met en avant la présentation du site et les documents média les plus récents ( le type de tri peut être modifié - titre, popularité, date) . * Arscenic : il s’agit du thème utilisé sur le site officiel du projet, constitué notamment d’un bandeau rouge en début de page. La structure (...)

Sur d’autres sites (3182)

  • ffmpeg error : "Missing ')' or too many args in 'if(gt(a,1),650,-1)'"

    23 février 2015, par Remini me

    I am trying to run this ffmpeg command in linux shell, to scale down the video (if portrait, than to maximum height of 650, while adjusting the width. And if landscape, then 650 maximum width, and adjust the height with aspect ratio) :

    ffmpeg -i 1.mp4 -r 30 -vf scale="'if(gt(a,1),650,-1)':'if(gt(a,1),-1,650)'" -vcodec libx264 output_file1.mp4

    But I get the following error :

    [scale @ 0x1d48a40] [Eval @ 0x7fff53a49340] Missing ’)’ or too many
    args in ’if(gt(a,1),650,-1)’ [scale @ 0x1d48a40] [Eval @
    0x7fff53a49340] Missing ’)’ or too many args in ’if(gt(a,1),-1,650)’
    Error when evaluating the expression ’if(gt(a,1),-1,650)’

    **EDIT : I have tried using the new @slhck syntax :

    -vf "scale=if(gt(a\,1)\,650\,-2):if(gt(a\,1)\,-2\,650)"

    The result I got was :

    ffmpeg version 0.8.16-4:0.8.16-0ubuntu0.12.04.1, Copyright (c)
    2000-2014 the Libav developers built on Sep 16 2014 18:33:49 with
    gcc 4.6.3 The ffmpeg program is only provided for script compatibility
    and will be removed in a future release. It has been deprecated in the
    Libav project to allow for incompatible command line syntax
    improvements in its replacement called avconv (see Changelog for
    details). Please use avconv instead.

    Seems stream 0 codec frame rate differs from container frame rate :
    180000.00 (180000/1) -> 90000.00 (180000/2) Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’1.mp4’ : Metadata :
    major_brand : isom
    minor_version : 0
    compatible_brands : isom3gp4
    creation_time : 2015-02-05 14:54:24 Duration : 00:00:45.30, start : 0.000000, bitrate : 17058 kb/s
    Stream #0.0(eng) : Video : h264 (High), yuv420p, 1920x1080, 17021 kb/s, 30.01 fps, 90k tbr, 90k tbn, 180k tbc
    Metadata :
    creation_time : 2015-02-05 14:54:24
    Stream #0.1(eng) : Audio : aac, 48000 Hz, stereo, s16, 124 kb/s
    Metadata :
    creation_time : 2015-02-05 14:54:24 File ’output_file1.mp4’ already exists. Overwrite ? [y/N] y

    [buffer @ 0x747ec0] w:1920 h:1080 pixfmt:yuv420p [scale @ 0x745a40] [Eval @ 0x7fffac94b220] Missing ’)’ or too many args in
    ’if(gt(a,1),650,-2)’ [scale @ 0x745a40] [Eval @ 0x7fffac94b220]
    Missing ’)’ or too many args in ’if(gt(a,1),-2,650)’ Error when
    evaluating the expression ’if(gt(a,1),-2,650)’ Error opening
    filters !

    What should I do ?

  • Not able to pipe gstreamer output into ffmpeg

    31 janvier 2015, par Henry Soang

    has anybody gotten gstreamer to successfully pipe it’s video output into ffmpeg ?

    I’ve tried playing with /dev/stdout and I keep getting errors :

    gst-launch -e v4l2src device=/dev/video0 ! ’video/x-raw-yuv,width=1920,height=1080,framerate=5/1’ ! nv_omx_h264enc quality-level=2 ! mp4mux ! filesink location=/dev/stdout \
    | ffmpeg -y -i - -codec copy -f flv test.flv

    ...
    [aac @ 0xebc4c0] Could not find codec parameters for stream 0 (Audio : aac (Main), 7.1, fltp, 1351 kb/s) : unspecified sample rate
    Consider increasing the value for the ’analyzeduration’ and ’probesize’ options
    pipe: : could not find codec parameters
    Input #0, aac, from ’pipe :’ :
    Duration : N/A, bitrate : 1351 kb/s
    Stream #0:0 : Audio : aac (Main), 7.1, fltp, 1351 kb/s
    [flv @ 0xec9280] sample rate not set
    Output #0, flv, to ’test.flv’ :
    Stream #0:0 : Audio : aac, 7.1, 1351 kb/s
    Stream mapping :
    Stream #0:0 -> #0:0 (copy)
    Could not write header for output file #0 (incorrect codec parameters ?) : Invalid argument
    ubuntu@tegra-ubuntu : $

    Running the commands separately (replacing /dev/stdout with a file) works fine.

    If you got it to work and can share how you did it, that would be great.

    Thanks.

  • Problems accessing codecs with ggplot and gganimate

    19 décembre 2016, par noLongerRandom

    Using gganimate. Can’t figure out how to properly access functionality of ffmpeg, specifically I want to change the codec I’m using in the video file I’m outputting.

    # load packages
    library(ggplot)
    library(animation)
    library(gganimate)

    # Here's my data.frame
    myDf <- data.frame(
       year = c(1962, 1963, 1964, 1965, 1966, 1967, 1968, 1969, 1970, 1971, 1972, 1973, 1974, 1975, 1976, 1977, 1978, 1979, 1980, 1981, 1982, 1983, 1984, 1985, 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014),
       bottom50 = c(0.195, 0.191, 0.187, 0.192, 0.196, 0.205, 0.207, 0.210, 0.209, 0.204, 0.203, 0.204, 0.205, 0.203, 0.202, 0.200, 0.200, 0.201, 0.199, 0.195, 0.190, 0.183, 0.179, 0.179, 0.177, 0.172, 0.169, 0.169, 0.168, 0.166, 0.158, 0.159, 0.158, 0.154, 0.151, 0.148, 0.149, 0.148, 0.146, 0.149, 0.148, 0.145, 0.142, 0.138, 0.135, 0.137, 0.137, 0.136, 0.130, 0.127, 0.123, 0.127, 0.125), top1 = c(0.126, 0.127, 0.129, 0.128, 0.126, 0.123, 0.122, 0.115, 0.110, 0.111, 0.111, 0.109, 0.106, 0.105, 0.105, 0.107, 0.108, 0.111, 0.107, 0.110, 0.112, 0.115, 0.125, 0.125, 0.122, 0.133, 0.149, 0.145, 0.145, 0.139, 0.150, 0.146, 0.147, 0.153, 0.160, 0.166, 0.169, 0.177, 0.183, 0.173, 0.171, 0.172, 0.183, 0.194, 0.201, 0.199, 0.195, 0.185, 0.198, 0.196, 0.208, 0.196, 0.202)
    )

    #Basic plot
    p <- ggplot(myDf, aes(x = year, y = bottom50, frame = year)) +
       geom_line(color = "dodgerblue") +
       geom_line(aes(y = top1), color = "darkred")

    The non-animated version gets me what I want :

    enter image description here

    And I get an animation version output to video with :

    gganimate(p, interval = .1, title_frame = FALSE, "income.mp4")

    That’s fine, but I want to change some the output parameters, specifically : alter the dimensions, the frame rate, and use a different codec.

    # change some of the options
    ani.options(ani.height = 1080, ani.width = 1920,
               interval = 0.04166667, other.opts = "-vcodec qtrle -f mov")
    # re-animate
    gganimate(p, title_frame = FALSE, "income.mov")

    That gives me the following error :

    Error in animation_saver(saver, filename) :
     Don't know how to save animation of type mov

    I’m using ’.mov’ as my file extension because I’m trying to change to the Animation codec (so it’s no longer a .mp4 wrapper). I’ve got ffmpeg installed, so this is probably a syntax issue. But the documentation isn’t very clear here ; gganimate doesn’t have any documentation on changing codecs (or outputting any video besides an mp4), and the animation package is light on specifics as well.