Open khanfar opened 5 years ago
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 - VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332) ANF is disabled (requires a clean signal). Measuring SPD Roll-off 0.35 Fs after resampling/decimation: 2400000.000000 Hz RRC interpolator: 53 steps RRC filter: 497 coeffs. Found 1 device(s): 0: Realtek, RTL284UHIDIR, SN: Khanfar1/40
Using device 0: Generic RTL2832U OEM Output: '_': S2 frame received without errors '.': error-corrected S2 frame '!': S2 frame with remaining errors Found Rafael Micro R820T tuner [R82XX] PLL not locked! Sampling at 2400000 S/s. Tuned to 742500000 Hz. Tuner gain set to 8.70 dB. Reading samples in async mode... COARSE(50): -0.133088 rad/symb (-42363 Hz at 2000000 baud) Ignoring coarse det, using 0.000000 ACQ LOCKED ACQ LOCKED ACQ LOCKED Creating LUT for QPSK ratecode 1 Spawning LDPC helper: modcod=6 sf=0 ____Start TS at 105 Signal caught, exiting! Signal caught, exiting! Short write, samples lost, exiting!
User cancel, exiting... mwk@mwk-desktop:~/leansdr/src/apps$
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 : 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 -
but got this :
VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332) --inpipe: Operation not permitted Try 'echo 32000000 > /proc/sys/fs/pipe-max-size' Found 1 device(s): 0: Realtek, RTL284UHIDIR, SN: Khanfar1/40
Using device 0: Generic RTL2832U OEM Found Rafael Micro R820T tuner [R82XX] PLL not locked! Sampling at 2400000 S/s. Tuned to 742500000 Hz. Tuner gain set to 8.70 dB. Reading samples in async mode... Signal caught, exiting! Short write, samples lost, exiting!
User cancel, exiting... mwk@mwk-desktop:~/leansdr/src/apps$
then i try this : sudo echo 32000000 > /proc/sys/fs/pipe-max-size but got this : bash: /proc/sys/fs/pipe-max-size: Permission denied
then i try this : sudo sysctl fs.pipe-max-size=4194304 and i got this : fs.pipe-max-size = 4194304
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". Or "sudo sysctl fs.pipe-max-size=32000000". Or "leandvb --inpipe 4194304" if that's really the highest value your OS will accept for 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. Even with a fast PC you will need to get --inpipe working for realtime LDPC decoding.
You have to be root for that. sudo
is not sufficient here.
i follow this : open terminal : sudo /bin/bash echo 32000000 > /proc/sys/fs/pipe-max-size it seems ok but :
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) ANF is disabled (requires a clean signal). Measuring SPD Roll-off 0.35 Fs after resampling/decimation: 2400000.000000 Hz RRC interpolator: 53 steps RRC filter: 497 coeffs. Found 1 device(s): 0: Realtek, RTL284UHIDIR, SN: Khanfar1/40
Using device 0: Generic RTL2832U OEM Output: '_': S2 frame received without errors '.': error-corrected S2 frame '!': S2 frame with remaining errors Found Rafael Micro R820T tuner [R82XX] PLL not locked! Sampling at 2400000 S/s. Tuned to 742500000 Hz. Tuner gain set to 8.70 dB. Reading samples in async mode... COARSE(50): -0.150370 rad/symb (-47864 Hz at 2000000 baud) Ignoring coarse det, using 0.000000 ACQ LOCKED ACQ LOCKED Creating LUT for QPSK ratecode 1 Spawning LDPC helper: modcod=6 sf=0 Spawning LDPC helper: modcod=6 sf=0 Spawning LDPC helper: modcod=6 sf=0 Spawning LDPC helper: modcod=6 sf=0 Spawning LDPC helper: modcod=6 sf=0 Spawning LDPC helper: modcod=6 sf=0 ____Start TS at 41 Signal caught, exiting! Short write, samples lost, exiting!
User cancel, exiting... mwk@mwk-desktop:~/leansdr/src/apps$
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) ANF is disabled (requires a clean signal). Measuring SPD Roll-off 0.35 Fs after resampling/decimation: 2400000.000000 Hz RRC interpolator: 8 steps RRC filter: 451 coeffs. Found 1 device(s): 0: Realtek, RTL284UHIDIR, SN: Khanfar1/40
Using device 0: Generic RTL2832U OEM Output: '_': S2 frame received without errors '.': error-corrected S2 frame '!': S2 frame with remaining errors Found Rafael Micro R820T tuner [R82XX] PLL not locked! Sampling at 2400000 S/s. Tuned to 747120000 Hz. Tuner gain set to 19.70 dB. Reading samples in async mode... COARSE(50): 0.110325 rad/symb (5847 Hz at 333000 baud) Ignoring coarse det, using 0.000000 ACQ LOCKED Creating LUT for QPSK ratecode 3 Spawning LDPC helper: modcod=7 sf=0 Spawning LDPC helper: modcod=7 sf=0 Spawning LDPC helper: modcod=7 sf=0 Spawning LDPC helper: modcod=7 sf=0 Spawning LDPC helper: modcod=7 sf=0 Spawning LDPC helper: modcod=7 sf=0 ACQ LOCKED ACQ LOCKED decoder failed at converging to a code word! ____Start TS at 46 Signal caught, exiting! Short write, samples lost, exiting!
User cancel, exiting... mwk@mwk-desktop:~/leansdr/src/apps$
Try rtl_sdr+leandvb live without vlc. If this works then maybe the problem is in vlc, thought that would be surprising.
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 vlc /tmp/stream.ts
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 ANF is disabled (requires a clean signal). Measuring SPD Roll-off 0.35 Fs after resampling/decimation: 2400000.000000 Hz RRC interpolator: 53 steps RRC filter: 497 coeffs. Found 1 device(s): 0: Realtek, RTL284UHIDIR, SN: Khanfar1/40
Using device 0: Generic RTL2832U OEM Output: '_': S2 frame received without errors '.': error-corrected S2 frame '!': S2 frame with remaining errors Found Rafael Micro R820T tuner [R82XX] PLL not locked! Sampling at 2400000 S/s. Tuned to 742500000 Hz. Tuner gain set to 8.70 dB. Reading samples in async mode... COARSE(50): -0.155223 rad/symb (-49409 Hz at 2000000 baud) Ignoring coarse det, using 0.000000 ACQ LOCKED Creating LUT for QPSK ratecode 1 Spawning LDPC helper: modcod=6 sf=0 Spawning LDPC helper: modcod=6 sf=0 Spawning LDPC helper: modcod=6 sf=0 Spawning LDPC helper: modcod=6 sf=0 Spawning LDPC helper: modcod=6 sf=0 Spawning LDPC helper: modcod=6 sf=0 Start TS at 143
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