Recherche avancée

Médias (1)

Mot : - Tags -/getid3

Autres articles (17)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • 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 formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

Sur d’autres sites (6432)

  • ffmpeg add text every second with enable between filter

    12 janvier 2023, par HUNG
    ffmpeg -y -i public/media/vid1.mp4 -vf "drawtext=text='1':x=w-tw-50:y=50:fontcolor=black:fontsize=380:enable='between(t,1,2)',drawtext=text='2':x=w-tw-50:y=50:fontcolor=black:fontsize=380:enable='between(t,0,1)'" -codec:a copy public/media/vid1-1.mp4


    


    I want to add a number every second in a video. I googled and the syntax should like the above. However, only the text within between(t,0,1) can be shown and the value is keeping shown for the whole video duration. But I expected it should only show one second.

    


    I expected between(t,1,2) can show the text from 00:00:01-00:00:02. However, it never show.

    


  • Concatenating different rotated videos with ffmpeg

    14 avril 2017, par acilander

    I am trying to concatenate two videos with ffmpeg having different rotation metadata tags. The first one has rotation=180 the other one has no tag at all.

    There are two methods that can be used in ffmpeg : concat demuxer / concat protocol. Protocol is working as expected but demuxer method is not. When I use concat demuxer option in ffmpeg with copy option to avoid re-encoding the following happens :

    First video with rotation = 180 will be rotated correctly. But the second video without rotation flag will also be rotated and will be presented upside down in output video.

    I know about the options to remove rotation metadata or the possiblility to use filters to rotate the videos. But my question is if someone knows if this is expected behaviour of ffmpeg or not. For me it seems like ffmpeg uses rotation metadata from first video and uses it for all other concatenated videos. Is this assumption correct and intended ?

    Thank you for any feedback and explanations.

  • cant install ffpmeg- php on centos 5.7 [closed]

    13 avril 2012, par Hossein

    i have already installed ffmpeg on my centos 5.7, but whenever i try to install ffmpeg-php i fail to do it . everytime i get to the make section i get these errors :

    /bin/sh /usr/src/ffmphp/ffmpeg-php-0.6.0/libtool --mode=compile cc  -I. -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/src/ffmphp/ffmpeg-php-0.6.0/include -I/usr/src/ffmphp/ffmpeg-php-0.6.0/main -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libavcodec/ -I/usr/include/libavformat/ -I/usr/include/libavutil/ -I/usr/include/libswscale/ -I/usr/include/libavfilter/ -I/usr/include/libavdevice/  -DHAVE_CONFIG_H  -g -O2 -Wall -fno-strict-aliasing   -c /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c -o ffmpeg_frame.lo
    cc -I. -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -DPHP_ATOM_INC -I/usr/src/ffmphp/ffmpeg-php-0.6.0/include -I/usr/src/ffmphp/ffmpeg-php-0.6.0/main -I/usr/src/ffmphp/ffmpeg-php-0.6.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -I/usr/include/libavcodec/ -I/usr/include/libavformat/ -I/usr/include/libavutil/ -I/usr/include/libswscale/ -I/usr/include/libavfilter/ -I/usr/include/libavdevice/ -DHAVE_CONFIG_H -g -O2 -Wall -fno-strict-aliasing -c /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c  -fPIC -DPIC -o .libs/ffmpeg_frame.o
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:50:1: warning: "/*" within comment
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:73: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:74: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ffmpeg_frame_class_entry'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:79: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ffmpeg_frame_class_methods'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:102: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:127: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:145: error: expected ')' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:160: error: expected ')' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'register_ffmpeg_frame_class':
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:173: warning: implicit declaration of function 'TSRMLS_FETCH'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: warning: implicit declaration of function 'zend_register_list_destructors_ex'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: error: '_php_free_ffmpeg_frame' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: error: (Each undeclared identifier is reported only once
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:175: error: for each function it appears in.)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:176: error: 'NULL' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:178: warning: implicit declaration of function 'INIT_CLASS_ENTRY'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:178: error: 'ffmpeg_frame_class_entry' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:179: error: 'ffmpeg_frame_class_methods' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:182: error: 'ffmpeg_frame_class_entry_ptr' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:183: warning: implicit declaration of function 'zend_register_internal_class'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:183: error: expected ')' before 'TSRMLS_CC'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:190: error: expected ')' before '*' token
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: warning: return type defaults to 'int'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:447: error: 'ff_frame_context' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:447: error: 'ff_frame' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:449: warning: implicit declaration of function 'GET_FRAME_RESOURCE'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:449: warning: implicit declaration of function 'getThis'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:451: warning: implicit declaration of function 'RETURN_DOUBLE'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:451: error: 'AV_TIME_BASE' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:459: warning: return type defaults to 'int'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:459: error: redefinition of 'FFMPEG_PHP_METHOD'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: error: previous definition of 'FFMPEG_PHP_METHOD' was here
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:460: error: 'ff_frame_context' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:460: error: 'ff_frame' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:464: warning: implicit declaration of function 'RETURN_LONG'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:472: warning: return type defaults to 'int'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:472: error: redefinition of 'FFMPEG_PHP_METHOD'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: error: previous definition of 'FFMPEG_PHP_METHOD' was here
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:473: error: 'ff_frame_context' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:473: error: 'ff_frame' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: At top level:
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:485: warning: return type defaults to 'int'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:485: error: redefinition of 'FFMPEG_PHP_METHOD'
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:446: error: previous definition of 'FFMPEG_PHP_METHOD' was here
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c: In function 'FFMPEG_PHP_METHOD':
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:486: error: 'ff_frame_context' undeclared (first use in this function)
    /usr/src/ffmphp/ffmpeg-php-0.6.0/ffmpeg_frame.c:486: error: 'ff_frame' undeclared (first use in this function)
    make: *** [ffmpeg_frame.lo] Error 1

    i read that if i get the

    make: *** [ffmpeg_frame.lo] Error 1

    error , i replace all *PIX_FMT_RGBA32* with *PIX_FMT_RGB32* inside *ffmpeg_frame.c*. but when i search the file , there is no *PIX_FMT_RGBA32* . there are all PIX_FMT_RGB32 ! .
    so i have no idea what is wrong with it .
    can anyone please help me get this going ?
    Thanks in advance


    Edited :
    Thanks to God , i finally found the cause of the problem .
    when i was trying to replace PIX_FMT_RGBA32 with PIX_FMT_RGB32 inside ffmpeg_frame.c* using VI i mistakenly messed the source code (the ffmpeg_frame.c) and removed a comment sign (*/ ) and that messed just everything :)
    i re extracted all files and then replaced all PIX_FMT_RGBA32 with PIX_FMT_RGB32 and everything compiles just fine :)