Re: [OpenJPEG] Streaming J2K files

232 views
Skip to first unread message

Jonathan Ballard

unread,
Dec 18, 2012, 5:43:43 PM12/18/12
to open...@googlegroups.com
Make command should have built .../j2k_to_image.

On Friday, December 14, 2012, wrote:
Hi,

I'm following the document here 

 % ./image_to_j2k -i copenhague1.tif -o copenhague1.jp2 -p RPCL -c [64,64] -t 640,480 -jpip -TP R

I'm using the above statement to convert any image to jp2 and it works good.
But I'm having the input files in j2k format and want to make it work in opj_server for streaming.

Is there any code available to convert j2k files to jp2 format?

Regards,
Ramesh

--
You are subscribed to the mailing-list of the OpenJPEG project (www.openjpeg.org)
To post: email to open...@googlegroups.com
To unsubscribe: email to openjpeg+u...@googlegroups.com
For more options: visit http://groups.google.com/group/openjpeg
For more info about OpenJPEG main partners : visit www.tele.ucl.ac.be (UCL) and www.intopix.com

rms...@gmail.com

unread,
Dec 19, 2012, 12:12:31 AM12/19/12
to open...@googlegroups.com

It can convert only the following formats
PGM, PPM, PNM, PGX or BMP file



On Wednesday, December 19, 2012 4:13:43 AM UTC+5:30, Dzonatas wrote:
Make command should have built .../j2k_to_image.

On Friday, December 14, 2012, wrote:
Hi,

I'm following the document here 

 % ./image_to_j2k -i copenhague1.tif -o copenhague1.jp2 -p RPCL -c [64,64] -t 640,480 -jpip -TP R

I'm using the above statement to convert any image to jp2 and it works good.
But I'm having the input files in j2k format and want to make it work in opj_server for streaming.

Is there any code available to convert j2k files to jp2 format?

Regards,
Ramesh

--
You are subscribed to the mailing-list of the OpenJPEG project (www.openjpeg.org)
To post: email to open...@googlegroups.com
To unsubscribe: email to openjpeg+unsubscribe@googlegroups.com

Jonathan Ballard

unread,
Dec 19, 2012, 12:20:09 AM12/19/12
to open...@googlegroups.com
J2K is more "raw" than JP2. Last I looked, the code paths were there. There is also another tool somewhere that prepends fake JP2 header code for partial raw images. I didn't find it right away.
To unsubscribe: email to openjpeg+u...@googlegroups.com

szuk...@arcor.de

unread,
Dec 19, 2012, 1:08:42 PM12/19/12
to open...@googlegroups.com
What are you talking about? The link below shows to openjpeg-1.3, not
openjpeg-1.5; which allows at output files:

 -o <decompressed file>
    REQUIRED
    Currently accepts PGM, PPM, PNM, PGX, PNG, BMP, TIF, RAW and TGA files

winfried

Mathieu Malaterre

unread,
Dec 19, 2012, 2:56:58 AM12/19/12
to open...@googlegroups.com
Ramesh,

As explained in the wiki:

http://code.google.com/p/openjpeg/wiki/JPIP#JP2_encoding_instructions

the input JPEG 2000 needs to be JP2 to store the fidx/cidx boxes.
You cannot use codestream with openjpip.

On Sat, Dec 15, 2012 at 8:25 AM, <rms...@gmail.com> wrote:
> Hi,
>
> I'm following the document here
>
> % ./image_to_j2k -i copenhague1.tif -o copenhague1.jp2 -p RPCL -c [64,64]
> -t 640,480 -jpip -TP R
>
>
> I'm using the above statement to convert any image to jp2 and it works good.
> But I'm having the input files in j2k format and want to make it work in
> opj_server for streaming.
>
> Is there any code available to convert j2k files to jp2 format?
>
> Regards,
> Ramesh
>
> --
> You are subscribed to the mailing-list of the OpenJPEG project
> (www.openjpeg.org)
> To post: email to open...@googlegroups.com
> To unsubscribe: email to openjpeg+u...@googlegroups.com
> For more options: visit http://groups.google.com/group/openjpeg
> For more info about OpenJPEG main partners : visit www.tele.ucl.ac.be (UCL)
> and www.intopix.com



--
Mathieu

rms...@gmail.com

unread,
Dec 22, 2012, 6:20:49 AM12/22/12
to open...@googlegroups.com

Yes I understood,
I can able to convert PGM, PPM, PNM, BMP,.. to JP2 format and it works good.

But can you guide me to solve the issue.
My input files are in either JPEG or in J2K format. I want to stream these files.


Thanks,
Ramesh.

sts2126

unread,
Jan 2, 2013, 5:54:41 PM1/2/13
to open...@googlegroups.com
Hello:

It seems you and are may be attempting similar things. To stream my .jp2 files that did not initially contain the cidx and fidx boxes I had to convert them to an image type compatible with the output of "j2k_to_image" and then convert back to a .jp2 file using "image_to_j2k" with the -jpip flag.

Interestingly, the -jpip flag does not work using the program that I built, but it works for my officemate who build the software the same way. Do you know if the -jpip flag works for you?

also, have you used the opj_compress and opj_decompress functions? When I run the opj_compress function it crashes due to an invalid pointer, have you experienced this?

sts2126

unread,
Jan 4, 2013, 1:39:46 PM1/4/13
to open...@googlegroups.com
Hello:

have your tried using the index_create function in the openjpeg-tools library? The program accepts a .j2k (raw compressed image i.e. no jp2 header) and supposedly attaches the necessary jpip boxes. After I run this program with a .j2k file, a quick glance at the hex editor makes me think that the file is ready for streaming (appropriate boxes and box locations) but the images still do not stream. Have you or has anyone else had success with this?

Scott
Reply all
Reply to author
Forward
0 new messages