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 (62)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, 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 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 (...)

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

Sur d’autres sites (11682)

  • Evolution #2608 : visiteurs

    18 octobre 2017, par Fil _

    Je ne comprends pas non plus, et j’aimerais au moins que le menu disparaisse si on n’a pas de visiteurs.

  • How can I remove downloaded video file after merging video and audio ?

    11 mai 2019, par Locke Jet

    I downloaded 1080p video from youtube using youtube-dl. Video file (.f137.mp4) and audio files (f140.m4a) were downloaded. Them ffmpeg merged the video file and the audio file to mp4 file(.mp4). I want to keep the .f140.m4a file and the .mp4 file, while remove the f137.mp4 file. How can I do ?

    I tried the —exec option in the youtube-dl, but it failed.

    These were my commands :

    root@OMV:~/youtube-dl# cat dl-test.sh
    DL_DIR="/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007"
    ALBUM="Test"
    mkdir -p "$DL_DIR/$ALBUM"
    youtube-dl --batch-file  /root/youtube-dl/url-test.list --download-archive /root/youtube-dl/archive-test.list                           \
    -f  'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio'                                 \
    --write-sub --embed-sub --all-subs                                                              \
    --embed-thumbnail --add-metadata                                                                \
    -o "$DL_DIR/$ALBUM/%(title)s.%(ext)s"                                                           \
    --exec "rm "$(ls {} | cut -d . -f1)""

    The result were :

    root@OMV:~/youtube-dl# ./dl-test.sh
    ls: cannot access '{}': No such file or directory
    ...
    [ffmpeg] Merging formats into "/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4"
    ...
    [atomicparsley] Adding thumbnail to "/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4"
    [exec] Executing command: rm  '/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4'

    The .mp4 file was deleted, the .f137.mp4 file was still there. I got the opposite result.

    root@OMV:~/youtube-dl# ls '/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test'
    UpTown Spot.f137.mp4  UpTown Spot.f140.m4a

    Update 1 :
    I changed to

    --exec "rm "$(ls {} -1 | sed -n '/\.f[0-9]*\.mp4$/p')""

    It still remove the .mp4 file. The output was :

    root@OMV:~/youtube-dl# echo "" > "/root/youtube-dl/archive-test.list"
    root@OMV:~/youtube-dl# ./dl-test.sh
    ls: cannot access '{}': No such file or directory
    ...
    [download] /srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4 has already been downloaded and merged
    ...
    [exec] Executing command: rm  '/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4'

    Then changed it into :

    --exec "rm "$(ls -1 | sed -n '/\.f[0-9]*\.mp4$/p')""

    The ouput was almost the same :

    root@OMV:~/youtube-dl# ./dl-test.sh
    ...
    [exec] Executing command: rm  '/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4'

    I tested the normal expression in SHELL, it worked :

    root@OMV:~/youtube-dl# cd /srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test
    root@OMV:/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test# ls "$(ls  /srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test | sed -n '/\.f[0-9]*\.mp4$/p')"
    UpTown Spot.f137.mp4
    root@OMV:/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test# rm "$(ls  /srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test | sed -n '/\.f[0-9]*\.mp4$/p')"

    But the similar command running in the youtube-dl —exec option failed !

    Update 2 :
    It seemed that the cmd after pipeline would not be executed.

    root@OMV:~/youtube-dl# ./dl-test.sh
    + DL_DIR=/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007
    + ALBUM=Test
    + mkdir -p /srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test
    + youtube-dl --batch-file /root/youtube-dl/url-test.list --download-archive /root/youtube-dl/archive-test.list -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio' --write-sub --embed-sub --all-subs --embed-thumbnail --add-metadata -o '/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/%(title)s.%(ext)s' --exec 'ls | grep mp4'
    ...
    [exec] Executing command: ls | grep mp4 '/srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4'
    Binary file /srv/dev-disk-by-id-ata-QEMU_HARDDISK_QM00007/Test/UpTown Spot.mp4 matches
    ls: write error: Broken pipe
  • Bash : sort find results using part of a filename

    13 novembre 2015, par utt50

    I have 3 webcams set up in a building, uploading still images to a webserver. I’m using ffmpeg to encode the jpgs to mp4 video.

    The directories are set up like this :

    Cam1/201504
    Cam1/201505
    Cam2/201504
    Cam2/201505
    Cam3/201504
    Cam3/201505

    I’m using the following bash loop/ffmpeg parameters to make one video per camera, per year. This works well so far (well... except that my SSD is rapidly degrading in performance - too many simultaneous read/write operations ?) :

    find Cam2/2013* -name "*.jpg" -print0 | xargs -0 cat | ffmpeg -f image2pipe -framerate 30 -vcodec mjpeg -i - -vcodec libx264 -profile:v baseline -level 3.0 -movflags +faststart -crf 19 -pix_fmt yuv420p -r 30 "Cam2-2013-30fps-19crf.mp4"

    The individual files are named like this (confusing ffmpeg’s built-in file sequencer) :

    Cam1_2015052413543201.jpg
    Cam1_2015052413544601.jpg
    Cam2_2015052413032601.jpg
    Cam2_2015052413544901.jpg

    I now need to create one video for an entire year across all 3 cameras, ordered by timestamp. To accomplish this, I need to sort the find results by the segment of the filename after the underscore.

    What do I pipe the find output to to accomplish this ? For example, the files above would be ordered like this :

    Cam2_2015052413032601.jpg
    Cam1_2015052413543201.jpg
    Cam1_2015052413544601.jpg
    Cam2_2015052413544901.jpg

    Any help is very much appreciated !