Differences between revisions 2 and 3
Revision 2 as of 2008-12-06 03:56:42
Size: 1545
Editor: localhost
Comment:
Revision 3 as of 2008-12-06 03:57:09
Size: 1549
Editor: localhost
Comment:
Deletions are marked like this. Additions are marked like this.
Line 20: Line 20:
   mkfifo vpipe
   ffmpeg -f oss -ar 48000 -ac 2 -i /dev/dsp2 -deinterlace -b 10000k -pix_fmt yuv422p -s 640x480 -r 30 -f rawvideo -i ${HOME}/vpipe -vcodec mpeg2video -acodec libmp3lame -y ch42.mpg
   . mkfifo vpipe
   . ffmpeg -f oss -ar 48000 -ac 2 -i /dev/dsp2 -deinterlace -b 10000k -pix_fmt yuv422p -s 640x480 -r 30 -f rawvideo -i ${HOME}/vpipe -vcodec mpeg2video -acodec libmp3lame -y ch42.mpg

Capture App Examples

  • Tune to channel 4 in the default profile and send MPEG transport stream to VLC at port 8802 and to a file at ~/out.m2t:
    • Shell 1:
      • vlc udp://@127.0.0.1:8802
      Shell 2:
      • cx88 -d /dev/cx88mpeg0 -u udp://localhost:8802 -u file://${HOME}/out.m2t -x /usr/local/share/examples/cx88/cx88.xml.sample -c 4

    Tune to channel 45 in the DVBT_EU_UHF profile, send MPEG transport stream to /home/user/out.m2t in current directory, and automatically terminate capture after 28.7 minutes:
    • cx88 -d /dev/cx88mpeg0 -u udp://localhost:8802 -u file:///home/user/out.m2t -x /usr/local/share/examples/cx88/cx88.xml.sample -c DVBT_EU_UHF:45 -n 28.7

    Capture audio only from channel 42 in the USA profile and send to sound card at /dev/dsp0:
    • cx88 -d /dev/cx88audio0 -u oss:///dev/dsp0 -x /usr/local/share/examples/cx88/cx88.xml.sample -c USA:42

    Capture audio only from channel 42 in the USA profile and use a third-party app to handle the actual playback:
    • cx88 -d /dev/cx88audio0 -x /usr/local/share/examples/cx88/cx88.xml.sample -c USA:42

    Capture video and audio from channel 42 in the USA profile and send to ffmpeg for encoding via a named pipe:
    • Shell 1:
      • mkfifo vpipe
      • ffmpeg -f oss -ar 48000 -ac 2 -i /dev/dsp2 -deinterlace -b 10000k -pix_fmt yuv422p -s 640x480 -r 30 -f rawvideo -i ${HOME}/vpipe -vcodec mpeg2video -acodec libmp3lame -y ch42.mpg
      Shell 2:
      • cx88 -c 42 -d /dev/cx88video0 -u file://${HOME}/vpipe -d /dev/cx88audio0 -x /usr/local/share/examples/cx88/cx88.xml.sample

Overview/TipsAndTricks (last edited 2011-11-08 21:24:50 by jason)