[pvrusb2] cat, cp, ... dd

vdb128 at picaros.org vdb128 at picaros.org
Wed Mar 11 05:43:58 CDT 2009


> > >> I usually use 'cat' here out of habit, but the 'cp' command should work
> > >> (and I doubt that using 'cp' could result in the problems below).

My script uses dd as follows:

FILE=r0
COUNT=2097152
DIR=/sys/class/pvrusb2/sn-XXXXXX
if [ -x "${DIR}" ]; then
  echo '320 kbps' >${DIR}/ctl_audio_bitrate/cur_val
  echo 58000 >${DIR}/ctl_volume/cur_val
  echo 'Variable Bitrate' >${DIR}/ctl_video_bitrate_mode/cur_val
  echo 12000000 >${DIR}/ctl_video_bitrate_peak/cur_val
  echo 8000000 >${DIR}/ctl_video_bitrate/cur_val

  sleep 1 && dd if=/dev/video0 of="${FILE}.mpg" bs=4096 count="$COUNT"
fi
 
to record 2 hour into an 8 gigabyte file.  
Servaas


More information about the pvrusb2 mailing list