public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
From: David Liontooth <lionteeth@cogweb.net>
To: linux-media@vger.kernel.org
Subject: Re: zvbi-atsc-cc device node conflict
Date: Sat, 17 Apr 2010 00:58:10 -0700	[thread overview]
Message-ID: <4BC96A12.2040007@cogweb.net> (raw)
In-Reply-To: <g2w846899811004162344ib3c9223ek8bcef2df83e7f23b@mail.gmail.com>

HoP wrote:
> 2010/4/17 Devin Heitmueller <dheitmueller@kernellabs.com>:
>   
>> On Fri, Apr 16, 2010 at 7:19 PM, David Liontooth <lionteeth@cogweb.net> wrote:
>>     
>>> I'm using a HVR-1850 in digital mode and get good picture and sound using
>>>
>>>  mplayer -autosync 30 -cache 2048 dvb://KCAL-DT
>>>
>>> Closed captioning works flawlessly with this command:
>>>
>>> zvbi-atsc-cc -C test-cc.txt KCAL-DT
>>>
>>> However, if I try to run both at the same time, I get a device node
>>> conflict:
>>>
>>>  zvbi-atsc-cc: Cannot open '/dev/dvb/adapter0/frontend0': Device or resource
>>> busy.
>>>
>>> How do I get video and closed captioning at the same time?
>>>       
>> To my knowledge, you cannot run two userland apps streaming from the
>> frontend at the same time.  Generally, when people need to do this
>> sort of thing they write a userland daemon that multiplexes.
>> Alternatively, you can cat the frontend to disk and then have both
>> mplayer and your cc parser reading the resulting file.
>>
>>     
>
> Usually there is some way, for ex. command line option,
> how to say to "second" app that frondend is already locked.
> Then second app simply skips tuning at all.
>
> Rest processing is made using demux and dvr devices,
> so there is not reason why 2 apps should tune in same
> time.
>
> /Honza
>   
Thanks! I'm trying to create separate recordings of the video/audio file 
on the one hand and the closed captioning on the other.

In one console, I issue
 
  azap -r KOCE-HD

In a second, I issue

  cat /dev/dvb/adapter0/dvr0 > test-cat3.mpeg

I cannot at the same time run this in a third:

  zvbi-atsc-cc -C test-cc.txt KOCE-HD

because of resource conflict.

Using cat works, but how do I get closed captioning from the resulting 
mpeg file?

If I can get that to work, that would be great -- but not particularly 
elegant. Does someone have an example of a multiplexing userland daemon 
that allows me to spit out video to one file and text to another?

Cheers,
Dave





  reply	other threads:[~2010-04-17  7:58 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-16 23:19 zvbi-atsc-cc device node conflict David Liontooth
2010-04-17  0:14 ` Devin Heitmueller
2010-04-17  6:44   ` HoP
2010-04-17  7:58     ` David Liontooth [this message]
2010-04-17 10:10       ` HoP
2010-04-17 17:58         ` David Liontooth
2010-04-17 19:08           ` HoP

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BC96A12.2040007@cogweb.net \
    --to=lionteeth@cogweb.net \
    --cc=linux-media@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox