Re: [Libav-user] Color depth in MXF file

2012-05-12 Thread Carl Eugen Hoyos
Geoffrey tn writes: > My problem is, it doesn't work with a MXF File. The value of > "bits_per_coded_sample" is all the time fixed to 0.  > > I tried with MXF files composed of JP2K and IMX. I suspect bits_per_coded_sample is not written in the mxf files (it is written in some other files in

Re: [Libav-user] Color depth in MXF file

2012-05-12 Thread Geoffrey tn
You can find the MXF samples I used, there: http://www.opencubetech.com/page47/ > To: libav-user@ffmpeg.org > From: ceho...@ag.or.at > Date: Sat, 12 May 2012 06:54:07 + > Subject: Re: [Libav-user] Color depth in MXF file > > Geoffrey tn writes: > > > My probl

Re: [Libav-user] Color depth in MXF file

2012-05-11 Thread Carl Eugen Hoyos
Geoffrey tn writes: > My problem is, it doesn't work with a MXF File. The value of > "bits_per_coded_sample" is all the time fixed to 0.  > > I tried with MXF files composed of JP2K and IMX. Could you provide samples? For jp2k, the (libopenjpeg) decoder will set it in the future. Carl Eugen

[Libav-user] Color depth in MXF file

2012-05-11 Thread Geoffrey tn
Hi, Usually I use the function av_find_best_stream(...) to get the color depth of a generic media file and I retrieve the information with "fmt_ctx->streams[video_stream_index]->codec->bits_per_coded_sample" and it works perfectly. My problem is, it doesn't work with a MXF File. The value of "