Recherche avancée

Médias (0)

Mot : - Tags -/page unique

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

Autres articles (5)

  • Utilisation et configuration du script

    19 janvier 2011, par

    Informations spécifiques à la distribution Debian
    Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
    Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
    Récupération du script
    Le script d’installation peut être récupéré de deux manières différentes.
    Via svn en utilisant la commande pour récupérer le code source à jour :
    svn co (...)

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

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (2703)

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

    


    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]toylata`. 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 ?

    


  • Evolution #3336 : Amélioration sitemap.xml.html pour gestion des sites multilingues

    6 novembre 2014

    Oué vas-y Guillaume : si le sitemap est préservé pour le monolinguisme et roxe pour le multilinguisme, c’est un plus sans effet de bord non ? Un peu comme les back-end, ça fait partie de la dist mais c’est technique quoi. Gogogo ;-)

  • How to successfully parse the output of FFMpeg in NodeJS

    28 juillet 2022, par Dahknee

    So I have seen a lot of topics on FFMPeg and it's a great tool I learnt about today, but I have spent the day perfecting the command and now am a little stuck with the NodeJS part.

    



    In essence the command does the following : take input from a Mac OSX webcam, and then stream it to a web-socket. Now I looked at a lot of the NodeJS libraries but I couldn't find one that did what I need ; or did not understand how to. Here is an example of the command that I am using :

    



    ffmpeg -f avfoundation -framerate 30 -video_size 640x480 -pix_fmt uyvy422 -i "0:1" -f mpegts -codec:v mpeg1video -s 640x480 -b:v 1000k -bf 0 http://localhost:8081/stream


    



    This does everything I need for the streaming side of things, but I wish to call it via NodeJS, and then be able to monitor the log, and parse the data that comes back for example :

    



    frame= 4852 fps= 30 q=6.8 size=   30506kB time=00:02:41.74 bitrate=1545.1kbits/s speed=   1x    \r


    



    and use it to get a JSON array back for me to output to a webpage.

    



    Now all I am doing is working on ways of actually parsing the data, and I have looked at lots of other answers for things like this, but I can't seem to split/replace/regex it. I can't get anything but a long string from it.

    



    Here is the code I am using (NodeJS) :

    



    var ffmpeg = require('child_process').spawn('/usr/local/Cellar/ffmpeg/3.3.1/bin/ffmpeg', ['-f', 'avfoundation', '-framerate', '30', '-video_size', '640x480', '-pix_fmt', 'uyvy422', '-i', '0:1', '-f', 'mpegts', '-codec:v', 'mpeg1video', '-s', '640x480', '-b:v', '1000k', '-bf', '0', 'http://localhost:8081/test']);

ffmpeg.on('error', function (err) {
    console.log(err);
});

ffmpeg.on('close', function (code) {
    console.log('ffmpeg exited with code ' + code);
});

ffmpeg.stderr.on('data', function (data) {
    // console.log('stderr: ' + data);
    var tData = data.toString('utf8');
    // var a = tData.split('[\\s\\xA0]+');
    var a = tData.split('\n');
    console.log(a);
});

ffmpeg.stdout.on('data', function (data) {
    var frame = new Buffer(data).toString('base64');
    // console.log(frame);
});


    



    I have tried splitting with new lines, carridge return, spaces, tabs, but I just can't seem to get a basic array of bits, that I can work with.

    



    Another thing to note, is you will notice the log comes back via stderr, I have seen this online and apparently it does it for a lot of people ? So I am not sure what the deal is with that ? but the code is is the sdterr callback.

    



    Any help is very appreciated as I am truly confused on what I am doing wrong.

    



    Thanks.