Recherche avancée

Médias (1)

Mot : - Tags -/intégration

Autres articles (98)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • 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 (...)

Sur d’autres sites (11191)

  • How to convert mkv movies to mp4 for streaming to XBox 360

    11 août 2015, par Rob Gwynn-Jones

    I recently purchased a Synology Diskstation DS412+, and I have a number of .mkv movies which I would like to convert/transcode to mp4 files, so that I can stream them directly to my XBox 360. I use Handbrake on my laptop, but I would rather have this happen directly on my NAS.

    I’m very rusty on Linux and new to transcoding, but the script I currently have is the following :

    #!/bin/bash
    for dir in *; do
     if test -d "$dir"; then
       #echo $dir
       for file in "$dir"/*.mkv; do
         noextension=${file%.*}.mp4
         ffmpeg -y -i "$file" -vcodec copy -acodec copy "$noextension"
       done
     fi
    done

    Which, as I understand it, simply copies the audio and video components within the mkv container, and inserts them into a new mp4 container. This has worked for several of my files, but there are a number for which this does not work.

    The following is an example of the output for a failed run :

    ffmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
     built on Sep 16 2013 00:45:02 with gcc 4.2.1
     configuration: --prefix=/usr/syno --arch=i686 --target-os=linux --cross-prefix=/usr/local/i686-linux-gnu/bin/i686-linux-gnu- --enable-cross-compile --enable-optimizations --disable-yasm --disable-altivec --enable-pic --enable-shared --disable-static --disable-swscale-alpha --disable-ffserver --disable-ffplay --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-indev=alsa --disable-outdev=alsa --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=ac3_float --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/i686-linux-gnu/bin/i686-linux-gnu-ccache-gcc
     libavutil    50. 40. 1 / 50. 40. 1
     libavcodec   52.120. 0 / 52.120. 0
     libavformat  52.108. 0 / 52.108. 0
     libavdevice  52.  4. 0 / 52.  4. 0
     libavfilter   1. 77. 0 /  1. 77. 0
     libswscale    0. 14. 0 /  0. 14. 0
    [matroska,webm @ 0x80726c0] Estimating duration from bitrate, this may be inaccurate

    Seems stream 1 codec frame rate differs from container frame rate: 47.95 (5994/125) -> 23.98 (24000/1001)

    ...and then a list of input chapter start and end times and then...

    Stream #0.0(eng): Audio: aac, 48000 Hz, stereo, s16 (default)
    Stream #0.1(eng): Video: h264 (High), yuv420p, 1280x692 [PAR 1:1 DAR 320:173], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)

    ...and then a list of output chapter start and end times and then...

    Stream #0.0(eng): Video: ![0][0][0] / 0x0021, yuv420p, 1280x692 [PAR 1:1 DAR 320:173], q=2-31, 2997 tbn, 23.98 tbc (default)
    Stream #0.1(eng): Audio: libfaac, 48000 Hz, stereo (default)
    Stream mapping:
     Stream #0.1 -> #0.0
     Stream #0.0 -> #0.1
    Press [q] to stop encoding
    [mp4 @ 0x808a020] pts < dts in stream 0
    av_interleaved_write_frame(): Invalid data found when processing input

    The XBox support website gives details on supported file types, with mp4 included in the H.264 standard : http://support.xbox.com/ar-SA/xbox-360/system/audio-video-playback

    I’m at a bit of a loss. I’ve read through http://www.ffmpeg.org/ffmpeg.html but the error message from ffmpeg doesn’t seem very helpful, and resources are sparse at best when it comes to running this stuff on a Synology Box.

    I have tried a few permutations of my script, such as :

    ffmpeg -i "$file" "$noextension"

    and

    ffmpeg -y -i "$file" -vcodec mpeg4 -acodec libfaac "$noextension"

    But those both give me the following error :

    Error while opening encoder for output stream #0.0 - maybe incorrect parameters such as bit_rate, rate, width or height

    I assume that I’ll need to specify input and output codecs specifically, along with things like bitrate, or aspect ratio but this is where I come unstuck.

    Any help would be much appreciated !

  • In FFmpeg, using -filter_complex, how can I overlay and blend at the same time ?

    5 mars 2014, par Kristian Boruff

    My code works to combine three videos, resize the videos to 1920X1080, resize the watermark to the correct size, and then overlays the watermark to the lower left hand side. Then converts to the intended codecs for Youtube.
    My question is how do I Blend at the same time using the -filter_complex workflow ?
    Currently, I have the following workflow that does everything but set the opacity

    ffmpeg -y -i fancy movie.mov -i logo.png -i in.mov -i out.mov -c:v libx264 -crf 18 -b:v 50000k -preset veryfast -tune film -profile:v high -x264opts cabac=1:keyint=16:bframes=2:keyint_min=15 -c:a libvo_aacenc -ab 128K -ar 48000 -filter_complex "[0:0] scale=1920X1080 [main]; [2:0] scale=1920X1080 [start]; [3:0] scale=1920X1080 [end]; [start] [2:1] [main] [0:1] [end] [3:1] concat=n=3:v=1:a=1 [prog]; [1:0] scale=480:90 [wm]; [prog] [wm] overlay=36:main_h-overlay_h-45" fart.mp4

    I'm trying to add "blend=all_opacity=0.7" in the last step so the watermark will screen against the background. If I just add

    [prog] [wm] overlay=36:main_h-overlay_h-45, blend=all_mode='overlay':all_opacity=0.7" fart.mp4

    I get the error, Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_blend_6

    If I try a semicolon instead,

    [prog] [wm] overlay=36:main_h-overlay_h-45; blend=all_mode='overlay':all_opacity=0.7

    I get the error, Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_blend_6 which makes me think that it's expecting something like [input 1] [input 2] blend command [output]. The problem is that I need it to overlay and blend.

    I tried simplifying the code to just test if the blend operation was working properly.

    ffmpeg -i test.mp4 -i logo.png -filter_complex "[0:0] scale=1920x1080 [wm]; [1:0] scale=1920x1080 [prog], [wm][prog] blend=all_mode='overlay':all_opacity=0.7" fart.mp4

    I got the error First input link top parameters (size 1920x1080, SAR 1:1) do not match the corresponding second input link bottom parameters (1920x1080, SAR 243:80)
    Failed to configure output pad on Parsed_blend_2

    So, in addition to the trouble with combining of filters, I'm also having an issue with resizing the watermark as FFMpeg sees it as a different aspect ratio than the other videos.

    This is my second day with FFmpeg, so any help would be appreciated.

    I'm currently working with FFMpeg version N-61061-gf34cceb

  • Create video from image (fit but not stretch)

    17 juin 2015, par rocknow

    I’m trying to create video from image but it’s fit to video size (hd). How to keep aspect ratio of my image BUT get 1280 x 720 video ?

    Here is current result (image is 3264 x 2448 px, video 1280 x 720 px) :

    enter image description here

    Here is my current command :

    ffmpeg -loop 1 -i IMAGE_PATH -t 3 -s hd720 -c:v mpeg4 -pix_fmt yuv420p -preset ultrafast RESULT_PATH

    Should I divide my task to two operations (generate image with black stripes then generate video) ? Could you help to modify command to get desired result ?