Recherche avancée

Médias (0)

Mot : - Tags -/formulaire

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

Autres articles (90)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (6789)

  • Downloading a video from youtube and convert to MP4

    26 mars 2019, par Ghomrani Ilyes

    I created a script to download a youtube video and extract an images from it for each period

    screenshotvideo

    def screenshotvideo(url, interval, id, fullduration, title, quality):
       interval = int(interval)
       parsed_t = isodate.parse_duration(fullduration)
       durationseconds=parsed_t.total_seconds()
       iterat=int(durationseconds/int(interval))
       for i in range(0, iterat):
           print(str(id))
           print(str(i))
           print(str(i*interval))
           part(url, time.strftime('%H:%M:%S', time.gmtime(int(i*interval))), "00:00:01", title+"-"+str(id), quality)

    part

    def part(url, starttime, duration, name, quality):
       f = os.popen("ffmpeg $(youtube-dl -f "+quality+" -g '"+url+"' | sed 's/.*/-ss "+starttime+" -i &/') -t "+duration+" -c copy "+name+".mp4")
       now = f.read()
       print(now)
       f = os.popen("ffmpeg -i "+name+".mp4 -ss 00:00:00 -vframes 1 "+name+".jpg")
       now = f.read()
       print(now)
       f = os.popen("rm -rf "+name+".mp4")
       now = f.read()
       print(now)

    so i got the folowing error in the first ffmpeg command

    [mp4 @ 0x55d537f64240] Could not find tag for codec vp8 in stream #0, codec not currently supported in container.

    Could not write header for output file #0 (incorrect codec parameters ?) : Invalid argument

  • 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
  • Combining Youtube-dl and FFMPEG not working

    13 juillet 2019, par user1029296

    I am trying to download 5 second samples for a list of youtube video. The traditional approach is to download the entire file with "youtube-dl" and then use "ffmpeg" to split it however you want it.

    I am trying to use the following method : https://github.com/ytdl-org/youtube-dl/issues/622#issuecomment-162337869

    It does work when I include the variables in the command, for example :

    ffmpeg -ss 0 -i $(youtube-dl -f best --get-url https://www.youtube.com/watch?v=ySVi-0RS5vI&t=5s) -t 10 -c:v copy -c:a copy title2.mp4

    However, I am having issues trying to automate the system. Specifically, I would like ffmpeg and youtube-dl to read a file and use the values. I created the file "youtube.txt" which includes the following codes :

    440.8,https://www.youtube.com/watch?v=0-4wOE_DNeA,661.2,881.6,0-4wOE_DNeA
    330,https://www.youtube.com/watch?v=0-AMWW6tHzw,495,660,0-AMWW6tHzw
    509.2,https://www.youtube.com/watch?v=0-Rmto2rgMw,763.8,1018.4,0-Rmto2rgMw
    427.6,https://www.youtube.com/watch?v=0-U53qm45cA,641.4,855.2,0-U53qm45cA
    320.4,https://www.youtube.com/watch?v=0-dja9Ys4Sg,480.6,640.8,0-dja9Ys4Sg
    343.6,https://www.youtube.com/watch?v=0-g_PulsqtM,515.4,687.2,0-g_PulsqtM
    415.6,https://www.youtube.com/watch?v=0-nniRyn7dU,623.4,831.2,0-nniRyn7dU
    431.2,https://www.youtube.com/watch?v=006BQU3BFxw,646.8,862.4,006BQU3BFxw

    I am using the following command :

    parallel -j 6 --colsep ',' ffmpeg -ss {1} -i $(youtube-dl -f best --get-url {2}) --t 5 -c:v copy -c:a copy {5} :::: youtube.txt

    However, I get the following errors :

    ERROR: '{2}' is not a valid URL. Set --default-search "ytsearch" (or run  youtube-dl "ytsearch:{2}" ) to search YouTube
    --t: No such file or directory

    Would you mind helping me ?

    Thanks !