jpluimers / fritzcap

Fork of elpatron68/fritzcap which was previously automatically exported from code.google.com/p/fritzcap
https://wiert.me/category/power-user/internet/fritz/fritzbox-fritz/
27 stars 11 forks source link

no wav file is being created #26

Closed fritzcap closed 5 years ago

fritzcap commented 5 years ago

Hi there, I am using following configuration: FritzBox 7490 Ubuntu 18.04.1 with Python 2.7.12

CAP files were created, but there is no audio file being generated. Sometimes there will also no CAP file. How do I convert cap files to audio files?

fritzcap commented 5 years ago

Got it. Running fritzcap as root is not recommended and will not be able to convert anything to audio. Added user "fritz" and now it is running as "fritz" perfectly....

p3l4h0 commented 5 years ago

Are you able to help me with my problem ? where did you change your user ? i have now used my fritzbox user and passwort but get an error:

2018-10-12 19:01:43,078 [MainThread::11400] [INFO    ] [        fritzcap::<module>          ] FritzCap version 2.3.1 started.
2018-10-12 19:01:43,081 [MainThread::11400] [DEBUG   ] [        fritzcap::<module>          ] Command line parameters: ['C:\\Users\\User\\Downloads\\fritzcap-master\\fritzcap.py', '-u', 'username', '-d', '1.cap']
2018-10-12 19:01:43,081 [MainThread::11400] [DEBUG   ] [        fritzcap::<module>          ] Parsed parameters:       Namespace(after_capture_time=10, box_name='192.168.178.2', call_service_port=1012, cap_file='capture_%(tcaps.YmdHMS).cap', cap_folder='captures/%(tcaps.Y-m-d/HMS)/', cap_interface=' ', capture_files=None, config_file=<open file 'fritzcap.conf', mode 'r' at 0x000000000390BAE0>, decode_files=['1.cap'], decode_workers_count=2, default_login='getpage=../html/de/menus/menu2.html&errorpage=../html/index.html&var:lang=de&var:pagename=home&var:menu=home&=&login:command/password=%s', logging_config='logging.conf', login_not_required=None, monitor_calls=None, password='pwd', protocol='http', show_interfaces=None, sid_challenge='getpage=../html/login_sid.xml', sid_login='login:command/response=%s&getpage=../html/login_sid.xml', start_str='?start=1&start1=Start', stop_str='?stop=1&stop1=Stop', username='username')
2018-10-12 19:01:43,081 [MainThread::11400] [DEBUG   ] [exception_logging_thread::__init__          ] ExceptionLoggingThread().
2018-10-12 19:01:43,081 [MainThread::11400] [DEBUG   ] [  capfile_worker::__init__          ] CapfileWorker(worker_id:0, decode_work_queue:<Queue.Queue instance at 0x00000000039B28C8>).
2018-10-12 19:01:43,082 [MainThread::11400] [DEBUG   ] [exception_logging_thread::__init__          ] ExceptionLoggingThread().
2018-10-12 19:01:43,082 [MainThread::11400] [DEBUG   ] [  capfile_worker::__init__          ] CapfileWorker(worker_id:1, decode_work_queue:<Queue.Queue instance at 0x00000000039B28C8>).
2018-10-12 19:01:43,082 [  Thread-2::11472] [DEBUG   ] [  capfile_worker::run_logic         ] Thread started.
2018-10-12 19:01:43,082 [  Thread-2::11472] [INFO    ] [  capfile_worker::process           ] Decode process started  (worker_id:1, file:'1.cap')
2018-10-12 19:01:43,084 [  Thread-2::11472] [DEBUG   ] [    g711_decoder::decode            ] Unsupported payload type 37
2018-10-12 19:01:43,084 [  Thread-2::11472] [DEBUG   ] [    g711_decoder::decode            ] Unsupported payload type 103
2018-10-12 19:01:43,085 [  Thread-2::11472] [DEBUG   ] [    g711_decoder::decode            ] Unsupported payload type 103
2018-10-12 19:01:43,180 [  Thread-2::11472] [DEBUG   ] [    g711_decoder::decode            ] Unsupported payload type 37
2018-10-12 19:01:43,184 [  Thread-1::11416] [DEBUG   ] [  capfile_worker::run_logic         ] Thread started.
2018-10-12 19:01:43,184 [  Thread-1::11416] [DEBUG   ] [  capfile_worker::run_logic         ] Became None element, put a None element to the queue for the others workers and break the work.
2018-10-12 19:01:43,186 [  Thread-1::11416] [DEBUG   ] [  capfile_worker::run_logic         ] Thread stopped.
2018-10-12 19:01:43,252 [  Thread-2::11472] [INFO    ] [  capfile_worker::process           ] Decode process finished (worker_id:1, file:'1.cap')
2018-10-12 19:01:43,253 [  Thread-2::11472] [DEBUG   ] [  capfile_worker::run_logic         ] Became None element, put a None element to the queue for the others workers and break the work.
2018-10-12 19:01:43,253 [  Thread-2::11472] [DEBUG   ] [  capfile_worker::run_logic         ] Thread stopped.
2018-10-12 19:01:44,283 [MainThread::11400] [DEBUG   ] [        fritzcap::<module>          ] There is no more active threads. Exiting.
2018-10-12 19:01:44,283 [MainThread::11400] [INFO    ] [        fritzcap::<module>          ] FritzCap version 2.3.1 finished.