Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (60)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (8206)

  • timelapse images into a movie, 500 at a time

    2 mars 2017, par molly78

    I am trying to make a script to turn a bunch of timelapse images into a movie, using ffmpeg.

    The latest problem is how to loop thru the images in, say, batches of 500.

    There could be 100 images from the day, or there could be 5000 images.

    The reason for breaking this apart is due to running out of memory.

    Afterwards I would need to cat them using MP4Box to join all together...

    I am entirely new to bash, but not entirely programming.

    What I think needs to happen is this

    1) read in the folders contents as the images may not be consecutively named

    2) send ffmpeg a list of 500 at a time to process (https://trac.ffmpeg.org/wiki/Concatenate)

    2b) while you’re looping thru this, set a counter to determine how many loops you’ve done

    3) use the number of loops to create the MP4Box cat command line to join them all at the end.

    the basic script that works if there’s only say 500 images is :

    #!/bin/bash

    dy=$(date '+%Y-%m-%d')

    ffmpeg -framerate 24 -s hd1080 -pattern_type glob -i "/mnt/cams/Camera1/$dy/*.jpg" -vcodec libx264 -pix_fmt yuv420p Cam1-"$dy".mp4

    MP4Box’s cat command looks like :

    MP4Box -cat Cam1-$dy7.mp4 -cat Cam1-$dy6.mp4 -cat Cam1-$dy5.mp4 -cat Cam1-$dy4.mp4 -cat Cam1-$dy3.mp4 -cat Cam1-$dy2.mp4 -cat Cam1-$dy1.mp4 "Cam1 - $dy1 to $dy7.mp4"

    Needless to say help is immensely appreciated for my project

  • Extracting MP3 Data from Generic Movie Files using FFMPEG

    21 février 2017, par MoonKnight

    I am using FFMPEG via MediaToolkit to extract MP3 data (to .mp3 file) from different movie files (merely .mp4 and .mov for now).

    MediaToolkit is just a C# wrapper for FFMPEG which calls FFMPEG via Process.Start, so to do this I am using the method

    public static string GenerateMp3FromVideoFile(string filePath)
    {
       string mp3Path = String.Empty;
       using (var engine = new Engine())
       {
           mp3Path = Path.GetFileNameWithoutExtension(filePath);
           mp3Path = Path.Combine(Utils.GetBuildRoamingAppDataDirectory(), mp3Path);
           mp3Path = Path.ChangeExtension(mp3Path, ".mp3");
           string paramString = String.Format(
               //"-i \"{0}\" -q:a 0 -map a \"{1}\"",
               //"-i \"{0}\" -ar 320K \"{1}\"",
               //"-i \"{0}\" -acodec libmp3lame -ar 44100 -b:a 192k -id3v2_version 3 -write_id3v1 1 \"{1}\"",
               //"-i \"{0}\" -vn -ar 44100 -ac 2 -ab 192k -f mp3 \"{1}\"",
               "-i \"{0}\" -acodec libmp3lame \"{1}\"",
               filePath,
               mp3Path);
           engine.CustomCommand(paramString);
       }
       return mp3Path;
    }

    All of the options I have tried above for the command line arguments passed to FFMPEG have worked for .mp4 video files and create the desired .mp3 output. However, for the .mov file I have I am getting the following System.Exception

    69 : video:0kB audio:1059kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead : 0.030074%Conversion failed !

    I have tried a number of different methods to perform this extraction with varing control via the arguments passed to FFMPEG, but with no luck for the .mov file.

    Looking at https://linuxconfig.org/ffmpeg-audio-format-conversions it seems as though there is not conversion to MP3 from .mov files, so I have looked at first converting the .mov to .mp4 via

    ffmpeg -i mymovie.mov -vcodec copy -acodec copy out.mp4

    and then extracting the audio, but this is expensive for large files. Is there a way of extracting the MP3 data directly from the .mov file ?

    Thanks for your time.


    When the above command is run from FFMPEG.exe, the output is :

    [aac @ 00000000021b00a0] Inconsistent channel configuration.
    [aac @ 00000000021b00a0] get_buffer() failed
    Error while decoding stream #0:1 : Invalid argument
    [aac @ 00000000021b00a0] Reserved bit set.
    [aac @ 00000000021b00a0] Number of bands (6) exceeds limit (5).
    Error while decoding stream #0:1 : Invalid data found when processing input
    [aac @ 00000000021b00a0] Number of bands (16) exceeds limit (13).
    Error while decoding stream #0:1 : Invalid data found when processing input
    [aac @ 00000000021b00a0] channel element 3.7 is not allocated
    Error while decoding stream #0:1 : Invalid data found when processing input
    [aac @ 00000000021b00a0] channel element 3.8 is not allocated
    Error while decoding stream #0:1 : Invalid data found when processing input
    [aac @ 00000000021b00a0] Reserved bit set.
    [aac @ 00000000021b00a0] TNS filter order 28 is greater than maximum 12.
    Error while decoding stream #0:1 : Invalid data found when processing input
    [aac @ 00000000021b00a0] Number of bands (26) exceeds limit (18).
    Error while decoding stream #0:1 : Invalid data found when processing input
    [aac @ 00000000021b00a0] Sample rate index in program config element does not match the sample rate index configured by
    the container.
    [aac @ 00000000021b00a0] Too large remapped id is not implemented. Update your FFmpeg version to the newest one from Git
    . If the problem still occurs, it means that your file has a feature which has not been implemented.
    [aac @ 00000000021b00a0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and cont
    act the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
    Error while decoding stream #0:1 : Not yet implemented in FFmpeg, patches welcome
    [aac @ 00000000021b00a0] Reserved bit set.
    [aac @ 00000000021b00a0] Prediction is not allowed in AAC-LC.
    Error while decoding stream #0:1 : Invalid data found when processing input
    [aac @ 00000000021b00a0] Reserved bit set.
    [aac @ 00000000021b00a0] ms_present = 3 is reserved.
    Error while decoding stream #0:1 : Invalid data found when processing input
    [aac @ 00000000021b00a0] Number of bands (3) exceeds limit (2).
    Error while decoding stream #0:1 : Invalid data found when processing input
    [aac @ 00000000021b00a0] SBR was found before the first channel element.
    [aac @ 00000000021b00a0] channel element 3.14 is not allocated
    Error while decoding stream #0:1 : Invalid data found when processing input
    [aac @ 00000000021b00a0] Sample rate index in program config element does not match the sample rate index configured by
    the container.

  • doc : clarify option on looping infinitely in movie filter

    2 février 2017, par Werner Robitza
    doc : clarify option on looping infinitely in movie filter
    

    Clarify that setting loop=0 is required to make the stream loop infinitely, rather than saying that a value "less than 1" is needed.

    Signed-off-by : Lou Logan <lou@lrcd.com>

    • [DH] doc/filters.texi