Recherche avancée

Médias (3)

Mot : - Tags -/spip

Autres articles (73)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

Sur d’autres sites (8423)

  • Convert CODEC of all videos in a folder from "Codec : MPEG-H Part2/HEVC (H.265) (hev1)" to "Codec : H264 - MPEG-4 AVC (part 10) (avc1)" [closed]

    19 mai 2024, par user25123807

    I've downloaded shows and cant get them to play on TV as the codec is not supported. H264 is a compatible codec. I have noted the codec of the videos in the title of this post, and the codec which is compatible (264). I need help converting in bulk, all videos in a folder to the compatible codec - H264 - MPEG-4 AVC (part 10) (avc1).

    


    please help

    


    i have ffmpeg.

    


    I have tried changing the file type from mkv —> mp4 but the issue is the codec. I need help bulk converting the codec (265—>264)

    


  • 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 !