
Recherche avancée
Médias (91)
-
DJ Z-trip - Victory Lap : The Obama Mix Pt. 2
15 septembre 2011
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Matmos - Action at a Distance
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Danger Mouse & Jemini - What U Sittin’ On ? (starring Cee Lo and Tha Alkaholiks)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Cornelius - Wataridori 2
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Rapture - Sister Saviour (Blackstrobe Remix)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (86)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (6595)
-
Soft-encoding of subtitles into MPEG-4 file
7 octobre 2017, par PygmalionIt is a well-known fact that one can soft-encode subtitles into MKV files, that is by playing MKV file with soft-endoded subtitles, one can turn them on or off.
My questions is, is it possible to soft-encode subtitles into MP4 files ? I feel like if I am searching for a Yeti. Googling this in 99% cases returns methods that actually hard-encode subtitles and in 1% cases non-working solutions. I tried
ffmpeg
,avidemux
and dozen of other online and offline solutions.The closest I could get to the solution was
Use ffmpeg to add text subtitles
however it does not work. What I consistently get is
Packet with invalid duration -XXXX in stream 1
error.
Therefore, can someone give me authoritative answer : Is it possible or is it not possible to soft-encode subtitles in MP4 ? Does anyone know any working solution ? Thanks.
EDIT : Since it is a rather short video (cca. 1 minute) and rather short subtitles, I can provide them for testing.
Here is the full log for my
ffmpeg
command :ffmpeg version 2.8.4 Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 5.2.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-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1-1.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.25.101
Duration: 00:01:14.94, start: 0.133000, bitrate: 278 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x480 [
SAR 1:1 DAR 3:2], 144 kb/s, 29.96 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(unk): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 12
8 kb/s (default)
Metadata:
handler_name : SoundHandler
Input #1, srt, from '1-1.srt':
Duration: N/A, bitrate: N/A
Stream #1:0: Subtitle: subrip
File '1-1test.mp4' already exists. Overwrite ? [y/N] y
[mp4 @ 04ea37c0] Codec for stream 0 does not use global headers but container fo
rmat requires global headers
[mp4 @ 04ea37c0] Codec for stream 1 does not use global headers but container fo
rmat requires global headers
Output #0, mp4, to '1-1test.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf56.40.101
Stream #0:0(und): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 720x480 [SA
R 1:1 DAR 3:2], q=2-31, 144 kb/s, 29.96 fps, 29.97 tbr, 30k tbn, 30k tbc (defaul
t)
Metadata:
handler_name : VideoHandler
Stream #0:1(unk): Audio: mp3 (i[0][0][0] / 0x0069), 48000 Hz, stereo, 128 kb
/s (default)
Metadata:
handler_name : SoundHandler
Stream #0:2: Subtitle: mov_text ([8][0][0][0] / 0x0008)
Metadata:
encoder : Lavc56.60.100 mov_text
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Stream #1:0 -> #0:2 (subrip (srt) -> mov_text (native))
Press [q] to stop, [?] for help
[mp4 @ 04ea37c0] Packet with invalid duration -5232 in stream 1
frame= 2245 fps=0.0 q=-1.0 Lsize= 2550kB time=00:01:14.92 bitrate= 278.8kbits
/s
video:1320kB audio:1171kB subtitle:1kB other streams:0kB global headers:0kB muxi
ng overhead: 2.340987% -
Extracting Subtitles using FFMPEG (Unsupported subtitles codec : eia_608)
4 octobre 2017, par Marian MontagninoThe info for the input file is :
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'cpcdemo.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2010-06-23T17:51:49.000000Z
encoder : CoreMediaAuthoring 700, CoreMedia 484.11, i386
Duration: 00:01:45.90, start: 0.000000, bitrate: 940 kb/s
Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 131 kb/s (default)
Metadata:
creation_time : 2010-06-23T17:51:49.000000Z
handler_name : Apple Alias Data Handler
Stream #0:1: Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 480x270 [SAR 1:1 DAR 16:9], 800 kb/s, 23.98 fps, 23.98 tbr, 23976 tbn, 47952 tbc (default)
Metadata:
creation_time : 2010-06-23T17:51:49.000000Z
handler_name : Apple Alias Data Handler
Stream #0:2(eng): Subtitle: eia_608 (c608 / 0x38303663), 480x270, 4 kb/s (default)
Metadata:
creation_time : 2010-06-23T17:51:49.000000Z
handler_name : Apple Alias Data HandlerAnd shows that stream #0:2 contains subtitles in eia_608 format. Using the following command to extract those subtitles into the output.srt file :
ffmpeg -i cpcdemo.mov -map 0:2 -c:s copy output.srt
We get the following output :
ffmpeg version N-85692-g78a5fc4 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)
configuration: --prefix=/tmp/gm-ffmpeg-1.0.4/BUILD/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/tmp/gm-ffmpeg-1.0.4/BUILD/ffmpeg_build/include --extra-ldflags=-L/tmp/gm-ffmpeg-1.0.4/BUILD/ffmpeg_build/lib --bindir=/tmp/gm-ffmpeg-1.0.4/BUILDROOT/gm-ffmpeg-1.0.4-1.el7.centos.x86_64/opt/graymeta/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-nonfree
libavutil 55. 61.100 / 55. 61.100
libavcodec 57. 93.100 / 57. 93.100
libavformat 57. 72.101 / 57. 72.101
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 87.100 / 6. 87.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'cpcdemo.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2010-06-23T17:51:49.000000Z
encoder : CoreMediaAuthoring 700, CoreMedia 484.11, i386
Duration: 00:01:45.90, start: 0.000000, bitrate: 940 kb/s
Stream #0:0: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 131 kb/s (default)
Metadata:
creation_time : 2010-06-23T17:51:49.000000Z
handler_name : Apple Alias Data Handler
Stream #0:1: Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 480x270 [SAR 1:1 DAR 16:9], 800 kb/s, 23.98 fps, 23.98 tbr, 23976 tbn, 47952 tbc (default)
Metadata:
creation_time : 2010-06-23T17:51:49.000000Z
handler_name : Apple Alias Data Handler
Stream #0:2(eng): Subtitle: eia_608 (c608 / 0x38303663), 480x270, 4 kb/s (default)
Metadata:
creation_time : 2010-06-23T17:51:49.000000Z
handler_name : Apple Alias Data Handler
File 'output.srt' already exists. Overwrite ? [y/N] y
[srt @ 0x259c460] Unsupported subtitles codec: eia_608
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
Stream #0:2 -> #0:0 (copy)
Last message repeated 1 timesIt states that eis_608 is an unsupported codec, except I see that it’s listed as a supported codec under :
ffmpeg -codecs
Any possible reasons why this may be failing ?
-
ffmpeg adding ass subtitles : error initializing filter 'subtitles' with args ''
30 décembre 2023, par user5609622So I want to convert my mkv files to mp4 with hardcoded subs



While this works fine :



ffmpeg.exe -i "[X] File - 1 [Y].mkv" -c:v libx264 -preset veryfast -b:v 2750k -pass 1 -c:a aac "file_out.mp4"




When I want to add the ASS subtitles (from the same MKV file) like so :



ffmpeg.exe -i "[X] File - 1 [Y].mkv" -vf subtitles="[X] File - 1 [Y].mkv" -c:v libx264 -preset veryfast -b:v 2750k -pass 1 -c:a aac "file_out.mp4"




the following error is produced :



[Parsed_subtitles_0 @ 00000000259c840] No filename provided!
[AVFilterGraph @ 000000000094dc20] Error initializing filter 'subtitles' with args ''




It seems like somehow it didn't pick up the filename for the subtitles. So what's the deal with that ?