
Recherche avancée
Autres articles (63)
-
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users. -
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 (...) -
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 (9988)
-
av_read_frame of ffmpeg in windows always returning packet.stream_index as 0
17 février 2015, par yanqing luI’m using ffmpeg to demuxer, for some video like the windows’s sample Wildlife.wmv, the av_read_frame is always returning packet.stream_index=0. This leads the video queue very big and memory overflow. I get 15 frames of video, but only 1 frame of audio. Is there some options to control the av_read_frame, so I can read frames like : video-audio-video-audio, in this way it’s easy to sync AV and keep queue balance.
Thanks in advance.
-
Get video duration of file hosted on Amazon S3
10 janvier 2020, par MichiI’m starting a portal which distributes videos. The idea is to upload the videos to Amazon S3 and gather the necessary data using PHP from my server. So far everything works fine... the only thing I could not manage to get is the duration of the video :-( Could anybody give me a hint on how to accomplish it ?
Thanks,
MiguelUPDATE :
I finally opted to do it using FFmpeg. I have already installed FFmpeg on the server and I’m now trying to execute the command in the shell prior to execute it with PHP. I’m passing it the URL from Amazon (I tried both the cloudfront URL and the S3 URL) but it says that there is not such a directory or file. I’ve seen examples on the web using external files so I expected it to work.
The command I’m using is
ffmpeg -i https://s3-eu-west-1.amazonaws.com/path/to/file.m4v
Is there something I need to configure in order to use external URLs ?
-
FFMPEG frames are choppy when piping images to mp4
15 décembre 2020, par Michael Joseph AubryI'm working to optimize my rendering technique, it has some noticeable frame drops here and there. It's hard to tell, if you take a look at this recording you will see what I mean https://share.getcloudapp.com/6quxYe5O


My technique involves hardcoding a default FPS to be 25 and to use that to take a screenshot of the video every
(25 / 1000) = 0.4
ms inside a Chrome instance.

When I run
ffmpeg -i ORIGINAL_VIDEO
I get this output

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://s3.us-west-1.amazonaws.com/storycreator.clips/e7d87660-51a8-11ea-a753-8f195b459e44':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.29.100
 Duration: 00:00:20.36, start: 0.000000, bitrate: 6095 kb/s
 Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 6092 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
 Metadata:
 handler_name : L-SMASH Video Handler



When I run it on the newly made video from the screenshots here is the ffmpeg output.


Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://s3.us-west-2.amazonaws.com/storycreator.testing/4aa5e5c0-3e89-11eb-a8b5-a38609fab693.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.29.100
 Duration: 00:00:15.04, start: 0.000000, bitrate: 4775 kb/s
 Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 16000 Hz, stereo, fltp, 83 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1080x1080 [SAR 1:1 DAR 1:1], 4698 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
 Metadata:
 handler_name : VideoHandler



Some slight differences. You can see the bitrate drops from 6095 to 4775. You will also notice audio was attached in the new one. The video size changed — this was intentional.


You also notice it go from
6092 kb/s
to4698 kb/s
not sure what that means, open to clarification. Another change before that is[SAR 1:1 DAR 16:9]
to[SAR 1:1 DAR 1:1]
not sure what that is.

The last major difference I notice is
handler_name : L-SMASH Video Handler
tohandler_name : VideoHandler
. Very curious about those properties as a learning bit.

Not sure out of those changes which one is the most important for smooth playback like the original. I assume its bitrate.