
Recherche avancée
Autres articles (102)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (13284)
-
Rescaling and slowing down a movie at the same time with ffmpeg
21 décembre 2016, par ejl62I would like with ffmpeg to slow down a movie I am creating using the flag :
-filter:v "setpts=2.0*PTS"
However the height of my still images is not divisible by 2, so to avoid the error :
height not divisible by 2 (1238x833)
, I am using the flag :-vf scale="trunc(iw/2)*2:trunc(ih/2)*2"
(I also tried
-vf scale=1238:-2
).When I do this the film is generated but it isn’t slowed down, like if the
-filter:v "setpts=2.0*PTS"
wasn’t there.Is there something particular to do in order to have both option working at the same time ?
Here is the complete command I am using :
ffmpeg -an -i ./movie/cphmd1.%05d.ppm -vcodec libx264 -pix_fmt yuv420p -b:v 5000k -r 24 -crf 18 -filter:v "setpts=2.0*PTS" -vf scale="trunc(iw/2)*2:trunc(ih/2)*2" -preset slow -f mp4 cphmd1_slower.mp4
Many thanks in advance !
-
ffmpeg - invalid duration
22 septembre 2016, par OmidAntiLongFor a project I’m working on I have a small bash script that loops over an input csv file of timecodes, and uses ffmpeg to create screenshots of a given film at each timecode. The csv file is in the format hh:mm:ss,id - it looks like this (extract)
00:00:08,1
00:00:49,2
00:01:30,3
00:02:38,4
00:03:46,5
00:04:08,6
00:04:26,7
00:04:37,8
00:04:49,9
00:05:29,10
00:05:52,11
00:06:00,12
00:06:44,13
00:07:49,14
00:08:32,15
00:09:28,16
00:10:17,17
00:10:44,18
00:11:48,19
00:12:07,20I’ve used it without issue in the past, but today I’ve come to update some of the films and I’m getting a weird issue where ffmpeg is complaining that my input timecode is invalid, despite being in the right format.
The new input csv files are the same format as the old ones, but it seems like every so often ffmpeg drops the hours from the hh:mm:ss timestamp. If I comment out the ffmpeg line, everything prints to the terminal as expected (but obviously I get no screenshots).
This is my loop code :
while read code a
do
echo $code
f="$(printf "%03d" $i)"
ffmpeg -loglevel error -y -ss $code -i $FILM -vframes 1 -q:v 2 $OUTPUT/$f.jpg
((i++))
done < $INPUTI’ve tried all sorts, including padding the csv with extra 0s - which works until the hours tick over to 01.
Does anyone have any ideas ? I’m scratching my head.
Cheers
-
Syncronising Video/audio with two different sources
22 mai 2016, par IndyI have an issue with an very old film that I’m trying to recover. I have two source of the same film.
Source 1 (from ffmeg -i) :
Duration: 02:43:35.77, start: 0.000000, bitrate: 1342 kb/s
Stream #0:0: Video: mpeg4 (Simple Profile) (DIVX / 0x58564944), yuv420p, 720x480 [SAR 1:1 DAR 3:2], 1200 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 30k tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/sSource 2 (from ffmeg -i) :
Duration: 02:46:11.04, start: 0.000000, bitrate: 1625 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1200x720 [SAR 1:1 DAR 5:3], 1431 kb/s, 30 fps, 30 tbr, 30 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default)
Metadata:
creation_time : 2014-06-22 12:06:22
handler_name : IsoMedia File Produced by Google, 5-11-2011What I would like is to take the audio from source 1 and video from source 2 and create a new file with them.
I have tried changing the source 1 to 30 fps and then using its audio with source 2’s video but the audio ’fps’ is really after sync after sometime. Perhaps my approach is wrong.
what’s the best way to take the audio from source 1 synced with source 2’s video ?
Any help is appreciated. Thanks,
Indy