Recherche avancée

Médias (0)

Mot : - Tags -/clipboard

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (48)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

Sur d’autres sites (3012)

  • Batch file runs in some folder and not others [duplicate]

    10 novembre 2020, par user1738673

    Final update : I have determined code that works in all folders, even those with lots of parentheses. It is as follows :

    


    FOR %%# IN ("*.flac") DO (Title %~nx0 Processing: %%~nx# 
            ffmpeg -i "%%~nx#" -ab 192k -map_metadata 0 -id3v2_version 3 "%%~n#.mp3"
            IF NOT ERRORLEVEL 1 IF EXIST "%%~nx#" DEL /q "%%~nx#")

ECHO Completed %~nx0

PAUSE


    


    The reason for the failure was a combination of parentheses in the folder names and hyphens in the filenames. The most important part of the final code is the double quotes. This resolved the problem with hyphens in the filename. It turned out to not be necessary to have cd /D "%~dp0." as the first line, so I removed it from the code. Thank you to everyone for all of your suggestions. I really appreciate the help and I am glad this was completely resolved.

    


    History Starts here :

    


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

    


    cd /D "%~dp0."

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


    


    Here are my current troubleshooting steps as completed :

    


    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.

    


    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.

    


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

    


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

    


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

    


    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.

    


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

    


    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.

    


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

    


    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.

    


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

    


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

    


    Original Post Starts Here :

    


    I am using Windows 10 Pro on my home PC.

    


    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 :

    


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


    


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

    


    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.

    


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

    


    What else should I be looking into ?

    


  • Why reading line by line and feeding ffmpeg removes leading character gradually ? [closed]

    27 juillet 2021, par Ibn Fulan

    As I was answering this question, I tried two ways to read my script to read timestamps line by line.

    


    #! /bin/bash
x="00:00:00"
z=0
filename=$(basename -- "$2")
ext="${filename##*.}"
while read y
do
echo $x
ffmpeg -hide_banner -loglevel error -i $2  -ss $x -to $y -c copy $filename$z.$ext
let "z=z+1"
x=$y 
done < $1



    


    And

    


    #! /bin/bash
x="00:00:00"
z=0
filename=$(basename -- "$2")
ext="${filename##*.}"
while IFS=, read -r y
do
echo $x
ffmpeg  -hide_banner -loglevel error -i $2  -ss $x -to $y -c copy $filename$z.$ext
let "z=z+1"
x=$y 
done < $1



    


    From this file

    


    00:02:30
00:04:40
00:07:00
00:09:00 
00:10:00


    


    In both they gradually start omitting first letter and then again start reading them

    


    00:00:00
00:02:30
0:04:40
0:07:00
:09:00 
00:10:00


    


    What's the proper way to read the file ?

    


  • Next drawtext clears the previous one ffmpeg

    27 août 2021, par Макс Шульдинер
    ffmpeg.exe -i ffmpeg_inputs/zheltiy_chelik.mp4  -vf "[in]drawtext=fonts/Temporarium.otf:text='r':fontcolor=orange:fontsize=100:x=(w-text_w)/2+0:y=0:enable='between(t,0, 11)', drawtext =fonts/Temporarium.otf:text = 'r':fontcolor=orange:fontsize=100:x=(w-text_w)/2+20:y=0:enable='between(t,11, 22)', drawtext =fonts/Temporarium.otf:text = 'r':fontcolor=orange:fontsize=100:x=(w-text_w)/2+40:y=0:enable='between(t,22, 33)'[out]" ffmpeg_outputs/test2.mp4 -y 


    


    There is such a ffmpeg line. Its meaning is to draw a letter 20 pixels to the right of the current position of the word every 11 seconds, and in this way "write the word". But here's the problem - when the second letter starts to render, it overwrites the first, and the third, respectively, overwrites the second. The string seems to have prescribed [in] and [out] but does not help, maybe someone has ideas