
Recherche avancée
Autres articles (36)
-
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 ;
-
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 (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)
Sur d’autres sites (4604)
-
Problems converting .flv to mp3 using FFmpeg SDK
13 mai 2013, par feadurI'm using the FFmpeg SDK to programmatically convert videos to mp3.
I read the audio frames of the video this way :
while(av_read_frame(pFromCtx, &pkt) >= 0)
{
if(pkt.stream_index == audioStreamIndex)
{
avcodec_get_frame_defaults(frame);
got_frame = 0;
ret = avcodec_decode_audio4(pCodecCtx, frame, &got_frame, &pkt);
if (ret < 0) {
av_log(NULL, AV_LOG_ERROR, "Error decoding audio frame.\n");
continue;
}
if(got_frame)
{
// Write the decoded audio frame
write_audio_frame(pToCtx, pToCtx->streams[pToCtx->nb_streams-1], frame);
}
}
av_free_packet(&pkt);
}Decoding the audio from the input video file works fine. The problem occurs when I try to encode a mp3 frame :
static void write_audio_frame(AVFormatContext *oc, AVStream *st, AVFrame *frame)
{
AVCodecContext *enc = st->codec;
AVPacket pkt;
int got_packet = 0;
int ret = 0;
av_init_packet(&pkt);
pkt.data = NULL;
pkt.size = 0;
ret = avcodec_encode_audio2(enc, &pkt, frame, &got_packet);
if (ret < 0) {
// PROBLEM
fprintf(stderr, "Error encoding audio frame. \n");
exit(1);
}
}I get the following console output :
[libmp3lame] inadequate AVFrame plane padding
The only happens with .flv files, the code works fine for .mp4 files. Any clue what the error message means ?
Thanks
-
ffmpeg Video concat demuxer txt path
19 avril 2013, par Steven MillsI'm making use of the ffmpeg command line process, specifically the demuxer (see here).
I'm attempting to run the equivelent of this :
ffmpeg -f concat -i C:\Users\Username\AppData\Local\mylist.txt -c copy output.avi
I've tried it and it works fine in the console, however I can't figure out a way to get this to work through code. I've checked the path is right, I've checked the txt file is named correctly etc.
ffmpeg.StartInfo.Arguments = "-f concat -y -i " + @"C:\Users\Username\AppData\Local\Temp\mylist.txt" + " -c copy output.avi";
ffmpeg.StartInfo.FileName = "ffmpeg.exe";For the path I've tried with/without the @ before the path, I've tried \ and / instead of \, I've tried using System.IO.Path methods, but none of it seems to work. It always returns an error saying "file not found", and through debugging I can see that ffmpeg.StartInfo.Arguments always ends up having \ between folders, so I'm guessing that might be the issue.
Does anyone have a clue how I'd go about circumventing this particular issue ?
-
FFmpeg large input frames
2 juillet 2015, par user3310761I have a problem that I cannot solve and I would really appriciate your help.
I have large rgb24 frame (1M each) which i would like to stream to ffmpeg and convert them to mpegts h264 stream.
Now, I know which arguments I need to supply to ffmpeg so the conversion will success, but I don’t have a clue how can I stream/provide the frames to ffmpeg since they are too large for udp and I can’t using files. ( It’s a demonstrate of a real time streaming).
Thank for all the helpers It’s really important for me !