oscam-emu / oscam-patched-old

Open Source Cam Emulator
GNU General Public License v3.0
96 stars 55 forks source link

Audio not working on some PowerVu channels #13

Closed PeterMaxu closed 5 years ago

PeterMaxu commented 5 years ago

audio not working on some channels without streamrelay on vti image

oscam-emu commented 5 years ago

Give us more info about your problem, oscam-emu configuration and a livelog.

PeterMaxu commented 5 years ago

audio remain silent, with exact the same config and streamrelay on, audio is ok. for example: 43°W 3865 H Hola TV no audio, golf channel audio ok what debug switches you want me to set for the log?

my oscam.conf:

[global] logfile = /tmp/oscam.log nice = -1 preferlocalcards = 2 block_same_ip = 0 block_same_name = 0

[cache] max_time = 8

[streamrelay] stream_relay_enabled = 0

[dvbapi] enabled = 1 au = 1 pmt_mode = 0 delayer = 60 ecminfo_type = 1 user = dvbapiau read_sdt = 1 write_sdt_prov = 1 extended_cw_api = 1 boxtype = dreambox

oscam-emu commented 5 years ago

I don't receive these channels, but I think it's a driver/hardware issue, not emu's fault. What is your box?

A livelog would be welcome (debug ALL), but I don't think I can do much anyway...

PeterMaxu commented 5 years ago

Its a VU+ Solo4k

live log will follow...

lorba7068 commented 5 years ago

This case very similar to the 121w and several channels example Dynamite TyCs A3Series attached logs. 121w-A3SeriesNTCS.txt 121w-CinemaDinamita.txt 121w-ViendoMoviesHd.txt

oscam-emu commented 5 years ago

I'm afraid this is a issue with Vu+ receivers. Do you have another receiver brand to test?

lorba7068 commented 5 years ago

Probe some time ago with a dreambox 800 SE and another friend of mine with a dm920 and the same problem with some channels, some time ago "joeuser" helped with a Fix for AC3 and corrected a large part but there were some channels that continue with problems such as those I describe.

oscam-emu commented 5 years ago

Yes, but we can't do anything from our side. Sorry.

jlmariense commented 5 years ago

Friend, I was following the conversation. Below is my livelog from oscar: ---> 2018/10/21 18:55:26 0D7A26E5 c (ecm) dvbapiau (0E00@000000/0000/0070/7E:A5E4D4D3FA62EDCBF45BAA7E96218301): found (8 ms) by emulator - Disney HD Bra 2018/10/21 18:55:27 5F5FCCE1 r (emu) Key found in EMM: P 0039 00 1E45D4D086B423 ; UA: 0059EDF7 2018/10/21 18:55:27 5F5FCCE1 r (emu) Key found in EMM: P 0039 01 929FFDC790612F ; UA: 0059EDF7 2018/10/21 18:55:27 5F5FCCE1 r (reader) emulator [emu] dvbapiau emmtype=unique, len=155 (hex: 0x9B), cnt=1: written (44 ms) 2018/10/21 18:55:27 5F5FCCE1 r (reader) emulator [emu] dvbapiau emmtype=unique, len=155 (hex: 0x9B), cnt=1: error (1 ms)

After the new oscam, only original audio

joeusercz commented 5 years ago

Need full logs starting from BEFORE channel is tuned. Stream relay uses software descrambling instead of the built in hardware deccramblers. Drivers for HW descramblers have limits as to how many pids can be descrambled at one time. Actually, there are two limits, one for the number of pids per channel and a second limit for the total number of pids. Obviously different drivers for different boxes have different limits. The option for "Max pids for extended CWs" is used to limit the number of pids per channel to allow possibly more channels to be descrambled at the same time without reaching the limit of the total number of pids. But, we need the full logs including the PMT parsing to see if this is the problem.

lorba7068 commented 5 years ago

Hello Joeusercz, here are these logs I hope to help correct this problem. Thank you in advance for taking time and helping us. ViendoMov_PMT.TXT HolaTv_PMT.TXT A3HD_PMT.TXT A3Hd-121w.txt HolaTv_121w.txt ViendoMov_121w.txt

joeusercz commented 5 years ago

Those are not full logs - need to see how oscam parses the pmt, not dvbsnoop...

OscamSatUser commented 5 years ago

I am having the same issue. It does it on all my my enigma STBs. I can record the channel directly on a .TS file from the enigma stb and it wont have audio too.. I believe it to be in OSCAM some where. This only happens with PowerVu channels and i believe only AC3 audio. I can send you any logs you need. Its been driving me nuts for years.

The unit has no problems playing AC3 audio on non powervu channels, and i can swap STB's to a non enigma based STB and the channels works fine. The audio PIDS are reporting correctly on the information PIDS page on the enigma STBs.

OscamSatUser commented 5 years ago

I would like to also add that there is a particular transponder mux where all the video / audio format is the same across the 10+ channels. Ie all the same video/audio format. There will be audio on half of them and no audio on the other half.

OscamSatUser commented 5 years ago

2018/12/15 10:48:16 28C61199 c (dvbapi) Demuxer 0 stop descrambling program number 00D4 (Program 212) 2018/12/15 10:48:16 28C61199 c (dvbapi) Demuxer 0 ecmpid 0 CAID: 0E00 ECM_PID: 177D PROVID: 000000 2018/12/15 10:48:16 28C61199 c (dvbapi) Demuxer 0 found 1 ECMpids and 3 STREAMpids in caPMT 2018/12/15 10:48:16 28C61199 c (dvbapi) Demuxer 0 found channel in cache and matching prio -> start descrambling ecmpid 0 2018/12/15 10:48:16 28C61199 c (dvbapi) Demuxer 0 trying to descramble PID 0 CAID 0E00 PROVID 000000 ECMPID 177D ANY CHID PMTPID 07E8 VPID 07E7 2018/12/15 10:48:16 28C61199 c (ecm) linuxsatsupport (0E00@000000/0000/00D5/40:0892774BCAD2B5643146DA930850BC36): found (2 ms) by emulator - Program 213 2018/12/15 10:48:16 28C61199 c (dvbapi) Demuxer 0 found 1 ECMpids and 3 STREAMpids in PMT 2018/12/15 10:48:17 28C61199 c (ecm) linuxsatsupport (0E00@000000/0000/00D5/40:ABC313727E3B6F5809916CB274962414): found (1 ms) by emulator - Program 213 2018/12/15 10:48:17 28C61199 c (ecm) linuxsatsupport (0E00@000000/0000/00D5/40:8F176D4829F04BFB37B435412C49B1AA): found (1 ms) by emulator - Program 213 2018/12/15 10:48:18 28C61199 c (ecm) linuxsatsupport (0E00@000000/0000/00D5/40:6C4148E91F9EAEC275DF5D2F91B018A4): found (2 ms) by emulator - Program 213

oscam-emu commented 5 years ago

What channels are these? What sat?

Can you post a log with debug level 2?

OscamSatUser commented 5 years ago

I also did another test. I turned on stream relay, and i have audio and no audio on the exact same channels as with stream relay off.

131w 3860H30000

Let me figure out how to change the debug level

OscamSatUser commented 5 years ago

Okay, here is the log. SID 221 has audio, SID 213 has no audio. This log is with stream relay still turned on.

oscam.log

oscam-emu commented 5 years ago

First of all you need to update your oscam-emu to a more recent version. I believe you have a very old one (oscam is 11420, emu I can't tell, but I guess around 8 months old).

Does one of your boxes support powervu without stream relay? I would prefer a log without out stream relay at the moment. An additional log with stream relay won't hurt though.

So, update oscam-emu and create to logs with debug 2, with and without stream-relay from a box that supports powervu directly. Thanks.

OscamSatUser commented 5 years ago

Okay, ill post back in about 5 minutes.

OscamSatUser commented 5 years ago

Okay, had to add the skip cw feature to get it working again as per the directions, so it took me a few extra minutes.. This is the latest oscam back, with stream relay disabled.

SID 214 audio works SID 213 NO audio

oscam.log

OscamSatUser commented 5 years ago

Sorry, i read back and missed that you asked for with stream relay on too.. Here is that. SID 221 audio works SID 213 NO audio

streamrelay.log

lorba7068 commented 5 years ago

Hi fulllog of channels without audio . a3ntcs.txt holatv.txt vmov.txt

121w alls

oscam-emu commented 5 years ago

@PeterMaxu @jlmariense @lorba7068 @OscamSatUser please try with today's emu r780 and report back.

It may fix these issues.

jlmariense commented 5 years ago

Please add ts delay in newcam or ccamd for star one satellite ku band

oscam-emu commented 5 years ago

I don't know what "ts delay" is and we don't support oscam in general.

Also this has nothing to do with the present issue.

OscamSatUser commented 5 years ago

Okay, you are on the right track. This particular mux now has half as many no audio channels. Still sid 213 is one that has no audio. I am sending you another log of with SID 212 and 213 both of which still have no audio. I have no audio on 4 remaining channels within this mux.

212-213.log

OscamSatUser commented 5 years ago

I am also gonna send you a log of a channel that wasn't working with audio and that now is.
This log as SID 213 which still isn't working and SID 201 which was one that wasn't working and now is.

213-201.log

OscamSatUser commented 5 years ago

Also, since we are making progress, i remember another mux that had some missing audio channels. It turns out one of them is a MPG audio channel. This log has both channels that have no audio, one is MPG and one is AC3.

This mux is 125w3960

AC3-MPG.log

MohitSK commented 5 years ago

I am also facing same issue. On Intelsat 68.5E PowerVu Sony Packages working fine, Audio and Video is OK But in Discovery Package only Video works fine but no Audio. I cross check the issue with different boxes but issue same.

I also notices that in China receiver such as Freesat V7 it autoroll the powervu key of both sony and discovery package, audio and video is ok in this box without using Oscam. If such kind of box open channel without any issue then I think there is something in the emulator that need to be fixed.

linuxstv commented 5 years ago

Everything is just working fine here:

1_0_1_52_12d_1_2ae0e9c_0_0_0_20181217213240

1_0_1_96_12d_1_2ae0e9c_0_0_0_20181217213408

MohitSK commented 5 years ago

@budiarno Thanks Dear, for checking the issue on your side Will you please share the detail of receiver you are using and OSCAM configuration file with SoftCam.key file. It looks I messed something wrong in my OSCAM.

linuxstv commented 5 years ago

I use Dinobot4K. Config file as usual, as the OSCam-Emu wiki explain.

BTW, the latest patch even makes powervu via CCcam protocol possible to decrypt the audio properly on AFN and SPN, and the other channels which were in need of CacheEX 1.

MohitSK commented 5 years ago

@budiarno Thanks, Please share the key files if you can. Regards

oscam-emu commented 5 years ago

@OscamSatUser your logs are no good. You forgot to enable the dvbapi debugging level (128). Also I want the log to contain the pmt parsing as done by oscam-emu. To make sure you have this included, the easiest way is to set the initial logging and restart oscam-emu.

So, to make a proper report and log, do these:

  1. Tell what is you box (model, enigma2 or not, etc).

  2. Tune to the problematic channel you want to log.

  3. Tell if the non working audio is indeed listed (is detected) in your box's audio selection menu.

  4. Make sure you have stream relay disabled. At this point I am interested in problem with dvb-api. Stream relay problems will be taken care of at another time.

  5. It is better to disable every other reader you have (like cccam and others) and let only the emu reader enabled. This way the log will be cleaner and easier to read.

  6. Enable logging in oscam-emu with debug level 130 (2+128). Because we want to restart oscam-emu, we want the initial debug level to be set to 130. You can do this via the webif, or by adding initial_debuglevel = 130 in the oscam.conf file under the global section. It should look similar to this:

    [global]
    logfile                       = /usr/keys/oscam.log
    initial_debuglevel            = 130
    maxlogsize                    = 1000
    waitforcards_extra_delay      = 100
    preferlocalcards              = 1
    readerrestartseconds          = 3
  7. Now restart oscam-emu. Log for about 10 seconds for channels that send ecm every 1 second, or for about 60 seconds for channels sending ecms every 10 seconds. The log does not need to be very long.

  8. Make sure you log 1 channel at the time. Create a separate log with the same procedure, for every channel you want.

  9. Finally, providing a small (200-300 MB) recording (.ts file) might help.

If you do all these steps correctly, your log should look like this: demo-oscam.log

OscamSatUser commented 5 years ago

Okay, here is the first channel. DM920 4.3.1r7 Dream-Elite 6.0 Enigma2 StreamRelay Disabled

No Audio, SID 213. Shows audio PID of 2022

213.log 213.zip

OscamSatUser commented 5 years ago

No Audio SID 212 Shows Audio PID of 2026 detected within ServiceInfo

212.log http://www.filedropper.com/212_1

OscamSatUser commented 5 years ago

Let me know that was exactly what you needed and If so, i can send the others that don't work.

oscam-emu commented 5 years ago

@OscamSatUser logs look properly made

I need a bigger recording though. And this time make it with oscam-emu disabled. So, disable oscam-emu, re-tune to the channel, and then record. I need at least 200MB.

You don't have to do both channels. They are the same, so I assume they suffer from the same problem.

And please tell me again.... Do you see both audio streams (DTS and AC3) in the audio selection menu of your receiver? Does any of them work, or no sound on both?

Thanks.

OscamSatUser commented 5 years ago

Okay, ill work on another recording with OSCAM off... And the two channels i sent you, both of them only report 1 audio track. AC3

OscamSatUser commented 5 years ago

Jeeze, i had to upload the file 3 times before i found a site that didn't give me an error.. Here you go.

https://ufile.io/yuujd

oscam-emu commented 5 years ago

Ok, in the pmt (program map table) for these channels (212 and 213), there are listed 2 audio streams, one AC3 and one DTS.

Only the AC3 audio stream is transmitted though. DTS one is not actually present. The same exactly happens with AFN at 9E.

Regarding the AC3 stream... The logs from oscam-emu indicate that the AC3 stream is detected and descrambled ok.

The odd thing is that the 212.ts and 213.ts recordings you sent me (the decrypted ones) don't have any sound. On my pc, the AC3 is detected by MediaInfo application, but no media player is able to detect/playback the AC3 stream.

EDIT: The problem with the AC3 stream is that it doesn't specify any parameters, so it can't be decoded even with ffmpeg:

Could not find codec parameters for stream 1 (Audio: ac3 ([129][0][0][0] / 0x0081), 0 channels, fltp): unspecified sample rate

I will send your samples to some guys around, and will let you know what can be done...

We can now continue to the next problematic channel (the recording can be a little smaller, 100-150 MB is fine I think).

jlmariense commented 5 years ago

Congratulations on the excellent work. Perfect Oscar. Fixed audio problem.

Em seg, 17 de dez de 2018 00:56, Joao Luiz Gonçalves <jl.mariense@gmail.com escreveu:

Please add ts delay in newcam or ccamd for star one satellite ku band

Em dom, 16 de dez de 2018 23:31, oscam-emu <notifications@github.com escreveu:

@PeterMaxu https://github.com/PeterMaxu @jlmariense https://github.com/jlmariense @lorba7068 https://github.com/lorba7068 @OscamSatUser https://github.com/OscamSatUser please try with today's emu r780 and report back.

It may fix these issues.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/oscam-emu/oscam-patched/issues/13#issuecomment-447695662, or mute the thread https://github.com/notifications/unsubscribe-auth/Ah--mEanMOrXQUl6DyBsNzlq9ANnwLecks5u5vQEgaJpZM4YTETU .

OscamSatUser commented 5 years ago

Just to confirm, i can get these channels just fine with audio on my Technomate TM5402m3 Hopefully the guy your passing this off too will have a thought or two...

Okay, this is another transponder mux. Shows as audio PID 501

antenna.log https://ufile.io/cspec

oscam-emu commented 5 years ago

Interesting... You mean the AC3 audio, or both AC3 and DTS?

What are the AC3 parameters the technomate reports? My guess is 2.0ch 48KHz, and what bitrate? Maybe we can force these values somehow is enigma2.

oscam-emu commented 5 years ago

Same thing for Antenna channel. DTS audio is non existent, and the other one (mpeg audio this time) is descrambled fine from the emu.

I'll need a small decrypted sample of Antenna to forward for investigation, like the previous ones. Does this also play fine on your technomate?

lorba7068 commented 5 years ago

Hello good night, here reporting ... the channels of the 121w venemovies holatv a3series etc all now working properly with audio! I greatly appreciate those who in a selfless way help many of us who without their help we would be lost ... THANK YOU

oscam-emu commented 5 years ago

Good to hear! You're welcome!

OscamSatUser commented 5 years ago

Yes, Antenna plays just fine on the Technomate. It shows in the stats at DVB-S H.264 MPEG Audio VPID 510 APid 501 - If i click the Audio button, i only see one audio track on the technomate. I cannot get bitrate information from the Technomate. But maybe the decrypted .ts from the technomate will answer that question.

The audio on the .ts file is Mpeg2 Stereo 192kbps and plays in VLC and/or AVIdemux Ill record two Decrypted .TS One on the technomate and one on the DM920.

https://ufile.io/xjy5e https://ufile.io/9hiji

OscamSatUser commented 5 years ago

SID 213 on the original mux, i recorded on the technomate. VLC and AVIdemux plays it and shows one audio channel as AC3 Stereo 192kbps.