
Recherche avancée
Autres articles (9)
-
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) (...)
-
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 (...)
Sur d’autres sites (3985)
-
Rails : MP4 videos showing up blank in Firefox (but works in Chrome)
10 février 2015, par Mark BoulderI got this Rails app with uploaded MP4 videos that play back just fine in Chrome - but why do they show up blank in Firefox ?
The video appears on the page and plays just fine if I download it :
<video loop="loop" src="/path/to/whatever.mp4?1234567"></video>
From Rails I did :
<%= video_tag photo.attachment_url(:medium) %>
I tried adding
Mime::Type.register "video/mp4", :mp4
toconfig/initializers/mime_types.rb
but to no avail.Live app : http://runnable.com/VNkNeJ9wpNZJBEma/paperclip-mp4-problem
Click
Run
and navigate to the last post to see the MP4. Note that Runnable is very slow. If it sayssomething bad happened
in the terminal, try reloading the page until it disappears. -
ffmpeg MKV to MP4 format conversion issues
28 septembre 2019, par Lucas LecceI converted a 3Gb MKV video file to MP4 format using the following ffmpeg command :
ffmpeg -i input.mkv -c: v libx264 -crf 23 -c: a aac -movflags faststart output.mp4
ffmpeg -i input.mkv -acodec copy -vcodec copy output.mp4
ffmpeg version N-95111-g87ddf9f1ef Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20190918
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
libavutil 56. 35.100 / 56. 35.100
libavcodec 58. 59.100 / 58. 59.100
libavformat 58. 33.100 / 58. 33.100
libavdevice 58. 9.100 / 58. 9.100
libavfilter 7. 59.100 / 7. 59.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Input #0, matroska,webm, from 'input.mkv':
Metadata:
title : claucha75
encoder : libebml v1.3.5 + libmatroska v1.4.8
creation_time : 2018-01-23T22:07:33.000000Z
Duration: 01:37:13.89, start: 0.000000, bitrate: 5044 kb/s
Stream #0:0: Video: h264 (High), yuv420p(tv, bt709, progressive), 1920x1080, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Metadata:
title : claucha75
BPS : 4146894
BPS-eng : 4146894
DURATION : 01:37:12.952000000
DURATION-eng : 01:37:12.952000000
NUMBER_OF_FRAMES: 139851
NUMBER_OF_FRAMES-eng: 139851
NUMBER_OF_BYTES : 3023579528
NUMBER_OF_BYTES-eng: 3023579528
_STATISTICS_WRITING_APP: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2018-01-23 22:07:33
_STATISTICS_WRITING_DATE_UTC-eng: 2018-01-23 22:07:33
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(spa): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
Metadata:
title : Latino
BPS : 448000
BPS-eng : 448000
DURATION : 01:37:13.888000000
DURATION-eng : 01:37:13.888000000
NUMBER_OF_FRAMES: 182309
NUMBER_OF_FRAMES-eng: 182309
NUMBER_OF_BYTES : 326697728
NUMBER_OF_BYTES-eng: 326697728
_STATISTICS_WRITING_APP: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2018-01-23 22:07:33
_STATISTICS_WRITING_DATE_UTC-eng: 2018-01-23 22:07:33
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
Metadata:
title : Ingles
BPS : 448000
BPS-eng : 448000
DURATION : 01:37:13.856000000
DURATION-eng : 01:37:13.856000000
NUMBER_OF_FRAMES: 182308
NUMBER_OF_FRAMES-eng: 182308
NUMBER_OF_BYTES : 326695936
NUMBER_OF_BYTES-eng: 326695936
_STATISTICS_WRITING_APP: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2018-01-23 22:07:33
_STATISTICS_WRITING_DATE_UTC-eng: 2018-01-23 22:07:33
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:3(spa): Subtitle: subrip
Metadata:
title : Sub. Latino
BPS : 58
BPS-eng : 58
DURATION : 01:27:56.723000000
DURATION-eng : 01:27:56.723000000
NUMBER_OF_FRAMES: 1048
NUMBER_OF_FRAMES-eng: 1048
NUMBER_OF_BYTES : 38641
NUMBER_OF_BYTES-eng: 38641
_STATISTICS_WRITING_APP: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2018-01-23 22:07:33
_STATISTICS_WRITING_DATE_UTC-eng: 2018-01-23 22:07:33
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:4(eng): Subtitle: subrip
Metadata:
title : Sub. Ingles
BPS : 72
BPS-eng : 72
DURATION : 01:32:29.880000000
DURATION-eng : 01:32:29.880000000
NUMBER_OF_FRAMES: 1820
NUMBER_OF_FRAMES-eng: 1820
NUMBER_OF_BYTES : 50243
NUMBER_OF_BYTES-eng: 50243
_STATISTICS_WRITING_APP: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2018-01-23 22:07:33
_STATISTICS_WRITING_DATE_UTC-eng: 2018-01-23 22:07:33
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
File 'output.mp4' already exists. Overwrite ? [y/N] y
[mp4 @ 000002935ee0ff00] track 1: codec frame size is not set
Output #0, mp4, to 'output.mp4':
Metadata:
title : claucha75
encoder : Lavf58.33.100
Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 23.98 tbr, 16k tbn, 1k tbc (default)
Metadata:
title : claucha75
BPS : 4146894
BPS-eng : 4146894
DURATION : 01:37:12.952000000
DURATION-eng : 01:37:12.952000000
NUMBER_OF_FRAMES: 139851
NUMBER_OF_FRAMES-eng: 139851
NUMBER_OF_BYTES : 3023579528
NUMBER_OF_BYTES-eng: 3023579528
_STATISTICS_WRITING_APP: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2018-01-23 22:07:33
_STATISTICS_WRITING_DATE_UTC-eng: 2018-01-23 22:07:33
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1(spa): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
Metadata:
title : Latino
BPS : 448000
BPS-eng : 448000
DURATION : 01:37:13.888000000
DURATION-eng : 01:37:13.888000000
NUMBER_OF_FRAMES: 182309
NUMBER_OF_FRAMES-eng: 182309
NUMBER_OF_BYTES : 326697728
NUMBER_OF_BYTES-eng: 326697728
_STATISTICS_WRITING_APP: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
_STATISTICS_WRITING_APP-eng: mkvmerge v20.0.0 ('I Am The Sun') 64-bit
_STATISTICS_WRITING_DATE_UTC: 2018-01-23 22:07:33
_STATISTICS_WRITING_DATE_UTC-eng: 2018-01-23 22:07:33
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=139851 fps=2149 q=-1.0 Lsize= 3275868kB time=01:37:13.85 bitrate=4600.0kbits/s speed=89.7x
video:2952714kB audio:319041kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.125715%The command produces a MP4 file. The file takes a long time to open and then it takes several more minutes for a frame to appear. The converted file is also missing audio.
Does anyone have an idea about the slow loading time and missing audio ?
-
FFMPEG Concat protocol Error : Found duplicated MOOV Atom. Skipped it
11 septembre 2020, par user3541092I'm concatenating mp3 files into a single m4a.



To save time, I'm doing the mp3 to m4a conversion first (multi-threaded) and then concatenating the output files (m4a) into a single m4a file.



The concat works when I do the conversion (mp3 -> m4a) and cancat in one swoop. But it takes forever to run.



Example :



ffmpeg -i "concat:001.mp3|002.mp3|003.mp3" -codec:a aac -c copy output.m4a





If I take those same mp3 files and convert them to m4a in parallel and then concat, I can save myself a significant amount time.



The problem is if I run the concat command on the converted m4a files



Example cmd :



ffmpeg -i "concat:001.m4a|002.m4a|003.m4a" -c copy output.m4a




I getting the following error :





[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000052f680] Found duplicated MOOV
 Atom. Skipped it






UPDATE : Ouput when concatenating m4a files (two track example) :



C:\_ffmpeg>ffmpeg -i "concat:001.m4a|002.m4a" -c copy output.m4a
ffmpeg version N-79630-g9ac154d Copyright (c) 2000-2016 the FFmpeg developers
 built with gcc 5.3.0 (GCC)
 configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enabl
e-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable
-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --ena
ble-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx
264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable
-lzma --enable-decklink --enable-zlib
 libavutil 55. 22.101 / 55. 22.101
 libavcodec 57. 38.100 / 57. 38.100
 libavformat 57. 34.103 / 57. 34.103
 libavdevice 57. 0.101 / 57. 0.101
 libavfilter 6. 44.100 / 6. 44.100
 libswscale 4. 1.100 / 4. 1.100
 libswresample 2. 0.101 / 2. 0.101
 libpostproc 54. 0.100 / 54. 0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000048a9a0] Found duplicated MOOV Atom. Skipped
 it
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'concat:001.m4a|002.m4a':
 Metadata:
 track : 1
 major_brand : M4A
 minor_version : 512
 title : 001 Moon Over Soho
 artist : Ben Aaronovitch
 album_artist : Narrated by Kobna Holdbrook-Smith
 composer : Narrated by Kobna Holdbrook-Smith
 album : Moon Over Soho
 date : 2012
 encoder : Lavf57.34.103
 genre : Speech
 copyright : Tantor Audio
 compatible_brands: isomiso2
 Duration: 00:44:03.83, start: 0.000000, bitrate: 251 kb/s
 Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, flt
p, 128 kb/s (default)
 Metadata:
 handler_name : SoundHandler
[ipod @ 000000000048bb20] Using AVStream.codec to pass codec parameters to muxer
s is deprecated, use AVStream.codecpar instead.
Output #0, ipod, to 'output.m4a':
 Metadata:
 track : 1
 major_brand : M4A
 minor_version : 512
 title : 001 Moon Over Soho
 artist : Ben Aaronovitch
 album_artist : Narrated by Kobna Holdbrook-Smith
 composer : Narrated by Kobna Holdbrook-Smith
 album : Moon Over Soho
 date : 2012
 compatible_brands: isomiso2
 genre : Speech
 copyright : Tantor Audio
 encoder : Lavf57.34.103
 Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 128
 kb/s (default)
 Metadata:
 handler_name : SoundHandler
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
size= 41892kB time=00:44:03.80 bitrate= 129.8kbits/s speed=2.21e+003x
video:0kB audio:41445kB subtitle:0kB other streams:0kB global headers:0kB muxing
 overhead: 1.077122%

C:\_ffmpeg>pause
Press any key to continue . . .