Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (7)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

Sur d’autres sites (3067)

  • Splitting odd and even frames in Gstreamer

    4 avril 2014, par user3498379

    I am building an application whereby I need to split a videostream(RTSP/MJPEG) into individual frames. The extracted frames then need to be put into two named pipes. I need to alternate the frames between two named pipes, i.e. even frames go to pipe one and odd frames go to pipe 2. I have been able to achieve this with ffmpeg using the following command :

    ffmpeg -i "rtsp://<ipaddress>/axis-media/media.amp?videocodec=jpeg" -vf select="mod(n-1\,2)" -vcodec mjpeg -f avi -y  -vf select="not(mod(n-1\,2))" -vcodec mjpeg -f avi -y
    </ipaddress>

    However I have run into an RTP packet size issue with ffmpeg when using large resolutions e.g. 2048x1536. My question is ; is there a gstreamer equivalent command ? I have the basic gstreamer command which extracts images :

    gst-launch rtspsrc location=rtsp://<ipaddress>/axis-media/media.amp?videocodec=jpeg ! decodebin2 ! jpegenc ! multifilesink location="frame%d.jpg"
    </ipaddress>

    But now I need the additional piece, any help will be much appreciated.

  • ffmpeg fails to output rtp when setting start time (-ss)

    22 janvier 2021, par Max

    I'm using ffmpeg to stream output to an RTP endpoint. This works fine with audio and video, but fails when using the -ss flag. The command I'm using is

    &#xA;

    ffmpeg \&#xA;  -fflags &#x2B;genpts \&#xA;  -re \&#xA;  -v info \&#xA;  -protocol_whitelist pipe,tls,file,http,https,tcp,rtp \&#xA;  -i in.mp4 \&#xA;  -map \&#xA;  0:v:0 \&#xA;  -c:v libx264 \&#xA;  -pix_fmt yuv420p \&#xA;  -tune zerolatency \&#xA;  -preset ultrafast \&#xA;  -g 30 \&#xA;  -keyint_min 30 \&#xA;  -map 0:a:0 \&#xA;  -c:a libopus \&#xA;  -ab 128k \&#xA;  -ac 2 \&#xA;  -ar 48000 \&#xA;  -f tee \&#xA;  [select=v:f=rtp:ssrc=2222:payload_type=101]rtp://1.1.1.1:44973?rtcpport=44663|[select=a:f=rtp:ssrc=1111:payload_type=100]rtp://1.1.1.1:47974?rtcpport=46683&#x27;&#xA;

    &#xA;

    This command works fine. If I add -ss 5 just before -i in.mp4, ffmpeg flips out. The rtp receiving side reports PLI for every frame, and the ffmpeg output indicates something is wrong :

    &#xA;

    frame=    0 fps=0.0 q=0.0 size=N/A time=-577014:32:22.77 bitrate=N/A speed=N/A&#xA;

    &#xA;

    Also, when running with debug logs, ffmpeg reports cur_dts is invalid many times.

    &#xA;

    If I output to a file instead of rtp, everything seems to work. Any advice on how to handle this would be most appreciated !

    &#xA;

  • Compare 2 videos at different frames with ffmpeg

    16 juin 2023, par hell

    there is this nice ffmpeg command :

    &#xA;

    ffmpeg -i video1.mp4 -i video2.mp4 -filter_complex "[0:v][1:v]blend=difference,blackframe=1:10" -f null -&#x27;&#xA;

    &#xA;

    this command compares 2 videos but always at the same frame.&#xA;imagine i want to compare those 2 with 5 frames offset...like frame 0 of video1 with frame 5 of video2, is this possible with ffmpeg ?

    &#xA;

    i already tried :

    &#xA;

    &#x27;ffmpeg -i video1.mp4 -i video2.mp4 -filter_complex "[0:v]select=gte(n\,0)[video1]; [1:v]select=gte(n\,5)[video2]; [video1][video2]blend=difference,blackframe=1:10" -f null -&#x27;&#xA;

    &#xA;

    but this command just starts the compare at frame 5 for both...

    &#xA;

    i had success with image compare of every frame (create image from frame - compare - go next frame) but that was taking forever if i have a longer clip due to creating and checking single images.&#xA;cutting and reencoding is also no option due to quality loss and time.

    &#xA;

    i really appreciate any help, didnt find more on google and ai was useless :(

    &#xA;