Recherche avancée

Médias (91)

Autres articles (112)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

Sur d’autres sites (12380)

  • FFmpeg opening key info file - could not write header for output file

    13 mars 2021, par Hoang Nam

    I want muxer mp4 to m3u8 with key.
I can do this when I put all files in same directory.

    


      

    • File 480.mp4.key
    • 


    • File video 480.mp4
    • 


    • File hls info have name : "480.mp4.keyinfo"
    • 


    


    When I run the command ffmpeg -i 480.mp4 -hls_time 10 -hls_key_info_file 480.mp4.keyinfo output.mp4.m3u8
everything runs normally.

    


    However, I meet a problem when I move file "480.mp4.key" and file "480.mp4.keyinfo" into another directory such as /usr/local/WowzaStreamingEngine/keys/auto_scan/testhh/2/123/480.mp4.keyinfo
I also change key directory in file keyinfo

    


    After that I run

    


    ffmpeg -i 480.mp4 -hls_time 10 -hls_key_info_file 480.mp4.keyinfo output.mp4.m3u8 ffmpeg -i output/testhh/2/123/480.mp4 -hls_time 10 -hls_key_info_file /usr/local/WowzaStreamingEngine/keys/auto_scan/testhh/2/123/480.mp4.keyinfo output/testhh/2/123/480.mp4.m3u8


    


    But I get an error :

    


     error opening key info file /usr/local/WowzaStreamingEngine/keys/auto_scan//testhh/2/123/output/testhh/2/123/480.mp4.keyinfo
Could not write header for output file #0 (incorrect codec parameters ?): No such file or directory
Error initializing output stream 0:0 -- 


    


  • automatically show blue screen in ffmpeg when live video source disconnects

    13 janvier 2015, par user1913115

    i’m capturing a live source using ffmpeg :

    ffmpeg -i rtsp://192.168.1.143/source -codec copy output.mp4

    which works great. the ip address is an address of an RTSP proxy server which takes in the camera itself as the source. i.e. my setup :

    camera ->> RTSP proxy ->> ffmpeg(output)

    if camera disconnects (accidentally or on purpose) the recording stops (obviously) and only continues when I re-connect the camera.

    Question : is there a way for ffmpeg to ’fill’ the down time with blue screen or green screen of some sort ?
    i know i can ’play’ a still image of a green screen using ffmpeg to record an mp4 out of it :

    ffmpeg -loop 1 -y -re -i green.jpg -r 30 -vcodec libx264 -an -f h264 greenvideo.mp4

    so i could set it up this way :

    ffmpeg(green) ->> ffmpeg(output)

    but I would need to run the command manually. is there a way for ffmpeg(output) to automatically detect the disconnect and use green.jpg as a ’video’ source ? or i can even create a 5-minute green.mp4 video of just green screen.

    put it another way, is it possible for ffmpeg to automatically switch input sources if one goes down ?

  • How can I extract bonus images from a tv show DVD using ffmpeg ?

    5 avril 2020, par Hatem

    I'm using MakeMKVcon to automate episodes extraction. It do the job, expect the metadata. I have to rename files manually. But the problem here is that I want to extract some bonus pictures slideshow from the ISO but no software can detect it. I can only display those images using VLC (using the ISO file).

    



    Do you have any idea how to do that ?

    



    Here's the ffmpeg -i output :

    



    $ ffmpeg -i /path/to/iso/file.ISO
ffmpeg version git-2020-03-24-7239254 Copyright (c) 2000-2020 the FFmpeg developers
  built with Apple clang version 11.0.0 (clang-1100.0.33.16)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-7239254_1 --enable-shared --cc=clang --host-cflags=-fno-stack-check --host-ldflags= --enable-gpl --enable-libaom --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --disable-libjack --disable-indev=jack --enable-opencl --enable-videotoolbox --disable-htmlpages --enable-libfdk-aac --enable-nonfree
  libavutil      56. 42.101 / 56. 42.101
  libavcodec     58. 76.100 / 58. 76.100
  libavformat    58. 42.100 / 58. 42.100
  libavdevice    58.  9.103 / 58.  9.103
  libavfilter     7. 77.100 /  7. 77.100
  libswscale      5.  6.101 /  5.  6.101
  libswresample   3.  6.100 /  3.  6.100
  libpostproc    55.  6.100 / 55.  6.100
[mpeg @ 0x7f8111808200] Packet corrupt (stream = 4, dts = 2097152).
[mpeg @ 0x7f8111808200] stream 4 : no TS found at start of file, duration not set
[mpeg @ 0x7f8111808200] Could not find codec parameters for stream 4 (Audio: mp2, 0 channels): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpeg, from '/path/to/iso/file.ISO':
  Duration: 00:24:21.47, start: 0.280000, bitrate: 40817 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg, progressive), 720x576 [SAR 16:15 DAR 4:3], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Side data:
      cpb: bitrate max/min/avg: 8000000/0/0 buffer size: 1835008 vbv_delay: N/A
    Stream #0:2[0x20]: Subtitle: dvd_subtitle
    Stream #0:3[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
    Stream #0:4[0x1d7]: Audio: mp2, 0 channels
At least one output file must be specified