<div dir="ltr"><div dir="ltr"><div dir="ltr">On Thu, Dec 6, 2018 at 10:48 AM Robert LeBlanc <<a href="mailto:robert@leblancnet.us">robert@leblancnet.us</a>> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I've got just about everything set up to capture from my USB capture device. When my script is run from Mythbackend, the hw:1 device is not available to my recorder script when watching LiveTV (frontend on the same box). When I run the script stand alone with Mythbackend and Mythfrontend running but not watching LiveTV get both video and audio. I tried setting the Mythfrontend to use the null sound device and it still holds on to hw:1. I tried both hw:1 and hw:1,0 with the same results.<div><br></div><div>The backend segfaults probably because of a corrupted stream from ffmpeg because of this. If I don't try to capture the audio, then I can see the LiveTV stream just fine of course there is no audio.</div><div><br></div><div> Any ideas how to get around this problem?<div><br></div><div>Here is some logs from my ExternalRecorder script.</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0)">2018-12-06 10:25:20,226 DEBUG - mythuc.py:209 - start() Wating for ffmpeg to warm up.
</span><br>2018-12-06 10:25:20,506 DEBUG - mythuc.py:278 - loggy() Ffmpeg: b'[alsa @ 0x55838b4c2500] cannot open audio device hw:1,0 (Device or resource busy)\n'
<br>2018-12-06 10:25:20,506 DEBUG - mythuc.py:278 - loggy() Ffmpeg: b'hw:1,0: Input/output error\n'
<br>2018-12-06 10:25:20,728 INFO - mythuc.py:304 - adjust_chunksize() Stream read block size changed from 48692 to 52640
<br>2018-12-06 10:25:20,929 INFO - mythuc.py:304 - adjust_chunksize() Stream read block size changed from 52640 to 57904<br></span></div><div><br></div><div>Scheduling a recording and not running Mythfrontend also has the same error opening the audio device, so it must be something with the backend. There is only the one Capture device (ExternalRecorder) configured so I'm not sure why Mythbackend is even messing with that device. I'm running 29.1 from deb-multimedia(mythbackend version:  [v29.1] <a href="http://www.mythtv.org" target="_blank">www.mythtv.org</a>)<br></div></div></div></blockquote><div><br></div><div>Can you post the complete ffmpeg command with arguments that you are using?   At least when I was playing around with mythexternrecorder configurations (<a href="https://www.mythtv.org/wiki/ExternalRecorder">https://www.mythtv.org/wiki/ExternalRecorder</a> and <a href="https://www.mythtv.org/wiki/Example_Configuration_files">https://www.mythtv.org/wiki/Example_Configuration_files</a>) I found that using cvlc was much more reliable than ffmpeg, so you may want to try that.</div><div><br></div><div>John<br></div></div></div></div></div>