Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (81)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Problèmes fréquents

    10 mars 2010, par

    PHP et safe_mode activé
    Une des principales sources de problèmes relève de la configuration de PHP et notamment de l’activation du safe_mode
    La solution consiterait à soit désactiver le safe_mode soit placer le script dans un répertoire accessible par apache pour le site

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

Sur d’autres sites (12295)

  • Cutting movie with ffmpeg result in audio/video desync

    15 mai 2020, par T4ng10r

    I've concate long ago set of movies taken during some lecture. Now I want to cut them for each question/answer.

    



    I do it like this.

    



    


    ffmpeg -ss 00:00:34.7 -t 00:10:44.6 -y -i input_movie.mp4 -vcodec copy -acodec copy output_1.mp4

    
 


    ffmpeg -ss 00:11:22.2 -y -i input_movie.mp4 -vcodec copy -acodec copy output_2.mp4

    


    



    Yet, for the second part I can't set proper starting point so audio and video would be in sync.
    
Usually I could fix it with small tweeks in cut start time (like .1, .2, and so on). For this case this doesn't work.
    
When I play second cut in mplayer video is few second behind audio (where audio is cut properly). When I jump forward and back - all is again in sync.

    



    Where's the problem ? How to fix it ?

    


  • for loop seems to runs several times [closed]

    19 juillet 2021, par Dentricky73

    I am (trying) to write a script that read the ip's from the file 'data.dat'.
Check if the ip have the statuscode 200, if yes write the ip to the text file 'OK_IP.LIST.txt', next dump the image from the rtsp stream to directory images.

    


    My intention is to verify that the count from the ip's in data.dat is equal to OK_IP.LIST.txt ;
if not, delete data.dat and rename OK_IP.LIST.txt to data.dat and loop again.

    


    Later the script should be looping until the user presses a key (but that's for the future).

    


    The problem now is, when I start with 10 ip's in the data.list and write the good ip's (status code 200) to OK_IP.LIST.txt there are 20 ip's. (Let's say they all works.)

    


         data.dat       >      OK_IP.LIST.txt
1111.1111.1111.1111    1111.1111.1111.1111
2222.2222.2222.2222    2222.2222.2222.2222
3333.3333.3333.3333    3333.3333.3333.3333
                       1111.1111.1111.1111
                       2222.2222.2222.2222
                       3333.3333.3333.3333


    


    Something is wrong in the loop ; the list is written twice to OK_IP.LIST.txt.
I'm doing something wrong, but I can't find it.

    


    #!/bin/bash

mkdir images >/dev/null 2>&1   #dev null don't display "dir already exist"
IPS="$(< data.dat)"            #read the file data to var IPS

 ok200=0
 counter=0
 Totalips="$(wc -l "data.dat")"
 
 echo 'starting...' 
 
 for IP in $IPS;                # loop through the items 
  do    
        TRY1="$(curl -m 2 -s -o /dev/null --head -w "%{http_code}" -X POST "rtsp://$IP:554")"          # ask Status code from curl
        if [ "$TRY1" -eq 200 ]                                                                 # is statuscode 200
        then
                    ok200=`expr $ok200 + 1`                         
            FFM="$(ffmpeg -y -nostdin -stimeout 8000000 -rtsp_transport tcp -ss 0.5  -i "rtsp://$IP:554/12" -vframes 1 -s 640x480 -f image2 images/$IP.jpg  >/dev/null 2>&1)"
                                                    #echo $FFM
            echo $IP &>> OK_IP.LIST.txt
                                            
        fi              
        clear
        counter=`expr $counter + 1`;
        echo  'IP done ' $counter 'from' $Totalips| sed 's/data.dat//g' 
        echo 'now testing' $IP
        echo 'Good ips'  $ok200
        #sleep 1 #don't help 
done


    


    I know it's nooby written, I can check if the dir images exist - if yes, do nothing, else mkdir and so on.
That's all planned for later.

    


  • ffmpeg - Stream multiple files over an ffserver to one ffplay at different times ? [closed]

    13 mai 2013, par golmschenk

    I have an ffserver up and running. Using this server I can run a simple ffplay command :

    ffplay udp://localhost:7777

    which then waits for a stream. Then if I stream something to the server with a simple ffmpeg command :

    ffmpeg -re -i small.mp4 -f mpegts udp://localhost:7777

    The video pops up and plays fine. However, after the video is finished and the ffplay is still waiting open with the display window showing the last frame of the video just sent, then if I try to run the same ffmpeg command again to play the video again, the ffplay gets a bunch of warnings which look similar to :

    [mpegts @ 0x7fde1c0008c0] Continuity check failed for pid 256 expected 2 got 0

    And there is no playback. I would like to be able to stream one video, leave the same ffplay open and a little while after the first video has stopped stream another video. Is there a way I can achieve this ? Thank you much !