
Recherche avancée
Autres articles (44)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (7429)
-
ffplay - route incoming audio stream to specific channels / convert channel layout
7 septembre 2022, par miasmai need to play a mp3 stream (stereo) via ffplay and send it to specific output channels on my multichannel audio hardware.


stream (stereo) -> output 3 & 4
while doing that the unused channels should stay silent, as i want to send to them from other instances of ffplay.


how would i go about to do that ?


i already tried a lot of different approaches without luck, mostly based on this :


ffplay -i http://blablabla -af 'channelmap=map=0-2|1-3' -nodisp



as well as


ffplay -i http://blablabla -af 'channelmap=map=0-2|1-3=channel_layout=6.0'



thank you for any help, i'm slowly going crazy digging through the manuals and trying out variations of the same command for hours …
😵💫


ps : i'm running ffplay 5.1.1 on mac os 12.5.1 on m1max


-
Get Pid Ffmpeg On Centos With Bash Script
2 mai 2020, par Abdullah Al-HabsyiI was created SH script n run with cron for 3 hours. but i want update live cctv real time if not online, i want grep pid for each sh i have. if pid exist nothing to do, if pid not exist run command this.



#!/bin/bash
#IP 192.168.19.6

ping -c 1 -q 192.168.19.6 >&/dev/null

if [ $? -eq 0 ]; then
 rm -rf /var/www/cctv/public_html/video/ri-2/*.ts;
 rm -rf /var/www/cctv/public_html/video/ri-2/*.m3u8
 ffmpeg -stimeout 87000000 -err_detect aggressive -fflags discardcorrupt \
 -rtsp_transport tcp -i "rtsp://admin:12345@192.168.19.6/media/video1" \
 -vf scale=320:-1 -c:v libx264 -pix_fmt yuv420p -preset:v ultrafast \
 -hls_time 10 -hls_list_size 10 -hls_delete_threshold 10 -hls_flags delete_segments -f hls \
 "/var/www/cctv/public_html/video/ri-2/simpang.m3u8" \
 -progress -stats

else
 rm -rf /var/www/cctv/public_html/video/ri-2/*.ts;
 rm -rf /var/www/cctv/public_html/video/ri-2/*.m3u8
fi 



-
How to restart RTMP dump bash script if it closes / dies ?
9 février 2016, par Shashwat SinghI’m using this script to dump a live stream, say "stream1.sh" etc
#! /bin/bash
function INT_cleanup()
{
kill `jobs -p`
exit
}
trap INT_cleanup INT
count=0
while [[ $count < 10 ]] # Try 10 times
do
rtmpdump -r "rtmp://<ipaddress>" -a "live" -f "WIN 11,9,900,117" -W "http://xyz.swf" -p "" -y "xyz" --live | ffmpeg -re -i - -sn -vcodec copy -acodec copy -f flv "<ipaddress>"
count=$((count + 1))
done }
</ipaddress></ipaddress>It runs perfectly fine for 3-4 hours then it quits automatically due to packet loss or something, however if I restart it, it again starts working.
So, What should I do to restart this particular script IF it dies ? Will it require cronjob ? If yes, then please explain how ?