mkrufky / libdvbtee

dvbtee: a digital television streamer / parser / service information aggregator supporting various interfaces including telnet CLI & http control
GNU Lesser General Public License v2.1
79 stars 31 forks source link

DMX_SET_PES_FILTER failed: Invalid argument on 3 different DVB devices #68

Open EasyNetDev opened 1 year ago

EasyNetDev commented 1 year ago

Hi,

I've compiled the dvbtee and when I'm trying to run over a specific device always I'm getting this error.

# ./dvbtee/dvbtee -d -a3 -f0
# dvbtee v0.6.8 - http://github.com/mkrufky/libdvbtee

1684609842 LOG::libdvbtee_set_debug_level: (0xff)
1684609842 rbuf::rbuf: ()
1684609842 listen::socket_listen: ()
1684609842 out::output: ()
1684609842 parse::init: ()
1684609842 listen::socket_listen: ()
1684609842 feed::feed: ()
1684609842 tune::tune: ()
1684609842 linuxtv_tuner::linuxtv_tuner: ()
1684609842 linuxtv_tuner::set_device_ids: (3, 0, 0, 0)
1684609842 linuxtv_tuner::start_feed: ()
start_feed: using /dev/dvb/adapter3/demux0
DMX_SET_PES_FILTER failed: Invalid argument
1684609842 linuxtv_tuner::clear_filters: ()
1684609842 feed::stop: ()
1684609842 listen::stop: ()
1684609842 feed::stop: waiting...
1684609842 feed::stop: done
1684609842 feed::close_file: ()
1684609842 parse::cleanup: ()
1684609842 parse::detach_demux: ()
1684609842 feed::stop: ()
1684609842 listen::stop: ()
1684609842 feed::stop: waiting...
1684609842 feed::stop: done
1684609842 feed::close_file: ()
1684609842 linuxtv_tuner::clear_filters: ()
1684609842 linuxtv_tuner::clear_filters: ()
1684609842 parse::cleanup: ()
1684609842 parse::detach_demux: ()
1684609842 feed::~feed: ()
1684609842 feed::close_file: ()
1684609842 listen::~socket_listen: ()
1684609842 listen::close_socket: ()
1684609842 parse::~parse: ()
1684609842 parse::cleanup: ()
1684609842 parse::detach_demux: ()
1684609842 out::~output: ()
1684609842 out::stop: ()
1684609842 out::~output: (intermediate) 0 packets in, 0 packets out, 0 packets remain in rbuf
1684609842 listen::~socket_listen: ()
1684609842 listen::close_socket: ()
1684609842 rbuf::~rbuf: ()
1684609842 rbuf::dealloc: ()

Even is installed fully on my computer and removed the Debian libdvbpsi lib.

mkrufky commented 1 year ago

Try tuning to a service first - does that solve it?

EasyNetDev commented 1 year ago

Hi,

I tried this:

# dvbtune -c0 -f 338000000 -s 6900
Using DVB card "Silicon Labs Si2168"
tuning DVB-C to 338000000, srate=6900000
polling....
Getting frontend event
FE_STATUS:
polling....
Getting frontend event
FE_STATUS: FE_HAS_SIGNAL FE_HAS_LOCK FE_HAS_CARRIER FE_HAS_VITERBI FE_HAS_SYNC
Event:  Frequency: 348600000
        SymbolRate: 6900000
        FEC_inner:  9

Bit error rate: 0
Signal strength: 0
SNR: 0
FE_STATUS: FE_HAS_SIGNAL FE_HAS_LOCK FE_HAS_CARRIER FE_HAS_VITERBI FE_HAS_SYNC

Then:

# dvbtee -a0 -f0 -e
# dvbtee v0.6.8 - http://github.com/mkrufky/libdvbtee

start_feed: using /dev/dvb/adapter0/demux0
DMX_SET_PES_FILTER failed: Invalid argument

or

# dvbtee -a0 -f0 -s
# dvbtee v0.6.8 - http://github.com/mkrufky/libdvbtee

open_fe: using /dev/dvb/adapter0/frontend0
frontend is not a supported device type!

Which is very strange because tools like: w_scan or w_scan_cpp are working.

I have 4 tuners from Digital Devices, 6 from TechnoTrend and 2 from AVerMedia Technologies.

mkrufky commented 1 year ago

for your first command, don't pass -c 0 - there is no channel zero

the other two commands wont work either because they don't tune the frontend