LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-12-2010, 06:45 PM   #1
root52
LQ Newbie
 
Registered: Aug 2009
Location: Lakewood, Ohio
Distribution: CentOS, Ubuntu
Posts: 3

Rep: Reputation: 0
Alternative to cat for piping dvb output to file


Hi,

I am looking for an alternative to cat for streaming the output (ATSC) of a dvb card to a file. cat works fine for a bit but there is some internal variable that reaches a size limit and stops it. As evident by the c error "variable has reached size limit" (sorry for the paraphrase I do not have the error in front of me.) That is ok, a co worker who knows c told me the best thing to do is to find some other utility to do this.

cat /dev/dvb/adapter0 > test.mpg is what I am looking to replace.

Also if anybody has some tips on how to pipe this into some sort of compression utility that would be cool to.

Thanks!!
 
Old 05-12-2010, 07:42 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,939

Rep: Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619Reputation: 3619
If cat works then almost any command would work and any pipe to gzip or lzip or what not to compress the ultimate file (assumes it could compress) I'd assume the issue is how often it writes to the file is the problem. Might be able to fix that.

Consider mythtv or parts of since i think it can do that with some app.



Wonder if vlc would work?
 
Old 05-12-2010, 08:40 PM   #3
Electrode
Member
 
Registered: Oct 2002
Location: Michigan
Distribution: Debian
Posts: 158

Rep: Reputation: 16
getatsc might work. It's part of the dvb-atsc-tools package:
http://www.pchdtv.com/downloads/dvb-...ools-1.0.7.tgz

Example, to dump channel 23:
Code:
getatsc -dvb 0 23 > out.ts
 
Old 05-12-2010, 09:40 PM   #4
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
dd might work. Although probably better to use a tool built for it. It could be signal strength getting low and some artifacts or something interrupts the signal. It could also be that you're writing to a filesystem that has limits. Fat32 and 4GB. Fat16 and 2GB. Ext# and a very small block size... Although the default block size for my ext# partitions allows for 1TB files.
 
Old 05-21-2010, 07:45 AM   #5
root52
LQ Newbie
 
Registered: Aug 2009
Location: Lakewood, Ohio
Distribution: CentOS, Ubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks all. your suggestions led me down the track to gnutv http://www.linuxtv.org/, that is working like a charm.
 
  


Reply

Tags
dvb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using sudo and piping output to a file Virchanza Linux - General 8 05-21-2012 08:28 PM
Piping cat output to variable? zizou86 Programming 12 01-13-2010 03:17 PM
[SOLVED] Using an expect Script to send the output of cat and append it to a file spoofedexistence Programming 1 09-29-2009 03:50 PM
output to a file - cat? grep? Godsmacker777 Linux - Newbie 6 12-08-2004 10:06 AM
Piping output to a text file joadoor Linux - Newbie 7 04-19-2002 03:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:43 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration