
Recherche avancée
Autres articles (65)
-
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 ;
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (7401)
-
How to detect if video file is pure static ?
20 août 2024, par spuderI have a collection of analog video recordings. About 10% of the files are entirely static. How could I programmatically look at all files and delete the files that contain mostly static ?



The following utilities have command line options to analyze video, however none have built in functionality to detect the absence of video content.



- 

-
ffmpeg
-
ffprobe
-
HandBrake









I've tried using ffmpeg to export still images and then use image magick to compare the difference between those images. Unfortunately, the difference between an image of static, and actual video content returns nearly the same difference percentage. (9% vs 7%)



ffmpeg -ss 00:30 -i PICT0050.AVI -vframes 1 -q:v 2 output1.jpg

magick compare -metric PSNR output1.jpg output2.jpg diff.jpg
9.2191

magick compare -metric PSNR output1.jpg output3.jpg diff.jpg
7.70127




Comparing sample 1 with sample 2 results in 9% difference

Comparing sample 1 with sample 3 results in 7% difference





Sample 2


Sample 3


Sample 4


Sample 5


Sample 6


Sample 7



-
-
Firefox says some files converted from mkv to mp4 in ffmpeg are corrupt
14 janvier 2018, par EpicKnarvik97I have recently converted many videos for web playback, but all videos from one "series" all show up in firefox as "Video can’t be played because the file is corrupt." (They work for google chrome and VLC. Not for firefox or edge.) All files have been converted with this command :
ffmpeg -i "file.mkv" -vcodec h264 -movflags +faststart -map 0 -vf subtitles="file.mkv" "file.mp4"
ffmpeg output from one of the non-working files :
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Episode_7.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.3.100
Duration: 00:23:53.52, start: -0.001333, bitrate: 1900 kb/s
Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv444p, 1920x1080 [SAR 1:1 DAR 16:9], 1763 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 130 kb/s (default)
Metadata:
handler_name : SoundHandlerffmpeg output from a working file :
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Episode_7.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.3.100
Duration: 00:23:40.06, start: 0.000000, bitrate: 1848 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 1710 kb/s, 23.81 fps, 23.81 tbr, 16k tbn, 47.62 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(jpn): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 131 kb/s (default)
Metadata:
handler_name : SoundHandlerOf a collection of over 100 files, only 12 episodes of a single series show up as corrupted in firefox. I see some differences in the information about the two files, but I don’t know why one file works and the other does not. What do I need to tell ffmpeg to make the videos playable in firefox ?
-
FFMPEG Error Handling Not Working
23 mars 2017, par WaverunnerI’m fairly new to batch files and trying to create a Windows script that automatically converts all files in the extensions list I provide to MP4 and log the successes and failures. The problem I’m running into is that some of the videos are failing with zero byte outputs and even though there’s two levels of error handling so the originals don’t get deleted, they aren’t working and the originals get deleted regardless if the conversions succeed or not.
The two protections are :
(1) FFMPEG - abort_on empty_output option
(2) IF/ELSE loop that checks for zero-size files
Any ideas for better error handling would be appreciated.
:: Name: MKV2MP4.cmd
:: Purpose: Automatically converts non-MP4 video files to MP4 either by stream copy or by reencoding.
:: Revision: March 2017 - Initial version
:: Variables
:: %%L = List of Extensions
:: %%F = Files to be converted
:: %%N = New file
@echo OFF
CLS
setlocal
echo This script automatically converts non-MP4 video files to MP4 either by stream copy or by reencoding.
echo.
echo Changing to data directory...
Z:
cd Z:\Users\Todd\
echo.
FOR /F "delims=*" %%L IN (Z:\Logs\Extensions.txt) DO (
echo Collecting %%L files...
dir /b /s *.%%L > Z:\Logs\%%L.txt
)
echo.
echo File collection complete.
echo.
FOR /F "delims=*" %%L in (Z:\Logs\Extensions.txt) DO (
echo Working on %%L files...
echo.
FOR /F "delims=*" %%F in (Z:\Logs\%%L.txt) DO (
echo Converting "%%F"
echo.
ffmpeg.exe -y -i "%%F" -abort_on empty_output -aspect 16:9 -c:v copy -c:a copy "%%~dpnF.mp4" || ffmpeg.exe -y -i "%%F" -abort_on empty_output -aspect 16:9 -c:v libx265 -c:a copy "%%~dpnF.mp4"
echo.
set N="%%~dpnF.mp4"
IF %%~zN==0 (
echo Conversion failed! Skipping file.
echo Adding log entry...
echo %time% - Failed - "%%F" >> "Z:\Logs\%date:~-4,4%%date:~-10,2%%date:~-7,2% - %%L.txt"
) ELSE (
echo Conversion successful! Deleting old file.
echo Deleting "%%F"
del "%%F" /F
echo Adding log entry...
echo %time% - Successful - "%%F" >> "Z:\Logs\%date:~-4,4%%date:~-10,2%%date:~-7,2% - %%L.txt"
)
echo.
)
echo %%L files completed.
echo. Cleaning up...
del %%L /F /S
)
echo Job completed. Exiting..