Quantcast
Channel: EngineerZone: Message List
Viewing all articles
Browse latest Browse all 28044

Re: Convert ADV212 JP2-files to video file on PC

$
0
0

Hi Dave

 

I have played a bit with a few options and found the problem.

It comes back to the ratio/pixel format of the input JP2 frame

My input pixel is 720*576 and the downloaded file is 640*480.

 

My first step was to expand it to a different format like tif with:
kdu_expand -i PCC_frame00x.jp2 -o out.tif -region {0.0625,0.0},{1.0,1.0}

The 0.0625 = 1 - 540/576

Then convert it back to JP2 format with:

kdu_compress -i out.tif -o PCC_frame00x.jp2 Creversible=yes Clayers=16

(I still need to fine tune this command)

And then I can use the merge command:

kdu_merge -i frame000.jp2,frame001.jp2,frame002.jp2 -o Avideo.mj2 -mj2_tracks P:0-2@25

 

Now I can open the Avideo.mj2 file with vlc player in windows. I did try it this morning in the linux version of VLC but it fail with a unknown format.

 

I did only 3 frames but will expand it.

 

Thanks for your input Dave.

If you can maybe give me a more elegant solution it that will be great.

 

Is there perhaps a way to do this:

kdu_expand -i PCC_frame000.jp2 -o out.tif -region {0.0,0.0},{1.0,1.3333333}

I want to keep all the data in the JP2-file and not lose some. Even if I get a 2 black side...

 

Thanks

Hurter


Viewing all articles
Browse latest Browse all 28044

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>