No Tracklist using Audioencoder

After setting up the Teddycloud i tried a short test for a creative Tonie to add multiple files. I put multiple Files into the Audioencoder. After some (long) time i ended up with one taf i linked to the tonie. After checking i found out, that i cant skip to another Track.

In my understanding adding multiple files to the TAF should lead to multiple Tracks that can be skipped.
Sadly this seems not to be the case.

Did i missunderstand the audio encoder or where did i move wrong?

Log i got from portainer testing th same with just 2 files (to save the time…):

INFO |handler_api.c:2026:handleApiPcmUpload| got name 'Test.taf'
INFO |handler_api.c:2034:handleApiPcmUpload| got audioId '396405594'
INFO |handler_api.c:1844:taf_encode_start| [TAF] Start encoding to /teddycloud/data/library/Test.taf
INFO |handler_api.c:1845:taf_encode_start| [TAF]   first file: Folge 010 - Die Ballon-Wettfahrt - Paw Patrol.mp3
INFO |toniefile.c:0139:toniefile_create| Create TAF: /teddycloud/data/library/Test.taf
INFO |toniefile.c:0394:toniefile_new_chapter| new chapter at 0x00000000
INFO |handler_api.c:1913:taf_encode_end| [TAF]   end of file
INFO |server_helpers.c:0484:multipart_handle| Received file 'pcmData.0.pcm'
INFO |handler_api.c:1857:taf_encode_start| [TAF]   new chapter for Folge 011 - Hunde Im Schnee - Paw Patrol.mp3
INFO |toniefile.c:0394:toniefile_new_chapter| new chapter at 0x00000A3F
INFO |handler_api.c:1913:taf_encode_end| [TAF]   end of file
INFO |server_helpers.c:0484:multipart_handle| Received file 'pcmData.1.pcm'
INFO |handler_api.c:2102:handleApiPcmUpload| [TAF] Ended encoding

From what i understand from the logs there should be 2 chapters.

Also i tried running the same operation locally on my desktop using the teddycloud.exe in cmd in order to see if the chapters get created.
Sadly i was not able to use a whole directory with cmd run as Admin:

teddycloud.exe --encode “C:\PawPatrolTest\test.taf” “C:\PawPatrolTest\Test”

Error opening input: Permission denied
Error opening input file C:\PawPatrolTest\Test.
Error opening input files: Permission denied

My expectation would have been to end up with 1 .taf in folder C:\PawPAtrolTest named test.taf using the files provided in Folder *\Test

Also trying a single file did not work:

teddycloud.exe --encode C:\PawPatrolTest\1.taf C:\PawPatrolTest\1.mp3

i end up with

 Error submitting a packet to the muxer: Broken pipe
    Last message repeated 1 times
[out#0/s16le @ 00000202177c6f80] Error muxing a packet
[out#0/s16le @ 00000202177c6f80] Task finished with error code: -32 (Broken pipe)
[out#0/s16le @ 00000202177c6f80] Terminating thread with return code -32 (Broken pipe)
[out#0/s16le @ 00000202177c6f80] Error writing trailer: Broken pipe
[out#0/s16le @ 00000202177c6f80] Error closing file: Broken pipe
[out#0/s16le @ 00000202177c6f80] video:0KiB audio:69KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown
size=      64KiB time=00:00:00.57 bitrate= 908.4kbits/s speed=13.2x
Conversion failed!
INFO |toniefile.c:0627:ffmpeg_decode_audio_end()| Stopped ffmpeg with code=-32...
ERROR|toniefile.c:0800:ffmpeg_stream()| Could not close FFmpeg pipe error=Operation aborted [15]
ERROR|toniefile.c:0819:ffmpeg_stream()| TAF encoding failed, deleting TAF

Skipping Tracks only Works if the file is completely downloaded to the box, so I assume the file download was not finished.

If you use the web gui audio encoder every source file will get its own chapter.

The other examples of using teddycloud.exe to encode… the first one is an incorrect call I would say, the second one I don’t know what’s went wrong

Hi henryk,

The Tonie was on the box until finished blinking and stay solid green.
I also retried with other MP3’s. Same effect. The Tracklist stays empty after download finished.

But you are right, that it seems i can skip this one (even if no tracklist is shown in Teddycloud)

I removed all files from “content” and even the tonie itself before retrying. Is it “normal” to have a empty tracklist in the cloud for the creative tonie?

Never the less. I will retry with the old file and see if skipping is also possible.

For the encode calls…
It seems dir is not supported? I just saw an old video from gt-blog where a whole dir was used and thought the updated CLI of teddycloud should be able to handle a dir as well?

Anyway i will try to get it working with maybe another single file or try with the ffmpeg line displayed when starting and try to figure out why it may crashes. Maybe the ffmpeg documentation can lead me in the right direction.

What do you mean with the tracklist stays empty? There is no automatism for that. Trackinformstion must be added manually.

1 Like

Then i missunderstood the log with “adding new chapter”. I thought it will get added to the “i” when you open the tonie. Thanks for the clarification. So i just had wrong expectation. I will try to find information how the Trackinformation for the “i” (
image
) can be maintained then.
Thanks alot !

Also the clap on the other files works. So maybe i didnt clap hard enough in the afternoon.

You need to add the information to the tonies.custom.json

There is a documentary in the wiki

1 Like

Thanks. I was using the search with Tracklist and didnt find. Found it now.