
Recherche avancée
Autres articles (51)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
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 ;
Sur d’autres sites (5191)
-
ffmpeg avio_open2() failed to open output rtsp streams
11 juin 2020, par donghui.RI use ffmpeg H264 encoding, and then output the RTSP flow. When I initialize, I encounter some problems. When I open the output address through the avio_open2 function, I return the error -1330794744, which is invalid agreement. Where am I set the error ?



av_register_all(); 
avformat_network_init();
avformat_alloc_output_context2(&ofmt_ctx, NULL, "rtsp", rtsp_url);

if (!ofmt_ctx) 
{
 printf("Could not deduce output format from file extension: using MPEG.\n");
 avformat_alloc_output_context2(&ofmt_ctx, NULL, "mpeg", rtsp_url);
}
if (!ofmt_ctx) return;

this->out_fmt = ofmt_ctx->oformat;
if (!this->out_fmt)
{
 printf("Error creating outformat.\n");
 return;
}
video_st = add_stream(ofmt_ctx, &video_codec, CODEC_ID_H264, rate);
if (video_st)
{
 open_video(ofmt_ctx, video_codec, video_st);
}
int ret = avio_open2(&ofmt_ctx->pb, "rtsp://127.0.0.1:8854/live.sdp", AVIO_FLAG_WRITE, NULL, NULL);
if (ret < 0)
{
 printf("Could not open outfile '%s'.", rtsp_url);
 return;
}



-
amfenc : Fail to open if the user-supplied device is not usable
14 avril 2018, par Mark Thompson -
not able to open image generated by ffmpeg
26 avril 2018, par user3745870I am trying to get images from the video stream using ffmpeg in python and I need the raw bytes to do further things. I am trying to store the raw bytes in image file so if my file opens then I can confirm that the raw bytes I have got are correct.
import subprocess as sp
def getImages(self):
cmd = ['ffmpeg',
'-ss', 2,
'-i', url,
'-t', 2,
'-f', 'image2pipe',
'-s', '420x360',
'-pix_fmt', 'rgb24',
'-vcodec', 'rawvideo',
'-vf', 'fps=fps=1', '-']
pipe = sp.Popen(cmd, stdout = sp.PIPE, bufsize=10**8)
raw = pipe.stdout.read(420*360)
file = open('image.jpg','wb')
file.write(raw)I see a file image.jpg but I cannot open it. Is there anything wrong I am doing here ? I am sizing the image to be 420*360 bytes so I am assuming that the first 420*360 bytes are belong to the first frame.
Thanks in advance !