Recherche avancée

Médias (91)

Autres articles (22)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (3788)

  • Evolution #3973 : Brancher inc/distant recuperer_url() sur une librairie récente

    21 février 2019, par Eric Camus

    Bonjour,

    Pour les datas, je pense que qu’il y a une compatibilité entre celles attendus par la fonction ’recuperer_url’ et celles attendue par l’option ’CURLOPT_POSTFIELDS’ :
    - SPIP ’recuperer_url’ : string|array datas : Pour envoyer des donnees (array) et/ou entetes (string) (force la methode POST si donnees non vide)
    - CUrl ’CURLOPT_POSTFIELDS’ : Ce paramètre peut être passé sous la forme d’une chaîne encodée URL, comme ’para1=val1&para2=val2&...’ ou sous la forme d’un tableau dont le nom du champ est la clé, et les données du champ la valeur. Si le paramètre value est un tableau, l’en-tête Content-Type sera définie à multipart/form-data (cf http://php.net/manual/fr/function.curl-setopt.php).
    Je n’ai pas trouver de littérature sur le formatage de data en mode chaine pour ’recuperer_url’ et pas analyser comment les fonctions dans ’recuperer_url’ l’attendait, mais les tableaux doivent être compatibles non ?. Plus besoin de fournir le boundary qui n’est utile que pour les tableaux.

    Pour ce qui est de mettre dans le git SPIP, je vais voir comment ça marche...

  • Concatenation and Transcoding of MPEG-TS files FFMPEG

    20 décembre 2020, par SquawkBirdies

    I have a DVR which records over-the-air TV and saves the recordings in the MPEG-TS format, splitting each episode across multiple files, each 500 MB in size.

    



    To simplify archiving, I have been trying to write a shell script to automate the process of concatenating the files together and transcoding them into a more common video format, like h.264.

    



    Here are the steps I have performed so far :

    



      

    • I wanted to make sure that the files I was getting were valid in the first place. To test this, each section was transcoded in Handbrake before being merged using ffmpeg's concat command. This worked, but was manual and added an annoying black frame between each section.
    • 


    • I wrote a shell script to find all the sections of an episode in a folder and put the file names into a text file that the concat demuxer could parse.
    • 


    • Tested this command :
    • 


    



    

    

    ffmpeg -hide_banner -f concat -i video_files_tmp.txt -c:v libx264 -pix_fmt yuv420p -c:a aac $2$OUTPUT_FILE_NAME

    


    


    




    During the transcode, this would throw many warnings and errors, such as "PES packet size mismatch". At some point, it would warn that more than 1,000 frame were skipped. When the output was played, it would skip frames and result in a file where the video froze partway through but the audio continued playing. I tried adding -vsync 0 to the output as well.

    



      

    • Then, tried splitting the concatenation and transcode into two steps :
    • 


    



    

    

    ffmpeg -hide_banner -f concat -i video_files_tmp.txt -c copy output_tmp.ts
ffmpeg -hide_banner -i output_tmp.ts -c:v libx265 -pix_fmt yuv420p -c:a aac $2$OUTPUT_FILE_NAME

    


    


    




    This did basically the same thing as before.

    



      

    • Tried using the libx265 encoder instead. Same result.
    • 


    • Then, I tried just playing the concatenated MPEG-TS file directly, which also would freeze at some point during the playback.
    • 


    



    I was wondering about what ffmpeg flags or options to set to get this working, or other options I could try ? Thanks !

    


  • Terminate ffmpeg.exe loop

    5 mars 2019, par jinaho

    Getting a thumbnail from a RTSP source results in infinit output from ffmpeg without exiting which makes the batch script not resume.

    It is basically only one line that calls the ffmpeg process like this (example) :

    ffmpeg -i rtsp://192.168.1.89:554/11 -f image2 -r 1 thumb%03d.jpg

    The input is user generated and for some ffmpeg is not returning a thumbnail but a warning message :

    Could not find codec parameters for stream 0 (Video: h264, 1 reference frame, none(left), 1280x720, 1/180000): unspecified pixel format

    After that instead of quiting and let the batch script resume, ffmpeg outputs :

    Press [q] to stop, [?] for help
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A
    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A

    This goes on forever meaning that the batch script does not resume. Manual invertention is required which is not intended.
    I am looking for a way to tell the script that ffmpeg has a hanging condition and make the script quit ffmpeg so it can resume.