[mythtv-users] next step the player, any suggestions?
John Pilkington
johnpilk222 at gmail.com
Tue Oct 25 13:07:37 UTC 2022
On 25/10/2022 12:58, Hika van den Hoven wrote:
> Hoi Stephen,
>
> Tuesday, October 25, 2022, 1:29:59 PM, you wrote:
>
>> On Tue, 25 Oct 2022 12:58:39 +0200, you wrote:
>
>>> Hoi Mike,
>>>
>>> Tuesday, October 25, 2022, 11:21:09 AM, you wrote:
>>>
>>>> On 25/10/2022 09:55, Stephen Worthington wrote:
>>>>> On Tue, 25 Oct 2022 03:15:42 +0200, you wrote:
>>>>>
>>>>>> Hoi All,
>>>>>>
>>>>>> I now have hdhomerun_config working which outputs a ts stream with
>>>>>> only audio. But I can not use mplayer as that again won't install
>>>>>> without the graphical toolchain.
>>>>>> As far as I have found the alsa tools won't work either, I have tried
>>>>>> mpg321 and madplay, but either I haven't jet found the right options
>>>>>> or they cannot handle ts. Any suggestions?
>>>>>
>>>>> Last time I tried VLC with our NZ DVB-T radio stations it worked. They
>>>>> are .ts files with AAC audio in an MPEG2 transport stream container.
>>>>> I have not tried the RPi version of VLC though. But VLC will likely
>>>>> need a lot of graphics stuff to install it. Once installed, this
>>>>> might do what you want:
>>>>>
>>>>> cvlc --no-video /path/to/.ts
>>>>>
>>>> I would add that a .ts stream is not an audio stream and therefore has to be decoded first.
>>>
>>>> Perhaps a simpler option would be to use ffmppeg to select out the audio which, by rights, should
>>>> then be readable by the ALSA tools?
>>>
>>> Nice thought Mike! Do you perchance know the commands to use ffmpeg
>>> like that? I will find them but it will save some time.
>>>
>>> I even came onto the mentioning of a ffmgeg-python module and
>>> audio streams I have handled in python before in the analog radio
>>> times. I already have build a python shell around hdhomerun_config
>>> for scanning and tuning. I'll share it when it is working.
>
>> FFmpeg can be a pain if you want it to select out a stream for you.
>> There are various things that you would think would work, but actually
>> do not. I tried using it to extract the MHEG5 EPG stream from our
>> local DVB-T service, and it just could not do it. It could create a
>> transport stream with just that stream in it, but it could not provide
>> just a copy of that single stream without the transport stream
>> container. A tool that will work for extracting a stream from a .ts
>> file is TSDuck:
>
>> https://tsduck.io
>
>> Unfortunately, TSDuck is not normally available as packages and you
>> have to build it from source.
>> _______________________________________________
>
>
> How about libav? On Gentoo it's the alternative to ffmpeg.
I guess you want a streaming solution, not file-to-file, but maybe this
line from mythdvbradio.pl (wiki,2006) or my 'alternative version' of it
might suggest something:
{{{
#
# Now run ffmpeg to get mp3 out of the dvb radio recording
#
# $command = "ionice -c3 mythffmpeg -i $filename -ab $bitrate -ac 2
-acodec mp3 -f mp3 '$newfilename' 2>&1";
# That mp2 to mp3 conversion runs at around 25x real speed with one cpu
at 100%
# Just relabelling mp2 as mp3 is much faster and seems to work, although
it's probably not pukka
# can be done by mplayer or by mapping in ffmpeg. " -map 0:1 -c:a copy
" Bash extract below
$command = "ionice -c3 mplayer -nogui -vo null -dumpaudio -dumpfile
'$newfilename' -nojoystick -nolirc '$filename' 2>&1 ";
}}}
HTH, John P
>
>
> Tot mails,
> Hika mailto:hikavdh at gmail.com
>
> "Zonder hoop kun je niet leven
> Zonder leven is er geen hoop
> Het eeuwige dilemma
> Zeker als je hoop moet vernietigen om te kunnen overleven!"
>
> De lerende Mens
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
More information about the mythtv-users
mailing list