reading video file

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

reading video file

chris elliott
In trying to open a video file with ImageJ (1.46e), on a 64bit mac, the file opening failed with unsupported format, and the the debug window showed:

Searching for 'strh', found strh' 0x6c-0xa3 (56 Bytes)
VIDEO STREAM HEADER (strh):
   fccStreamHandler='I420'
   dwStreamFlags=0
   wPriority,wLanguage=0
   dwStreamInitialFrames=0
   dwStreamScale=1000000
   dwStreamRate=1000000
   dwStreamStart=0
   dwStreamLength=121
   dwStreamSuggestedBufferSize=460800
   dwStreamQuality=-1
   dwStreamSampleSize=0
Searching for 'strf', found strf' 0xac-0xd3 (40 Bytes)
   biSize=40
   biWidth=640
   biHeight=480
   biPlanes=1
   biBitCount=12
   biCompression=0x30323449 'I420'
   biSizeImage=460800
   biXPelsPerMeter=0
   biYPelsPerMeter=0
   biClrUsed=0
   biClrImportant=0

Is it possible to read I420 format video?
chris
Reply | Threaded
Open this post in threaded view
|

Re: reading video file

Michael Schmid
Hi Chris, and everyone,

I420 and YV12 (which seems to be more popular) are currently not supported by ImageJ, but in principle it would be possible to add support for reading these formats.

Are there other users who would like to read I420, YV12 (a.k.a. IYUV) or similar formats (NV12, NV21, YVU9, YUV9, YV16, IMC1...IMC4)?

As far as I remember most frame grabbers produce one of the formats already supported in ImageJ (YVYU, YUY2, etc), so what is the typical source of I420, YV12 etc. files?

Michael
________________________________________________________________
On Jan 25, 2012, at 17:39, chris elliott wrote:

> In trying to open a video file with ImageJ (1.46e), on a 64bit mac, the file opening failed with unsupported format, and the the debug window showed:
>
> Searching for 'strh', found strh' 0x6c-0xa3 (56 Bytes)
> VIDEO STREAM HEADER (strh):
>   fccStreamHandler='I420'
>   dwStreamFlags=0
>   wPriority,wLanguage=0
>   dwStreamInitialFrames=0
>   dwStreamScale=1000000
>   dwStreamRate=1000000
>   dwStreamStart=0
>   dwStreamLength=121
>   dwStreamSuggestedBufferSize=460800
>   dwStreamQuality=-1
>   dwStreamSampleSize=0
> Searching for 'strf', found strf' 0xac-0xd3 (40 Bytes)
>   biSize=40
>   biWidth=640
>   biHeight=480
>   biPlanes=1
>   biBitCount=12
>   biCompression=0x30323449 'I420'
>   biSizeImage=460800
>   biXPelsPerMeter=0
>   biYPelsPerMeter=0
>   biClrUsed=0
>   biClrImportant=0
>
> Is it possible to read I420 format video?
> chris
Reply | Threaded
Open this post in threaded view
|

Re: reading video file

chris elliott
This was from a creative video camera; I can find the model number if needed
chris

On 25 Jan 2012, at 16:57, Michael Schmid wrote:

> As far as I remember most frame grabbers produce one of the formats already supported in ImageJ (YVYU, YUY2, etc), so what is the typical source of I420, YV12 etc. files?
>
> Michael
Reply | Threaded
Open this post in threaded view
|

Re: reading video file

Michael Schmid
Hi Chris,

thanks, pointing the way to webcams is enough. I420, YV12 etc. seem to be common formats for webcams, probably worth including in ImageJ.

I can't promise that I would do it soon, but could you send a small (<40MB; smaller would be better) sample video to me (off-list), preferably with a screenshot so I can see whether I get it right?

In the meanwhile you could try converting with ffmpeg or (Windows/Wine only) VirtualDub.

Best wishes,

Michael
________________________________________________________________
On Jan 25, 2012, at 20:51, Chris Elliott wrote:

> This was from a creative video camera; I can find the model number if needed
> chris
>
> On 25 Jan 2012, at 16:57, Michael Schmid wrote:
>
>> As far as I remember most frame grabbers produce one of the formats already supported in ImageJ (YVYU, YUY2, etc), so what is the typical source of I420, YV12 etc. files?
>>
>> Michael