ogg encoder does not start after stopping

Dimych
Posts: 13
Joined: Tue Feb 05, 2019 6:09 am

ogg encoder does not start after stopping

Postby Dimych » Sat Jul 25, 2020 1:07 pm

Hi!

I'm trying to restart playback with an ogg encoder:

Code: Select all

    
    ogg_decoder_cfg_t cfg = DEFAULT_OGG_DECODER_CONFIG();
    decoder = ogg_decoder_init(&cfg);
    ...
    audio_pipeline_stop(pipeline_play);
    audio_pipeline_wait_for_stop(pipeline_play);
    audio_pipeline_terminate(pipeline_play);

    audio_element_set_uri(http_stream_reader, uri);
    //audio_element_reset_state(decoder);
    audio_pipeline_reset_ringbuffer(pipeline_play);
    audio_pipeline_reset_elements(pipeline_play);
    audio_pipeline_run(pipeline_play);
I get the next message and the next file doesn't play ...

Code: Select all

I (7151) AUDIO_ELEMENT: [dec-0x3f820404] Element task created
I (7161) AUDIO_ELEMENT: [i2s-0x3f820140] Element task created
I (7161) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:358, MEM Total:4100604 Bytes, Inter:108308 Bytes, Dram:104960 Bytes

I (7171) AUDIO_ELEMENT: [htt] AEL_MSG_CMD_RESUME,state:1
I (7181) AUDIO_ELEMENT: [dec] AEL_MSG_CMD_RESUME,state:1
I (7191) VORBIS_DECODER: VORBIS codec
I (7191) VORBIS_DECODER: one new song start

I (7201) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:1
I (7201) I2S_STREAM: AUDIO_STREAM_WRITER
I (7211) AUDIO_PIPELINE: Pipeline started
I (9051) HTTP_STREAM: total_bytes=9444425
I (12201) HTTP_CLOUD_CLIENT: Notification of a time synchronization event
I (12201) HTTP_CLOUD_CLIENT: The current date/time is: Sat Jul 25 13:02:55 2020
W (17211) AUDIO_ELEMENT: OUT-[dec] AEL_IO_ABORT
W (17211) VORBIS_DECODER: error  output -3, 4096
I (17211) VORBIS_DECODER: Closed
I (17331) AUDIO_THREAD: The htt task allocate stack on external memory
I (17331) AUDIO_ELEMENT: [htt-0x3f8202a4] Element task created
I (17331) AUDIO_THREAD: The dec task allocate stack on external memory
I (17341) AUDIO_ELEMENT: [dec-0x3f820404] Element task created
I (17341) AUDIO_ELEMENT: [i2s-0x3f820140] Element task created
I (17351) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:358, MEM Total:4096144 Bytes, Inter:103328 Bytes, Dram:99980 Bytes

I (17361) AUDIO_ELEMENT: [htt] AEL_MSG_CMD_RESUME,state:1
I (17371) AUDIO_ELEMENT: [dec] AEL_MSG_CMD_RESUME,state:1
I (17371) VORBIS_DECODER: VORBIS codec
I (17381) VORBIS_DECODER: new song resume
E (17381) VORBIS_DECODER: pause resume info NULL					<<-------------------------------------------------------------
E (17391) AUDIO_ELEMENT: [dec] AEL_STATUS_ERROR_OPEN,-1
I (17391) AUDIO_ELEMENT: [i2s] AEL_MSG_CMD_RESUME,state:1
W (17401) AUDIO_ELEMENT: [dec] AEL_MSG_CMD_ERROR,6
I (17411) VORBIS_DECODER: Closed
I (17401) I2S_STREAM: AUDIO_STREAM_WRITER
W (17421) AUDIO_ELEMENT: IN-[i2s] AEL_IO_ABORT
I (17401) AUDIO_PIPELINE: Pipeline started
If you use an mp3 decoder, then everything is ok!

c:\esp\esp-adf>git describe --tags --dirty
v2.1-dirty
c:\esp\esp-idf>git describe --tags --dirty
v4.0.1-dirty

fjullien
Posts: 1
Joined: Tue Aug 03, 2021 1:53 pm

Re: ogg encoder does not start after stopping

Postby fjullien » Tue Aug 03, 2021 2:08 pm

Did you find a solution to this problem ?

Who is online

Users browsing this forum: No registered users and 7 guests