
Recherche avancée
Autres articles (93)
-
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) (...)
-
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (7242)
-
Evolution #3775 : Moins de cookies
26 avril 2016, par jluc -Ça concerne gandi à l’origine, mais en ayant une politique pâtissière plus "générique", SPIP aura a priori plus de chance de bénéficier des varnish d’un plus grand nombre d’hébergeurs.
-
ffmpeg how mkv to mp4 with attachment in subtitle [closed]
17 juillet 2022, par SoonHirui have trouble,,
how re-encode MKV to MP4 with attachment font in substitles, before im muxing font using mkvmerge



Stream #0:0 : Video : h264 (High), yuv420p(tv, bt709, progressive), 848x480 [SAR 160:159 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn (default)
 Metadata :
 ENCODER : Lavc58.134.100 libx264
 BPS : 266289
 DURATION : 00:23:40.044000000
 NUMBER_OF_FRAMES : 34047
 NUMBER_OF_BYTES : 47267933
 _STATISTICS_WRITING_APP : mkvmerge v68.0.0 ('The Curtain') 64-bit
 _STATISTICS_WRITING_DATE_UTC : 2022-07-15 20:06:26
 _STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:1(jpn) : Audio : aac (LC), 44100 Hz, stereo, fltp (default)
 Metadata :
 BPS : 128000
 DURATION : 00:23:40.108000000
 NUMBER_OF_FRAMES : 61159
 NUMBER_OF_BYTES : 22721748
 _STATISTICS_WRITING_APP : mkvmerge v68.0.0 ('The Curtain') 64-bit
 _STATISTICS_WRITING_DATE_UTC : 2022-07-15 20:06:26
 _STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:2(ind) : Subtitle : ass (default) (forced)
 Metadata :
 BPS : 1126
 DURATION : 00:23:30.250000000
 NUMBER_OF_FRAMES : 1596
 NUMBER_OF_BYTES : 198591
 _STATISTICS_WRITING_APP : mkvmerge v68.0.0 ('The Curtain') 64-bit
 _STATISTICS_WRITING_DATE_UTC : 2022-07-15 20:06:26
 _STATISTICS_TAGS : BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:3 : Attachment : none
 Metadata :
 filename : ABELBECKER-LIGHT_0.TTF
 mimetype : font/ttf
 title : Imported font from sha202.ass
 Stream #0:4 : Attachment : none
 Metadata :
 filename : Leander_0.ttf
 mimetype : font/ttf
 title : Imported font from sha202.ass
 Stream #0:5 : Attachment : none
 Metadata :
 filename : OvertheRainbowFlipped_0.ttf
 mimetype : font/ttf
 title : Imported font from sha202.ass
 Stream #0:6 : Attachment : none
 Metadata :
 filename : QlassikBold_TB - Copy_0_0.ttf
 mimetype : font/otf
 title : Imported font from sha202.ass
Unsupported codec with id 0 for input stream 3
Unsupported codec with id 0 for input stream 4
Unsupported codec with id 0 for input stream 5
Unsupported codec with id 0 for input stream 6



I try using script


ffmpeg -i input.mkv -vf subtitles=input.mkv output.mp4



when finished, only the subtitles, not with attachments fonts


-
Brute Force Dimensional Analysis
15 juillet 2010, par Multimedia Mike — Game Hacking, PythonI was poking at the data files of a really bad (is there any other kind ?) interactive movie video game known simply by one letter : D. The Sega Saturn version of the game is comprised primarily of Sega FILM/CPK files, about which I wrote the book. The second most prolific file type bears the extension ’.dg2’. Cursory examination of sample files revealed an apparently headerless format. Many of the video files are 288x144 in resolution. Multiplying that width by that height and then doubling it (as in, 2 bytes/pixel) yields 82944, which happens to be the size of a number of these DG2 files. Now, if only I had a tool that could take a suspected raw RGB file and convert it to a more standard image format.
Here’s the FFmpeg conversion recipe I used :
ffmpeg -f rawvideo -pix_fmt rgb555 -s 288x144 -i raw_file -y output.png
So that covers the files that are suspected to be 288x144 in dimension. But what about other file sizes ? My brute force approach was to try all possible dimensions that would yield a particular file size. The Python code for performing this operation is listed at the end of this post.
It’s interesting to view the progression as the script compresses to different sizes :
That ’D’ is supposed to be red. So right away, we see that rgb555(le) is not the correct input format. Annoyingly, FFmpeg cannot handle rgb555be as a raw input format. But this little project worked well enough as a proof of concept.
If you want to toy around with these files (and I know you do), I have uploaded a selection at : http://multimedia.cx/dg2/.
Here is my quick Python script for converting one of these files to every acceptable resolution.
work-out-resolution.py :
PYTHON :-
# !/usr/bin/python
-
-
import commands
-
import math
-
import os
-
import sys
-
-
FFMPEG = "/path/to/ffmpeg"
-
-
def convert_file(width, height, filename) :
-
outfile = "%s-%dx%d.png" % (filename, width, height)
-
command = "%s -f rawvideo -pix_fmt rgb555 -s %dx%d -i %s -y %s" % (FFMPEG, width, height, filename, outfile)
-
commands.getstatusoutput(command)
-
-
if len(sys.argv) <2 :
-
print "USAGE : work-out-resolution.py <file>"
-
sys.exit(1)
-
-
filename = sys.argv[1]
-
if not os.path.exists(filename) :
-
print filename + " does not exist"
-
sys.exit(1)
-
-
filesize = os.path.getsize(filename) / 2
-
-
limit = int(math.sqrt(filesize)) + 1
-
for i in xrange(1, limit) :
-
if filesize % i == 0 and filesize & 1 == 0 :
-
convert_file(i, filesize / i, filename)
-
convert_file(filesize / i, i, filename)
-