Re: [Libav-user] Writing prores files?

2024-02-05 Thread francesco
"moov atom not found" means the problem is on the wrapper, not on the codec. Nothing changes if you modify codec parameters. Regards Francesco 3 febbraio 2024 23:01, "Joe Button" wrote: > Hi! > > I'm trying to write a ProRes file, specifically ProR

[Libav-user] MPEG2VIDEO error (codec not yet implemented) in 5.0.1 ???

2022-05-18 Thread francesco
;,err); err = -6; goto _setc_exit; } message is "Error opening codec mpeg2video (Not yet implemented in FFmpeg, patches welcome)". The same code works fine using 4.3.1 libraries. Anyone experieces the same problem ? regards Francesco --

[Libav-user] Error (-12) in send frame :[Cannot allocate memory] when using quickSync

2022-02-22 Thread francesco
gt;sample_aspect_ratio.num = 1; pCodecCtx->sample_aspect_ratio.den = 1; pCodecCtx->rc_buffer_size = 1200; avcodec_open2(pCodecCtx, pcodec, _option); There is a setting I forgot ? Someone experienced same error ? Can anyone help ? regards -- /***

[Libav-user] Handling a large number of rtsp cameras ( > 100) - image processing

2022-02-04 Thread Francesco Taioli
Hi all, I have a performance problem regarding image acquisition from a large number of cameras (they are greater than 100) in a *python* program. Currently, I use cv2 with a ffmpeg pipeline. *What I want to do* I want to do some image processing on those cameras multiple times in a minute.

[Libav-user] ffmpeg version 3.4 (Cantor) behaviour

2017-11-20 Thread Francesco, Cuzzocrea
s behavior ? How can I detect effective compressed frame size ? regards Francesco ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

[Libav-user] Error DNxHD encoding with libavcodec 57.107.100

2017-11-14 Thread Francesco, Cuzzocrea
  } goto stp_b2mx;   }   smerr = avcodec_receive_packet(pCodecCtx_xd, );   if(smerr<0)   { if(av_strerror(smerr,str_err,256)==0){ stre.printf("Error returned from avcodec_receive_packet (%s)",str_err);  }    else { stre.printf("Error (%d) returned fro

Re: [Libav-user] PRORES decoding using AVCODEC and ffmpeg 3.3.3

2017-11-06 Thread Francesco, Cuzzocrea
On 06/11/2017 17.47, Philippe Gorley wrote: On 2017-11-06 11:40 AM, Francesco, Cuzzocrea wrote: Hi to all I found that ffmpeg can decode PRORES, while it seems that avcodec doesn't. If I issue: ffmpeg.exe -i test_prores.mov test.mp4 it convert the mov prores file correctly, whilst using

[Libav-user] PRORES decoding using AVCODEC and ffmpeg 3.3.3

2017-11-06 Thread Francesco, Cuzzocrea
coding of PRORES frame ? Regards -- /***\ *Ing. Francesco Cuzzocrea * e-mail: france...@bltitalia.com \***/ ___ L

[Libav-user] libmfx not found using pkg-config

2017-02-22 Thread Francesco, Cuzzocrea
ug --arch=amd64 but same result. Same result too if I don't specify architecture: /configure --enable-yasm --enable-gpl --enable-static --disable-debug May be that libmfx can't be statically linked ? Regards Francesco ___ Libav-user mailing

[Libav-user] Error encoding in dnxhd : Invalid frame size 1440x1080i.

2017-01-24 Thread francesco
profiles the profile exist with frame size 1440x1080i and 90Mbps. What I'm missing ? regards Francesco ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

Re: [Libav-user] avcodec_open2 error when running encoding_decodingexample

2016-04-26 Thread francesco
) returned from encoded video",str_err); } else { stre.printf("Error (%d) returned from encoded video",errv); } } /***\ *Ing. Francesco Cuzzocrea *company:BLT Italia srlweb: http://www.bl

Re: [Libav-user] avcodec_open2 error when running encoding_decodingexample

2016-04-26 Thread francesco
dea of what am I doing wrong? >Best, > > > > >__ Informazioni da ESET NOD32 Antivirus, versione del database delle firme digitali 9892 (20140604) __ > >Il messaggio è stato controllato da ESET NOD32 Antivirus. > >http://www.nod32.it;>www.nod32.it > > > > >

[Libav-user] h264_mp4toannexb filter returns -22

2016-04-20 Thread francesco
, pkt.data, pkt.size, pkt.flags_PKT_FLAG_KEY); } } in the loop when I call av_bitstream_filter_filter I receive error -22 (invalid parameter). The poutb pointer is allocated with size equal to packet size (pkt.size) and no sps or pps are inserted. Where is the mistake ?

[Libav-user] Error compiling ffmpeg-3.0 - error: 'SEC_I_CONTEXT_EXPIRED' undeclared

2016-03-14 Thread francesco
/tls_schannel.c:437:25 error: 'SEC_I_CONTEXT_EXPIRED' undeclared (first use in this function) How can I solve ? Regards /***\ *Ing. Francesco Cuzzocrea *company:BLT Italia srlweb: http://www.blt.it *address:via

[Libav-user] Invalid data found when processing input

2016-02-19 Thread francesco
irst chunk size starts with (hex): 00 02 f0 84 any suggestion or idea ? Regards Francesco ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

[Libav-user] Anchor frame distance in GOP structure

2014-12-18 Thread francesco
Hi to all I am using libavcodec in order to compress in mpeg2 xdcam (4:2:2, long gop). How can I set the distance, in the GOP, between two anchor frames, (that is the M parameter of the GOP structure) ? regards ___ Libav-user mailing list

[Libav-user] CODEC_FLAG2_STRICT_GOP flag

2014-12-12 Thread francesco
In latest version of libavcodec library the CODEC_FLAG2_STRICT_GOP flag is not present. There is an equivalent ? The results is that with the same settings the GOP now has a size of 10 instead of 12. regards Francesco ___ Libav-user mailing list Libav

[Libav-user] -non_linear_quant and -intra_vlc options

2014-12-05 Thread francesco
Anyone can explain what parameter, in AVCodecContext structure, are influenced by these settings ? Used codec is mpeg2. regards ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

[Libav-user] Encoding in XDCAM 422: GOP sequence and mpeg_quant parameter

2014-12-03 Thread francesco
I'm attempting to encode in XDCAM format with closed GOP, fixed GOP size of 12 and GOP sequence IBBPBBPBBPBB. Changing value of b_frame_strategy in AVCodecContext the best result is obtained using the value of 0 (while value of 1 produces only P frames, and value of 2 produces non constant GOP

Re: [Libav-user] XDCAM setting produces only P frame

2014-11-26 Thread francesco
I make a mistake in writing. Parameter pCodecCtx-max_b_frames is equal to 2 not to 8 as I wrote. I added some other settings: pCodecCtx-intra_dc_precision = 10; pCodecCtx-rc_max_available_vbv_use = 1; pCodecCtx-rc_min_vbv_overflow_use = 1; but nothing changes.

[Libav-user] XDCAM setting produces only P frame

2014-11-11 Thread francesco
that shoiuld be set ? regards Francesco ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

[Libav-user] Creating vob files and setting start timecode

2014-10-27 Thread francesco
Hi to all I am using ffmpeg libraries in order to create .vob files and all works fine. (I use the code in the example muxing.c) Now I am attempting to set the start timecode in order to simplify concatenation of two .vob files. That is the idea is to have two .vob files: one, for example, from

[Libav-user] Decoding XDCAM 4:2:2 using libavcodec-5.5 : error 0xbebbb1b7 (AVERROR_INVALIDDATA)

2014-03-27 Thread Francesco BLT
Hi to all I have written a code for decoding IMX-D10 at 30, 40 and 50 M and works fine. Attempting to decode XDCAM 4:2:2 at 1920x1080 it seems that only first frame (I-Frame) is decoded. After this I receive the error 0xbe1b7 from avcodec_decode_video2 routine. Here is the code: pCodec =

[Libav-user] encoding h264

2013-11-27 Thread Francesco Damato
the next frame. Now i want to encode this frames in h264. Any suggestion is appreciated. Thanks, Francesco Damato ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

Re: [Libav-user] Applied pad on the decoded frame

2013-11-27 Thread Francesco Damato
the width = width+1 when calling sws_getContext. Could it be a bug in swscale since I do no scaling? Thanks a lot. ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user -- Francesco Damato

Re: [Libav-user] avcodec_encode_video2 failed (returned -12 as return value)

2013-11-27 Thread Francesco Damato
av_free_packet after calling avcodec_encode_video2()). Thanks very much ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user -- Francesco Damato ___ Libav

Re: [Libav-user] Copy Image Data from Decode Frame To Encode Frame

2013-11-27 Thread Francesco Damato
. That's okay, but I'd really like to understand how it works behind the scenes so I know it works for sure. ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user -- Francesco Damato

Re: [Libav-user] Resampling issue

2013-11-27 Thread Francesco Damato
swr_convert() in this case. I will be glad to any advice. Thank you. WBR, Andrew Sherepenko ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user -- Francesco Damato

Re: [Libav-user] Problem Generating B-Frames Using libavcodec/libx264

2013-10-23 Thread Francesco Damato
___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user -- Francesco Damato ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

Re: [Libav-user] encoder h264

2013-10-21 Thread Francesco Damato
,bytesRead); } free(video_buf); return bytesRead; } ** ** *From:* libav-user-boun...@ffmpeg.org [mailto: libav-user-boun...@ffmpeg.org] *On Behalf Of *Francesco Damato *Sent:* Wednesday, October 16, 2013 8:05 PM *To:* This list is about using libavcodec

Re: [Libav-user] Applied pad on the decoded frame

2013-10-16 Thread Francesco Damato
-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user -- Francesco Damato ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

[Libav-user] encoder h264

2013-10-16 Thread Francesco Damato
and encode them into h264?? I saw the example decoding_encoding.c that generates a video from dummy pictures... but how do I replace this part and read and encode my rawvideo file? Can you help me, there are other examples or books available? Thanks!!! -- Francesco Damato

Re: [Libav-user] Applied pad on the decoded frame

2013-10-14 Thread Francesco Damato
a padded linesize? Could anyone tell me how I can eliminate the black border? Thanks. ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user -- Francesco Damato

[Libav-user] decoding_encoding.c example

2013-07-17 Thread Francesco Damato
Hi, I am an engineering student and i am writing a C program to encode to mpeg2 video read from file, send it to a stream and then decode it. I saw the example decoding_encoding.c that generates a video from dummy pictures... but how do I replace this part

[Libav-user] decoding_encoding.c example

2013-07-16 Thread Francesco Damato
examples available? Thanks!!! Francesco ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

[Libav-user] encode_decode with libavcodec

2013-07-16 Thread Francesco Damato
Hi, I am writing a program to encode to mpeg2 video read from file, send it to a stream and then decode it. I saw the example decoding_encoding.c that generates a video from dummy pictures... but how do I replace this part and read and encode my video? anyone can help me, there are other

Re: [Libav-user] FFmpeg.framework

2013-02-20 Thread francesco
Great Renè, Great ! ! ! I'm interested. Thanks At 18.43 20/02/2013 +0100, you wrote: Hello FYI More or less as a result of the discussion about the ff_log2_tab multiply defined issue, I started toying with the possibility to pull in all members of static archives ... and ended up creating an

Re: [Libav-user] Deprecated flag CODEC_FLAG2_INTRA_VLC and CODEC_FLAG2_NON_LINEAR_QUANT

2013-01-21 Thread francesco
At 17.59 18/01/2013 +, you wrote: francesco@... writes: I update my project from ffmpeg libavcodec library version 0.7.11 to the 1.0 one. In this last the flags CODEC_FLAG2_INTRA_VLC and CODEC_FLAG2_NON_LINEAR_QUANT are deprecated and not defined at all. When I compress in mpeg2 4

[Libav-user] Settings q_scale_type and intra_vlc_format

2013-01-21 Thread francesco
Hi to all I am using last release of ffmpeg libraries (mainly libavcodec) in orde to compress im MPEG2 format D10 IMX 50, and I found that these two flags are set at zero in the output stream, while using old version of libavcodec libraries both was set. I set the flag: pQTCodecCtx-flags |=

[Libav-user] MPEG2 picture header question

2012-07-04 Thread francesco
Hi to all I am compressing in MPEG2 4:2:2 format long GOP (gop_size=11) and closed GOP. I noted that each time that avcodec_encode_video returns a value different from zero (always 25 when bit_rate is 5000) in the data there are more than one picture header (identified by mark 00 00 01

Re: [Libav-user] Compressing in MPEG2 with closed GOP

2012-06-26 Thread francesco
At 10.50 26/06/2012 +, you wrote: francesco@... writes: Did anyone compress in MPEG2 using CODEC_FLAG_CLOSED_GOP ? It works ? If I set this flag the avcodec_open2 function returns -1. Wasn't an error shown explaining the reason? Carl Eugen

[Libav-user] Encoding in MPEG2 XDCAM 50Mbit problem

2012-06-25 Thread francesco
Hi to all I am attempting to encode in MPEG2 XDCAM long gop 50Mbit using libavcodec, but I think that some settings are wrong and I can't setup values correctly. Here is the code that generates first 20 blocks of data in separate files: /* find the video encoder */ pcodec_xd =

[Libav-user] Bit rate not changing

2012-04-03 Thread francesco
Hi to all I am attempting to transcode compressed SD video in JP2K format to MPEG-2 compressed video at 30, 40 and 50Mbit using libavcodec only for compressing. Here is the code: pQTcodec = avcodec_find_encoder(CODEC_ID_MPEG2VIDEO); // find the mpeg2 video encoder if (!pQTcodec) {str1=Unable

Re: [Libav-user] Bit rate not changing

2012-04-03 Thread francesco
How can I set It ? In the examples included I didn't find this. best regards At 09.09 03/04/2012 +0200, you wrote: 2012/4/3 france...@bltitalia.com Hi to all I am attempting to transcode compressed SD video in JP2K format to MPEG-2 compressed video at 30, 40 and 50Mbit using libavcodec

Re: [Libav-user] Bit rate not changing

2012-04-03 Thread francesco
I set the pts and the pkt_pts but nothing changes. Keep account that I have only I-Frames. best regards At 09.33 03/04/2012 +0200, you wrote: How can I set It ? In the examples included I didn't find this. best regards At 09.09 03/04/2012 +0200, you wrote: 2012/4/3 france...@bltitalia.com

[Libav-user] Inserting user text into mpeg2 stream

2012-03-26 Thread francesco
Hi to all examinig mpeg2 stream I saw that some files have user text. Usually the header is the 00 00 01 B2 user text, 37 char typical is the export in AVID IMX 50 from Quicktime. There is a way to include text using libavcodec ? I experimented that setting the CODEC_FLAG_SVCD_SCAN_OFFSET in

[Libav-user] Intra_vlc_format

2012-03-22 Thread francesco
Hi to all how can I set the Intra_vlc_format ? The flag CODEC_FLAG2_INTRA_VLC is deprecated and in the 7.1 version is not supported. (The program after updating libavcodec library gives error in compiling). In the deprecaed flag list is written Use MPEG-2 intra VLC table. . How can I set it ?

[Libav-user] Intra quantizer matrix in output stream

2012-03-21 Thread francesco
Hi to all how can I set the presence of intra quantizer matrix in the output data during encoding with avcodec_encode_video ? ___ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user

Re: [Libav-user] MPEG2 4:2:2 encoding in 4:3 sample_aspect_ratio

2012-03-16 Thread francesco
At 19.04 15/03/2012 +0200, you wrote: On Mar 15, 2012 12:33 PM, france...@bltitalia.com wrote: Hi to all have anyone attempted to encode in 4:3 format ? I can't do. If I set: AVRational vform; codec = avcodec_find_encoder(CODEC_ID_MPEG2VIDEO); if (!codec) { Memo1-Lines-Add(Unable to

[Libav-user] MPEG2 4:2:2 encoding in 4:3 sample_aspect_ratio

2012-03-15 Thread francesco
Hi to all have anyone attempted to encode in 4:3 format ? I can't do. If I set: AVRational vform; codec = avcodec_find_encoder(CODEC_ID_MPEG2VIDEO); if (!codec) { Memo1-Lines-Add(Unable to find codec ); goto _Encod1Frame_err;} pCodecCtx = avcodec_alloc_context3(codec);

[Libav-user] MPEG2 Encoding with a determined bit_rate

2012-03-13 Thread francesco
Hi to all I am attempting to convert in mpeg2 with a bitrate of 30Mbit/sec and with a 50Mbit/sec but it seems that the bit rate variation doesn't work. Here is my routine that gets as input a buffer with my originary coded frame (not interlaced), decompress and interlace it and recompress using

[Libav-user] av_open_input_file with URLProtocol problem

2012-02-02 Thread francesco
Hi to all i have the subsequent problem. I wrote my own URLProtocol routines as in the subsequent: unsigned char InputCompressed[0x40]; // 4M buffer unsigned long bufPnt, fileSize; int myReadFunction (URLContext *h, uint8_t *buf, int buf_size) { if(((bufPnt + buf_size)

[Libav-user] Encoding in PIX_FMT_YUYV422

2012-01-23 Thread francesco
Hi to all I'm attempting to encode in PIX_FMT_YUYV422 using libavcodec. It's not clear to me the format of input raw data. I understood that all pixel should be in 16 Bit format, but in buffer, how should be inserted data ? That is, if locpFrame is a pointer to an AVFrame, I should insert;

[Libav-user] av_probe_input_format fails the second time

2012-01-11 Thread francesco
works well for the first frame, in the second frame the function av_probe_input_format fails. Any idea ? best regards /***\ *ing. Francesco Cuzzocrea *company:BLT Italia srlweb: http://www.blt.it *address

Re: [Libav-user] avcodec_decode_video2 returns 0 in third parameter

2012-01-10 Thread francesco
At 17.51 09/01/2012 +0100, you wrote: Hi to all I can't decode a field because avcodec_decode_video2 returns 0 in the third parameter either if the stream is correct (i displayed it with other programs). Here is the code: pCodec=avcodec_find_decoder(pCodecCtx-codec_id); if(pCodec==NULL) {

[Libav-user] Unable to find codec

2012-01-09 Thread francesco
Psygnosis YOP Format DE yuv4mpegpipeYUV4MPEG pipe format /***\ *ing. Francesco Cuzzocrea *company:BLT Italia srlweb: http://www.blt.it *address:via Rosselli, 91 city: Lido di CAMAIORE *country