
Recherche avancée
Autres articles (46)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette 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. -
Participer à sa traduction
10 avril 2011Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
Actuellement MediaSPIP n’est disponible qu’en français et (...) -
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 (...)
Sur d’autres sites (9250)
-
FFmpeg raw audio and H264 in RTSP
21 août 2017, par Max RidmanTrying to grab correctly video and audio data from an IP camera Hikvision.
Everything works like a charm when doing so for H264 + MP2 for example.
When trying to grab RAW audio in PCM s16le - smile goes off of my face.
Here is how I grab my camera :
ffmpeg -re -acodec pcm_s16le -ac 1 -rtsp_transport tcp -i rtsp ://ipcameraaddress:554 -vcodec copy -acodec libfdk_aac -vbr 5 test.ts
The command works and packs RTSP stream to a TS file.
However the duration of audio and video is different. For an example, I am recording 21 sec, from that I have 21 sec of Audio and 15 of Video.
The audio is being stretched and pitch is lowered. Have spent several days reading FFmpeg documentation and applied various options like async, changing sample rate and so on - no luck.
I hope Mulvya or other FFmpeg experts will advice me a FIX to get things done correctly.
-
Pass ffmpeg Stream to OpenCV
29 avril 2021, par GeorgI would like to use the redirection operator to bring the stream from ffmpeg to cv2 so that I can recognize or mark the faces on the stream and redirect this stream again so that it runs under another stream.


One withoutfacedetect and One withfacedetect.


raspivid -w 1920 -h 1080 -fps 30 -o - -t 0 -vf -hf -b 6000000 | ffmpeg -f h264 -i - -vcodec copy -g 50 -strict experimental -f tee -map 0:v "[f=flv]rtmp://xx.xx.xx.xx/live/withoutfacedetect |[f=h264]pipe:1" > test.mp4



I then read up on CV2 and came across the article.




I then ran the script with my picture and was very amazed that there was a square around my face.


But now back to business. What is the best way to do this ?


thanks to @Mark Setchell, forgot to mention that I'm using a Raspberry Pi 4.


-
Extract the first 2 minutes of video without re-encoding - ffmpeg
8 juillet 2015, par Code_Ed_StudentI am seeking a fast and efficient way of extracting the first two minutes of a video. Below script finds the nearest keyframe after 120 seconds. This keyframe searching is some what time consuming for large video files. If I disregard the keyframe and cut, I face the fact that the video maybe ruined. I have also tried forcing a keyframe but that involves re-encoding. What is the best and most efficient way to extract the first two minutes of a large video file ?
#fetch nearest keyframe after two minutes
ffprobe -select_streams v -show_frames -v quiet -i test.mp4 |
awk -F= '
/pict_type=/ { if (index($2, "I")) { i=1; } else { i=0; } }
/pkt_pts_time/ { if (i && ($2 >= 120)) print $2; }
' | head -n 1
#cut video
ffmpeg -i test.mp4 -ss 00:00:00 -t 00:02:00.15 -async 1 cut.mp4