
Recherche avancée
Médias (16)
-
#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
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (57)
-
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 ) (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...)
Sur d’autres sites (6669)
-
ffmpeg 6.0 custom IO error : Could not find codec parameters for stream 0 : unspecified pixel format
5 février 2024, par Heng ZhangI run avio_read_callback.c example of ffmpeg 6.0 source code (ffmpeg-6.0/doc/examples/avio_read_callback.c), Got a error info when input a 1080*1920p video file :


./avio_read_callback 1080_1920.mp4
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ec23c0] stream 0, offset 0x30: partial file
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1ec23c0] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none(tv, bt709), 1920x1080, 2179 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' (10000000) and 'probesize' (10000000) options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1080_1920.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf59.34.102
 Duration: 00:01:20.63, start: 0.000000, bitrate: N/A
 Stream #0:0[0x1](und): Video: h264 (avc1 / 0x31637661), none(tv, bt709), 1920x1080, 2179 kb/s, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 15360 tbn (default)
 Metadata:
 handler_name : VideoHandler
 vendor_id : [0][0][0][0]
 encoder : Lavc59.37.100 libx264



I tried to use ffprobe to get video infomation, it is ok :


ffprobe -i 1080_1920.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1080_1920.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf59.34.102
 Duration: 00:01:20.63, start: 0.000000, bitrate: 2182 kb/s
 Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 2179 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
 Metadata:
 handler_name : VideoHandler
 vendor_id : [0][0][0][0]
 encoder : Lavc59.37.100 libx264



Then I tried to open this video file directly by using avformat_open_input(&ctx, file_pash, NULL, NULL), and recomplie, rerun this example, result show it is still ok :


./avio_read_callback 1080_1920.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1080_1920.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf59.34.102
 Duration: 00:01:20.63, start: 0.000000, bitrate: 2182 kb/s
 Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 2179 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
 Metadata:
 handler_name : VideoHandler
 vendor_id : [0][0][0][0]
 encoder : Lavc59.37.100 libx264



I changed code of opening file directly as showing below :


#include <libavcodec></libavcodec>avcodec.h>
#include <libavformat></libavformat>avformat.h>
#include <libavformat></libavformat>avio.h>
#include <libavutil></libavutil>file.h>

struct buffer_data {
 uint8_t *ptr;
 size_t size; ///< size left in the buffer
};

static int read_packet(void *opaque, uint8_t *buf, int buf_size)
{
 struct buffer_data *bd = (struct buffer_data *)opaque;
 buf_size = FFMIN(buf_size, bd->size);

 if (!buf_size)
 return AVERROR_EOF;
 // printf("ptr:%p size:%zu\n", bd->ptr, bd->size);

 /* copy internal buffer data to buf */
 memcpy(buf, bd->ptr, buf_size);
 bd->ptr += buf_size;
 bd->size -= buf_size;

 return buf_size;
}

int main(int argc, char *argv[])
{
 AVFormatContext *fmt_ctx = NULL;
 AVIOContext *avio_ctx = NULL;
 uint8_t *buffer = NULL, *avio_ctx_buffer = NULL;
 size_t buffer_size, avio_ctx_buffer_size = 4096;
 char *input_filename = NULL;
 int ret = 0;
 struct buffer_data bd = { 0 };

 if (argc != 2) {
 fprintf(stderr, "usage: %s input_file\n"
 "API example program to show how to read from a custom buffer "
 "accessed through AVIOContext.\n", argv[0]);
 return 1;
 }
 input_filename = argv[1];

 /* slurp file content into buffer */
 ret = av_file_map(input_filename, &buffer, &buffer_size, 0, NULL);
 if (ret < 0)
 goto end;

 /* fill opaque structure used by the AVIOContext read callback */
 bd.ptr = buffer;
 bd.size = buffer_size;

 /*
 if (!(fmt_ctx = avformat_alloc_context())) {
 ret = AVERROR(ENOMEM);
 goto end;
 }
 fmt_ctx->probesize = 100000000;
 fmt_ctx->max_analyze_duration = 0;

 avio_ctx_buffer = av_malloc(avio_ctx_buffer_size);
 if (!avio_ctx_buffer) {
 ret = AVERROR(ENOMEM);
 goto end;
 }
 avio_ctx = avio_alloc_context(avio_ctx_buffer, avio_ctx_buffer_size,
 0, &bd, &read_packet, NULL, NULL);
 if (!avio_ctx) {
 ret = AVERROR(ENOMEM);
 goto end;
 }
 fmt_ctx->pb = avio_ctx;
 */

 ret = avformat_open_input(&fmt_ctx, input_filename, NULL, NULL);
 if (ret < 0) {
 fprintf(stderr, "Could not open input\n");
 goto end;
 }

 ret = avformat_find_stream_info(fmt_ctx, NULL);
 if (ret < 0) {
 fprintf(stderr, "Could not find stream information\n");
 goto end;
 }

 av_dump_format(fmt_ctx, 0, input_filename, 0);

end:
 avformat_close_input(&fmt_ctx);

 /* note: the internal buffer could have changed, and be != avio_ctx_buffer */
 if (avio_ctx)
 av_freep(&avio_ctx->buffer);
 avio_context_free(&avio_ctx);

 av_file_unmap(buffer, buffer_size);

 if (ret < 0) {
 fprintf(stderr, "Error occurred: %s\n", av_err2str(ret));
 return 1;
 }

 return 0;
}



I wonder why custom will report error ?


-
How to avoid color shift using FFmpeg libx264
7 septembre 2021, par floritI’d like to convert some footage to proxy H.264 using ffmpeg. I got a slight colorshift using the following command :


ffmpeg -i /path/to/045_0054.MXF -map 0 -dn -c:v libx264 -preset slow -profile:v main -level:v 4.1 -coder 1 -pix_fmt yuv420p -crf 25 -vf "scale=1280:720:flags=lanczos" -movflags +faststart -colorspace 1 -color_primaries 1 -color_trc 1 -color_range 1 -brand mp42 -refs 1 -x264-params b-pyramid=0 -bf 2 -g 5 -y /path/to/045_0054.mp4



How can I get rid of the slight magenta shift ?


mediainfo
prints the following about the source file :

General
Complete name : /path/to/045_0054.MXF
Format : MXF
Format version : 1.3
Format profile : OP-1a
Format settings : Closed / Complete
File size : 180 MiB
Duration : 14 s 720 ms
Overall bit rate mode : Variable
Overall bit rate : 102 Mb/s
Encoded date : 2021-02-19 13:13:15.000
Writing application : Sony Mem 2.00

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5.1
Format settings : CABAC / 2 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 2 frames
Format settings, GOP : M=3, N=6
Format settings, wrapping mode : Frame
Codec ID : 0D01030102106001-0401020201314001
Duration : 14 s 720 ms
Bit rate mode : Variable
Bit rate : 97.8 Mb/s
Maximum bit rate : 100.0 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.472
Stream size : 172 MiB (95%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709



-
How to avoid color shift using FFmpeg libx264
7 septembre 2021, par floritI’d like to convert some footage to proxy H.264 using ffmpeg. I got a slight colorshift using the following command :


ffmpeg -i /path/to/045_0054.MXF -map 0 -dn -c:v libx264 -preset slow -profile:v main -level:v 4.1 -coder 1 -pix_fmt yuv420p -crf 25 -vf "scale=1280:720:flags=lanczos" -movflags +faststart -colorspace 1 -color_primaries 1 -color_trc 1 -color_range 1 -brand mp42 -refs 1 -x264-params b-pyramid=0 -bf 2 -g 5 -y /path/to/045_0054.mp4



How can I get rid of the slight magenta shift ?


mediainfo
prints the following about the source file :

General
Complete name : /path/to/045_0054.MXF
Format : MXF
Format version : 1.3
Format profile : OP-1a
Format settings : Closed / Complete
File size : 180 MiB
Duration : 14 s 720 ms
Overall bit rate mode : Variable
Overall bit rate : 102 Mb/s
Encoded date : 2021-02-19 13:13:15.000
Writing application : Sony Mem 2.00

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5.1
Format settings : CABAC / 2 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 2 frames
Format settings, GOP : M=3, N=6
Format settings, wrapping mode : Frame
Codec ID : 0D01030102106001-0401020201314001
Duration : 14 s 720 ms
Bit rate mode : Variable
Bit rate : 97.8 Mb/s
Maximum bit rate : 100.0 Mb/s
Width : 3 840 pixels
Height : 2 160 pixels
Display aspect ratio : 16:9
Frame rate : 25.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.472
Stream size : 172 MiB (95%)
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709