Jump to content


Photo

Show number of channels for Dolby Digital


  • Please log in to reply
30 replies to this topic

#1 mik9

  • Senior Member
  • 67 posts

0
Neutral

Posted 29 May 2017 - 11:35

Hi, is there any way how to display info about number of channels for current AC3 audio? E.g. putting it somehow to Infobar2, using a plugin or so.

 

 

 



Re: Show number of channels for Dolby Digital #2 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 4 June 2017 - 10:14

Little chance, for that to know you'd need to inspect the audio stream itself, the information isn't carried in the PMT. When downmix is off, the stream is sent 1:1 to the receiver, enigma does nothing to it. With downmix on, the stream is decoded by the CPU, but inside the driver/kernel context, so still no joy. Maybe some drivers offer /proc entries where we could get the information, but that would not be universal.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Show number of channels for Dolby Digital #3 mik9

  • Senior Member
  • 67 posts

0
Neutral

Posted 4 June 2017 - 20:50

Thanks for the answer- So probably the only feasible way is via audio info on AV receiver or using PC application. From what I use I found only Handbrake showing this info (this is usable only for files, not for live streams), even video players like VLC or MPC do not show this.



Re: Show number of channels for Dolby Digital #4 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 5 June 2017 - 00:22

I (still) have a Triple Dragon STB, which is more than 10 years old.

It uses a 2.7 (or 2.6) kernel, a very old one, and it has not been updated for several years (there are no more updates).

There is one thing that I miss on enigma2, system which is suposed to be better than that TD firmware (comparable to enigma1), and it is the audio information which we got just by pressing the blue button.

 

nngrp.jpg

 

 

 

It's hard to believe that enigma2 in year 2017 haven't got anything like this.

 


Enigma is getting old....

 

Spoiler

Re: Show number of channels for Dolby Digital #5 littlesat

  • PLi® Core member
  • 57,187 posts

+699
Excellent

Posted 5 June 2017 - 05:15

But your screenshot does not give wat is requested here...

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Show number of channels for Dolby Digital #6 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 5 June 2017 - 06:50

You can put whatever you wish into your InfoBar if you eiher find or write the needed convertors and renderers.

 

G3fR.png

 

As you can see icons are there to show that both Dolby and dual audio have been detected from either DVB or a Stream, it works on both.


Edited by ian1095, 5 June 2017 - 06:53.


Re: Show number of channels for Dolby Digital #7 littlesat

  • PLi® Core member
  • 57,187 posts

+699
Excellent

Posted 5 June 2017 - 07:13

Dual audio can be detected if you have mulitple audio streams... Easy... But hoe to detect if a dolby has 5.1 or 2.1 or something else I never saw before on e2

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Show number of channels for Dolby Digital #8 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 5 June 2017 - 08:37

Previous pic wouldn't show for some reason and I cannot edit my post above.

 

 

 

Attached Files


Edited by ian1095, 5 June 2017 - 08:38.


Re: Show number of channels for Dolby Digital #9 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 5 June 2017 - 09:03

I (still) have a Triple Dragon STB, which is more than 10 years old.
It uses a 2.7 (or 2.6) kernel, a very old one, and it has not been updated for several years (there are no more updates).
There is one thing that I miss on enigma2, system which is suposed to be better than that TD firmware (comparable to enigma1), and it is the audio information which we got just by pressing the blue button.
 
nngrp.jpg
It's hard to believe that enigma2 in year 2017 haven't got anything like this.

Like I said, it has nothing to do with enigma!

* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Show number of channels for Dolby Digital #10 mik9

  • Senior Member
  • 67 posts

0
Neutral

Posted 5 June 2017 - 10:39

You can put whatever you wish into your InfoBar if you eiher find or write the needed convertors and renderers.

 

 

As you can see icons are there to show that both Dolby and dual audio have been detected from either DVB or a Stream, it works on both.

 

And that is exactly what was the original question about, how to get info about number of channels. You have only Dolby icon and as Erik explained it probably will not be easy (if possible) to get such convertor/renderer for channel numbers.



Re: Show number of channels for Dolby Digital #11 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 5 June 2017 - 12:29

Yes, the amount of channels is not part of the information acquired through the PMT, just MPEG 1 audio ("stereo") or (E-)AC3 ("Dolby").


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Show number of channels for Dolby Digital #12 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 6 June 2017 - 23:00

But your screenshot does not give wat is requested here...

 

 

This one shows it.

A 14 year old receiver that shows what "powerfull" enigma2 isn't able to. :P  :P  :P :P  :P  

 

Attached File  WP_20170606_23_49_35_Pro (002).jpg   180.05KB   8 downloads


Enigma is getting old....

 

Spoiler

Re: Show number of channels for Dolby Digital #13 littlesat

  • PLi® Core member
  • 57,187 posts

+699
Excellent

Posted 7 June 2017 - 06:25

This has nothing to do with enigma2 ;) nobody made it yet....

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Show number of channels for Dolby Digital #14 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 7 June 2017 - 06:26

You can add that to e2. But it's much effort as you have to analyze audio stream. And there is not only one audio format.
So why is it important to add that to e2? I see no real use case.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: Show number of channels for Dolby Digital #15 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 7 June 2017 - 20:31

The importance of things is something "relative".

Something may be very important for you, and may have zero importance for me.

Fortunately everybody has different needs and tastes, otherwise everything would be very boring.....

 

For people like me and 4 other ones (between crazy and mad :D ) those things are always welcome.

Why this feature was added to Triple Dragon box 10 years ago ?  We had to ask it to one of its developers (Micha-R ?) , but sure they thought that it could be usefull to somebody.

 

Really, my first linux Box was a Triple Dragon.

I was so happy with it, but due to its limitations (no HDTV no DVB-S2,...) I bought enigma2 boxes.

My first impression was that they were worse that TD.

No audio/video info (this one I'm asking), no possibility to "unsort" satellite lists (sort by frequency, f.i.) unless using favourites......

Both things are still impossible in E2....


Enigma is getting old....

 

Spoiler

Re: Show number of channels for Dolby Digital #16 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 9 June 2017 - 10:56

Indeed it relative. Compare the amount of effort required to implement a feature to the amount of users that are requesting it. I think in this case the result will be quite unfavourable.

 

I realise it will be even more difficult than I described. In DVB mode (watching TV, watching recordings), enigma never sees the audio stream at all. It is all handled in hardware. To see the audio, you'd need to "tap" the demuxer, filter on the audio pid and then read quite a bit of data and try to determine the format and the amount of channels. I'd rather have not this kind of error-prone code inside enigma only for this use.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: Show number of channels for Dolby Digital #17 littlesat

  • PLi® Core member
  • 57,187 posts

+699
Excellent

Posted 9 June 2017 - 12:16


you'd need to "tap" the demuxer,

 

Or the manufacturer need to add something in their drivers so we can retrieve this information...


Edited by littlesat, 9 June 2017 - 12:17.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: Show number of channels for Dolby Digital #18 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 9 June 2017 - 14:52

I suggest somebody to make a plugin (or use owif /web/info ) to get those info using an external utility like ffprobe...
 
# ffprobe -v quiet -print_format json -show_format -show_streams http://localhost:8001/1:0:19:1F45:42E:1:C00000:0:0:0:
{
    "streams": [
        {
            "index": 0,
            "codec_name": "h264",
            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
            "profile": "High",
            "codec_type": "video",
            "codec_time_base": "1/50",
            "codec_tag_string": "[27][0][0][0]",
            "codec_tag": "0x001b",
            "width": 1440,
            "height": 1080,
            "coded_width": 1440,
            "coded_height": 1080,
            "has_b_frames": 3,
            "sample_aspect_ratio": "4:3",
            "display_aspect_ratio": "16:9",
            "pix_fmt": "yuv420p",
            "level": 40,
            "color_range": "tv",
            "color_space": "bt709",
            "color_transfer": "bt709",
            "color_primaries": "bt709",
            "chroma_location": "left",
            "refs": 1,
            "is_avc": "false",
            "nal_length_size": "0",
            "id": "0x1fe",
            "r_frame_rate": "25/1",
            "avg_frame_rate": "25/1",
            "time_base": "1/90000",
            "start_pts": 6463179697,
            "start_time": "71813.107744",
            "bits_per_raw_sample": "8",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            }
        },
        {
            "index": 1,
            "codec_name": "ac3",
            "codec_long_name": "ATSC A/52A (AC-3)",
            "codec_type": "audio",
            "codec_time_base": "1/48000",
            "codec_tag_string": "[6][0][0][0]",
            "codec_tag": "0x0006",
            "sample_fmt": "fltp",
            "sample_rate": "48000",
            "channels": 2,
            "channel_layout": "stereo",
            "bits_per_sample": 0,
            "dmix_mode": "-1",
            "ltrt_cmixlev": "-1.000000",
            "ltrt_surmixlev": "-1.000000",
            "loro_cmixlev": "-1.000000",
            "loro_surmixlev": "-1.000000",
            "id": "0x209",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "start_pts": 6463113289,
            "start_time": "71812.369878",
            "bit_rate": "192000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "language": "fra"
            }
        },
        {
            "index": 2,
            "codec_name": "dvb_subtitle",
            "codec_long_name": "DVB subtitles",
            "codec_type": "subtitle",
            "codec_time_base": "1/90000",
            "codec_tag_string": "[6][0][0][0]",
            "codec_tag": "0x0006",
            "id": "0x21f",
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 1,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0
            },
            "tags": {
                "language": "fra"
            }
        }
    ],
    "format": {
        "filename": "http://localhost:8001/1:0:19:1F45:42E:1:C00000:0:0:0:",
        "nb_streams": 3,
        "nb_programs": 13,
        "format_name": "mpegts",
        "format_long_name": "MPEG-TS (MPEG-2 Transport Stream)",
        "start_time": "71812.369878",
        "probe_score": 50
    }
}
(we can use of course dvbsnoop on audio pid, eg dvbsnoop -b -n 50 THE_AUDIO_PID > tmp.ts && ffprobe -v quiet -print_format json -show_format -show_streams tmp.ts)

Edited by athoik, 9 June 2017 - 14:53.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: Show number of channels for Dolby Digital #19 WanWizard

  • PLi® Core member
  • 70,552 posts

+1,813
Excellent

Posted 9 June 2017 - 20:20

Interesting. I'll add an issue for this so we won't loose sight of it.


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Ultimate (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: Show number of channels for Dolby Digital #20 jpuigs

  • Senior Member
  • 1,143 posts

+32
Good

Posted 9 June 2017 - 21:12

:)  :) :)  :)  :)  :)  :)  :)  :)


Enigma is getting old....

 

Spoiler


2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users