Recherche avancée

Médias (1)

Mot : - Tags -/ticket

Autres articles (93)

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

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (13111)

  • Why this shell command doesn't work ? ('command' works but 'command|cat' doesn't work)

    16 octobre 2018, par yabee

    Problem

    The following code outputs like...

    $ ffprobe -show_frames -select_streams v test.mp4 2>/dev/null|grep -A 2 key_frame=1
    key_frame=1
    pkt_pts=0
    pkt_pts_time=0:00:00.000000
    --
    key_frame=1
    pkt_pts=41041
    pkt_pts_time=0:00:01.710042
    --
    key_frame=1
    pkt_pts=64064
    pkt_pts_time=0:00:02.669333
    --
    key_frame=1
    pkt_pts=87087
    pkt_pts_time=0:00:03.628625
    --
    ...

    But the folowing one outputs nothing.

    $ ffprobe -show_frames -select_streams v test.mp4 2>/dev/null|grep -A 2 key_frame=1|cat

    And...

    $ ffprobe -show_frames -select_streams v test.mp4 2>/dev/null|grep key_frame=1
    key_frame=1
    key_frame=1
    key_frame=1
    key_frame=1
    $ ffprobe -show_frames -select_streams v test.mp4 2>/dev/null|grep key_frame=1|cat
    # Nothing outputted.

    Why ?

    Expected result

    What actually I want to do is

    $ ffprobe -show_frames -select_streams v test.mp4 2>/dev/null|grep -A 2key_frame=1|grep time
    pkt_pts_time=0:00:00.000000
    pkt_pts_time=0:00:01.710042
    pkt_pts_time=0:00:02.669333
    pkt_pts_time=0:00:03.628625
    ...

    But its result is

    $ ffprobe -show_frames -select_streams v test.mp4 2>/dev/null|grep -A 2key_frame=1|grep time
    # Nothing outputted.

    Grep works correctory exept it’s after ffprobe.

    $ seq 30|grep 1|grep 2
    12
    21

    Environment

    • Bash on Ubuntu on Windows 10 Pro
      • Windows version : 1803
      • Windows OS build : 17134.345

    Environment of Ubuntu :

    $ cat /etc/lsb-release
    DISTRIB_ID=Ubuntu
    DISTRIB_RELEASE=18.04
    DISTRIB_CODENAME=bionic
    DISTRIB_DESCRIPTION="Ubuntu 18.04.1 LTS"

    $ bash --version
    GNU bash, version 4.4.19(1)-release (x86_64-pc-linux-gnu)
    Copyright (C) 2016 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later /gnu.org/licenses/gpl.html>

    This is free software; you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.

    $ ffprobe
    ffprobe version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2007-2018 the FFmpeg developers
     built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
     configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
     libavutil      55. 78.100 / 55. 78.100
     libavcodec     57.107.100 / 57.107.100
     libavformat    57. 83.100 / 57. 83.100
     libavdevice    57. 10.100 / 57. 10.100
     libavfilter     6.107.100 /  6.107.100
     libavresample   3.  7.  0 /  3.  7.  0
     libswscale      4.  8.100 /  4.  8.100
     libswresample   2.  9.100 /  2.  9.100
     libpostproc    54.  7.100 / 54.  7.100
    Simple multimedia streams analyzer
    usage: ffprobe [OPTIONS] [INPUT_FILE]

    You have to specify one input file.
    Use -h to get full help or, even better, run 'man ffprobe'.

    What is problem ?

    Does grep or ffprobe change its behavior by existence of pipe in this case ?
    Thanks.

  • Piping cURL output to FFmpeg doesn't work with mp4 files

    8 novembre 2015, par Konstantin

    I would like to pipe cURL output to FFmpeg the following way in my Ruby script to strip off metadata, chapters and maybe set other metadata too in the future :

    #!/usr/bin/ruby
    url=ARGV[0]

    fname=url.split("/").last
    extension=File.extname(fname)
    options=""
    case extension
     when /mp4/i
       format="mp4"
       options=" -movflags frag_keyframe+empty_moov "
     when /avi/i
       format="avi"
     when /mkv/i
       format="matroska"
     when /wmv/i
       format="asf"
     else
       format="matroska"
    end

    cmd=%Q{ curl -b cookie-file.txt #{url} -L -o - | ffmpeg -y -i - -map 0:v -map 0:a -c:v copy -c:a:0 copy -map_metadata -1 -map_chapters -1 #{options} -f #{format} - | cat > #{fname} }

    system cmd

    When the url (ARGV[0]) points to an .avi, .wmv or .mkv file the script do its job. However when it points to an .mp4 or .mov file it doesn’t work, because the input isn’t seekable and FFmpeg at first try to read the whole input. When url points to an mp4 file, output to stdout even doesn’t work, only when options " -movflags frag_keyframe+empty_moov " is used for the output format. Otherwise I got an error message : "muxer does not support non seekable output". Last cat command is needed because this command pipe will work in a CGI script, and will write its output to STDOUT with appropriate HTTP headers. What options should I use for the input pipe to make my script work with mp4 files too ?

  • Adding multiple audio files to video with different start times with ffmpeg : Error initializing complex filters : Invalid argument

    19 janvier 2024, par fullStackChris

    Here's my command :

    


    ffmpeg -i ./video/super-simple.mp4 -i ./audio/super-simple/1.wav -i ./audio/super-simple/2.wav -filter_complex \
"[1]adelay=2480|2480[a1]; \
 [2]adelay=8919|8919[a2]; \
 [0][a1][a2]amix=3" -c:v copy -c:a aac -strict experimental ./video/super-simple.mp4.final.mp4


    


    However I get the following output, ending with a cryptic error :

    


    [aist#1:0/pcm_f32le @ 0x7fe723010e00] Guessed Channel Layout: mono
Input #1, wav, from '/audio/super-simple/1.wav':
  Duration: 00:00:04.44, bitrate: 1031 kb/s
  Stream #1:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 32000 Hz, 1 channels, flt, 1024 kb/s
[aist#2:0/pcm_f32le @ 0x7fe72300f4c0] Guessed Channel Layout: mono
Input #2, wav, from '/audio/super-simple/2.wav':
  Duration: 00:00:03.95, bitrate: 1032 kb/s
  Stream #2:0: Audio: pcm_f32le ([3][0][0][0] / 0x0003), 32000 Hz, 1 channels, flt, 1024 kb/s
[fc#0 @ 0x7fe723004340] Stream specifier '' in filtergraph description [1]adelay=2480|2480[a1];  [2]adelay=8919|8919[a2];  [0][a1][a2]amix=3 matches no streams.
Error initializing complex filters: Invalid argument


    


    What is going on here ? I've been reading stackoverflow for hours and I beleive this syntax is correct, but apparently not. Do I need to specify the video somehow for [0] to be recognized, or is that implicit since the video is my first input ?