
Recherche avancée
Autres articles (5)
-
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 (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
-
MediaSPIP Init et Diogène : types de publications de MediaSPIP
11 novembre 2010, parÀ l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...)
Sur d’autres sites (1298)
-
FFmpeg takes too much time for generating m3u8 files from a mp4 file (166MB)
3 août 2021, par AngeleI am using ffmpeg in nodejs to generate 4 different resolutions (360p, 480p, 720p, 1080p).
I use a AWS lambda for each resolution and the last two take too much time.
I convert a mp4 file which has a size of 166MB into .ts files (with all segments associated)
It takes more than 900 seconds, and that's above the limit for a lambda timeout.


Also my goal is to encode mp4 videos of a maximum size of 4go... and it would be to encode within 900 seconds maximum for each resolution.


I used this website to find some parameters : https://docs.peer5.com/guides/production-ready-hls-vod/


These are my parameters given to ffmpeg :


"ffmpegParams": [
 "-vf",
 "scale=-2:1920",
 "-c:a",
 "aac",
 "-ar",
 "48000",
 "-c:v",
 "h264",
 "-profile:v",
 "main",
 "-crf",
 "20",
 "-sc_threshold",
 "0",
 "-g",
 "48",
 "-keyint_min",
 "48",
 "-hls_time",
 "4",
 "-hls_playlist_type",
 "vod",
 "-b:v",
 "5000k",
 "-maxrate",
 "5350k",
 "-bufsize",
 "7500k",
 "-b:a",
 "192k",
 "-hls_segment_filename",
 "/tmp/1080p_%03d.ts",
 "/tmp/1080p.m3u8"
]



Also I tried with these parameters '-vcodec', 'libx264', '-preset', 'ultrafast' and it made it faster but it is not enough...


Maybe there's something wrong with my command. If someone could maybe enlighten me ? :)


Edit : I ended up using an EC Fargate, perfect for this kind of need.


-
ffmpeg TCP connection refused trying to download m3u8 file
21 mai 2021, par CyeoleI'm trying to download a .m3u8 stream and convert it to mp4. The code I'm using is :


ffmpeg -i "http://v030.url/s/1/6/8/168192d4db9f6a2d0247784d11bd3aaa/stream/480p/index.m3u8?h=f676f54bc54d0a97a591fb5122c85cfb&e=1621581127" -c copy -bsf:a aac_adtstoasc outputname.mp4



However, I'm getting this error :


[tcp @ 0x7fbdda504900] Connection to tcp://v030.url:80 failed: Connection refused
http://v030.url/s/1/6/8/168192d4db9f6a2d0247784d11bd3aaa/stream/480p/index.m3u8?h=f676f54bc54d0a97a591fb5122c85cfb&e=1621581127: Connection refused



If I directly go to the link, it downloads the .m3u8 file without any problems and I've tried to convert this but it fails to read segments from the site. If I remove the "h=" and "e=" the link doesn't allow me to access the file.


Can someone please guide me on how to download this file in ffmpeg ? It seems like it's protected. Cheers !


I'm using ffmpeg on Mac OS X.


-
How to assign variable to different extension of files in same directory in bash
3 mai 2021, par Yacer AzeemI have a task to :


- 

- Watch a folder for video files (mp4,mov,mkv etc.)
- Transform the video files to HLS (480p, 720p, 1080p) using ffmpeg
- Move these files to a different folder
- Delete the original files from the watch folder
- Send an email stating that the following video file was transcoded












I want to deal with every .mp4 .mov and .mkv as a variable in bash so that I can perform the above-mentioned tasks.
The folder containing these files are in


/mnt/volume1/videos



directory architecture


/mnt/volum1/videos/sample.mp4
/mnt/volum1/videos/sample.mov
/mnt/volum1/videos/sample.mkv