Recherche avancée

Médias (91)

Autres articles (60)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

Sur d’autres sites (5468)

  • basetime for strftime segment filename template

    12 mai 2015, par basin

    I have a big mp3 file, which I started recording at 17:24. Trying to split into 2 minute segments :

    ffmpeg -y -i test.mp3 -map 0 -c copy -f segment -segment_time 120 -reset_timestamps 1 -strftime 1 '1/test-%H-%M.mp3'

    Need segment names like test-17-24.mp3, test-17-26.mp3, ..., Actual first segment is named as current time, no extra segments created

    $ date
    Tue May 12 06:52:04 MSK 2015
    $ ffmpeg -y -i test.mp3 -map 0 -c copy -f segment -segment_time 120 -reset_timestamps 1 -strftime 1 '1/test-%H-%M.mp3'
    ffmpeg version N-72058-g3ecc063 Copyright (c) 2000-2015 the FFmpeg developers
    Input #0, mp3, from 'test.mp3':
     Duration: 05:45:05.94, start: 0.000000, bitrate: 171 kb/s
       Stream #0:0: Audio: mp3, 48000 Hz, stereo, s16p, 171 kb/s
    [segment @ 000000000051d560] Codec for stream 0 does not use global headers but container format requires global headers
    Output #0, segment, to '1/test-%H-%M.mp3':
     Metadata:
       encoder         : Lavf56.33.100
       Stream #0:0: Audio: mp3, 48000 Hz, stereo, 171 kb/s
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    size=N/A time=00:13:07.87 bitrate=N/A
    video:0kB audio:16211kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    $ ls 1
    test-06-52.mp3
    $
  • Debugging an MP4 opened by VLC but not by ffplay

    15 mai 2017, par MaMazav

    I’m writing a code which creates MP4 files. To check it I’ve created an MP4 file.

    The file is played correctly by VLC and Firefox, but not by ffplay or by Chrome. I guess the file contains error which VLC can cope with but more aggressive MP4 reader cannot.

    I’ve thought about repairing the file and check what are the differences to fix my code. However I tried some programs to repair MP4 files, without success until now.

    Can someone reccommend another way to debug the problem, or a good tool to fix MP4 files ? The file is a fragmented MP4 contains both the init section (ftyp, moov boxes) and one fragment section (moof and empty sidx).

    Here is the video file :

    https://www.dropbox.com/s/rojxzvkfxfj31u8/400k00001-3_serialized.mp4?dl=0

    EDIT : It doesn’t work also in Firefox, when using Media Source Extensions like in this example :
    http://people.mozilla.org/ jyavenard/tests/mse_mp4/paper.html

    (don’t forget to enable MSE on Firefox, as explained here :
    http://www.linuxveda.com/2015/04/02/enable-mse-native-html5-support-firefox-linux/)

    EDIT2 : In chrome ://media-internals, I see the following error with the above example :
    Append : stream parsing failed. Data size=131072 append_window_start=0 append_window_end=inf

    (Change the URL to be the file and change the codec to be ’avc1.4d401f’ instead of ’avc1.64000d,mp4a.40.2’).

  • Convert image sequence to video using ffmpeg and list of files

    13 mai 2015, par rensa

    I have a camera taking time-lapse shots every 2–3 seconds, and I keep a rolling record of a few days’ worth. Because that’s a lot of files, I keep them in subdirectories by day and hour :

    images/
       2015-05-02/
           00/
               2015-05-02-0000-02
               2015-05-02-0000-05
               2015-05-02-0000-07
           01/
               (etc.)
       2015-05-03/

    I’m writing a script to automatically upload a timelapse of the sunrise to YouTube each day. I can get the sunrise time from the web in advance, then go back after the sunrise and get a list of the files that were taken in that period using find :

    touch -d "$SUNRISE_START" sunrise-start.txt
    touch -d "$SUNRISE_END" sunrise-end.txt
    find images/"$TODAY" -type f -anewer sunrise-start.txt ! -anewer sunrise-end.txt

    Now I want to convert those files to a video with ffmpeg. Ideally I’d like to do this without making a copy of all the files (because we’re talking 3.5 GB per hour of images), and I’d prefer not to rename them to something like image000n.jpg because other users may want to access the images. Copying the images is my fallback.

    But I’m getting stuck sending the results of find to ffmpeg. I understand that ffmpeg can expand wildcards internally, but I’m not sure that this is going to work where the files aren’t all in one directory. I also see a few people using find’s --exec option with ffmpeg to do batch conversions, but I’m not sure if this is going to work with image sequence input (as opposed to, say, converting 1000 images into 1000 single-frame videos).

    Any ideas on how I can connect the two—or, failing that, a better way to get files in a date range across several subdirectories into ffmpeg as an image sequence ?