
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (89)
-
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (10509)
-
Video is cut after adding 2 watermarks with FFMPEG-KIT [closed]
7 août 2023, par dfjickI made a FFMPEG-KIT command to add 2 PNG watermarks to the video and everything went smoothly.


String ffmpegCommand = "-y -i " + videoPath +
 " -i " + watermarkImagePath +
 " -i " + userID +
 " -filter_complex " +
 "\"[0:v][1:v]overlay=x='if(lt(mod(t,10),5),10,W-w-10)':y='if(lt(mod(t,10),5),10,H-h-35)',\"" +
 "\"overlay=x='if(lt(mod(t,10),5),7,W-w-7)':y='if(lt(mod(t,10),5),165,H-h-15)'[out]\"" +
 " -map [out] -map 0:a -c:v libx264 -crf 18 -preset slow -c:a aac " + outputPath;



But for videos that are longer than 20 seconds, the results don't match the original video, sometimes the videos are only <20 seconds and at random times.


I get this error, how do I fix it ?


W/ffmpeg-kit: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb400007c5c1243f0] Packet corrupt (stream = 1, dts = 366976)
W/ffmpeg-kit: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb400007c5c1243f0] .
E/ffmpeg-kit: [NULL @ 0xb400007c6c179400] Invalid NAL unit size (63547 > 20190).
E/ffmpeg-kit: [NULL @ 0xb400007c6c179400] missing picture in access unit with size 20194
W/ffmpeg-kit: /storage/emulated/0/DCIM/android_100394_20230807_162805_5465009.mp4: corrupt input packet in stream 1
E/ffmpeg-kit: [h264 @ 0xb400007c6c210750] Invalid NAL unit size (63547 > 20190).
E/ffmpeg-kit: [h264 @ 0xb400007c6c210750] Error splitting the input into NAL units.
E/ffmpeg-kit: Error while decoding stream #0:1: Invalid data found when processing input



I've tried to use this
-fflags +discardcorrupt
, but the result is still the same. The duration of the video that has been watermarked does not match the original video.

-
FFMPEG-KIT - Video is cut after adding 2 watermarks
7 août 2023, par dfjickI made a FFMPEG-KIT command to add 2 PNG watermarks to the video and everything went smoothly.


String ffmpegCommand = "-y -i " + videoPath +
 " -i " + watermarkImagePath +
 " -i " + userID +
 " -filter_complex " +
 "\"[0:v][1:v]overlay=x='if(lt(mod(t,10),5),10,W-w-10)':y='if(lt(mod(t,10),5),10,H-h-35)',\"" +
 "\"overlay=x='if(lt(mod(t,10),5),7,W-w-7)':y='if(lt(mod(t,10),5),165,H-h-15)'[out]\"" +
 " -map [out] -map 0:a -c:v libx264 -crf 18 -preset slow -c:a aac " + outputPath;



But for videos that are longer than 20 seconds, the results don't match the original video, sometimes the videos are only <20 seconds and at random times.


but i got this error, do you guys know how to fix it ?


W/ffmpeg-kit: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb400007c5c1243f0] Packet corrupt (stream = 1, dts = 366976)
W/ffmpeg-kit: [mov,mp4,m4a,3gp,3g2,mj2 @ 0xb400007c5c1243f0] .
E/ffmpeg-kit: [NULL @ 0xb400007c6c179400] Invalid NAL unit size (63547 > 20190).
E/ffmpeg-kit: [NULL @ 0xb400007c6c179400] missing picture in access unit with size 20194
W/ffmpeg-kit: /storage/emulated/0/DCIM/android_100394_20230807_162805_5465009.mp4: corrupt input packet in stream 1
E/ffmpeg-kit: [h264 @ 0xb400007c6c210750] Invalid NAL unit size (63547 > 20190).
E/ffmpeg-kit: [h264 @ 0xb400007c6c210750] Error splitting the input into NAL units.
E/ffmpeg-kit: Error while decoding stream #0:1: Invalid data found when processing input



I've tried to use this
-fflags +discardcorrupt
, but the result is still the same. the duration of the video that has been watermarked does not match the original video

-
FFmpeg av_read_frame returns packets from audio stream
1er août 2018, par yultanI am currently trying to learn the FFmpeg API, following this tutorial. However, I already have issues with the first lesson on video decoding. My code is basically the same as the one from the tutorial except I am using C++. My issue is that the video stream does not match the one from the packet returned by
av_read_frame
.The video stream is obtained looping on the available streams until the video stream is found.
for(int i = 0; i < pFormatCtx->nb_streams; i++) { // nb_streams == 2
if(pFormatCtx->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO) {
videoStream = i;
break; // videoStream == 0
}
}Then when retrieving the frame data, it seams grabbing the audio channel.
while(av_read_frame(pFormatCtx, &packet) >= 0) { // read returns 0
// Is this a packet from the video stream?
if(packet.stream_index == videoStream) {
//packet.stream_index == 1, which correspond to the audio stream
}
}I have not found examples online where this test is actually failing. Have I miss some way to specify the
stream_index
that is not in the tutorial ? Maybe the tutorial is not up to date and is doing something wrong ? If so, what is the correct way to extract the frame data ? In case that matters, I am using the latest FFmpeg 4.0.2 build, on Windows 64-bits, compiling with Visual Studio 2017.On videos with no sound, the two streams match and I am able to decode and display the frames correctly.