Recherche avancée

Médias (1)

Mot : - Tags -/wave

Autres articles (77)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

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

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

Sur d’autres sites (9130)

  • split videos with ffmpeg

    23 novembre 2020, par 5Diraptor

    I'm trying to create a script that scans a directory, and for all videos larger then X size, splits them down into smaller chunks.

    


    There are two similar questions :

    


    


    Neither of these work in the way I want. The first you have to manually input every file that you want to process. The second doesn't check for filesize, or output the files in the way I want.

    


    So far, this is the contents of the .bat file :

    


    %~d1&#xA;&#xA;for %%a in (*.MOV) do (&#xA;&#xA;if %%~za GTR 2000000000 (&#xA;&#xA;REM usage %%a <filename>&#xA;set "_filename=%~n1"&#xA;set "_tally=.SPLIT-%03d"&#xA;set "_extension=%~x1"&#xA;&#xA;set "_outputname=%_filename%%_tally%%_extension%"&#xA;&#xA;&#xA;    ffmpeg -i "%%a" ^&#xA;        -crf 0 -c copy -map 0 -segment_time 00:00:30 -f segment -reset_timestamps 1 ^&#xA;        %_outputname%&#xA;)&#xA;)&#xA;pause&#xA;</filename>

    &#xA;

    My aim is for the script to work in the following way :

    &#xA;

      &#xA;
    1. Drag a video (from a folder of videos) onto the .bat file.
    2. &#xA;

    3. Script opens up, and targets each file ending .MOV, and is greater then 2GB
    4. &#xA;

    5. ffmpeg splits the video down into >2GB chunks. (I know it's currently split down in 30 second chunks, still working on understanding how to use the -fs parameter).
    6. &#xA;

    7. Each chunk gets saved with the original filename and extension, but the filename is suffixed with ".SPLIT" and then a unique number that relates to which file it is - first file is 000 and second is 001 etc.
    8. &#xA;

    &#xA;

    Problems :

    &#xA;

      &#xA;
    • Firstly, I want to split by filesize and not time, but I don't understand how to use the -fs parameter in this case. I guess I could use something like ffprobe -i input.file -show_format -v quiet | sed -n &#x27;s/duration=//p&#x27; in conjunction with it but I'm not confident...
    • &#xA;

    • Secondly, I'm getting a problem with %03d in the .bat. Think I'm mixing up languages ? It retrieves the filepath of the .bat file instead of counting number of loops.
    • &#xA;

    &#xA;

    Any help really appreciated !

    &#xA;

  • Batch file runs on one folder and not the next [closed]

    9 novembre 2020, par user1738673

    Who Closed this question before it was resolved ?!? How can I get it reopened ?

    &#xA;

    After all of the suggestions, here is the code to run in the folder of flac files :

    &#xA;

    cd /D "%~dp0."&#xA;&#xA;FOR %%# IN ("*.flac") DO (Title %~nx0 Processing: %%~nx#&#xA;                ffmpeg -i "%%~nx#" -ab 192k -map_metadata 0 -id3v2_version 3 "%%~n#.mp3")&#xA;                    &#xA;ECHO Completed %~nx0&#xA;PAUSE&#xA;

    &#xA;

    Here are my current troubleshooting steps as completed :

    &#xA;

    I renamed the files in one of the folders in which it does not run to "a.flac", "b.flac", "c.flac", etc. That is to make sure it is not a filename related problem. It did not run.

    &#xA;

    I renamed the folder itself to a single letter to make sure it was not a folder name issue (F :\MUSIC\j). It did not run.

    &#xA;

    I copied the entire folder and gave it a new single-letter name (F :\MUSIC\y). It did not run.

    &#xA;

    I copied the files to a newly-created single-letter named folder at the same directory level (F :\MUSIC\d). It did not work.

    &#xA;

    I copied the flac files and bat file from the single-letter folder to a newly created single-letter folder. It did not run.

    &#xA;

    So, I went back the original folder and RENAMED MY .bat FILE from single folder - flac to 192.bat to 192.bat. It ran perfectly.

    &#xA;

    I went back and renamed the .bat file in all folders described above. They all ran perfectly.

    &#xA;

    Next, I renamed my master .bat file to single_folder_flac_to_192.bat. I ran it in the original file folder with all of the original names for folder and files. It ran perfectly.

    &#xA;

    I then copied it into each of the folder described above. It ran perfectly.

    &#xA;

    I then went back to my original code and renamed it to 192a.bat. This still did not run in the original folder, but ran perfectly in the others I created.

    &#xA;

    So, I renamed my original folder from 'F :\MUSIC\Yanni - Live At The Acropolis (1994) [FLAC]toylata`. It did not run.

    &#xA;

    That is all I have time for before needing to go to work. More at lunch time.

    &#xA;

    Original Post Starts Here :

    &#xA;

    I am using Windows 10 Pro on my home PC.

    &#xA;

    I have a batch file which uses ffmpeg to create mp3 from flac and then delete the flac. It runs perfectly in most folders of music. The code is here :

    &#xA;

    FOR %%a IN ("*.flac") DO (Title %~0 Processing: %%~na.flac&#xA;            ffmpeg -i "%%~na.flac" -ab 192k -map_metadata 0 -id3v2_version 3 "%%~na.mp3"&#xA;            if not errorlevel 1 if exist "%%~pna.flac" del /q "%%~pna.flac")&#xA;ECHO Completed %~n0&#xA;PAUSE&#xA;                 &#xA;

    &#xA;

    In some folders, when I run the batch, it just blinks and goes away. Yes- there are flac files in the folders.

    &#xA;

    I have checked the different music folders for their properties (read only, access, etc.) and they look identical. The file names are "normal". It doesn't matter which drive I copy the folder into, the results are the same.

    &#xA;

    I have run the file as Administrator and get the same result.

    &#xA;

    What else should I be looking into ?

    &#xA;

  • ffmpeg - correctly handling misaligned audio/video input stream before outputting to rtmp

    4 décembre 2020, par hedgehog90

    I use a video player called MPV to transcode a dynamic playlist of media files.

    &#xA;

    I pipe MPV's encoded output into FFMPEG and format it for rtmp delivery.

    &#xA;

    However the playlist may contain media with misaligned audio and video, ie - the audio track may be shorter / longer than the video track.

    &#xA;

    No matter what MPV will only output what it's given. So if my media file has audio that is 1 second long and video that is 2 seconds long, it will output a media stream with exactly the same misalignment, rather than generating null audio or skipping to the next item in the playlist when it first encounters an active stream ending (eof).

    &#xA;

    For example, assuming my playlist was full of problematic media where the audio and video of each file was misaligned :

    &#xA;

    enter image description here

    &#xA;

    If I output this media stream to a popular streaming service's server, it could lead to stuttering and/or loss of a/v sync.&#xA;Similarly, if I output this media stream to a file and played it back in MPV or another video player, the result appears to be more like this :

    &#xA;

    enter image description here

    &#xA;

    I have tried to fix this in MPV in all sorts of ways, trying every relevant command line option available. I even wrote a user script that detects 'eof' audio and skips to the next item in the playlist, but it is not fast enough and still leads to small gaps of audio.

    &#xA;

    So my only hope is correcting it in ffmpeg. In the event of null audio/video, I need a fallback or a generative filter that can fill these empty gaps with silence (audio) or a colour/image (video).

    &#xA;

    I'm open to any ideas, and if my understanding in a/v encoding is a little off please educate me.

    &#xA;