
Recherche avancée
Médias (2)
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Podcasting Legal guide
16 mai 2011, par
Mis à jour : Mai 2011
Langue : English
Type : Texte
Autres articles (75)
-
Submit enhancements and plugins
13 avril 2011If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone. -
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 ;
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...)
Sur d’autres sites (6270)
-
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