
Recherche avancée
Médias (91)
-
Géodiversité
9 septembre 2011, par ,
Mis à jour : Août 2018
Langue : français
Type : Texte
-
USGS Real-time Earthquakes
8 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
-
Creativecommons informational flyer
16 mai 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (81)
-
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 binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...) -
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
Sur d’autres sites (8566)
-
How can I allow my users to combine audio and video tracks for downloading a youtube video ? [closed]
1er décembre 2023, par Faizan AhangerI have a website which, along a bunch a text, has a embedded youtube videos to play. I want to allow my users to also a be able to download those videos. There are too many videos there to store on my own server and I know that there are already website like y2mate.com and savefrom.net which do this.


I used yt-dlp and using the
--print-json
parameter I can get the urls for downloading the files but the audio and video tracks are not combined for higher videos. Using ffmpeg seems to be the obvious solution but I don't understand where the videos should be combined. Should I download both needed tracks on my server and combine them before serving it to users ? This seems very inefficient as it take a lot of bandwidth for handling all download requests. There is also this library ffmpeg.wasm which according to them is "a pure WebAssembly / JavaScript port of FFmpeg enabling video & audio record, convert and stream right inside browsers !"

This should work but it will require the users to download a 30MB webapp before they can download any video. This is also not very efficient, especially if they are downloading a video which is only a few MBs in size.


Are these the only two options that I have or is there a better way to do this ?


-
Convert mp4 video to avi video using imageio package
3 février 2018, par Li.ChenyangI use the python
imageio
package to convert a.mp4
video to a.avi
video, keeping the fps and size same. The following is my code :import imageio
src_dir = "my/source/video.mp4"
dst_dir = "my/dst/video.avi"
reader = imageio.get_reader(src_dir)
fps = reader.get_meta_data()['fps']
writer = imageio.get_writer(dst_dir, fps=fps)
for im in reader:
writer.append_data(im[:, :, :])
writer.close()I successfully make it.
However, I find that thevideo.mp4
is 27.1 MB, while thevideo.avi
is only 3.70 MB.
Then I usecv2
to do the same thing :import cv2
src_dir = "my/source/video.mp4"
dst_dir = "my/dst/video_1.avi"
video_cap = cv2.VideoCapture(src_dir)
fps = video_cap.get(cv2.cv.CV_CAP_PROP_FPS)
size = (int(video_cap.get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH)),
int(video_cap.get(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT)))
video_writer = cv2.VideoWriter(dst_dir, cv2.cv.CV_FOURCC('M', 'J', 'P', 'G'), fps, size)
success, frame = video_cap.read()
while success:
video_writer.write(frame)
success, frame = video_cap.read()This time I get a
video_1.avi
, which is 65.6 MB.
My questions :- What is the different between these two method, why the
video.avi
(usingimageio
method) is so small ; - Is there any problem to use the
video.avi
(usingimageio
method) to train a 3D-CNN instead of usingvideo_1.avi
(usingcv2
method) ?
supplement
Here is the information of my video file :lichenyang@lichenyang-All-Series:~/chalearn2014/script$ file video.mp4
video.mp4: ISO Media, MPEG v4 system, version 2
lichenyang@lichenyang-All-Series:~/chalearn2014/script$ file video.avi
video.avi: RIFF (little-endian) data, AVI, 640 x 480, 20.00 fps, video: H.264 X.264 or H.264
lichenyang@lichenyang-All-Series:~/chalearn2014/script$ file video_1.avi
video_1.avi: RIFF (little-endian) data, AVI, 640 x 480, 20.00 fps, video: Motion JPEG - What is the different between these two method, why the
-
ffmpeg copy video in video with a specific time
13 février 2017, par AlklIm new in this topic (beginner) and Im german... So it’s a bit difficult to find the correct words...
I’ll try to explain what I’ve done and what I want to do :
-
Extract video area from the original video converted in PRORES codec :
ffmpeg.exe -i test.mkv -ss 00:06:21.99 -t 00:00:01.94 -async 1 -strict -2 -c:v prores_ks -pix_fmt yuva444p10le -profile:v 4444 -bits_per_mb 8000 -s 1920x1080 cut_video.mov
-
Edit the cut in After Effects
- Convert the PRORES in Matroska
ffmpeg.exe -i "C :\Users\Alex\Desktop\ffmpeg-20170202-08b0981-win64-static\bin\cut_video\cut_video.mov" -vcodec ffv1 -acodec pcm_s16le temp.mkv
- Replace the video area in the originale video file at the time 00:06:21.99...
I spend 4 hours for the two commands...
So I despair at the fourth step. Is it possible ? Can you help me ?I made a picture, so you can understand better what Im doing... : http://i.imgur.com/HqlNxzW.jpg
Best regards from germany,
Alex
-