Opendigitalradio / ODR-DabMod

ODR-DabMod is a DAB (Digital Audio Broadcasting) modulator, part of the ODR-mmbTools.
https://www.opendigitalradio.org
Other
50 stars 32 forks source link

Commandline for filelog #22

Closed lars18th closed 6 years ago

lars18th commented 6 years ago

Hi,

I'm using the ODR-DabMod with only command line (that is, without the configuration file). And most of the default values are fine. However, when using this tool in a PIPE chain the STDERR is mixed with the ouput of all the running tools. So, as the configuration file has the option to enable the filelog and setting the filename I suggest to support it also in the command line.

This has sense?

piratfm commented 6 years ago

As for me: NO

lars18th commented 6 years ago

As for me: NO

The problem is: It's not possible to mix command line with configuration file. So, or one or another; not both. So, using the command line it's impossible to log.

mpbraendli commented 6 years ago

There's currently no way to stop ODR-DabMod from printing to stderr, even when using the configuration file. So it's not just about adding an option. I'm slightly against implementing this, because I want to encourage users to work with the more flexible configuration files.

andimik commented 4 years ago

Remark, in some documentation there is still parameter -C for the configuration file mentioned. Should I send you a PR to fix the docu?

mpbraendli commented 4 years ago

Yes, please let me know if there is an oversight. Either here as a message, or a pull request if applicable.

andimik commented 4 years ago

http://opendigitalradio.github.io/mmbtools-doc/mmbtools.pdf

Chapter 5.1.2 suggests that an eti-file can easily be loaded on the command line and the text says, there are (still) two ways of usage ...

And http://wiki.opendigitalradio.org/ODR-DabMod#Command_line_arguments is outdated as well.

andimik commented 4 years ago

And the help itself is outdated.

$ odr-dabmod --help
ODR-DabMod version v2.4.1, compiled at Apr  6 2020, 19:46:27
Compiled with features: zeromq output_soapysdr SSE 
odr-dabmod: invalid option -- '-'
Usage with configuration file:
    odr-dabmod config_file.ini

Usage with command line options:
    odr-dabmod input (-f filename -F format | -u uhddevice -F frequency) [-o offset]
     [-G txgain] [-T filter_taps_file] [-a gain] [-c clockrate]
     [-g gainMode] [-m dabMode] [-r samplingRate] [-l] [-h]
Where:
input:         ETI input filename (default: stdin), or
                  tcp://source:port for ETI-over-TCP input, or
                  zmq+tcp://source:port for ZMQ input.
                  udp://:port for EDI input.
mpbraendli commented 4 years ago

Well, it's still true that both the command line options and the config file still exist. I don't see an immediate need to remove the options.

mpbraendli commented 4 years ago

But the wiki is indeed outdated, I'll do something about that.

andimik commented 4 years ago

I am sorry, you are right. I guess I used the wrong syntax and did not specify enough parameters.