Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support for lab generated raw files #64

Open
andimik opened this issue Dec 26, 2022 · 18 comments
Open

Better support for lab generated raw files #64

andimik opened this issue Dec 26, 2022 · 18 comments

Comments

@andimik
Copy link

andimik commented Dec 26, 2022

Qirx has a problem with raw files generated in the lab (like with https://github.com/Opendigitalradio/ODR-DabMod )

  • the CNR calculation shows a wrong value (see below) and therefore is red
    grafik

  • sync issues may appear (dropouts) or the sync may fail at all, like in the following screenshot
    grafik
    whereas the same file (please let me know if you need it) works in Qt-DAB or in other tools
    grafik

@softsyst
Copy link
Owner

softsyst commented Dec 26, 2022

The CNR calculation is correct. Please remember, CNR means carrier/noise. If the noise goes to zero, the CNR tends to go to infinity. And that is what you see here. The color is to indicate this correct but very unusual value. But, I agree that the red color can be misleading. I'll think about it.

And yes of course, I am interested in the raw file.

@andimik
Copy link
Author

andimik commented Dec 26, 2022

CNR means carrier/noise. If the noise goes to zero, the CNR tends to go to infinity.

Oh yes, you are right :-)

Here is the raw file (zipped).
https://wetransfer.com/downloads/ead70d7cd1b08f6ebae5c0de5fd46b9120221226211215/05dcc565fafb588c5fccae1f8fc18a2d20221226211230/f96d72

It even plays in DAB Player (which allows to load raw files in the recent version 172)

grafik
grafik

I wonder because the length, the data type, and the duration are shown correctly

grafik
grafik

@softsyst
Copy link
Owner

Thanks for the file.
Strange, if you activate the filter, even with 2048kHz bandwidth, it syncs immediately. Otherwise, it has a problem. No clue. Will have a look.
Rijks is nice, as it is the only mux known to me having two different EPG services. Only if you process both, you get all the icons. But you don't get them with your file, it is too short. I have them from a raw of about five minutes.

rawAndimik2

@andimik
Copy link
Author

andimik commented Dec 26, 2022

I can receive this DAB mux via Satellite (0.8 West) with my 85 cm dish even here in Austria, so I was able to capture a longer stream.

I have them from a raw of about five minutes.

If you want I could send you another eti (my sample from March 2022 is around 11 minutes) and you generate a raw file through ODR-DabMod (also via Ubuntu for Windows).

sudo cat ./riks_maerz2022.eti | odr-dabmod /dev/stdin -f ./riks_maerz2022.raw -F u8 -a 0.5

If you just want to test it via rtl_tcp (not rtl2_tcp) use

sudo cat ./riks_maerz2022.eti | odr-dabmod /dev/stdin -f /dev/stdout -F u8 -a 0.5 | pv -L 4096000 | nc -l 127.0.0.1 1234

But this is the log and its directory.
qirx.logqirx.log-2022-12-26--23-33-54.txt
E2F201.zip

Regaring Filter: Strange, I have never used that function, but thanks for the hint. Yes, indeed, I get it running then.

grafik

@softsyst
Copy link
Owner

Thanks for the offer. Yes, if possible I always prefer newer files. You never know what ideas they have with these logos. The 5C now transmits all of the logos of the 9B also. Now it lasts 15 minutes to collect the whole MOT from Bumux1. Next qirx will support it.
Likewise, the BBC changed their logos, now unreadable.

@andimik
Copy link
Author

andimik commented Dec 27, 2022

The following ETI files (Riks and NRK Regional Mux 1 from today, the logo of the XMS channel P7 even shows a Christmas hat ...) are 23:45 minutes long and zipped.

https://wetransfer.com/downloads/f296ef16ce72d6cb42df1ecda0201ac920221227135555/71ea86c50d75ab4889e7522722c06a6120221227135612/b09804

Remark: All the other 6 NRK muxes look the same, so only one is useful to share with you.

This following command will produce a 5.8 GByte raw file.

cat ./riks_20221227.eti | odr-dabmod /dev/stdin -f  /dev/stdout -F u8 -a 0.6 > ./riks_20221227.raw

After around 3:45 minutes, you will see the first logos for Riks, and some seconds later the rest will follow.

These are the files:
E2F201.zip
qirx.logqirx.log-2022-12-27--17-27-05.txt
E2F701.zip
qirx.logqirx.log-2022-12-27--18-11-14.txt

If you don't want to waste some Gigabytes, then use the following command and open Qirx with rtl_tcp connection:

cat ./nrk1_20221227.eti | odr-dabmod /dev/stdin -f  /dev/stdout -F u8 -a 0.8 |
pv -L 4096000 | nc -l 127.0.0.1 1234

grafik
grafik

Remark: Qirx has some Audio dropouts when the SPI is written to the respective folders.

@softsyst
Copy link
Owner

Thanks for the files, and also for the dropout remark. I'll check it. Maybe the dropouts are somehow OS dependent, as the writing happens in a different thread.

@andimik
Copy link
Author

andimik commented Dec 31, 2022

Have you already downloadeded them? I got a message that in 2 days they will disappear.

@softsyst
Copy link
Owner

Yep, already at 27Dec. But I had no time yet to process them.

@softsyst
Copy link
Owner

The 4.0.8 contains a FIR filter with 1.6MHz bandwidth always active for DAB. I hope with this filter the issue is fixed.

@softsyst
Copy link
Owner

Please have a look if the behavior is ok now. If so, I could close it.

@andimik
Copy link
Author

andimik commented Apr 27, 2023

Not really. Sometimes no audio after the raw file restarts.

grafik

@softsyst
Copy link
Owner

Strange file. 150ms Symbol Time (should be max. 2ms) and 0.5ms Frame Time (should be constantly 96) is very wrong.

@andimik
Copy link
Author

andimik commented Apr 28, 2023

But the file played well till EOF

@softsyst
Copy link
Owner

softsyst commented Jun 7, 2023

As I want to proceed with the issue, I would need a raw file demonstrating the effect. I have no such file. Would it be possible?

@andimik
Copy link
Author

andimik commented Jun 9, 2023

Do you really need me to send you a raw file although I wrote the instructions how to generate them above?

@softsyst
Copy link
Owner

softsyst commented Jun 9, 2023

Ok, I was not aware that the audio problem happens with a file you mentioned above. Of course, I can try that one.

@andimik
Copy link
Author

andimik commented May 6, 2024

Just an updated remark to all who found this posting:

NRK is no more be available for mid size dishes. Seems 120cm is the minimum nowadays for Southern Austria.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants