
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (8)
-
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...) -
Taille des images et des logos définissables
9 février 2011, parDans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)
Sur d’autres sites (3234)
-
How to make a batch file wait for all processes of another call to finish before continuing
1er juillet 2020, par Roman StadlerThe idea of this script is to take a (lecture) video, split it into smaller pieces, remove the silence for each one, and merge them back together, for increased performance, since the silence-removing script does not scale that well for larger videos.


The 3 batch scripts below work perfectly when started manually after eachother, but when trying to launch them from a single .bat file, I can't prevent them from starting at the same time, which creates errors at the merging stage.


These are the 3 batch files :


- 

- split.bat
- startall.bat
- merge.bat








Split.bat creates 10 minute long segments, afterwards, startall.bat starts one Video-Remove-Silence task for every segment. At the end, merge.bat creates one single mp4 file with all the segments.


split.bat does the following :


ffmpeg -i in.mp4 -c copy -map 0 -segment_time 00:10:00 -f segment out%%03d.mp4
exit



startall.bat :


start start000.bat
start start001.bat
start start002.bat
start start003.bat
...



The start000.bat call looks like this :


python video-remove-silence out000.mp4 --linear 0.0005
exit



And merge.bat :


:: Create File List
for %%i in (*_result.mp4) do echo file '%%i'>> mylist.txt
:: Concatenate Files
ffmpeg -f concat -safe 0 -i mylist.txt -c copy shortened.mp4

del "C:\Users\Roman\Desktop\download\mylist.txt"
del "C:\Users\Roman\Desktop\download\out*.mp4"
exit



When trying either call, or start /wait, errors occur due to simultaneous execution :


START /wait split.bat
START /wait startall2.bat
START /wait merge.bat



So basically my question is, how can I call these 3 scripts and prevent merge.bat from starting, until all processes inside startall.bat have finished ?


-
lavc : Use supported_samplerates for Dolby Digital encoders.
11 février 2020, par Carl Eugen Hoyos -
ffmpeg doesn't detect the subtitle format (webvtt) and refuses to copy it
29 novembre 2023, par ThomasI am trying to re-encode the audio on some video files.
I want to copy the video and subtitles without touching them, however, ffmpeg doesn't detect the format of the subtitle (which is webvtt) and refuses to do anything.



fmpeg -copy_unknown -analyzeduration 2000M -probesize 2000M -i input.mkv -map_metadata 0 -map 0 -c copy -c:a:0 aac -b:a 384k output.mkv



[matroska,webm @ 0x5597558e4040] Unknown/unsupported AVCodecID S_TEXT/WEBVTT.
[matroska,webm @ 0x5597558e4040] Could not find codec parameters for stream 2 (Subtitle: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : 5.1
Input #0, matroska,webm, from 'input.mkv':
 Metadata:
 encoder : libebml v1.3.9 + libmatroska v1.5.2
 creation_time : 2020-03-05T09:03:02.000000Z
 Duration: 00:56:33.26, start: 0.000000, bitrate: 3597 kb/s
 Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
 Metadata:
 BPS-eng : 3340067
 DURATION-eng : 00:56:33.140000000
 NUMBER_OF_FRAMES-eng: 81354
 NUMBER_OF_BYTES-eng: 1416664616
 _STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-03-05 09:03:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:1: Audio: eac3, 48000 Hz, 5.1, fltp (default)
 Metadata:
 BPS-eng : 256000
 DURATION-eng : 00:56:33.248000000
 NUMBER_OF_FRAMES-eng: 106039
 NUMBER_OF_BYTES-eng: 108583936
 _STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-03-05 09:03:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
 Stream #0:2(eng): Subtitle: none (default)
 Metadata:
 BPS-eng : 38
 DURATION-eng : 00:54:47.388000000
 NUMBER_OF_FRAMES-eng: 514
 NUMBER_OF_BYTES-eng: 15766
 _STATISTICS_WRITING_APP-eng: mkvmerge v38.0.0 ('The Silent Type') 64-bit
 _STATISTICS_WRITING_DATE_UTC-eng: 2020-03-05 09:03:02
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES

Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Stream #0:1 -> #0:1 (eac3 (native) -> aac (native))
 Stream #0:2 -> #0:2 (copy)

[aac @ 0x5597b06ae000] Using a PCE to encode channel layout "5.1(side)"
[matroska @ 0x5597b06ab540] Subtitle codec 0 is not supported.
Could not write header for output file #0 (incorrect codec parameters ?): Function not implemented
Error initializing output stream 0:1 -- 
[aac @ 0x5597b06ae000] Qavg: -nan
Conversion failed!




VLC shows it as WebVTT and displays the subtitles correctly :






MediaInfo also detects properly as webvtt :



Text
ID : 3
Format : S_TEXT/WEBVTT
Codec ID : S_TEXT/WEBVTT
Duration : 54 min 47 s
Bit rate : 38 b/s
Count of elements : 514
Stream size : 15.4 KiB (0%)
Language : English
Default : Yes
Forced : No




My ffmpeg was built with webvtt :



$ ffmpeg -codecs | grep VTT
ffmpeg version n4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 9.3.0 (Arch Linux 9.3.0-1)
 configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
 DES... webvtt WebVTT subtitle




How can I tell ffmpeg "this is webvtt, just copy it please !" ?



EDIT : RESOLVED (thanks @Gyan)



To force the decoder,
-c:s webvtt
must be set before the input :
fmpeg -analyzeduration 50M -probesize 50M -c:s webvtt -i input.mkv ...