changeset 6139:3898967fcc96

some more output cosmetics, especially for vivo and mov demuxers
author arpi
date Mon, 20 May 2002 03:51:58 +0000
parents 523014df7d32
children 44dcc49a0d80
files libmpdemux/demux_mov.c libmpdemux/demux_viv.c loader/dshow/DS_AudioDecoder.c
diffstat 3 files changed, 26 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mov.c	Mon May 20 03:25:26 2002 +0000
+++ b/libmpdemux/demux_mov.c	Mon May 20 03:51:58 2002 +0000
@@ -139,8 +139,8 @@
     }
 #endif
 
-    mp_msg(MSGT_DEMUX, MSGL_HINT, "MOV track: %d chunks, %d samples\n",trak->chunks_size,trak->samples_size);
-    mp_msg(MSGT_DEMUX, MSGL_HINT, "pts=%d  scale=%d  time=%5.3f\n",trak->length,trak->timescale,(float)trak->length/(float)trak->timescale);
+    mp_msg(MSGT_DEMUX, MSGL_INFO, "MOV track #%d: %d chunks, %d samples\n",trak->id,trak->chunks_size,trak->samples_size);
+    mp_msg(MSGT_DEMUX, MSGL_V, "pts=%d  scale=%d  time=%5.3f\n",trak->length,trak->timescale,(float)trak->length/(float)trak->timescale);
 
     // process chunkmap:
     i=trak->chunkmap_size;
@@ -610,6 +610,7 @@
 		mp_msg(MSGT_DEMUX,MSGL_WARN,MSGTR_MOVtooManyTrk);
 		return;
 	    }
+	    if(!priv->track_db) mp_msg(MSGT_DEMUX, MSGL_INFO, "--------------\n");
 	    trak=malloc(sizeof(mov_track_t));
 	    memset(trak,0,sizeof(mov_track_t));
 	    mp_msg(MSGT_DEMUX,MSGL_V,"MOV: Track #%d:\n",priv->track_db);
@@ -698,10 +699,8 @@
 		  }  
 		}  
 
-		mp_msg(MSGT_DEMUX, MSGL_INFO, "Audio bits: %d  chans: %d\n",
-		    trak->stdata[19],trak->stdata[17]);
-		mp_msg(MSGT_DEMUX, MSGL_INFO, "Audio sample rate: %d\n",
-		    sh->samplerate/*char2short(trak->stdata,24)*/);
+		mp_msg(MSGT_DEMUX, MSGL_INFO, "Audio bits: %d  chans: %d  rate: %d\n",
+		    trak->stdata[19],trak->stdata[17],sh->samplerate);
 		if((trak->stdata[9]==0) && trak->stdata_len >= 36) { // version 0 with extra atoms
 		    int atom_len = char2int(trak->stdata,28);
 		    switch(char2int(trak->stdata,32)) { // atom type
@@ -886,7 +885,7 @@
 		  sh->aspect/=trak->tkdata[81]|(trak->tkdata[80]<<8);
 		}
 		
-		if(depth&(~15)) printf("*** depth = 0x%X\n",depth);
+		if(depth>32+8) printf("*** depth = 0x%X\n",depth);
 
 		// palettized?
 		depth&=31; // flag 32 means grayscale
@@ -1123,7 +1122,7 @@
 	    off_t udta_size = len;
 	
 	    mp_msg(MSGT_DEMUX, MSGL_DBG2, "mov: user data record found\n");
-	    mp_msg(MSGT_DEMUX, MSGL_INFO, "Quicktime Clip Info:\n");
+	    mp_msg(MSGT_DEMUX, MSGL_V, "Quicktime Clip Info:\n");
 
 	    while((len > 8) && (udta_size > 8))
 	    {
@@ -1158,51 +1157,51 @@
 			{
 			    case MOV_FOURCC(0xa9,'a','u','t'):
 				demux_info_add(demuxer, "author", &text[2]);
-				mp_msg(MSGT_DEMUX, MSGL_INFO, " Author: %s\n", &text[2]);
+				mp_msg(MSGT_DEMUX, MSGL_V, " Author: %s\n", &text[2]);
 				break;
 			    case MOV_FOURCC(0xa9,'c','p','y'):
 				demux_info_add(demuxer, "copyright", &text[2]);
-				mp_msg(MSGT_DEMUX, MSGL_INFO, " Copyright: %s\n", &text[2]);
+				mp_msg(MSGT_DEMUX, MSGL_V, " Copyright: %s\n", &text[2]);
 				break;
 			    case MOV_FOURCC(0xa9,'i','n','f'):
-				mp_msg(MSGT_DEMUX, MSGL_INFO, " Info: %s\n", &text[2]);
+				mp_msg(MSGT_DEMUX, MSGL_V, " Info: %s\n", &text[2]);
 				break;
 			    case MOV_FOURCC('n','a','m','e'):
 			    case MOV_FOURCC(0xa9,'n','a','m'):
 				demux_info_add(demuxer, "name", &text[2]);
-				mp_msg(MSGT_DEMUX, MSGL_INFO, " Name: %s\n", &text[2]);
+				mp_msg(MSGT_DEMUX, MSGL_V, " Name: %s\n", &text[2]);
 				break;
 			    case MOV_FOURCC(0xa9,'A','R','T'):
-				mp_msg(MSGT_DEMUX, MSGL_INFO, " Artist: %s\n", &text[2]);
+				mp_msg(MSGT_DEMUX, MSGL_V, " Artist: %s\n", &text[2]);
 				break;
 			    case MOV_FOURCC(0xa9,'d','i','r'):
-				mp_msg(MSGT_DEMUX, MSGL_INFO, " Director: %s\n", &text[2]);
+				mp_msg(MSGT_DEMUX, MSGL_V, " Director: %s\n", &text[2]);
 				break;
 			    case MOV_FOURCC(0xa9,'c','m','t'):
 				demux_info_add(demuxer, "comments", &text[2]);
-				mp_msg(MSGT_DEMUX, MSGL_INFO, " Comment: %s\n", &text[2]);
+				mp_msg(MSGT_DEMUX, MSGL_V, " Comment: %s\n", &text[2]);
 				break;
 			    case MOV_FOURCC(0xa9,'r','e','q'):
-				mp_msg(MSGT_DEMUX, MSGL_INFO, " Requirements: %s\n", &text[2]);
+				mp_msg(MSGT_DEMUX, MSGL_V, " Requirements: %s\n", &text[2]);
 				break;
 			    case MOV_FOURCC(0xa9,'s','w','r'):
 				demux_info_add(demuxer, "encoder", &text[2]);
-				mp_msg(MSGT_DEMUX, MSGL_INFO, " Software: %s\n", &text[2]);
+				mp_msg(MSGT_DEMUX, MSGL_V, " Software: %s\n", &text[2]);
 				break;
 			    case MOV_FOURCC(0xa9,'d','a','y'):
-				mp_msg(MSGT_DEMUX, MSGL_INFO, " Creation timestamp: %s\n", &text[2]);
+				mp_msg(MSGT_DEMUX, MSGL_V, " Creation timestamp: %s\n", &text[2]);
 				break;
 			    case MOV_FOURCC(0xa9,'f','m','t'):
-				mp_msg(MSGT_DEMUX, MSGL_INFO, " Format: %s\n", &text[2]);
+				mp_msg(MSGT_DEMUX, MSGL_V, " Format: %s\n", &text[2]);
 				break;
 			    case MOV_FOURCC(0xa9,'p','r','d'):
-				mp_msg(MSGT_DEMUX, MSGL_INFO, " Producer: %s\n", &text[2]);
+				mp_msg(MSGT_DEMUX, MSGL_V, " Producer: %s\n", &text[2]);
 				break;
 			    case MOV_FOURCC(0xa9,'p','r','f'):
-				mp_msg(MSGT_DEMUX, MSGL_INFO, " Performer(s): %s\n", &text[2]);
+				mp_msg(MSGT_DEMUX, MSGL_V, " Performer(s): %s\n", &text[2]);
 				break;
 			    case MOV_FOURCC(0xa9,'s','r','c'):
-				mp_msg(MSGT_DEMUX, MSGL_INFO, " Source providers: %s\n", &text[2]);
+				mp_msg(MSGT_DEMUX, MSGL_V, " Source providers: %s\n", &text[2]);
 				break;
 			}
 			udta_size -= 4+text_len;
@@ -1253,6 +1252,7 @@
 	return 0;
     }
     lschunks(demuxer, 0, priv->moov_end, NULL);
+//    mp_msg(MSGT_DEMUX, MSGL_INFO, "--------------\n");
 
     return 1;
 }
--- a/libmpdemux/demux_viv.c	Mon May 20 03:25:26 2002 +0000
+++ b/libmpdemux/demux_viv.c	Mon May 20 03:51:58 2002 +0000
@@ -241,7 +241,7 @@
 	if(len>1024) return 0;
     }
     len+=c;
-    printf("header block 1 size: %d\n",len);
+    mp_msg(MSGT_DEMUX,MSGL_V,"header block 1 size: %d\n",len);
     //stream_skip(demuxer->stream,len);
 
     priv=malloc(sizeof(vivo_priv_t));
@@ -273,7 +273,7 @@
 	if(len+len2>2048) return 0;
     }
     len2+=c;
-    printf("header block 2 size: %d\n",len2);
+    mp_msg(MSGT_DEMUX,MSGL_V,"header block 2 size: %d\n",len2);
     stream_skip(demuxer->stream,len2);
 //    stream_read(demuxer->stream,buf+len,len2);
 #endif
--- a/loader/dshow/DS_AudioDecoder.c	Mon May 20 03:25:26 2002 +0000
+++ b/loader/dshow/DS_AudioDecoder.c	Mon May 20 03:51:58 2002 +0000
@@ -100,8 +100,8 @@
     this->m_sDestType.cbFormat=18; //pWF->cbSize;
     this->m_sDestType.pbFormat=this->m_sVhdr2;
 
-print_wave_header(this->m_sVhdr);
-print_wave_header(this->m_sVhdr2);
+//print_wave_header(this->m_sVhdr);
+//print_wave_header(this->m_sVhdr2);
 
     /*try*/
     {