Recherche avancée

Médias (0)

Mot : - Tags -/content

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

Autres articles (64)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (12312)

  • do something with script output

    3 novembre 2017, par Opolo Webdesign

    I’m lazy :) so I would like to automate some things on my network. Currently I’m running a script that automatically downloads the series I watch every week. Based on what is downloaded another script searches the web for subtitles. Some downloads however have subtitles with them, so searching for subtitles is not necessary. I would like to check every download for subtitles and get notified (or better move the file) if the file has the correct subtitles.

    I started with the following :

    find /volume2/Downloads/ -type f -mmin -30 | while IFS= read -r file; do
       ffmpeg -i "${file}"
    done

    This works and shows me the output of the ffmpeg command for each file newer than 30 minutes. I would like to work with the result given by ffmpeg so that when certain characters are present in the output, I’m notified via mail. My Linux scripting skills however stop at the script I got. I’m a web developer so I understand the logic behind a script like this, but not the specific code or commands.

    Characters that I’m looking for :

    • (eng) : Subtitle :
    • (dut) : Subtitle :

    Can this be done ?

    Edit :

    I did some more research and did some changes to my script :

    find /volume2/Downloads/ -type f -mmin -60 | while IFS= read -r file; do
       if ffmpeg -i "${file}" | grep -q '(dut): Subtitle:'; then
           echo "matched"
       fi
    done

    Instead of "matched" it shows the ffmpeg output, but it’s probably a step in the right direction ?

  • FFMPEG - how to convert large file to much smaller file to view on LG smart TV

    18 juin 2019, par PAW

    I have edited a home movie thru Davinci Resolve and the output has been rendered/saved on my PC. For some strange reason it seems huge and nothing will play it (apart from within Resolve itself) and none of my conversion software will convert it from the huge file to something smaller I can watch on my LG smart TV (handbrake, video converter).

    I downloaded FFMPEG and installed it, then ran a command to examine the file. Results posted here. Does this mean that FFMPEG has found the codec and I can convert it ? and has anyone any suggestions on what to convert it to ?

    Many thanks

    ffmpeg -i C:\Users\PAW\Videos\Resolve\untitled.mov

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Users\PAW\Videos\Resolve\untitled.mo
    v':

     Metadata:

       major_brand     : qt
       minor_version   : 512
       compatible_brands: qt
       encoder         : Lavf57.25.100

    Duration: 01:09:43.81, start: 0.000000, bitrate: 390431 kb/s
       Stream #0:0(eng): Video: dnxhd (DNXHR 444) (AVdh / 0x68645641), yuv444p12le(
    tv, bt709/unknown/unknown), 1280x720, 388894 kb/s, 59.94 fps, 59.94 tbr, 60k tbn
    , 60k tbc (default)

       Metadata:
         handler_name    : Core Media Data Handler
         timecode        : 01:00:00:00
       Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s1
    6, 1536 kb/s (default)
       Metadata:
         handler_name    : Core Media Data Handler
       Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
       Metadata:
         handler_name    : Core Media Data Handler
         timecode        : 01:00:00:00
  • Bash : bash script to download trimmed mp3 from youtube url

    25 août 2017, par Bhishan Poudel

    I would like to download the initially x seconds trimmed mp3 from a video url of youtube.
    I found that youtube-dl can download the video from youtube to local machine. But, when I looked at the man pages of youtube-dl, I could not find any trim options.

    So I tried to use the ffmpeg to trim downloaded mp3 file.
    Instead of doing this is two steps, I like to write one bash script which does the same thing.
    My attempt is given below.

    However, I was stuck at one place :
    "HOW TO GET THE VARIABLE NAME OF OUTPUT MP3 FILE FROM YOUTUBE-DL ?"
    The script is given below :

    # trim initial x seconds of mp3 file
    # e.g. mytrim https://www.youtube.com/watch?v=dD5RgCf1hrI 30
    function mytrim() {
       youtube-dl --extract-audio --embed-thumbnail --audio-format mp3 -o "%(title)s.%(ext)s" $1
       ffmpeg -ss $2 -i $OUTPUT_MP3 -acodec copy -y temp.mp3
       mv temp.mp3 $OUTPUT_MP3
       }

    How to get the variable value $OUTPUT_MP3 ?
    echo "%(title)s.%(ext)s" gives the verbatim output, does not give the output filename.

    How could we make the script work ?

    The help will be appreciated.