
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (52)
-
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. -
Librairies et logiciels spécifiques aux médias
10 décembre 2010, parPour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...) -
Prérequis à l’installation
31 janvier 2010, parPréambule
Cet article n’a pas pour but de détailler les installations de ces logiciels mais plutôt de donner des informations sur leur configuration spécifique.
Avant toute chose SPIPMotion tout comme MediaSPIP est fait pour tourner sur des distributions Linux de type Debian ou dérivées (Ubuntu...). Les documentations de ce site se réfèrent donc à ces distributions. Il est également possible de l’utiliser sur d’autres distributions Linux mais aucune garantie de bon fonctionnement n’est possible.
Il (...)
Sur d’autres sites (8064)
-
convert video ffmpeg to specific format
26 janvier 2023, par Alon GI have video file




Duration : 00:19:36.69, start : 48891.159489, bitrate : 7234 kb/s
Stream #0:0[0x1e0] : Video : h264 (Main), yuvj420p(pc, bt709, progressive), 3840x2160, 20 fps, 20.08 tbr, 90k tbn, 40 tbc




I converted video in python by iterate frame by frame :


vid_cap = cv2.VideoCapture(video_path)
 fps = vid_cap.get(cv2.CAP_PROP_FPS)
 w = int(vid_cap.get(cv2.CAP_PROP_FRAME_WIDTH))
 h = int(vid_cap.get(cv2.CAP_PROP_FRAME_HEIGHT))
 vid_writer = cv2.VideoWriter(vid_full_path, cv2.VideoWriter_fourcc(*'mp4v'), fps, (w, h))
 vid_cap = cv2.VideoCapture(video_path)
 flag, im0 = vid_cap.read()
 while flag:
 vid_writer.write(im0)
 flag, im0 = vid_cap.read()
 vid_writer.release()



the output details file :




Duration : 00:19:38.85, start : 0.000000, bitrate : 43718 kb/s
Stream #0:0(und) : Video : mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], 43717 kb/s, 20
fps, 20 tbr, 10240 tbn, 20 tbc (default)
Metadata :
handler_name : VideoHandler




I try use ffmpeg to convert the video to mp4 by still I don't get the same video file.


there is any option to create this specific converted video by ffmpeg, without loop ?


-
Converting `webm` to `mov` format using ffmpeg loses transparency - how can I keep it ?
10 mars 2023, par M.A ShahbaziI am trying to convert a
webm
video tomov
format without losing quality and transparency using the following command :

ffmpeg -c:v libvpx-vp9 -i input.webm ouput.mov



The video gets converted, but it loses transparency and the background of video is black.


I also tried the following command :


ffmpeg -c:v png -i input.webm output.mov



But it gives me the following error output :


libavutil 58. 3.100 / 58. 3.100
 libavcodec 60. 4.100 / 60. 4.100
 libavformat 60. 4.100 / 60. 4.100
 libavdevice 60. 2.100 / 60. 2.100
 libavfilter 9. 4.100 / 9. 4.100
 libswscale 7. 2.100 / 7. 2.100
 libswresample 4. 11.100 / 4. 11.100
 libpostproc 57. 2.100 / 57. 2.100
[png @ 0000028041ca7000] Invalid PNG signature 0x824983420031F031.
[matroska,webm @ 0000028041c91240] Could not find codec parameters for stream 0 (Video: png, none(pc, progressive), 800x800): unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, matroska,webm, from 'hero.webm':
 Metadata:
 COMPATIBLE_BRANDS: qt
 creation_time : 2023-02-23T10:43:46.703800Z
 MAJOR_BRAND : qt
 MINOR_VERSION : 537199360
 ENCODER : Lavf59.35.100
 Duration: 00:00:09.00, start: 0.000000, bitrate: 1378 kb/s
 Stream #0:0: Video: png, none(pc, progressive), 800x800, SAR 1:1 DAR 1:1, 24 fps, 24 tbr, 1k tbn
 Metadata:
 alpha_mode : 1
 ENCODER : Lavc59.56.100 libvpx-vp9
 DURATION : 00:00:09.000000000
Stream mapping:
 Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[png @ 0000028041ca7680] Invalid PNG signature 0x824983420031F031.
Error while decoding stream #0:0: Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed!



How can I maintain transparency when converting from
webm
tomov
format ?

Here's the video info in case it can be helpful :


{
 "streams": [
 {
 "index": 0,
 "codec_name": "vp9",
 "codec_long_name": "Google VP9",
 "profile": "Profile 0",
 "codec_type": "video",
 "codec_tag_string": "[0][0][0][0]",
 "codec_tag": "0x0000",
 "width": 800,
 "height": 800,
 "coded_width": 800,
 "coded_height": 800,
 "closed_captions": 0,
 "film_grain": 0,
 "has_b_frames": 0,
 "sample_aspect_ratio": "1:1",
 "display_aspect_ratio": "1:1",
 "pix_fmt": "yuv420p",
 "level": -99,
 "color_range": "tv",
 "field_order": "progressive",
 "refs": 1,
 "r_frame_rate": "24/1",
 "avg_frame_rate": "24/1",
 "time_base": "1/1000",
 "start_pts": 0,
 "start_time": "0.000000",
 "disposition": {
 "default": 0,
 "dub": 0,
 "original": 0,
 "comment": 0,
 "lyrics": 0,
 "karaoke": 0,
 "forced": 0,
 "hearing_impaired": 0,
 "visual_impaired": 0,
 "clean_effects": 0,
 "attached_pic": 0,
 "timed_thumbnails": 0,
 "captions": 0,
 "descriptions": 0,
 "metadata": 0,
 "dependent": 0,
 "still_image": 0
 },
 "tags": {
 "alpha_mode": "1",
 "ENCODER": "Lavc59.56.100 libvpx-vp9",
 "DURATION": "00:00:09.000000000"
 }
 }
 ],
 "format": {
 "filename": ".\\hero.webm",
 "nb_streams": 1,
 "nb_programs": 0,
 "format_name": "matroska,webm",
 "format_long_name": "Matroska / WebM",
 "start_time": "0.000000",
 "duration": "9.000000",
 "size": "1550466",
 "bit_rate": "1378192",
 "probe_score": 100,
 "tags": {
 "COMPATIBLE_BRANDS": "qt ",
 "creation_time": "2023-02-23T10:43:46.703800Z",
 "MAJOR_BRAND": "qt ",
 "MINOR_VERSION": "537199360",
 "ENCODER": "Lavf59.35.100"
 }
 }
}



-
concat two videos with same format
24 mars 2023, par ttbI'm trying to concat two videos that have very similar formats :


Stream #0:0[0x1](und): Video: hevc (Main 10) (hev1 / 0x31766568), yuv420p10le(tv), 1920x1080 [SAR 1:1 DAR 16:9], 1141 kb/s, 23.98 fps, 23.98 tbr, 24k tbn (default)
 Metadata:
 handler_name : VideoHandler
 vendor_id : [0][0][0][0]
 Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 224 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 vendor_id : [0][0][0][0]



and


Stream #0:0(und): Video: hevc (hev1 / 0x31766568), yuv420p10le(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 24k tbn (default)
 Metadata:
 creation_time : 2023-03-24T21:10:17.000000Z
 handler_name : VideoHandler
 vendor_id : [0][0][0][0]
 encoder : Lavc60.6.101 libx265
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 341 kb/s (default)
 Metadata:
 creation_time : 2023-03-24T21:10:17.000000Z
 handler_name : Surround
 vendor_id : [0][0][0][0]



But the video ends up freezing when played. Not sure what's wrong, I matched everything ?