Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (99)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (11475)

  • How can I determine if a codec / container combination is compatible with FFmpeg ?

    26 juin 2023, par Dan

    I'm looking at re-muxing some containers holding audio and video such that I extract the best, first audio stream, and store it in a new container where e.g. only the audio stream is present.

    &#xA;&#xA;

    The output context for FFmpeg is created like so :

    &#xA;&#xA;

    AVFormatContext* output_context = NULL;&#xA;avformat_alloc_output_context2( &amp;output_context, NULL, "mp4", NULL );&#xA;

    &#xA;&#xA;

    I have a shortlist of acceptable outputs, e.g. MP4, M4A, etc … essentially those that are readable by Apple's Audio File Services :

    &#xA;&#xA;

    kAudioFileAIFFType              = &#x27;AIFF&#x27;,&#xA;kAudioFileAIFCType              = &#x27;AIFC&#x27;,&#xA;kAudioFileWAVEType              = &#x27;WAVE&#x27;,&#xA;kAudioFileSoundDesigner2Type    = &#x27;Sd2f&#x27;,&#xA;kAudioFileNextType              = &#x27;NeXT&#x27;,&#xA;kAudioFileMP3Type               = &#x27;MPG3&#x27;,   // mpeg layer 3&#xA;kAudioFileMP2Type               = &#x27;MPG2&#x27;,   // mpeg layer 2&#xA;kAudioFileMP1Type               = &#x27;MPG1&#x27;,   // mpeg layer 1&#xA;kAudioFileAC3Type               = &#x27;ac-3&#x27;,&#xA;kAudioFileAAC_ADTSType          = &#x27;adts&#x27;,&#xA;kAudioFileMPEG4Type             = &#x27;mp4f&#x27;,&#xA;kAudioFileM4AType               = &#x27;m4af&#x27;,&#xA;kAudioFileM4BType               = &#x27;m4bf&#x27;,&#xA;kAudioFileCAFType               = &#x27;caff&#x27;,&#xA;kAudioFile3GPType               = &#x27;3gpp&#x27;,&#xA;kAudioFile3GP2Type              = &#x27;3gp2&#x27;,&#xA;kAudioFileAMRType               = &#x27;amrf&#x27;&#xA;

    &#xA;&#xA;

    My question is this : is there an easy API in FFmpeg that can be leveraged to choose a compatible output container given the codec the audio stream is in ?

    &#xA;

  • ffmpeg : how to determine frame rate automatically ?

    24 septembre 2021, par mrgloom

    I use this simple script to convert video to images using ffmpeg, but frame rate is fixed, how can I determine it automatically ?

    &#xA;&#xA;

    FRAME_RATE="30"&#xA;SEPARATOR=&#x27;/&#x27;&#xA;&#xA;&#xA;VIDEO_PATH=$1&#xA;&#xA;VIDEO_BASE_DIR=`dirname $1`&#xA;FRAMES_DIR=$VIDEO_BASE_DIR$SEPARATOR"Frames"&#xA;rm -rf $FRAMES_DIR&#xA;mkdir $FRAMES_DIR&#xA;&#xA;#Convert video to images&#xA;./ffmpeg -r $FRAME_RATE -i $VIDEO_PATH $FRAMES_DIR$SEPARATOR"image%d.png"&#xA;

    &#xA;&#xA;

    UPDATE :

    &#xA;&#xA;

    By ffprobe I checked that my 1st video frame rate is 30.&#xA;Also results are the same (339 frames are produced) even I reduce frame rate, so -r option doesn't work or work in some other way ?

    &#xA;&#xA;

    These command give the same result :

    &#xA;&#xA;

    ./ffmpeg -r 10 -i $VIDEO_PATH $FRAMES_DIR$SEPARATOR"image%d"$EXTENSION&#xA;./ffmpeg -r 30 -i $VIDEO_PATH $FRAMES_DIR$SEPARATOR"image%d"$EXTENSION&#xA;./ffmpeg -i $VIDEO_PATH $FRAMES_DIR$SEPARATOR"image%d"$EXTENSION&#xA;

    &#xA;&#xA;

    Output :

    &#xA;&#xA;

    ffmpeg version N-63893-gc69defd Copyright (c) 2000-2014 the FFmpeg developers&#xA;  built on Jul 16 2014 05:38:01 with gcc 4.6 (Debian 4.6.3-1)&#xA;  configuration: --prefix=/root/ffmpeg-static/64bit --extra-cflags=&#x27;-I/root/ffmpeg-static/64bit/include -static&#x27; --extra-ldflags=&#x27;-L/root/ffmpeg-static/64bit/lib -static&#x27; --extra-libs=&#x27;-lxml2 -lexpat -lfreetype&#x27; --enable-static --disable-shared --disable-ffserver --disable-doc --enable-bzlib --enable-zlib --enable-postproc --enable-runtime-cpudetect --enable-libx264 --enable-gpl --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-gray --enable-libass --enable-libfreetype --enable-libopenjpeg --enable-libspeex --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-version3 --enable-libvpx&#xA;  libavutil      52. 89.100 / 52. 89.100&#xA;  libavcodec     55. 66.101 / 55. 66.101&#xA;  libavformat    55. 43.100 / 55. 43.100&#xA;  libavdevice    55. 13.101 / 55. 13.101&#xA;  libavfilter     4.  8.100 /  4.  8.100&#xA;  libswscale      2.  6.100 /  2.  6.100&#xA;  libswresample   0. 19.100 /  0. 19.100&#xA;  libpostproc    52.  3.100 / 52.  3.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/home/user/myvideo1.mp4&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: isommp42&#xA;    creation_time   : 2016-01-16 05:30:03&#xA;  Duration: 00:00:11.33, start: 0.000000, bitrate: 4659 kb/s&#xA;    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x480, 4539 kb/s, SAR 65536:65536 DAR 4:3, 30 fps, 30 tbr, 90k tbn, 180k tbc (default)&#xA;    Metadata:&#xA;      rotate          : 90&#xA;      creation_time   : 2016-01-16 05:30:03&#xA;      handler_name    : VideoHandle&#xA;    Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2016-01-16 05:30:03&#xA;      handler_name    : SoundHandle&#xA;Output #0, image2, to &#x27;/home/user/Frames/image%d.png&#x27;:&#xA;  Metadata:&#xA;    major_brand     : mp42&#xA;    minor_version   : 0&#xA;    compatible_brands: isommp42&#xA;    encoder         : Lavf55.43.100&#xA;    Stream #0:0(eng): Video: png, rgb24, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 30 fps, 90k tbn, 30 tbc (default)&#xA;    Metadata:&#xA;      rotate          : 90&#xA;      creation_time   : 2016-01-12 05:38:03&#xA;      handler_name    : VideoHandle&#xA;      encoder         : Lavc55.66.101 png&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (h264 (native) -> png (png))&#xA;Press [q] to stop, [?] for help&#xA;frame=  339 fps= 68 q=0.0 Lsize=N/A time=00:00:11.30 bitrate=N/A    &#xA;video:195852kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;

    &#xA;

  • FFmpeg-split.py can't determine video length

    13 juin 2017, par Almog Woldenberg

    First, I’m not a developer. I’m trying to split a movie into 1 minute clips usinf ffmpeg-split.py python script. I made sure FFmpeg is installed it trying a simple command and it worked like magic :

    ffmpeg -i soccer.mp4 -ss 00:00:00 -codec copy -t 10 soccer1.mp4

    A new video file was created in the same folder.

    I saved the FFmpeg-split.py in the same dir, updated python PATH and typed the following command :

    python ffmpeg-split.py -f soccer.mp4 -s 10

    what I got back was :

    can't determine video length

    I believe it just can’t find the file. I switched video files and even deleted it and got the same message.

    Any ideas ?