
Recherche avancée
Autres articles (52)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Publier sur MédiaSpip
13 juin 2013Puis-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 -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (10573)
-
How can I make an rtsp stream as correct as possible in a Django application ? [closed]
4 décembre 2024, par user25336067I am writing a mini video surveillance system on Django. I want the stream to be output to the tag. now I have output to the img tag using a stream and jpeg images (using OpenCV)how to make a stream from a video, you may need to use WebRTC for the stream and somehow decode the video using ffmpeg, please tell me


def generate_frames(rtsp_url):
 cap = cv2.VideoCapture(rtsp_url) # Замените на ваш RTSP URL

 while True:
 success, frame = cap.read()
 if not success:
 break

 # Кодируем кадр в JPEG
 ret, buffer = cv2.imencode('.jpeg', frame)
 frame = buffer.tobytes()

 yield (b'--frame\r\n'
 b'Content-Type: photo/jpg\r\n\r\n' + frame + b'\r\n')



i vant to stop video and start in video tag
my html looks like this


<div class="video-container">
 <img src="http://stackoverflow.com/feeds/tag/{% url &#x27;video_feed&#x27; %}?rtspurl={{ rtsp_url }}" width='300' height='225' alt="{{ rtsp_url }}" />
 <div class="separator"></div> 
 <p class="cam-name">Трансляция камеры: {{ cam_name }}<br />RTSP: <a>{{ rtsp_url }}</a></p>
 </div>



-
How to add video play duration ffmpeg ? [duplicate]
2 août 2019, par Mostafa DaashThis question already has an answer here :
i want to add video duration stamp in
mp4
filelike this photo
https://i.ibb.co/m6cd63k/Untitled-1.jpgi use this code to output video file with watermark
ffmpeg -i 22.mp4 -i logo50.png -filter_complex "overlay=x=40:10:y=20" -preset medium -crf 24 -codec:a aac -b:a 128k -codec:v libx264 -pix_fmt yuv420p 22.xxxx.mp4
-
cutting mp4 with codec copy results no audio in browser
16 novembre 2020, par LukaI'm editing a video clip with ffmpeg. The original does not play in Firefox browser by itself. It does normally in Chromium. I do something like :


ffmpeg -ss 00:05:10 -i INPUT.mp4 -c copy OUTPUT.mp4



the resulting clip plays in Firefox but there's no audio. This happens in Firefox (82.0.3), but not in Chromium (86.0.4240.75). In chromium the sound is ok.


If audio is reencoded with


ffmpeg -ss 00:05:10 -i INPUT.mp4 -c:v copy -ab 360kb OUTPUT.mp4



resulting clip is playing ok in Firefox.


Could anyone explain what is happening here and is it possible to cut the mp4 without reencoding audio resulting in a clip that plays in Firefox too ?


Some data :


ffmpeg version 3.4.8-0ubuntu0.2


ffprobe INPUT.mp4 :


Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'INPUT.mp4':
 Metadata:
 major_brand : isom
 minor_version : 1
 compatible_brands: iso4avc1isom
 creation_time : 2020-11-13T18:45:37.000000Z
 com.apple.proapps.clipID: INPUT
 com.blackmagic-design.camera.dateRecorded: 2020:11:13
 com.apple.proapps.cameraName: 0
 com.blackmagic-design.camera.uuid: BDB766E79E646CBB82E3EB986EA1EA-0
 Duration: 02:01:38.00, start: 0.000000, bitrate: 6047 kb/s
 Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080, 5909 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
 Metadata:
 creation_time : 2020-11-13T18:45:37.000000Z
 handler_name : ?Apple Alias Data Handler
 encoder : H264/AVC
 timecode : 19:45:35:04
 Stream #0:1(eng): Data: none (tmcd / 0x64636D74) (default)
 Metadata:
 creation_time : 2020-11-13T18:45:37.000000Z
 handler_name : ?Apple Alias Data Handler
 timecode : 19:45:35:04
 Stream #0:2(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
 Metadata:
 creation_time : 2020-11-13T18:45:37.000000Z
 handler_name : ?Apple Alias Data Handler
 timecode : 19:45:35:04



ffprobe OUTPUT.mp4





Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'OUTPUT.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf57.83.100
 Duration: 01:34:48.02, start: -0.016000, bitrate: 6022 kb/s
 Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 5889 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 12800 tbn, 25600 tbc (default)
 Metadata:
 handler_name : VideoHandler
 timecode : 19:45:35:04
 Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
 Metadata:
 handler_name : TimeCodeHandler
 timecode : 19:45:35:04



ffprobe the OUTPUT.mp4 that has audio re-encoded and works in Firefox :


Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf57.83.100
 Duration: 01:34:48.04, start: 0.000000, bitrate: 6160 kb/s
 Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 5889 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 12800 tbn, 25600 tbc (default)
 Metadata:
 handler_name : VideoHandler
 timecode : 19:45:35:04
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 265 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
 Metadata:
 handler_name : TimeCodeHandler
 timecode : 19:45:35:04



EDIT :


I'm providing links to original files, but a bit of warning, they are 4-5GB big each :


- 

- original recording from blackmagic switcher/capture/recorder (this does not play in firefox at all, but does in Chromium)
- cut version made with
-codec copy
(plays in firefox but no audio. plays in chromium ok) - cut version with re-encoded audio (plays ok in both firefox and chromium)