Hans Verkuil wrote: > On Sunday 27 August 2006 03:38, Cyrus A wrote: > >> Here is my experience trying to encode into MPEG-4 on the fly while >> also recording closed captions on a PVR-250. >> >> First I tried 'cat /dev/video0 > outputfile.mpg' to get the hardware >> MPEG-2. That worked perfectly. >> >> Then I had some trouble encoding on the fly with ffmpeg. The audio >> was out of sync for some unknown reason. After a couple of days, I >> found that '-async 1' solved my problem. My ffmpeg command is ' >> ffmpeg -i /dev/video0 -async 1 -s 480x384 -b 1750 outfile.mpg' I have >> thoroughly tested it and it works well for long periods of time >> (recording an hourlong show, for instance). Now onto closed >> captioning. >> >> zvbi-ntsc-cc doesn't work. I think the program "drives" the video >> device at the same time the drivers are trying to "drive" the device >> and it causes conflicts. This results in choppy, unusable video. The >> same thing happened with bttv. >> >> Then I tried the $ivtvhome/test/vbi program and VIOLA, I got the >> captions I needed and the video was unaffected.... or so I thought... >> >> After a short period, errors start showing up in the video encoding >> terminal: >> >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 12 5=2091.2kbits/s >> [mpeg2video @ 0x2aaaab031030]Warning MVs not available >> [mpeg2video @ 0x2aaaab031030]concealing 1125 DC, 1125 AC, 1125 MV >> errors [mpeg2video @ 0x2aaaab031030]00 motion_type at 33 >> 11=2077.1kbits/s [mpeg2video @ 0x2aaaab031030]mb incr damaged >> [mpeg2video @ 0x2aaaab031030]mb incr damaged >> [mpeg2video @ 0x2aaaab031030]mb incr damaged >> [mpeg2video @ 0x2aaaab031030]mb incr damaged >> [mpeg2video @ 0x2aaaab031030]slice mismatch >> [mpeg2video @ 0x2aaaab031030]slice mismatch >> [mpeg2video @ 0x2aaaab031030]slice mismatch >> [mpeg2video @ 0x2aaaab031030]slice mismatch >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 0 20 >> [mpeg2video @ 0x2aaaab031030]invalid cbp at 11 21 >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 0 22 >> [mpeg2video @ 0x2aaaab031030]mb incr damaged >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 0 24 >> [mpeg2video @ 0x2aaaab031030]slice mismatch >> [mpeg2video @ 0x2aaaab031030]mb incr damaged >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 1 27 >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 0 28 >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 0 29 >> [mpeg2video @ 0x2aaaab031030]concealing 855 DC, 855 AC, 855 MV errors >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 19 22=2087.8kbits/s >> [mpeg2video @ 0x2aaaab031030]invalid mb type in B Frame at 13 23 >> [mpeg2video @ 0x2aaaab031030]mb incr damaged >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 7 25 >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 3 26 >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 1 27 >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 1 28 >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 4 29 >> [mpeg2video @ 0x2aaaab031030]Warning MVs not available >> [mpeg2video @ 0x2aaaab031030]concealing 360 DC, 360 AC, 360 MV errors >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 1 12e=2086.9kbits/s >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 1 13 >> [mpeg2video @ 0x2aaaab031030]slice mismatch >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 6 15 >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 1 16 >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 13 17 >> [mpeg2video @ 0x2aaaab031030]ac-tex damaged at 1 18 >> [mpeg2video @ 0x2aaaab031030]invalid mb type in B Frame at 34 19 >> [mpeg2video @ 0x2aaaab031030]invalid cbp at 8 20 >> [mpeg2video @ 0x2aaaab031030]slice mismatch >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 3 22 >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 27 23 >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 16 24 >> [mpeg2video @ 0x2aaaab031030]mb incr damaged >> [mpeg2video @ 0x2aaaab031030]00 motion_type at 28 26 >> [mpeg2video @ 0x2aaaab031030]ac-tex damaged at 4 27 >> [mpeg2video @ 0x2aaaab031030]invalid mb type in B Frame at 3 28 >> [mpeg2video @ 0x2aaaab031030]mb incr damaged >> [mpeg2video @ 0x2aaaab031030]Warning MVs not available >> [mpeg2video @ 0x2aaaab031030]concealing 810 DC, 810 AC, 810 MV errors >> >> Normally I would just ignore the errors, but they corresponded with >> an audio desyncing from the video. The more errors appeared, the more >> the audio became de-synced from the video. >> >> If anyone can provide any insight, it would be greatly appreciated. >> > > Are you embedding the VBI data into the stream (using the ivtvctl -x1 > option) or just reading the VBI data as a separate stream with the vbi > tool? > > Please also give the INIT IVTV messages from the kernel log. Also check > the log for any other errors that it may have printed during capturing. > > What command(s) do you use to get these results? > > Hans > > _______________________________________________ > ivtv-users mailing list > [email protected] > http://ivtvdriver.org/mailman/listinfo/ivtv-users > Here are my commands. In the first terminal window I used:
ffmpeg -i /dev/video0 -async 1 -s 480x384 -b 1750 outfile.mpg and in the second: /usr/local/ivtv-0.7.0/test/vbi I have not attempted anything with ivtvctl. Should I? Dmesg had an interesting message: ivtv0 warning: Starting VBI after starting an encoding, seems to not work. However, starting vbi before the ffmpeg process didn't work either. But, the errors seemed different (at least to my untrained eye). What do you make of this? [mpeg2video @ 0x3635e01030]00 motion_type at 0 12e=1998.9kbits/s [mpeg2video @ 0x3635e01030]00 motion_type at 0 13 [mpeg2video @ 0x3635e01030]00 motion_type at 0 14 [mpeg2video @ 0x3635e01030]00 motion_type at 0 15 [mpeg2video @ 0x3635e01030]00 motion_type at 0 16 [mpeg2video @ 0x3635e01030]00 motion_type at 0 17 [mpeg2video @ 0x3635e01030]00 motion_type at 0 18 [mpeg2video @ 0x3635e01030]00 motion_type at 0 19 [mpeg2video @ 0x3635e01030]00 motion_type at 0 20 [mpeg2video @ 0x3635e01030]00 motion_type at 0 21 [mpeg2video @ 0x3635e01030]00 motion_type at 0 22 [mpeg2video @ 0x3635e01030]00 motion_type at 0 23 [mpeg2video @ 0x3635e01030]00 motion_type at 0 24 [mpeg2video @ 0x3635e01030]00 motion_type at 0 25 [mpeg2video @ 0x3635e01030]00 motion_type at 0 26 [mpeg2video @ 0x3635e01030]00 motion_type at 0 27 [mpeg2video @ 0x3635e01030]00 motion_type at 0 28 [mpeg2video @ 0x3635e01030]00 motion_type at 0 29 [mpeg2video @ 0x3635e01030]Warning MVs not available [mpeg2video @ 0x3635e01030]concealing 810 DC, 810 AC, 810 MV errors [mpeg2video @ 0x3635e01030]00 motion_type at 0 3te=1892.5kbits/s [mpeg2video @ 0x3635e01030]00 motion_type at 0 4 [mpeg2video @ 0x3635e01030]00 motion_type at 0 5 [mpeg2video @ 0x3635e01030]00 motion_type at 0 6 [mpeg2video @ 0x3635e01030]00 motion_type at 0 7 [mpeg2video @ 0x3635e01030]00 motion_type at 0 8 [mpeg2video @ 0x3635e01030]00 motion_type at 0 9 [mpeg2video @ 0x3635e01030]00 motion_type at 0 10 [mpeg2video @ 0x3635e01030]00 motion_type at 0 11 [mpeg2video @ 0x3635e01030]00 motion_type at 0 12 [mpeg2video @ 0x3635e01030]00 motion_type at 0 13 [mpeg2video @ 0x3635e01030]00 motion_type at 0 14 [mpeg2video @ 0x3635e01030]00 motion_type at 0 15 [mpeg2video @ 0x3635e01030]00 motion_type at 0 16 [mpeg2video @ 0x3635e01030]00 motion_type at 0 17 [mpeg2video @ 0x3635e01030]00 motion_type at 0 18 [mpeg2video @ 0x3635e01030]00 motion_type at 0 19 [mpeg2video @ 0x3635e01030]00 motion_type at 0 20 [mpeg2video @ 0x3635e01030]00 motion_type at 0 21 [mpeg2video @ 0x3635e01030]00 motion_type at 0 22 [mpeg2video @ 0x3635e01030]00 motion_type at 0 23 [mpeg2video @ 0x3635e01030]00 motion_type at 0 24 [mpeg2video @ 0x3635e01030]00 motion_type at 0 25 [mpeg2video @ 0x3635e01030]00 motion_type at 0 26 [mpeg2video @ 0x3635e01030]00 motion_type at 0 27 [mpeg2video @ 0x3635e01030]00 motion_type at 0 28 [mpeg2video @ 0x3635e01030]00 motion_type at 0 29 [mpeg2video @ 0x3635e01030]concealing 1215 DC, 1215 AC, 1215 MV errors [mpeg2video @ 0x3635e01030]ac-tex damaged at 22 27e=1887.7kbits/s [mpeg2video @ 0x3635e01030]Warning MVs not available [mpeg2video @ 0x3635e01030]concealing 135 DC, 135 AC, 135 MV errors [mpeg2video @ 0x3635e01030]00 motion_type at 0 4ate=1881.3kbits/s [mpeg2video @ 0x3635e01030]00 motion_type at 0 5 [mpeg2video @ 0x3635e01030]00 motion_type at 0 6 [mpeg2video @ 0x3635e01030]00 motion_type at 0 7 [mpeg2video @ 0x3635e01030]00 motion_type at 0 8 [mpeg2video @ 0x3635e01030]00 motion_type at 0 9 [mpeg2video @ 0x3635e01030]00 motion_type at 0 10 [mpeg2video @ 0x3635e01030]00 motion_type at 0 11 [mpeg2video @ 0x3635e01030]00 motion_type at 0 12 [mpeg2video @ 0x3635e01030]00 motion_type at 0 13 [mpeg2video @ 0x3635e01030]00 motion_type at 0 14 [mpeg2video @ 0x3635e01030]00 motion_type at 0 15 [mpeg2video @ 0x3635e01030]00 motion_type at 0 16 [mpeg2video @ 0x3635e01030]00 motion_type at 0 17 [mpeg2video @ 0x3635e01030]00 motion_type at 0 18 [mpeg2video @ 0x3635e01030]00 motion_type at 0 19 [mpeg2video @ 0x3635e01030]00 motion_type at 0 20 [mpeg2video @ 0x3635e01030]00 motion_type at 0 21 [mpeg2video @ 0x3635e01030]00 motion_type at 0 22 [mpeg2video @ 0x3635e01030]00 motion_type at 0 23 [mpeg2video @ 0x3635e01030]00 motion_type at 0 24 [mpeg2video @ 0x3635e01030]00 motion_type at 0 25 [mpeg2video @ 0x3635e01030]00 motion_type at 0 26 [mpeg2video @ 0x3635e01030]00 motion_type at 0 27 [mpeg2video @ 0x3635e01030]00 motion_type at 0 28 [mpeg2video @ 0x3635e01030]00 motion_type at 0 29 [mpeg2video @ 0x3635e01030]concealing 1170 DC, 1170 AC, 1170 MV errors [mpeg2video @ 0x3635e01030]invalid cbp at 27 29rate=1755.9kbits/s [mpeg2video @ 0x3635e01030]Warning MVs not available [mpeg2video @ 0x3635e01030]concealing 45 DC, 45 AC, 45 MV errors [mpeg2video @ 0x3635e01030]00 motion_type at 0 29te=1750.8kbits/s [mpeg2video @ 0x3635e01030]concealing 45 DC, 45 AC, 45 MV errors [mpeg2video @ 0x3635e01030]00 motion_type at 0 3ate=1800.3kbits/s [mpeg2video @ 0x3635e01030]00 motion_type at 0 4 [mpeg2video @ 0x3635e01030]00 motion_type at 0 5 [mpeg2video @ 0x3635e01030]00 motion_type at 0 6 [mpeg2video @ 0x3635e01030]00 motion_type at 0 7 [mpeg2video @ 0x3635e01030]00 motion_type at 0 8 [mpeg2video @ 0x3635e01030]00 motion_type at 0 9 [mpeg2video @ 0x3635e01030]00 motion_type at 0 10 [mpeg2video @ 0x3635e01030]00 motion_type at 0 11 [mpeg2video @ 0x3635e01030]00 motion_type at 0 12 [mpeg2video @ 0x3635e01030]00 motion_type at 0 13 [mpeg2video @ 0x3635e01030]00 motion_type at 0 14 [mpeg2video @ 0x3635e01030]00 motion_type at 0 15 [mpeg2video @ 0x3635e01030]00 motion_type at 0 16 [mpeg2video @ 0x3635e01030]00 motion_type at 0 17 [mpeg2video @ 0x3635e01030]00 motion_type at 0 18 [mpeg2video @ 0x3635e01030]00 motion_type at 0 19 [mpeg2video @ 0x3635e01030]00 motion_type at 0 20 [mpeg2video @ 0x3635e01030]00 motion_type at 0 21 [mpeg2video @ 0x3635e01030]00 motion_type at 0 22 [mpeg2video @ 0x3635e01030]00 motion_type at 0 23 [mpeg2video @ 0x3635e01030]00 motion_type at 0 24 [mpeg2video @ 0x3635e01030]00 motion_type at 0 25 [mpeg2video @ 0x3635e01030]00 motion_type at 0 26 [mpeg2video @ 0x3635e01030]00 motion_type at 0 27 [mpeg2video @ 0x3635e01030]00 motion_type at 0 28 [mpeg2video @ 0x3635e01030]00 motion_type at 0 29 [mpeg2video @ 0x3635e01030]concealing 1215 DC, 1215 AC, 1215 MV errors [mpeg2video @ 0x3635e01030]00 motion_type at 0 4ate=1839.5kbits/s [mpeg2video @ 0x3635e01030]00 motion_type at 0 5 [mpeg2video @ 0x3635e01030]00 motion_type at 0 6 [mpeg2video @ 0x3635e01030]00 motion_type at 0 7 [mpeg2video @ 0x3635e01030]00 motion_type at 0 8 [mpeg2video @ 0x3635e01030]00 motion_type at 0 9 [mpeg2video @ 0x3635e01030]00 motion_type at 0 10 [mpeg2video @ 0x3635e01030]00 motion_type at 0 11 [mpeg2video @ 0x3635e01030]00 motion_type at 0 12 [mpeg2video @ 0x3635e01030]00 motion_type at 0 13 [mpeg2video @ 0x3635e01030]00 motion_type at 0 14 [mpeg2video @ 0x3635e01030]00 motion_type at 0 15 [mpeg2video @ 0x3635e01030]00 motion_type at 0 16 [mpeg2video @ 0x3635e01030]00 motion_type at 0 17 [mpeg2video @ 0x3635e01030]00 motion_type at 0 18 [mpeg2video @ 0x3635e01030]00 motion_type at 0 19 [mpeg2video @ 0x3635e01030]00 motion_type at 0 20 [mpeg2video @ 0x3635e01030]00 motion_type at 0 21 [mpeg2video @ 0x3635e01030]00 motion_type at 0 22 [mpeg2video @ 0x3635e01030]00 motion_type at 0 23 [mpeg2video @ 0x3635e01030]00 motion_type at 0 24 [mpeg2video @ 0x3635e01030]00 motion_type at 0 25 [mpeg2video @ 0x3635e01030]00 motion_type at 0 26 [mpeg2video @ 0x3635e01030]00 motion_type at 0 27 [mpeg2video @ 0x3635e01030]00 motion_type at 0 28 [mpeg2video @ 0x3635e01030]00 motion_type at 0 29 [mpeg2video @ 0x3635e01030]concealing 1170 DC, 1170 AC, 1170 MV errors [mpeg2video @ 0x3635e01030]00 motion_type at 0 9ate=1793.5kbits/s [mpeg2video @ 0x3635e01030]00 motion_type at 0 10 [mpeg2video @ 0x3635e01030]00 motion_type at 0 11 [mpeg2video @ 0x3635e01030]00 motion_type at 0 12 [mpeg2video @ 0x3635e01030]00 motion_type at 0 13 [mpeg2video @ 0x3635e01030]00 motion_type at 0 14 [mpeg2video @ 0x3635e01030]00 motion_type at 0 15 [mpeg2video @ 0x3635e01030]00 motion_type at 0 16 [mpeg2video @ 0x3635e01030]00 motion_type at 0 17 [mpeg2video @ 0x3635e01030]00 motion_type at 0 18 [mpeg2video @ 0x3635e01030]00 motion_type at 0 19 [mpeg2video @ 0x3635e01030]00 motion_type at 0 20 [mpeg2video @ 0x3635e01030]00 motion_type at 0 21 [mpeg2video @ 0x3635e01030]00 motion_type at 0 22 [mpeg2video @ 0x3635e01030]00 motion_type at 0 23 [mpeg2video @ 0x3635e01030]00 motion_type at 0 24 [mpeg2video @ 0x3635e01030]00 motion_type at 0 25 [mpeg2video @ 0x3635e01030]00 motion_type at 0 26 [mpeg2video @ 0x3635e01030]00 motion_type at 0 27 [mpeg2video @ 0x3635e01030]00 motion_type at 0 28 [mpeg2video @ 0x3635e01030]00 motion_type at 0 29 [mpeg2video @ 0x3635e01030]concealing 945 DC, 945 AC, 945 MV errors [mpeg2video @ 0x3635e01030]00 motion_type at 0 7ate=1766.4kbits/s [mpeg2video @ 0x3635e01030]00 motion_type at 0 8 [mpeg2video @ 0x3635e01030]00 motion_type at 0 9 [mpeg2video @ 0x3635e01030]00 motion_type at 0 10 [mpeg2video @ 0x3635e01030]00 motion_type at 0 11 [mpeg2video @ 0x3635e01030]00 motion_type at 0 12 [mpeg2video @ 0x3635e01030]00 motion_type at 0 13 [mpeg2video @ 0x3635e01030]00 motion_type at 0 14 [mpeg2video @ 0x3635e01030]00 motion_type at 0 15 [mpeg2video @ 0x3635e01030]00 motion_type at 0 16 [mpeg2video @ 0x3635e01030]00 motion_type at 0 17 [mpeg2video @ 0x3635e01030]00 motion_type at 0 18 [mpeg2video @ 0x3635e01030]00 motion_type at 0 19 [mpeg2video @ 0x3635e01030]00 motion_type at 0 20 [mpeg2video @ 0x3635e01030]00 motion_type at 0 21 [mpeg2video @ 0x3635e01030]00 motion_type at 0 22 [mpeg2video @ 0x3635e01030]00 motion_type at 0 23 [mpeg2video @ 0x3635e01030]00 motion_type at 0 24 [mpeg2video @ 0x3635e01030]00 motion_type at 0 25 [mpeg2video @ 0x3635e01030]00 motion_type at 0 26 [mpeg2video @ 0x3635e01030]00 motion_type at 0 27 [mpeg2video @ 0x3635e01030]00 motion_type at 0 28 [mpeg2video @ 0x3635e01030]00 motion_type at 0 29 [mpeg2video @ 0x3635e01030]concealing 1035 DC, 1035 AC, 1035 MV errors _______________________________________________ ivtv-users mailing list [email protected] http://ivtvdriver.org/mailman/listinfo/ivtv-users
