-
Notifications
You must be signed in to change notification settings - Fork 41
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
VLC not open when try ./leandvb --gui | vlc - Help #18
Comments
i try to run lean with ldpc helper by this command : rtl_sdr -f 742500000 -s 2400000 -g 10 - | ./leandvb --gui --sr 2000e3 --sampler rrc --rrc-rej 30 --standard DVB-S2 --ldpc-helper ldpc_tool -v -d | vlc - but it start few seconds and exit ! i got this in terminal : mwk@mwk-desktop:~/leansdr/src/apps$ rtl_sdr -f 742500000 -s 2400000 -g 10 - | ./leandvb --gui --sr 2000e3 --sampler rrc --rrc-rej 30 --standard DVB-S2 --ldpc-helper ldpc_tool -v -d | vlc - Using device 0: Generic RTL2832U OEM User cancel, exiting... |
Try offline first: Record to a file with rtl_sdr, then demodulate with leandvb, then decode with vlc. Same as with GQRX recordings, except without the "--f32" option. If you don't want to enable AGC on the rtl_sdr, use "leandvb --gui" to check that the signal is neither too weak nor saturated. Tweak the gain and frequency offset until it works. For realtime mode you should add "--inpipe 32000000 --nhelpers 6" to the leandvb command line. Watch for warnings about configuring /proc/sys/fs/pipe-max-size. This should prevent "Short write, samples lost, exiting!". If this still doesn't work then maybe your computer is simply too slow. Check whether any process is keeping a whole CPU core busy. |
i try this like what you say : but got this : VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332) Using device 0: Generic RTL2832U OEM User cancel, exiting... |
then i try this : |
then i try this : but still the same error like up my pc ic i3 third generation 8gb of ram , i sucsess decoding from recording .raw file from gqrx then decoding it and use mplayer to view , but im looking now for LIVE decoding , any wrong in my setup ? |
"sudo echo 32000000 > /proc/sys/fs/pipe-max-size" will not work because ">" is evaluated before sudo. Try "sudo /bin/bash" then "echo 32000000 > /proc/sys/fs/pipe-max-size". To determine whether your system is fast enough, simply measure how long leandvb takes to process a gqrx file (with "--nhelpers 6"), and check whether that's faster than the duration of the recording. |
You have to be root for that. |
i follow this : then try this : open terminal in this location : ~/leansdr/src/apps/ and try this : rtl_sdr -f 742500000 -s 2400000 -g 10 - | ./leandvb --gui --inpipe 32000000 --nhelpers 6 --sr 2000e3 --sampler rrc --rrc-rej 30 --standard DVB-S2 --ldpc-helper ldpc_tool -v -d | vlc - i got this : VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332) Using device 0: Generic RTL2832U OEM User cancel, exiting... |
the lean waterfall start 5 seconds and i see 4 dots then exit ! |
look at this youtube video , its works good when i record .raw file and decoding it (not live decoding ) but the problem in live decoding , https://www.youtube.com/watch?v=aGgaCsdAP8U https://www.rtl-sdr.com/receiving-eshail-2-dvb-s2-on-ubuntu-with-leandvb/ i use this command to decoding offline .RAW file from gqrx , and it works very well like youtube video i post . i move the .raw file to tmp folder then decode it by this command : mwk@mwk-desktop:~/leansdr/src/apps$ ./leandvb --f32 -f 2400e3 --sr 2000e3 --sampler rrc --rrc-rej 30 --standard DVB-S2 --ldpc-helper ldpc_tool -v -d --gui < /tmp/gqrx_20190503_212107_742493900_2400000_fc.raw > /tmp/video.ts |
but the problem in live decoding , what im missing ? |
i try to change the symbol rate --sr 333e3 rtl_sdr -f 747120000 -s 2400000 -g 20 - | ./leandvb --gui --inpipe 32000000 --nhelpers 6 --sr 333e3 --sampler rrc --rrc-rej 30 --standard DVB-S2 --ldpc-helper ldpc_tool -v -d | vlc - i got this : VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332) Using device 0: Generic RTL2832U OEM User cancel, exiting... |
Try rtl_sdr+leandvb live without vlc. If this works then maybe the problem is in vlc, thought that would be surprising.
Also you can run "leandvb -d -d" for more debug messages. |
i test this , its record the file in tmp folder see this : mwk@mwk-desktop:~/leansdr/src/apps$ rtl_sdr -f 742500000 -s 2400000 -g 10 - | ./leandvb --gui --inpipe 32000000 --nhelpers 6 --sr 2000e3 --sampler rrc --rrc-rej 30 --standard DVB-S2 --ldpc-helper ldpc_tool -v -d > /tmp/stream.ts Using device 0: Generic RTL2832U OEM User cancel, exiting... mwk@mwk-desktop:~/leansdr/src/apps$ |
to exit i type ctrl+c , but when i try : it give me this : the vlc not start , so the problem in vlc itself ? its ok , it run in mplayer , but the problem i cant let the stream run for like 1/2 hours ! it give me big file save to tmp folder ! how to fix now vlc and not recording .ts to tmp ? , the issue i cant record big file , i need nethod for live , how to fix or reinstall vlc recommendation steps ? or use different player ? |
Yes, it looks like VLC does not like the TS. I have successfully used mplayer instead for live decoding, e.g.:
|
Pabr ... its work now ,,, wow , thanks .... i reinstall vlc and type this : rtl_sdr -f 742500000 -s 2400000 -g 10 - | ./leandvb --gui --inpipe 32000000 --nhelpers 6 --sr 2000e3 --sampler rrc --rrc-rej 30 --standard DVB-S2 --ldpc-helper ldpc_tool -v -d | vlc - |
my sdr need little ppm correction from real frequency , how to add ppm correction value ?? and how to make the symbole rate in lean auto detected so i put now --sr 2000e3 for 2mS/s , can i make the lean auto detect the Symbol rate ??? |
were to add these commands ? I have successfully used mplayer instead for live decoding, e.g.:
|
On lag: There is no easy way to reduce latency. It is caused by large DVB-S2 frames, buffering for SIMD processing, and LDPC decoding jitter at low SNR. Try other values for "--nhelpers", for example "--nhelpers 3" if you CPU has 4 cores. On ppm correction: You can try "rtl_sdr -p", or adjust the value directly in "rtl_sdr -f", or use "leandvb --derotate". On symbol rate: leandvb does not support auto-detection. It ships with "leansdrscan" which is intended to cycle through several combinations of frequency and symbol rates, but I haven't tested it in a while. On mplayer: You can write "mplayer" instead of "vlc" in your commands. Sometimes it works better, sometimes not. |
the main frequency i need to decoding exactly REAL 748.750 but when i put the command rtl_sdr -f 748.750 the waterfall in lean not center in REAL frequency so i put the frequency -f 748.610 to got it center to real frequency ,,, so the lean decoding the main real frequency in my case in 748.610 , ..... |
The frequency error is -140 kHz, which is 187 ppm of 748.750 MHz, so you can try the following alternatives:
Note: "leandvb --gui" tells you the residual frequency offset (blue text in timeline window). If it's more than +-10 kHz you can use that value to adjust the frequency correction and get better demodulation. |
how you calculate the 187 ppm value ?? the frequency error is -140Kz , but how to calculate the ppm value = 187 ppm ? |
is there way to adjust tune when lean run in real time ? i mean not exit the software and edit the command value like to correct the ppm or frequency error |
140 kHz divided by 748.750 MHz is 0.000187. That's 187 parts per million (ppm). Note: If your rtl_dr is a high-end model (with a TCXO) then the 140 kHz error must come from the inaccuracy of the LNB oscillator, not from the rtl_sdr itself. In that case you should not use "rtl_sdr -p", because this might also affect the sampling rate. Simply adjust the tuning frequency by 140 kHz. There is no way to retune leandvb at runtime, but future version will tolerate larger frequency offsets. |
thanks pabr fo your help ... we are looking for new version ,,, hope soon ,,,, and look for can adjust frequency realtime on terminal by +_ buttons from keyboard , or build a easy GUI to put frequency and gain and offset and symbol rate in GUI easy window , then click start to run the software ...... thanks |
please help .
when i try to run command for live view :
rtl_sdr -f 742450000 -s 2400000 -g 10 - | ./leandvb --gui | vlc -
rtl_sdr is run and lean is run ok BUT VLC NOT RUN ! please help
The text was updated successfully, but these errors were encountered: