
Recherche avancée
Médias (33)
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (54)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
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 (6461)
-
rtmp Videos encoded with FFmpeg play too fast
30 janvier 2016, par 江嘉荣play back too fast and loading Every once in a while
here is the code ... please help...
pFormatCtx = avformat_alloc_context();
out_filename = "rtmp://192.168.1.105:1935/jc";
avformat_alloc_output_context2(&pFormatCtx, ofmt, "flv", out_filename);
ofmt = pFormatCtx->oformat;
if (avio_open(&pFormatCtx->pb,out_filename, AVIO_FLAG_WRITE) < 0){
printf("Failed to open output file! \n");
return -1;
}
video_st = avformat_new_stream(pFormatCtx, 0);
video_st->time_base.num = 1;
video_st->time_base.den = 30;
br = 400 * 1000;
pCodecCtx = video_st->codec;
pCodecCtx->codec_id = AV_CODEC_ID_H264;
pCodecCtx->codec_type = AVMEDIA_TYPE_VIDEO;
pCodecCtx->pix_fmt = PIX_FMT_YUV420P;
pCodecCtx->gop_size = 12;
pCodecCtx->max_qdiff = 4;
pCodecCtx->qmin = 0;
pCodecCtx->qmax = 51;
pCodecCtx->bit_rate = br;
pCodecCtx->rc_min_rate =br;
pCodecCtx->rc_max_rate = br;
pCodecCtx->bit_rate_tolerance = br;
pCodecCtx->rc_buffer_size=br;
pCodecCtx->rc_initial_buffer_occupancy = pCodecCtx->rc_buffer_size*3/4;
pCodecCtx->time_base.num = 1;
pCodecCtx->time_base.den = 30;
start_time = 0;
pCodecCtx->max_b_frames = 3;
AVDictionary *param = 0;
if(pCodecCtx->codec_id == AV_CODEC_ID_H264) {
av_dict_set(&param, "preset", "ultrafast", 0);
av_dict_set(&param, "tune", "zerolatency", 0);
av_dict_set(&param, "max_delay", "500", 0);
}
av_dump_format(pFormatCtx, 0, out_filename, AVIO_FLAG_WRITE);
pCodec = avcodec_find_encoder(AV_CODEC_ID_H264);
avformat_write_header(pFormatCtx, NULL);
y_size = pCodecCtx->width * pCodecCtx->height;
return 0;get pFrame
pFrame->width = encoder_h264_frame_width;
pFrame->height = encoder_h264_frame_height;
pFrame->format = PIX_FMT_YUV420P;I don’t know if it’s right way to set the pFrame->pts here...
pFrame->pts = av_rescale_q(framecnt, pCodecCtx->time_base, video_st- >codec->time_base);
avpicture_fill((AVPicture *)pFrame, picture_buf, pCodecCtx->pix_fmt, pCodecCtx->width, pCodecCtx->height);
pkt.data = NULL;
pkt.size = 0;
int got_picture = 0;
int ret = avcodec_encode_video2(pCodecCtx, &pkt, pFrame, &got_picture);
framecnt++;
if(ret < 0) {
}
if (got_picture=) {
pkt.stream_index = video_st->index;is it right ?
pkt.pts = av_rescale_q(pkt.pts, video_st->codec->time_base, video_st->time_base);
pkt.dts = av_rescale_q(pkt.dts, video_st->codec->time_base, video_st->time_base);
ret = av_interleaved_write_frame(pFormatCtx, &pkt);
}
av_frame_free(&pFrame);
av_free_packet(&pkt);
free(yuv420_data);This problem has troubled me for a lot of days....
-
FFmpeg First 2 Seconds of Video Not Showing
18 janvier 2016, par PamelaThis code works fine for some audio files (makes a slideshow of JPG pictures with a PNG watermark and MP3 audio, while maintaining aspect ratio) but for this audio file, the pictures are not showing for the first two seconds or so of the video :
ffmpeg -y -framerate 1/12 -i "media/%03d.jpg" -i "media/audio.mp3" -loop 1 -i "media/watermark.png" -filter_complex "[0:v]scale=iw*min(3840/iw\,2160/ih):ih*min(3840/iw\,2160/ih), pad=3840:2160:(3840-iw)/2:(2160-ih)/2[ss]; [ss][2:v] overlay=main_w-overlay_w-10:main_h-overlay_h-10:shortest=1[out]" -map "[out]" -map 1:a -c:v libx264 -r 24 -preset veryfast -tune stillimage -pix_fmt yuv420p -c:a copy -map_metadata -1 "media/video.mkv" -report
I tried converting the audio into different formats of MP3, tried changing bitrates, changed audio to stereo, and even tried converting it to a WAV. None of these things worked.
Here are the report results for when I run this command.
If it makes a difference, I’m using Ubuntu 14.04 and FFmpeg version N-77455-g4707497 (latest version).
-
ffmpeg feeding mp4 file to rtsp stream
20 mai 2019, par damini chopraI am trying to feed a mp4 file from ffmpeg to rtsp stream using the command on centos 7 :
from console 1 : ffmpeg -i space.mp4 -vcodec libx264 -tune zerolatency -crf 18 http://localhost:8050/feed1.ffm
from console 2 : I have started ffserver and it is started listening.
But when i open http://x.x.x.x:8050/feed1.ffm in browser it shows error :
File ??feed1.ffm ? not found
My ffserver.conf file is attached