
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (25)
-
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 (...) -
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) (...)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (6422)
-
AWS Lambda execution time for FFMPEG transcoding
4 janvier 2023, par FlamingMoeI'm using AWS Lambda for converting files from WEBM to MP4


I'm using ffmpeg version 4.3.1-static https://johnvansickle.com/ffmpeg/ (I have done the following tests also with the ffmpeg in serverless AWS ffmpeg layer (that includes de 4.1.3), but results are even worse (about 25% slower)


I'm using Node 10x as container.


WEBM size Time to convert. Memory Lambda. Memory used (as shown in log)

80Mb ~44s 3008 410
40Mb ~44s 3008 375

80Mb ~70s 1024 321
40Mb ~70s 1024 279



All videos are 80s length. So as far as I can see, it does not matter the size of the WEBM, if the length of the video is the same, it takes the same to convert. So ffmpeg takes more time if the video length is higher, not if the file size is higher ... curious ;-)


But in the other hand, I'm confused with Lambda memory. I know memory and CPU comes together in Lambda ... the more memory you choose, the more CPU is assigned.


But...


- 

- Why ffmpeg just take about 300/400Mb if it has more to run ?
- How can I tell ffmpeg to use more memory ?
- Is there any option to accelerate the process in Lambda ?








Btw, In all tests, all ffmpeg are the same, and


cpu-used paramenter)


- 

- I added to ffmpeg parameters cpu-used=100, and it does not matter at all if I put cpu-used=5 ... times are the same, so I guess that parameter is useless (i don't know why)




threads parameter)


- 

- Also I did some tests with "threads" parameters, but it's useless also.




I know it's not a good comparison, but same files takes about 5 seconds to be converted in a simple dedicated server (8 vCores and 8GB RAM in OVH Centos VPS).


Btw, Amazon Elastic Transcoder is not an option :
a) it's extremely more expensive
b) it has just his profiles to convert, and my ffmpeg commands are very complex (watermarks, effects, etc ...)


-
rtmp audio out of sync, http works fine
21 janvier 2014, par marcaWe have encoded and distributed videos for some years now, using FFMPEG to produce h.264/mp4 files that have been working great for us. We have been using HTML mode and fall-backed to flash for browsers that does not support it natively using flowplayer.
We use cloudfront to serve our files from a s3 bucket and have been using http progressive streaming.
Recently we started distribute the files in flashmode over rtmp instead, using a cloudfront streaming distribution pointing to the same amazon s3 bucket.
All good for some weeks, until yesterday when we notice a couple of files with audio sync issues in rtmp mode.
The same file have no sync problems in flash with direct url to file.What can be the case ?
Not working when streamed via RTMP, but file work with http streaming/progressive.
You see the sync issue 15 sec's into the video.
rtmp ://s2xe2avk54qztf.cloudfront.net:1935/cfx/st/mp4:95fvOY255bdPspO3z6tEvGi3Em7/default.mp4
http://media.shootitlive.com/95fvOY255bdPspO3z6tEvGi3Em7/default.mp4Another file that have no sync issue at all.
rtmp ://s2xe2avk54qztf.cloudfront.net:1935/cfx/st/mp4:P4EuH2TZxfV6BvpupP6dxrrs7gD/default.mp4
http://media.shootitlive.com/P4EuH2TZxfV6BvpupP6dxrrs7gD/default.mp4Both files have the same format for video and audio and have been encoded the exact same way with ffmpeg. It's not player related as we see the audio sync issue on several players and when playing stream in VLC.
-
Ffmpeg convert images to video error in android
21 avril 2016, par msjMy main goal is creating a video file using series of images. then I build the Ffmpeg library to android using Roman10 Tutorial.
When creating a android app I add .so files and ffmpeg File to assert folder.
Then executing command,
ffmpeg -f image2 -i img%d.jpg a.mov
Then following error display in my LogCat,
04-20 09:47:16.133 : V/MJPEG_FFMPEG(1095) : * libavutil 55. 17.103 / 55. 17.103***
04-20 09:47:16.133 : V/MJPEG_FFMPEG(1095) : * libavcodec 57. 24.102 / 57. 24.102***
04-20 09:47:16.133 : V/MJPEG_FFMPEG(1095) : * libavformat 57. 25.100 / 57. 25.100***
04-20 09:47:16.133 : V/MJPEG_FFMPEG(1095) : * libavfilter 6. 31.100 / 6. 31.100***
04-20 09:47:16.133 : V/MJPEG_FFMPEG(1095) : * libswscale 4. 0.100 / 4. 0.100***
04-20 09:47:16.133 : V/MJPEG_FFMPEG(1095) : * libswresample 2. 0.101 / 2. 0.101***
04-20 09:47:16.143 : V/MJPEG_FFMPEG(1095) : * [mjpeg @ 0x1fffc0] bits 222 is invalid***
04-20 09:47:16.163 : V/MJPEG_FFMPEG(1095) : * Last message repeated 25 times***
04-20 09:47:16.163 : V/MJPEG_FFMPEG(1095) : * [image2 @ 0x1ff180] decoding for stream 0 failed***
04-20 09:47:16.163 : V/MJPEG_FFMPEG(1095) : * [image2 @ 0x1ff180] Could not find codec parameters for stream 0 (Video : mjpeg, none(bt470bg/unknown/unknown)) : unspecified size***04-20 09:47:16.163 : V/MJPEG_FFMPEG(1095) : *nConsider increasing the value for the ’analyzeduration’ and ’probesize’ options***
04-20 09:47:16.163 : V/MJPEG_FFMPEG(1095) : */storage/emulated/0/com.example.createvideo/frame_%05d.jpg : could not find codec parameters***
04-20 09:47:16.163 : V/MJPEG_FFMPEG(1095) : *Input #0, image2, from ’/storage/emulated/0/com.example.createvideo/frame_%05d.jpg’ :***
04-20 09:47:16.163 : V/MJPEG_FFMPEG(1095) : * Duration : 00:00:01.04, start : 0.000000, bitrate : N/A***
04-20 09:47:16.163 : V/MJPEG_FFMPEG(1095) : * Stream #0:0 : Video : mjpeg, none(bt470bg/unknown/unknown), 25 fps, 25 tbr, 25 tbn, 25 tbc***
04-20 09:47:16.163 : V/MJPEG_FFMPEG(1095) : *[buffer @ 0x1ff020] Unable to parse option value "0x0" as image size***
04-20 09:47:16.163 : V/MJPEG_FFMPEG(1095) : *[buffer @ 0x1ff020] Unable to parse option value "-1" as pixel format***
04-20 09:47:16.163 : V/MJPEG_FFMPEG(1095) : *[buffer @ 0x1ff020] Unable to parse option value "0x0" as image size***
04-20 09:47:16.163 : V/MJPEG_FFMPEG(1095) : *[buffer @ 0x1ff020] Error setting option video_size to value 0x0.***
04-20 09:47:16.163 : V/MJPEG_FFMPEG(1095) : *[graph 0 input from stream 0:0 @ 0x1ff100] Error applying options to the filter.***
04-20 09:47:16.163 : V/MJPEG_FFMPEG(1095) : *Error opening filters !***
04-20 09:47:16.163 : V/MJPEG_FFMPEG(1095) : *Ending FFMPEG***
I set the -analyzeduration and -probesize but same LogCat displayed.
Please someone help me to do this.
Thanks for your time..