Hi,
> I can see that this is interlaced, but how do I know whether it is top- or
> bottom-field-first?
video_inter = 1 means top-field-first, 2 for bottom-field-first.
I think it is documented somewhere..
FWIW, here is a patch for lavinfo.c that replaces the interlacing and
chroma numbers by more explicit mnemonics.
--- lavinfo.c.orig Tue Jul 6 17:53:48 2004
+++ lavinfo.c Fri Aug 27 15:01:21 2004
@@ -42,13 +42,29 @@
printf("video_frames=%li\n",el.video_frames);
printf("video_width=%li\n",el.video_width);
printf("video_height=%li\n",el.video_height);
- printf("video_inter=%li\n",el.video_inter);
- printf("video_norm=%s\n",el.video_norm=='n'?"NTSC":"PAL");
+ printf("video_inter=");
+ switch (el.video_inter) {
+ case Y4M_ILACE_NONE: printf("p\n"); break;
+ case Y4M_ILACE_TOP_FIRST: printf("t\n"); break;
+ case Y4M_ILACE_BOTTOM_FIRST: printf("b\n"); break;
+ case Y4M_UNKNOWN: printf("?\n"); break;
+ default:
+ printf("?\n"); break;
+ }
+ printf("video_norm=%s\n",el.video_norm=='n'?"NTSC":"PAL");
printf("video_fps=%f\n",el.video_fps);
printf("video_sar_width=%i\n",el.video_sar_width);
printf("video_sar_height=%i\n",el.video_sar_height);
printf("max_frame_size=%li\n",el.max_frame_size);
- printf("MJPG_chroma=%i\n",el.MJPG_chroma);
+ printf("MJPG_chroma=");
+ switch (el.MJPG_chroma) {
+ case CHROMA420: printf("420\n"); break;
+ case CHROMA422: printf("422\n"); break;
+ case CHROMA444: printf("444\n"); break;
+ case CHROMAUNKNOWN: printf("?\n"); break;
+ default:
+ printf("?\n"); break;
+ }
/* Audio */
printf("has_audio=%i\n",el.has_audio);
printf("audio_bps=%i\n",el.audio_bps);
Selva
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users