User Tools

Site Tools


tutorials:command_line_dvb

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
tutorials:command_line_dvb [2012/03/03 21:17] rmilestutorials:command_line_dvb [2017/10/12 21:58] (current) – external edit 127.0.0.1
Line 1: Line 1:
 **Command line dvb-t by example** **Command line dvb-t by example**
  
-I have two budget dvb-t pci cards in a linux box that I use for saving dvb TV programs<sup></sup> and, since I am a minimalist, sometimes viewing in real time using xine. In this brief tutorial I will explain how to access DVB broadcasts on the command line and introduce a bare bones example script that will tune a channel, encode a broadcast on the fly and save it to disk.+I have two budget dvb-t pci cards in a linux box that I use for saving dvb TV programs<sup>//1//</sup> and, since I am a minimalist, sometimes viewing in real time using xine. In this brief tutorial I will explain how to access DVB broadcasts on the command line and introduce a bare bones example script that will tune a channel, encode a broadcast on the fly and save it to disk.
  
 You might ask why in the age of Myth TV would I bother with DVB on the command line to which I would answer that I'm happy enough to be able to open up a terminal (locally or remotely), type in a command, respond to a couple prompts, and schedule a show to be saved for later viewing. I don't need much more than that. You might ask why in the age of Myth TV would I bother with DVB on the command line to which I would answer that I'm happy enough to be able to open up a terminal (locally or remotely), type in a command, respond to a couple prompts, and schedule a show to be saved for later viewing. I don't need much more than that.
Line 170: Line 170:
 </code> </code>
  
-As I mentioned above, I sometimes watch dvb in real time with xine but using tzap in one terminal and then running xine from a second terminal is overkill. However, I do use mplayer's encoding/decoding tool, mencoder, to access dvr0 and encode the transport stream to an mpeg-ps (program stream) on the fly before it is saved to disk.+As I mentioned above, I sometimes watch dvb in real time with xine but using tzap in one terminal and then running xine from a second terminal is overkill. However, I do use mplayer's encoding/decoding tool, mencoder, to access dvr0 and encode the transport stream to an mpeg-ps<sup>2</sup> (program stream) on the fly before it is saved to disk.
  
-Except for the inclusion of encoding instructions and a path/name for the out file, the mencoder command is the same as for mplayer.+Except for the inclusion of encoding instructions and a path/name for the out file, the mencoder command is the same as for mplayer, mencoder [/path/dvrX].
  
 <code> <code>
Line 198: Line 198:
 </code> </code>
  
-I could just save every thing I want to watch as a transport stream but the overhead running mencoder is very minimal. Additionally i prefer to save shows as mpeg-ps videos and I can edit commercials from using a very fast minimalist gui application , gopdit, that was developed specically for editing program streams. If I save an hour long show as an mpeg-ts I would later have to spend as much as another hour encoding to mpeg-ps. Better just to encode o the fly.+I could just save every thing I want to watch as a transport stream but the overhead running mencoder is very minimal. Additionally i prefer to save shows as mpeg-ps videos and I can edit out commercials from using a very fast no frills gui application , gopdit, that was developed specically for editing program streams<sup>3</sup>. If I record an hour long show as an mpeg-ts I would later have to spend as much as another hour encoding it to mpeg-ps before I can edit it. Better just to encode o the fly.
  
-Using two terminals and remembering commands and syntax gets to be a bit too much so I'll close this tutorial with an example script that illustrates how the commands tzap and mencoder can be used in a script to record a dvb broadcast. To use this script you would have to edit the variable declarations to suit and run it when the show is about to begin. I have written an interactive script that parses channels.conf, presents a list of channels for selection and  then prompts for how long to save, where to save, etc. +Using two terminals and remembering commands, options and syntax gets to be a bit too much so I'll close this tutorial with an example script that illustrates how the commands tzap and mencoder can be used in a script to record a dvb broadcast. To use this script you would have to edit the variable declarations to suit and run it when the show is about to begin. I have written an interactive script that parses channels.conf, presents a list of channels for selection and then prompts for how long to save, where to save, etc. 
  
 I'll present that script later on in my series of bash tutorials. I'll present that script later on in my series of bash tutorials.
Line 248: Line 248:
 ---- ----
  
 +//<sup>1</sup> I am using a Dvico Fusion HDTV DVB-T Lite pci card and a WinFast DTV1000 T pci card. The Dvico was certainly not budget priced when I purchased it 7 or 8 years ago but feature wise today it would be considered a budget card. The Winfast was purchased 5 or 6 years ago for $35.00. The only difference was that the Dvico came with windows software and a remote that I never used.//
  
 +//<sup>2</sup> The mencoder options in this command will encode to a very basic mpeg-ps DVD standard. They would not be suitable for a .VOB quality mpeg.ps. I use a different set of options in a script that will also shrink the video to less than 4.2GB if required. See [[http://www.mplayerhq.hu/DOCS/HTML/en/menc-feat-vcd-dvd.html]] for more information on using mencoder to encode DVB quality videos.//
  
-//N.B. +//<sup>3</sup>have been using gopdit (GOP accurate eDITor) just about as long as I have been recording DVB TV. Gopdit is is a fast and simple program that lets you cut and merge mpeg-ps files at GOP (group of pictures) boundaries without reencoding. It supports no other file types or operations. The fact is that it is simple and only does one video editing task is on one file type is probably why it is relatively unknownYou can find gopdit at [[http://gopdit.ath.cx/]]//
-am using a Dvico Fusion HDTV DVB-T Lite pci card and a WinFast DTV1000 T pci card. +
- +
-The Dvico was certainly not budget priced when I purchased it 7 or 8 years ago but feature wise today it would be considered a budget cardThe Winfast was purchased 5 or 6 years ago for $35.00. The only difference was chipsets and the Dvico came with windows software and a remote that I never used.//+
  
tutorials/command_line_dvb.1330769843.txt.gz · Last modified: 2017/10/12 21:58 (external edit)