
Recherche avancée
Autres articles (68)
-
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (7191)
-
Python : How to clip/trim required part from the video and move the trimmed video file to other directory
4 avril 2021, par saurabhI'm trying to remove duplicate segments from videos from a directory and paste these trimmed videos to other directory.


For example :


I've following directory structure for saving live rtsp stream (each 1 min long) :-


Live_videos
------2021-04-04
 ------stream1
 -------14 36 08.avi( 1 min)
 14 37 08.avi( Saved only till 14 37 39 mark due to disconnect with stream1 camera)
 14 38 35.avi( 1 min)
 stream2
 -------14 36 15.avi( 1 min)
 14 37 15.avi( 1 min)
 14 38 14.avi( 1 min)



So, the disconnect and reconnect time are 14 37 40 and 14 38 34 respectively which will be sent to some other server and that server will search for videos saved in their machine which contains segments from the given timestamps and sends the video file in following directory structure : -


Edge_videos
-----------2021-04-04
 ----------stream1
 -------14 36 35.avi
 -------14 37 35.avi



Now, you can see that the received video files have the required segments from disconnect period as well as duplicate segments which are already saved in Live_videos directory.


How do I remove the duplicate segments from the received videos and move only the required trimmed video file to the Live_videos----> stream1 directory and delete all the files from Edge_videos afterwards.


-
Download highest quality audio from YouTube using youtube-dl
3 juin 2020, par darvastI'm using this command :



youtube-dl -f bestaudio --extract-audio --audio-format "opus" --add-metadata -o "%(playlist_index)s-%(title)s.%(ext)s" "https://www.youtube.com/playlist?list=OLAK5uy_lWRq5MhPNthDDe1nYXtlekDA40wtrpKE0"




Here's the available streams :



[info] Available formats for 6t1dErgAglk:
format code extension resolution note
249 webm audio only tiny 58k , opus @ 50k (48000Hz), 416.34KiB
250 webm audio only tiny 72k , opus @ 70k (48000Hz), 516.52KiB
140 m4a audio only tiny 130k , m4a_dash container, mp4a.40.2@128k (44100Hz), 1.06MiB
251 webm audio only tiny 131k , opus @160k (48000Hz), 923.79KiB
278 webm 140x144 144p 32k , webm container, vp9, 25fps, video only, 159.74KiB
160 mp4 140x144 144p 54k , avc1.4d400b, 25fps, video only, 278.62KiB
242 webm 232x240 240p 71k , vp9, 25fps, video only, 321.29KiB
134 mp4 350x360 360p 96k , avc1.4d4015, 25fps, video only, 303.75KiB
133 mp4 232x240 240p 124k , avc1.4d400c, 25fps, video only, 651.46KiB
243 webm 350x360 360p 126k , vp9, 25fps, video only, 545.77KiB
135 mp4 466x480 360p 174k , avc1.4d401e, 25fps, video only, 534.97KiB
244 webm 466x480 360p 215k , vp9, 25fps, video only, 1003.20KiB
136 mp4 698x720 720p 305k , avc1.4d401f, 25fps, video only, 942.76KiB
137 mp4 1048x1080 1080p 494k , avc1.640020, 25fps, video only, 1.49MiB
247 webm 698x720 720p 593k , vp9, 25fps, video only, 1.97MiB
248 webm 1048x1080 1080p 768k , vp9, 25fps, video only, 3.81MiB
18 mp4 350x360 360p 213k , avc1.42001E, 25fps, mp4a.40.2@ 96k (44100Hz), 1.73MiB
22 mp4 698x720 720p 242k , avc1.64001F, 25fps, mp4a.40.2@192k (44100Hz) (best)




When I run the above command it seems to be converting m4a to opus : https://prnt.sc/st2l8u



I'm wondering why it's doing that instead of getting it from the webm container ?


-
How to replace the video track of a part of a video file ?
17 juin 2019, par yukashima huksayI have an mp4 file like this(same format but longer) :
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'N1.2.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41
creation_time : 2018-10-31T13:44:21.000000Z
Duration: 00:28:54.21, start: 0.000000, bitrate: 10295 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 9972 kb/s, 50 fps, 50 tbr, 50k tbn, 100 tbc (default)
Metadata:
creation_time : 2018-10-31T13:44:21.000000Z
handler_name : ?Mainconcept Video Media Handler
encoder : AVC Coding
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
Metadata:
creation_time : 2018-10-31T13:44:21.000000Z
handler_name : #Mainconcept MP4 Sound Media HandlerI also have another video file that is 3 minutes long. and has no audio. What is the fastest way to encode the other video in a way that it is encoded like my main video and then replace the last three minutes of the video track of my original video with this ?
In other words.
I have video A that is 1 hour long. With the encoding shown above.I have video B that is 3 minutes long with no audio. with a random encoding.
I want to have video C with the same encoding and same audio as A. But it’s video track would be the first 57 minutes of A + B(which is 3 minutes).
I want to do this as fast as possible so I would like to not re encode A.
I know how to concatenate two videos, I use this command :
ffmpeg -f concat -i files.txt -c copy res.mp4