44 #define MAX_AUDIO_FRAME_SIZE 192000 // 1 second of 48khz 32bit audio
61 { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
62 { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
63 { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
64 { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
65 { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
66 { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
67 { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
68 { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
69 { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
70 { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
71 { 0xff, 0xff, 0xff, 0x50, 0x51, 0x52, 0x53, 0xff, 0xff },
72 { 0x50, 0x51, 0x52, 0x53, 0xff, 0xff, 0xff, 0xff, 0xff },
92 timecode |= 1<<23 | 1<<15 | 1<<7 | 1<<6;
139 ((tc.tm_mday / 10) << 4) |
142 ((tc.tm_mon / 10) << 4) |
144 buf[4] = (((tc.tm_year % 100) / 10) << 4) |
155 ((tc.tm_sec / 10) << 4) |
158 ((tc.tm_min / 10) << 4) |
161 ((tc.tm_hour / 10) << 4) |
165 buf[1] = buf[2] = buf[3] = buf[4] = 0xff;
172 int i, j, d, of,
size;
177 for (j = 0; j < 9; j++) {
179 for (d = 8; d < 80; d+=2) {
187 frame_ptr += 16 * 80;
197 for (buf = frame; buf < frame + c->
sys->
frame_size; buf += 150 * 80) {
199 for (j = 80; j < 80 * 3; j += 80) {
200 for (k = 6; k < 6 * 8; k += 8)
212 for (j = 80*3 + 3; j < 80*6; j += 80) {
243 for (i = 0; i < c->
n_ast && st != c->
ast[i]; i++);
262 for (i=0; i < c->
n_ast; i++) {
296 if (vst)
return NULL;
311 for (i=0; i<c->
n_ast; i++) {
333 for (i=0; i < c->
n_ast; i++) {
352 for (i=0; i < c->
n_ast; i++)
364 "Make sure that you supply exactly two streams:\n"
365 " video: 25fps or 29.97fps, audio: 2ch/48kHz/PCM\n"
366 " (50Mbps allows an optional second audio stream)\n");