
Recherche avancée
Médias (1)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
Autres articles (24)
-
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Use, discuss, criticize
13 avril 2011, parTalk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
A discussion list is available for all exchanges between users.
Sur d’autres sites (3504)
-
Trouble trimming video by frame number with ffmpeg
8 décembre 2023, par jgore200377I want to trim/split a video with ffmpeg using frames. The reason why is because I am using a Shot Transition Detection model which returns a probability of transition for every frame in the video.


Using timestamps to cut the video has yielded bad results as the precision is not 100%.


Ive tried this command which just outputs the entire video which is DEFINITELY not what I want


ffmpeg -i video.mp4 -vf "trim=start_frame=100:end_frame=200,setpts=PTS-STARTPTS" -c:a copy output.mp4



Ive also tried using python bindings with ffmpeg-python


import ffmpeg

input_file = ffmpeg.input('video.mp4')
output_file = ffmpeg.output(input_file.trim(start_frame=1300, end_frame=1500), 'test_output.mp4')
ffmpeg.run(output_file)



This doesnt work either and outputs a video with half of it being still with unpredictable length



Ive visited some other sites but none seem to have this nailed down and it would be much appreciated if someone can answer how to use frames to trim/split a video with ffmpeg.


-
Ffmpeg dynamic cropping for every frame
25 janvier 2024, par Aman MehtaI have different crop parameters for every frame. I was using sendcmd but apparently, that is not working.


This is the format of my sendcmd file


0.00 crop 'w=466:h=432:x=1373:y=336';
0.02 crop 'w=324:h=382:x=277:y=693';
0.03 crop 'w=304:h=332:x=1364:y=794';
0.05 crop 'w=348:h=448:x=1500:y=966';
0.07 crop 'w=466:h=412:x=794:y=193';
0.08 crop 'w=390:h=502:x=1425:y=813';



And I am running this command


ffmpeg -ss 0 -t 1 -i Demo.mp4 -filter_complex "[0:v]sendcmd=f=crop_parameters.txt[video]" -map "[video]" output_%03d.png



These are the logs coming from FFmpeg


[Parsed_sendcmd_0 @ 0x6000016709a0] [expr] interval #0 start_ts:0.000000 end_ts:9223372036854.775391 ts:0.083367
[Parsed_sendcmd_0 @ 0x6000016709a0] [expr] interval #1 start_ts:0.040000 end_ts:9223372036854.775391 ts:0.083367
[Parsed_sendcmd_0 @ 0x6000016709a0] [enter+expr] interval #2 start_ts:0.080000 end_ts:9223372036854.775391 ts:0.083367
[Parsed_sendcmd_0 @ 0x6000016709a0] Processing command #0 target:crop command:w arg:147
[Parsed_sendcmd_0 @ 0x6000016709a0] Command reply for command #0: ret:Function not implemented res:
[Parsed_sendcmd_0 @ 0x6000016709a0] Processing command #1 target:crop command:h arg:258
[Parsed_sendcmd_0 @ 0x6000016709a0] Command reply for command #1: ret:Function not implemented res:
[Parsed_sendcmd_0 @ 0x6000016709a0] Processing command #2 target:crop command:x arg:928
[Parsed_sendcmd_0 @ 0x6000016709a0] Command reply for command #2: ret:Function not implemented res:
[Parsed_sendcmd_0 @ 0x6000016709a0] Processing command #3 target:crop command:y arg:102
[Parsed_sendcmd_0 @ 0x6000016709a0] Command reply for command #3: ret:Function not implemented res:



It resulted in no cropping of the video, it just gives the exact same frame


-
extract subtitles from mp4 with ffmpeg [closed]
15 février 2024, par Tom TapasCan some one help me with this ?
Perhaps it's not even possible :
tom@Toms-MBP-50 SrtTest % ffmpeg -i Wraak.mp4
ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
built with Apple clang version 15.0.0 (clang-1500.1.0.2.5)
configuration : —prefix=/opt/homebrew/Cellar/ffmpeg/6.1.1_3 —enable-shared —enable-pthreads —enable-version3 —cc=clang —host-cflags= —host-ldflags='-Wl,-ld_classic' —enable-ffplay —enable-gnutls —enable-gpl —enable-libaom —enable-libaribb24 —enable-libbluray —enable-libdav1d —enable-libharfbuzz —enable-libjxl —enable-libmp3lame —enable-libopus —enable-librav1e —enable-librist —enable-librubberband —enable-libsnappy —enable-libsrt —enable-libssh —enable-libsvtav1 —enable-libtesseract —enable-libtheora —enable-libvidstab —enable-libvmaf —enable-libvorbis —enable-libvpx —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxml2 —enable-libxvid —enable-lzma —enable-libfontconfig —enable-libfreetype —enable-frei0r —enable-libass —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopenvino —enable-libspeex —enable-libsoxr —enable-libzmq —enable-libzimg —disable-libjack —disable-indev=jack —enable-videotoolbox —enable-audiotoolbox —enable-neon
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
libpostproc 57. 3.100 / 57. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Wraak.mp4' :
Metadata :
major_brand : mp42
minor_version : 0
compatible_brands : isommp42
creation_time : 2023-06-09T11:22:49.000000Z
Duration : 00:02:46.86, start : 0.000000, bitrate : 3494 kb/s
Stream #0:00x1 : Video : h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, progressive), 1280x720 [SAR 1:1 DAR 16:9], 3366 kb/s, 25 fps, 25 tbr, 25k tbn (default)
Metadata :
creation_time : 2023-06-09T11:22:50.000000Z
handler_name : Mainconcept MP4 Video Media Handler
vendor_id : [0][0][0][0]
encoder : AVC Coding
Stream #0:10x2 : Audio : aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
Metadata :
creation_time : 2023-06-09T11:22:50.000000Z
handler_name : Mainconcept MP4 Sound Media Handler
vendor_id : [0][0][0][0]
At least one output file must be specified


ffmpeg -i Wraak.mp4 -map 0:0 subtitles.srt