Opendigitalradio / ODR-DabMux

ODR-DabMux is a DAB (Digital Audio Broadcasting) multiplexer, part of the ODR-mmbTools.
https://www.opendigitalradio.org
Other
48 stars 35 forks source link

reach end of file -> rewinding #71

Closed Locotar closed 2 months ago

Locotar commented 2 months ago

error msg:

(base) agt@agt-AUS:~/project/001_code/dab/makeSources$ sudo odr-dabmux mux2.json
Welcome to ODR-DabMux v4.5.0, compiled at Sep 10 2024, 17:47:39

Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Her Majesty the Queen in Right of Canada
(Communications Research Centre Canada)

Copyright (C) 2021 Matthias P. Braendli
LICENCE: GPLv3+

http://opendigitalradio.org

Input URLs supported: prbs udp file zmq
Inputs format supported: raw mpeg packet epm
Output URLs supported:
 file fifo udp tcp simul

2024-09-10Z12:39:03       Initialising default TAI Bulletin URLs
2024-09-10Z12:39:03       ClockTAI uses bulletin URL: 'https://raw.githubusercontent.com/eggert/tz/master/leap-seconds.list'
2024-09-10Z12:39:03       ODR-DabMux v4.5.0 starting up
2024-09-10Z12:39:03       RC: Waiting for connection on port 12721
2024-09-10Z12:39:03       No announcements defined in ensemble because No such node (announcements)
2024-09-10Z12:39:03       No announcements defined in service alert-service
2024-09-10Z12:39:03       Startup CIF Count 2663 with timestamp: 1725971943 + 0.912000
2024-09-10Z12:39:03       Calculated FIG 0/7 Count = 361
2024-09-10Z12:39:03       --- Multiplex configuration ---
2024-09-10Z12:39:03       Ensemble
2024-09-10Z12:39:03        id:          0x2320 (8992)
2024-09-10Z12:39:03        ecc:         0xe1 (225)
2024-09-10Z12:39:03        label:       MyEnsemble
2024-09-10Z12:39:03        short label: MyEn
2024-09-10Z12:39:03        (0xf000)
2024-09-10Z12:39:03        FIG2 label:
2024-09-10Z12:39:03        mode:        TM I
2024-09-10Z12:39:03        lto:         8.0 hours
2024-09-10Z12:39:03        intl. table. 1
2024-09-10Z12:39:03        No announcement clusters defined
2024-09-10Z12:39:03        Linkage Sets
2024-09-10Z12:39:03         None
2024-09-10Z12:39:03        Services in other ensembles
2024-09-10Z12:39:03         None
2024-09-10Z12:39:03        Frequency Information
2024-09-10Z12:39:03         None
2024-09-10Z12:39:03       --- Subchannels list ---
2024-09-10Z12:39:03       Subchannel   alert-subchannel
2024-09-10Z12:39:03        input
2024-09-10Z12:39:03          URI:     /home/agt/project/001_code/dab/makeSources/station_tianjin1.eti
2024-09-10Z12:39:03        type:       DABPlusAudio
2024-09-10Z12:39:03        id:         0xa (10)
2024-09-10Z12:39:03        bitrate:    64
2024-09-10Z12:39:03        protection: EEP 1-A
2024-09-10Z12:39:03         option:    0
2024-09-10Z12:39:03         level:     0
2024-09-10Z12:39:03        SAD:        0
2024-09-10Z12:39:03        size (CU):  96
2024-09-10Z12:39:03       Total ensemble size (CU):  96
2024-09-10Z12:39:03       --- Services list ---
2024-09-10Z12:39:03       Service       alert-service
2024-09-10Z12:39:03        label:       AlertService
2024-09-10Z12:39:03        short label: Alert
2024-09-10Z12:39:03        (0xf800)
2024-09-10Z12:39:03        FIG2 label:
2024-09-10Z12:39:03        id:            0xd100 (53504)
2024-09-10Z12:39:03        pty:           0x0 (0) Dynamic
2024-09-10Z12:39:03        language:      0x0 (0)
2024-09-10Z12:39:03        announcements: 0x0
2024-09-10Z12:39:03        clusters:
2024-09-10Z12:39:03       --- Components list ---
2024-09-10Z12:39:03       Component                alert-component
2024-09-10Z12:39:03        service id:             0xd100 (53504)
2024-09-10Z12:39:03        subchannel id:          0xa (10)
2024-09-10Z12:39:03        label:
2024-09-10Z12:39:03        short label:
2024-09-10Z12:39:03        (0xff00)
2024-09-10Z12:39:03        FIG2 label:
2024-09-10Z12:39:03        service component type: 0x3f (63)
2024-09-10Z12:39:03       --- Output list ---
2024-09-10Z12:39:03       Output      0
2024-09-10Z12:39:03         URI: file:///home/agt/project/001_code/dab/makeSources/mux_alert_output.eti
2024-09-10Z12:39:03       Start loop
2024-09-10Z12:39:04       reach end of file -> rewinding
2024-09-10Z12:39:05       reach end of file -> rewinding
2024-09-10Z12:39:06       reach end of file -> rewinding
2024-09-10Z12:39:06       reach end of file -> rewinding
2024-09-10Z12:39:07       reach end of file -> rewinding
2024-09-10Z12:39:08       reach end of file -> rewinding
2024-09-10Z12:39:09       reach end of file -> rewinding
...

my config file is

{
    "general": {
        "dabmode": 1,
        "nbframes": 0,
        "syslog": false,
        "tist": false,
        "tist_offset": 0,
        "managementport": 12720
    },
    "remotecontrol": {
        "telnetport": 12721,
        "zmqendpoint": "tcp://lo:12722"
    },
    "ensemble": {
        "id": "0x2320",
        "ecc": "0xe1",
        "local-time-offset": "auto",
        "reconfig-counter": "hash",
        "label": "MyEnsemble",
        "shortlabel": "MyEn"
    },
    "services": {
        "alert-service": {
            "id": "0xD100",
            "label": "AlertService",
            "shortlabel": "Alert"
        }
    },
    "subchannels": {
        "alert-subchannel": {
            "type": "dabplus",
            "bitrate": 64,
            "id": 10,
            "protection": 1,
            "inputfile": "/home/agt/project/001_code/dab/makeSources/station_tianjin1.eti"

        }
    },
    "components": {
        "alert-component": {
            "service": "alert-service",
            "subchannel": "alert-subchannel"
        }
    },
    "announcements": {
        "alert-announcement": {
            "type": "alert",
            "label": "Emergency Alert",
            "message": "This is an emergency alert test message."
        }
    },
    "outputs": {
        "file": "file:///home/agt/project/001_code/dab/makeSources/mux_alert_output.eti"
    }
}

version is

(base) agt@agt-AUS:~/project/001_code/dab/makeSources$ sudo odr-dabmux
Welcome to ODR-DabMux v4.5.0, compiled at Sep 10 2024, 17:47:39

the 'station_tianjin1.eti' is created by 'odr-audioenc -i makeSources/tianjinguandian.wav -b 64 -o makeSources/station_tianjin1.eti' what is my problem in my config file? while run 'sudo odr-dabmux mux2.json', always shows 'reach end of file -> rewinding'.

thanks.

mpbraendli commented 2 months ago

Hello, this isn't an error. I just means ODR-DabMux reaches the end of station_tianjin1.eti.

Why did you call this file station_tianjin1.eti? It's not ETI, it's dabplus.

Also, you are not using throttling, and you are not setting nbframes: this will create a gigantic output ETI file!

Closing, because this is not an ODR-DabMod issue.