Recherche avancée

Médias (91)

Autres articles (34)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (3373)

  • Python/FFMPEG command line issues

    5 octobre 2011, par 12hys

    I have a problem with running an FFMPEG command from within a Python script. When I run the following command from the terminal, I can stream video and audio from my attached webcam (Logitech C310) and output to file "out.avi" without any errors.

    ffmpeg -f alsa -i default -itsoffset 00:00:00 -f video4linux2 -s 1280x720 -r 25 -i /dev/video0 out.avi

    When I run the same command in a Python script below,

    def call_command(command):
       subprocess.Popen(command.split(' '))

    call_command("ffmpeg -f alsa -i default -itsoffset 00:00:00 -f video4linux2 -s 1280x720 -r 25 -i /dev/video0 out.avi")

    it gives me the error :

    Input #0, alsa, from 'default':
     Duration: N/A, start: 1317762562.695397, bitrate: N/A
     Stream #0.0: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s
    [video4linux2 @ 0x165eb10]Cannot find a proper format for codec_id 0, pix_fmt -1.
    /dev/video0: Input/output error

    Could anyone shed some light on what could be going on here ? I've tried using os.system() as well as subprocess.call() and it gives me the same errors. I'm not sure where to start on what could be going wrong here. I tried searching for the "video4linux2 Cannot find a proper format for codec_id 0, pix_fmt -1" error, but couldn't find anything consistent.

    I've also tried putting the "ffmpeg -f..." command in a shell script "test.sh", and giving it executable permissions. I then open terminal, and run "./test.sh", and it works. When I try calling the command "./test.sh" from within my Python script, I'm left with the original error as before. This is the Python command I tried with the test.sh script :

    subprocess.call(["./test.sh"])
  • m3u8 on ios and safari, firefox

    9 octobre 2013, par user2741735

    I'm implementing the HTTP Live Streaming protocol. I have successfully created .ts and .m3u8 files using ffmpeg and mediastreamsegmenter(using terminal) from IP Camera input. Now, when I play these files on ios using MPMoviePlayerViewController the m3u8 file doesn't play. Do I need to do some additional stuffs to play these files so that the simulator and browser could understand those file types.

  • Bash : FFmpeg : Automate Album Art Tagging

    8 septembre 2021, par Brett Sjoholm

    Every one of my music folders are set up like Artist > Year Album >

    


    Track 01.flac
Track 02.flac
Track 03.flac
folder.jpg, jpeg, png, etc


    


    And what I need to do is if folder.* is available.

    


    if [ -f folder.* ]; then


    


    Run this command to set smaller size without replacing the original photo.

    


    for small in folder.*
convert $small -resize 1000x1000 temp$small


    


    Then run these commands on every file to automatically add the smaller sized cover to each audio file's tagging.

    


    ffmpeg -i TRACK.flac -i SMALLFOLDER.* -map a -map 1:v -disposition:v attached_pic -metadata:s:v comment="Cover (Front)" -codec copy TRACKWITHART.flac
&& rm TRACK.flac
&& mv TRACKWITHART.flac TRACK.flac
&& rm temp$small


    


    Last little bit there is me cleaning up. I'm having trouble piping commands into one another with this and not the most experienced with that sort of thing.

    


    And also, if it's not available like above, will need to extract it from the first audio file by finding it.

    


    else
find . -name "*.flac" -print -quit 


    


    And extracting it with this command.

    


    ffmpeg -i TRACK.flac -vf scale=1000:1000 -an FOLDER.png


    


    Then run the other commands above.

    


    Now I don't know if anyone is familiar with FFmpeg but it's actually kind of nightmare because it's not necessarily for audio tagging but I don't know anything else to handle this kind of automated album art task in the terminal. If anyone can point me more in the right direction with a better CLI utility, that'd be awesome or just help with this bash scripting. You can see I'm fairly familiar with the terminal and getting some things done by searching the web but putting them altogether in a bash script is very difficult for me to understand, if anyone has some links for specifically this, that would be much appreciated.