
Recherche avancée
Médias (91)
-
MediaSPIP Simple : futur thème graphique par défaut ?
26 septembre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Video
-
avec chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
sans chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
config chosen
13 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
Autres articles (97)
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Sélection de projets utilisant MediaSPIP
29 avril 2011, parLes exemples cités ci-dessous sont des éléments représentatifs d’usages spécifiques de MediaSPIP pour certains projets.
Vous pensez avoir un site "remarquable" réalisé avec MediaSPIP ? Faites le nous savoir ici.
Ferme MediaSPIP @ Infini
L’Association Infini développe des activités d’accueil, de point d’accès internet, de formation, de conduite de projets innovants dans le domaine des Technologies de l’Information et de la Communication, et l’hébergement de sites. Elle joue en la matière un rôle unique (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.
Sur d’autres sites (6283)
-
how to apostrophe with os.system in ffmpeg drawtext in python
28 septembre 2023, par Ishu singhI just want to execute this code with os.system('command') in ffmpeg drawtext() but unable to execute it just because of ' (apostrophe) , it fails


The code goes here ->


the \f is working as \n but I'm using that for seprating word


from PIL import ImageFont
import os

def create_lines(longline, start, end, fontsize=75, fontfile='OpenSansCondensedBold.ttf'):

 fit = fit_text(longline, 700, fontfile)

 texts = []
 now = 0
 # breaking line on basis of '\f'
 for wordIndex in range(len(fit)):
 if fit[wordIndex] == '\f' or wordIndex == len(fit)-1:
 texts.append(fit[now:wordIndex+1].strip('\f'))
 now = wordIndex

 # adding multiple lines to video
 string = ''
 count = 0
 for line in texts:
 string += f''',drawtext=fontfile={fontfile}:fontsize={fontsize}:text='{line[enter image description here](https://i.stack.imgur.com/iuceq.png)}':fontcolor=black:bordercolor=white:borderw=4:x=(w-text_w)/2:y=(h-text_h)/2-100+{count}:'enable=between(t,{start},{end})' '''
 count += 100

 print(string)
 return string

def createVideo(content):
 input_video = 'video.mp4'
 output_video = 'output.mp4'
 font_file = 'BebasKai.ttf'
 text_file = 'OpenSansCondensedBold.ttf'
 font_size = 75
 font_color = 'white'

 part1 = create_lines(content[1], 0.5, 7)
 part2 = create_lines(content[2], 7.5, 10)

 os.system(
 f"""ffmpeg -i {} -vf "drawtext=fontfile={font_file}:fontsize={95}:text={content[0]}:fontcolor={font_color}:box=1:boxcolor=black@0.9:boxborderw=20:x=(w-text_w)/2:y=(h-text_h)/4-100{str(part1)}{str(part2)}" -c:v libx264 -c:a aac -t 10 {output_video} -y""")

my_text =['The Brain', "Your brain can't multitask effectively", "Multitasking is a myth, it's just rapid switching between tasks"]

createVideo(my_text)





what I want is that, I would able to execute this correctly


-
Live555 fMaxSize and FFMPEG
31 janvier 2015, par ALM865I have built a version of Live555 that uses FFMPEG to encode a video and stream it over RTSP.
Basically it works but the RTSP stream is very jittery.
I looked into it further and it turns out that Live555’s max buffer size (fMaxSize) is too small and Live555 is truncating the frame as shown below :
/* This should never happen, but check anyway.. */
if (newFrameSize > fMaxSize) {
fFrameSize = fMaxSize;
fNumTruncatedBytes = newFrameSize - fMaxSize;
} else {
fFrameSize = newFrameSize;
}Now, I have almost no control over how big the packets are from FFMPEG, I can set the bitrate low but the quality is appauling and the packets are still too big !
Basically FFMPEG decides how big each frame is here :
int reti = avcodec_encode_video2(m_c, &pkt, m_frame, &got_packet);
If pkt.size > fMaxSize then the frame will be truncated and Live555 will stuff up streaming the video, which is does ALL the time. Also FFMPEG sometimes decides to buffer frames so the packet could be more than one frame big.
I can try and tell Live555 to up it’s buffer size but it ignores it completely :
OutPacketBuffer::maxSize = 100000;
Has anyone else got a solution to stream the encoded video correctly ? I have tried breaking the packets up and passing them to Live555 in smaller chunks but it doesn’t work, and Live555 brings down it’s fMaxSize if I send more packets.
My code is here :
https://dl.dropboxusercontent.com/u/15883001/Code.zip
Some images of what is happening to the RTSP stream is here, as you can see in the higher detail images LIVE555 struggles to send the packets properly :
https://dl.dropboxusercontent.com/u/15883001/vlcsnap-2013-12-12-09h34m30s225.zip
In the black and white image, the frame size is 117000 bytes and is less than the max frame size 300000
In the Iron coloured image, the frame size is 212000 bytes.
In the rainbow coloured image, the frame size is 322000 bytes and is greater than the max frame size 300000 and is truncated resulting in what you see in the example image.
Any help would be much appreciated
Thanks
-
ffmpeg problems (mpeg1video -> ?)
3 juillet 2015, par IngloniasI’m trying to convert various video files from .mpeg to .ogg theora videos. This command works fine when I test it in its own program, but fails to run properly inside the program it was intended for. I don’t understand what’s breaking here. Adding a
-vcodec
flag causes other errors.Here is the function I am using to run
ffmpeg
:* This method converts a file to Ogg Theora video using ffmpeg.
*
* @param f
* The file to encode. (Assumes that the file has a .mpeg
* extension. If the file doesn't have this, the method will
* fail.)
* @param nice The niceness of the created ffmpeg
* priority.
* @return converter The process that represents ffmpeg working on the file.
*/
private Process encodeFileAsTheora(File f, int nice) {
Process converter = null;
try {
String targetFileName = f.getAbsolutePath()
.replace(".mpeg", ".ogg");
// mLogger.log(Level.INFO,
// "Now attempting to convert " + f.getAbsolutePath());
String[] ffmpegCommand = { "nice", "-n", Integer.toString(nice),
"ffmpeg", "-i", f.getAbsolutePath(), targetFileName };
converter = Runtime.getRuntime().exec(ffmpegCommand);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return converter;
}And here is its
getErrorStream()
output to the logger :NON RELEVANT CONTENT REMOVED
configuration : —extra-ldflags=-L/home/user/trunk/cpp_src/ffmpeg-source/libvpx —extra-ldflags=-L/home/user/trunk/cpp_src/ffmpeg-source/x264 —extra-cflags=-I/home/user/trunk/cpp_src/ffmpeg-source/x264 —extra-cflags=-I/home/user/trunk/cpp_src/ffmpeg-source/libvpx —enable-libvpx —enable-libx264 —enable-gpl —yasmexe=/home/user/trunk/cpp_src/ffmpeg-source/yasm/yasm