
Recherche avancée
Autres articles (39)
-
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
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 ) (...) -
Initialisation de MediaSPIP (préconfiguration)
20 février 2010, parLors de l’installation de MediaSPIP, celui-ci est préconfiguré pour les usages les plus fréquents.
Cette préconfiguration est réalisée par un plugin activé par défaut et non désactivable appelé MediaSPIP Init.
Ce plugin sert à préconfigurer de manière correcte chaque instance de MediaSPIP. Il doit donc être placé dans le dossier plugins-dist/ du site ou de la ferme pour être installé par défaut avant de pouvoir utiliser le site.
Dans un premier temps il active ou désactive des options de SPIP qui ne le (...)
Sur d’autres sites (4656)
-
How to replace avcodec_encode_audio2()/avcodec_encode_video2() with avcodec_send_frame() and avcodec_receive_packet() ?
27 octobre 2020, par Optic_RayIn muxing example in link am attempting to use
avcodec_send_frame()
andavcodec_receive_packet()
instead ofavcodec_encode_audio2()
/avcodec_encode_video2()
as they are deprecated. In

352 ret = avcodec_encode_audio2(c, &pkt, frame, &got_packet);
 353 if (ret < 0) {
 354 fprintf(stderr, "Error encoding audio frame: %s\n", av_err2str(ret));
 355 exit(1);
 356 }
 357 
 358 if (got_packet) {
 359 ret = write_frame(oc, &c->time_base, ost->st, &pkt);
 360 if (ret < 0) {
 361 fprintf(stderr, "Error while writing audio frame: %s\n",
 362 av_err2str(ret));
 363 exit(1);
 364 }
 365 }
 366 
 367 return (frame || got_packet) ? 0 : 1;



and in


522 ret = avcodec_encode_video2(c, &pkt, frame, &got_packet);
 523 if (ret < 0) {
 524 fprintf(stderr, "Error encoding video frame: %s\n", av_err2str(ret));
 525 exit(1);
 526 }
 527 
 528 if (got_packet) {
 529 ret = write_frame(oc, &c->time_base, ost->st, &pkt);
 530 } else {
 531 ret = 0;
 532 }
 533 
 534 if (ret < 0) {
 535 fprintf(stderr, "Error while writing video frame: %s\n", av_err2str(ret));
 536 exit(1);
 537 }
 538 
 539 return (frame || got_packet) ? 0 : 1;



What to assign
got_packet
variable with when usingavcodec_send_frame()
andavcodec_receive_packet()
functions and how to change the code if I do ?. I have tried this so far

ret = avcodec_send_frame(c, frame);
if (ret < 0) {
 fprintf(stderr, "Error sending the frame to the audio encoder\n");
 exit(1);
}
if (ret = 0) {
 got_packet = avcodec_receive_packet(c, &pkt);
 if (got_packet == AVERROR(EAGAIN) || got_packet == AVERROR_EOF){
 fprintf(stderr, "Error receiving packet\n");
 return -1;}
 else if (got_packet < 0) {
 fprintf(stderr, "Error encoding audio frame\n");
 exit(1);
 }
 ret1 = write_frame(oc, &c->time_base, ost->st, &pkt);
 if (ret1 < 0) {
 fprintf(stderr, "Error while writing audio frame: %s\n",
 av_err2str(ret1));
 exit(1);
 }
 av_packet_unref(&pkt);
}
return (frame || got_packet) ? 0 : 1;



but isn't working and am having hard time getting it to work.


-
Increase the bitrate tolerance of ffmpeg for creating screenshots of a movie
21 septembre 2012, par rekireI'm getting the error
bitrate tolerance too small for bitrate
so far no problem. I know that there are several switches to increase that but nothing works.ffmpeg -y -r 1/30 -b:v 999999k -bt 999999k -maxrate 999999k -i in.flv out%03d.jpg
The source of that commandline is directly from ffmpeg. But that crashes :
ffmpeg version N-44123-g5d55830 Copyright (c) 2000-2012 the FFmpeg developers
built on Sep 2 2012 20:23:29 with gcc 4.7.1 (GCC)
[...]
Input #0, flv, from 'in.flv':
Duration: 00:05:00.13, start: 0.000000, bitrate: 259 kb/s
Stream #0:0: Video: flv1, yuv420p, 320x240, 1k tbr, 1k tbn, 1k tbc
Stream #0:1: Audio: nellymoser, 22050 Hz, mono, s16
[mjpeg @ 04356860] bitrate tolerance too small for bitrate
[mjpeg @ 04317540] ff_frame_thread_encoder_init failed
Output #0, image2, to 'out%03d.jpg':
Stream #0:0: Video: mjpeg, yuvj420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 0.03 tbc
Stream mapping:
Stream #0:0 -> #0:0 (flv -> mjpeg)
Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or heightSome ideas what I'm doing wrong ?
-
[h264_nvenc : InitializeEncoder failed:supported only with separate color plane on this architecture
4 janvier 2021, par gpuguyI am learning ffmpeg for the first time. What I want is to see how it performs on CPU and on GPU when it comes to transcoding.


My machine is having a GT640 GPU card (GT640 is a Kepler card) and I am running a windows 7 , 64bit.
I issue the following command :


ffmpeg -i lec_2.mp4 -c:v h264_nvenc -profile high444p -pixel_format yuv444p -preset default output.mp4



But I am getting following errors :


[h264_nvenc @ 0000000000363a80] The selected preset is deprecated. Use p1 to p7
+ -tune or fast/medium/slow.
[h264_nvenc @ 0000000000363a80] InitializeEncoder failed: invalid param (8): 444
 is supported only with separate color plane on this architecture.
Error initializing output stream 0:0 -- Error while opening encoder for output s
tream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[aac @ 0000000000365980] Qavg: 18941.322
[aac @ 0000000000365980] 2 frames left in the queue on closing
Conversion failed!



My questions are :


- 

-
From this output can I assume that nvenc is supported on my card since it does not complaint of no nvenc supported GPU ?


-
How should the above command be modified so as to make it work correctly








-