
Recherche avancée
Médias (91)
-
999,999
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
-
Demon seed (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
The four of us are dying (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Corona radiata (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
-
Lights in the sky (wav version)
26 septembre 2011, par
Mis à jour : Avril 2013
Langue : English
Type : Audio
Autres articles (86)
-
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 (...) -
Mise à disposition des fichiers
14 avril 2011, parPar défaut, lors de son initialisation, MediaSPIP ne permet pas aux visiteurs de télécharger les fichiers qu’ils soient originaux ou le résultat de leur transformation ou encodage. Il permet uniquement de les visualiser.
Cependant, il est possible et facile d’autoriser les visiteurs à avoir accès à ces documents et ce sous différentes formes.
Tout cela se passe dans la page de configuration du squelette. Il vous faut aller dans l’espace d’administration du canal, et choisir dans la navigation (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, 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 (5083)
-
webm video - it can not be copy to cut a correct time part for ffmpeg command(without re-encode) [closed]
15 mars 2024, par DanielHsuCommand Goal :


- 

- fast copy video's part
- no re-encode with libvpx






Linux command below :
ffmpeg -ss 00:01:00 -to 00:02:00 -i input.webm -c copy output.webm


command's process details :


ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) configuration:
--enable-libvpx libavutil 58. 29.100 / 58. 29.100 libavcodec 60. 31.102 / 60. 31.102 libavformat 60. 16.100 / 60. 16.100 libavdevice 60. 3.100 / 60. 3.100 libavfilter 9. 12.100 / 
9. 12.100 libswscale 7. 5.100 / 7. 5.100 libswresample 4. 12.100 / 4. 12.100 Input #0, matroska,webm, from 'input.webm': Metadata:
 title : FFmpeg
 ENCODER : Lavf58.29.100 Duration: 00:06:04.43, start: 0.000000, bitrate: 2487 kb/s Stream #0:0: Video: vp8, yuv420p(tv, bt470bg/unknown/unknown, progressive), 1280x720, SAR 1:1 DAR 16:9, 1k tbr, 1k tbn (default)
 Metadata:
 DURATION : 00:06:04.432000000 Output #0, webm, to 'output.webm': Metadata:
 title : FFmpeg
 encoder : Lavf60.16.100 Stream #0:0: Video: vp8, yuv420p(tv, bt470bg/unknown/unknown, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 1k tbr, 1k tbn (default)
 Metadata:
 DURATION : 00:06:04.432000000 Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help [out#0/webm @ 0x5609ee9bb840] video:35912kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.069370% size= 35937kB time=00:00:59.96 bitrate=4909.2kbits/s speed= 211x



command usage's result :
output.webm always start from input.webm's 00:00:00 to end input.webm's 00:01:00
(it should be start from input.webm's 00:01:00 to end input.webm's 00:02:00 )


input.webm format details from mediainfo tool :




General Count : 331 Count of stream
of this kind : 1 Kind of stream

 : General Kind of stream : General Stream
identifier : 0 Count of video streams

 : 1 Video_Format_List : VP8
Video_Format_WithHint_List : VP8 Codecs Video

 : VP8 Complete name :
pure_film/65ea641a4075c92236151349_video.webm Folder name

 : pure_film File name extension :
65ea641a4075c92236151349_video.webm File name

 : 65ea641a4075c92236151349_video File extension

 : webm Format : WebM Format

 : WebM Format/Url :
http://www.webmproject.org/ Format/Extensions usually used :
webm Commercial name : WebM Format version

 : Version 2 Internet media type : video/webm File
size : 113301943 File size

 : 108 MiB File size : 108 MiB File size
 : 108 MiB File size : 108 MiB File size
 : 108.1 MiB Duration : 364432 Duration
 : 6 min 4 s Duration : 6 min 4 s 432
ms Duration : 6 min 4 s Duration

 : 00:06:04.432 Duration : 00:06:04.432
Overall bit rate : 2487201 Overall bit rate

 : 2 487 kb/s Stream size : 4801069 Stream
size : 4.58 MiB (4%) Stream size

 : 5 MiB Stream size : 4.6 MiB Stream size
 : 4.58 MiB Stream size : 4.579 MiB Stream
size : 4.58 MiB (4%) Proportion of this
stream : 0.04237 IsStreamable

 : Yes Title : FFmpeg Movie name

 : FFmpeg File last modification date : UTC 2024-03-08
01:41:47 File last modification date (local) : 2024-03-08
09:41:47 Writing application : Lavf58.29.100
Writing application : Lavf58.29.100 Writing
library : Lavf58.29.100 Writing library

 : Lavf58.29.100

Video Count : 377 Count of stream
of this kind : 1 Kind of stream

 : Video Kind of stream : Video Stream
identifier : 0 StreamOrder

 : 0 ID : 1 ID

 : 1 Unique ID : 1 Format

 : VP8 Format : VP8 Format/Url

 : http://www.webmproject.org/ Commercial name

 : VP8 Codec ID : V_VP8 Codec ID/Url

 : http://www.webmproject.org/ Duration

 : 364432.000000 Duration : 6 min 4 s
Duration : 6 min 4 s 432 ms Duration

 : 6 min 4 s Duration : 00:06:04.432
Duration : 00:06:04.432 Bit rate

 : 2381808 Bit rate : 2 382 kb/s Width
 : 1280 Width : 1 280 pixels Height
 : 720 Height : 720 pixels Pixel
aspect ratio : 1.000 Display aspect ratio

 : 1.778 Display aspect ratio : 16:9 Frame rate
mode : VFR Frame rate mode

 : Variable Color space : YUV Compression
mode : Lossy Compression mode

 : Lossy Delay : 0 Delay

 : 00:00:00.000 Delay, origin : Container
Delay, origin : Container Stream size

 : 108500874 Stream size : 103 MiB (96%)
Stream size : 103 MiB Stream size

 : 103 MiB Stream size : 103 MiB Stream
size : 103.5 MiB Stream size

 : 103 MiB (96%) Proportion of this stream : 0.95763
Default : Yes Default

 : Yes Forced : No Forced

 : No colour_description_present : Yes
colour_description_present_Source : Container Color range

 : Limited colour_range_Source : Container Matrix
coefficients : BT.470 System B/G
matrix_coefficients_Source : Container



How to make the output.webm be in correct time range(00:01:00 00:02:00) ????


-
Struggling to add subtitles to a video using FFMPEG and C#
19 mars 2024, par MattHodsonI'm trying to add subtitles to my videos, 100% with code using FFMPEG and C#.


But I'm getting the following error :




ffmpeg version 2024-02-04-git-7375a6ca7b-essentials_build-www.gyan.dev Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
configuration : —enable-gpl —enable-version3 —enable-static —pkg-config=pkgconf —disable-w32threads —disable-autodetect —enable-fontconfig —enable-iconv —enable-gnutls —enable-libxml2 —enable-gmp —enable-bzlib —enable-lzma —enable-zlib —enable-libsrt —enable-libssh —enable-libzmq —enable-avisynth —enable-sdl2 —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxvid —enable-libaom —enable-libopenjpeg —enable-libvpx —enable-mediafoundation —enable-libass —enable-libfreetype —enable-libfribidi —enable-libharfbuzz —enable-libvidstab —enable-libvmaf —enable-libzimg —enable-amf —enable-cuda-llvm —enable-cuvid —enable-ffnvcodec —enable-nvdec —enable-nvenc —enable-dxva2 —enable-d3d11va —enable-libvpl —enable-libgme —enable-libopenmpt —enable-libopencore-amrwb —enable-libmp3lame —enable-libtheora —enable-libvo-amrwbenc —enable-libgsm —enable-libopencore-amrnb —enable-libopus —enable-libspeex —enable-libvorbis —enable-librubberband
libavutil 58. 36.101 / 58. 36.101
libavcodec 60. 38.100 / 60. 38.100
libavformat 60. 20.100 / 60. 20.100
libavdevice 60. 4.100 / 60. 4.100
libavfilter 9. 17.100 / 9. 17.100
libswscale 7. 6.100 / 7. 6.100
libswresample 4. 13.100 / 4. 13.100
libpostproc 57. 4.100 / 57. 4.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C :\Users\Gamer\source\repos\XXXX\bin\Debug\net8.0\ce31c8ab-4b53-44e8-9e25-d02ba5466144\output.mp4' :
Metadata :
major_brand : isom
minor_version : 512
compatible_brands : isomiso2avc1mp41
encoder : Lavf60.20.100
Duration : 00:03:18.84, start : 0.000000, bitrate : 101 kb/s
Stream #0:00x1 : Video : h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 1024x1792, 26 kb/s, 1 fps, 1 tbr, 16384 tbn (default)
Metadata :
handler_name : VideoHandler
vendor_id : [0][0][0][0]
encoder : Lavc60.38.100 libx264
Stream #0:10x2 : Audio : aac (LC) (mp4a / 0x6134706D), 24000 Hz, mono, fltp, 74 kb/s (default)
Metadata :
handler_name : SoundHandler
vendor_id : [0][0][0][0]
[Parsed_subtitles_0 @ 000001a87404e3c0] Unable to parse option value "UsersGamersourcereposXXXXbinDebugnet8.0ce31c8ab-4b53-44e8-9e25-d02ba5466144output.srt" as image size
Error applying option 'original_size' to filter 'subtitles' : Invalid argument
[vost#0:0/libx264 @ 000001a874064a40] Error initializing a simple filtergraph
Error opening output file C :\Users\Gamer\source\repos\XXXX\bin\Debug\net8.0\ce31c8ab-4b53-44e8-9e25-d02ba5466144\videoWithSubtitles.mp4.
Error opening output files : Invalid argument




It seems to be something related to paths, but I have tried EVERYTHING in my knowledge to fix this, still no luck... spent the majority of the day on it, no luck... so StackOverflow here I come !


My code :


public static async Task AddSubtitlesToVideoAsync(string videoPath, string subtitlesPath, string outputPath)
 {
 if (File.Exists(videoPath) && File.Exists(subtitlesPath))
 {
 //string subtitlesPathForwardSlashes = subtitlesPath.Replace("\\", "/");
 //string ffmpegCommand = $"-i \"{videoPath}\" -filter_complex \"subtitles='{subtitlesPathForwardSlashes}'\" \"{outputPath}\"";
 //string ffmpegCommand = $"-i \"{videoPath}\" -vf subtitles={subtitlesPathForwardSlashes} \"{outputPath}\"";
 //string ffmpegCommand = $"-i \"{videoPath}\" -vf subtitles=\"{subtitlesPath}\" \"{outputPath}\"";
 string subtitlesPathEscaped = subtitlesPath.Replace("\\", "\\\\");
 string ffmpegCommand = $"-i \"{videoPath}\" -vf subtitles=\"{subtitlesPathEscaped}\" \"{outputPath}\"";


 //output -i C:\Users\Gamer\source\repos\XXXX\bin\Debug\net8.0\d745a08d-b932-47ac-a81c-45e9483590a7\output.mp4 -vf subtitles="C:/Users/Gamer/source/repos/XXXX/bin/Debug/net8.0/d745a08d-b932-47ac-a81c-45e9483590a7/generatedSubtitles.srt" C:\Users\Gamer\source\repos\XXXX\bin\Debug\net8.0\d745a08d-b932-47ac-a81c-45e9483590a7\videoWithSubtitles.mp4
 await ExecuteSubtitleCommandAsync(ffmpegCommand);
 }
 else
 {
 Console.WriteLine("Files can't be found.");
 }
 }

 public static async Task ExecuteSubtitleCommandAsync(string arguments)
 {
 string ffmpegExecutablePath = ffmpegRoot;
 var startInfo = new ProcessStartInfo(ffmpegExecutablePath, arguments)
 {
 CreateNoWindow = true,
 UseShellExecute = false,
 RedirectStandardOutput = true,
 RedirectStandardError = true
 };

 using (var process = new Process { StartInfo = startInfo })
 {
 process.EnableRaisingEvents = true; // Enable the Exited event.
 process.Exited += (sender, e) =>
 {
 Console.WriteLine($"FFmpeg process exited with code {process.ExitCode}.");
 };

 try
 {
 process.Start();
 // Asynchronously read the standard output and standard error of the process
 var outputTask = process.StandardOutput.ReadToEndAsync();
 var errorTask = process.StandardError.ReadToEndAsync();
 // Wait for both asynchronous tasks to complete
 await Task.WhenAll(outputTask, errorTask);

 var output = await outputTask;
 var error = await errorTask;

 if (!string.IsNullOrEmpty(error))
 {
 Console.WriteLine("FFmpeg error: " + error);
 }
 else
 {
 Console.WriteLine("FFmpeg process completed successfully.");
 }
 }
 catch (Exception ex)
 {
 Console.WriteLine("Error: " + ex.Message);
 }
 finally
 {
 // Wait for the process to exit if it hasn't already.
 if (!process.HasExited)
 {
 process.WaitForExit();
 }
 }
 }
 }



-
Apache Tika 2.0.9 programm ffmpeg and exiftool not found ?
6 avril 2024, par mj44I use an JavaFX Maven Project to use Apache Tika Version 2.9.0.
The Java Test program will be finished and all methods that I create will done right.
I have in the log file a lot of DEBUG errors and Idon't know why ?
I habe spent many hours to clear the problem.


Here's an excerpt of the logfile


2024-04-03 14:56:12 [main] DEBUG org.apache.tika.parser.external.ExternalParser - exception trying to run ffmpeg
java.io.IOException: Cannot run program "ffmpeg": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1140) ~[?:?]
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1074) ~[?:?]
...
2024-04-03 14:56:12 [main] DEBUG org.apache.tika.parser.external.ExternalParser - exception trying to run exiftool
java.io.IOException: Cannot run program "exiftool": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1140) ~[?:?]
 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1074) ~[?:?]
...




The message says that ffmpeg and exiftool are not found.


This is my tika-config.xml


<?xml version="1.0" encoding="UTF-8"?>
<properties>
 <parsers>
 <parser class="org.apache.tika.parser.DefaultParser"></parser>
 <parser class="org.apache.tika.parser.pdf.PDFParser"></parser>
 
 <parser class="org.apache.tika.parser.external.ExternalParser">
 <params>
 true
 
 "D:\Tools\ffmpeg-6.1.1\bin\ffmpeg.exe"
 </params>
 </parser>
 
 <parser class="org.apache.tika.parser.external.ExternalParser">
 <params>
 true
 
 "D:\Tools\exiftool.exe"
 </params>
 </parser>
 </parsers>
 <detector>
 <detector class="org.apache.tika.detect.DefaultDetector"></detector>
 </detector>
</properties>



I tested the path of the programms in a console ant it worked fine ?
I don't know what I can do now ?


Thanks for Help


I have downloaded new copies of the ffmpeg and exiftool and installed them.
I tested it in a console to run and both tools work fine.
I tested the permissions, no problems with permissions
I tested that the tika-config.xml will be loaded, it loaded.