-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TAP feature not working properly #262
Comments
Please provide an example TAP |
This is my TAP content:
The mp3 has 82MB size and a playtime of 1h 29m 34sec
When placing the tag on the box, no error-sound occurs, just blinking red LED ... then the box switches off (after ~15sec). |
I can confirm exactly the same behaviour. Tried it with different input files, mp3 and m4a (aac). Toniebox: CC3235 The strange thing is that Teddycloud itself seems to work without problems. It transcodes the src file, first to *.taf.tmp and then renames it to taf when ready. So when I turn on the Toniebox again and put the same tag on it again, it starts playing without a problem (incl. downloading of the converted taf). But I have to wait until the transcoding is finished (by checking the logs). If I turn the box on again too quickly, the tmp file will be deleted and it starts from the beginning (incl. turning off/crashing) Sometimes there is an error at the end saying
Teddycloud Log:
|
As long as the converting TAF.tmp file is not bigger than 25 MB. In my case (1,5h audio) the TAF encoding aborts on ~25 MB. Encoding same mp3 (from above) with teddycloud-cli all went well. Target TAF size is ~80 MB. |
I've just experimenting with TAPs...and experiencing some strange behaviour...one of those is, when TAP starts encoding into its corresponding *.taf.tmp file, the box blinks red and shutdown emidently. It seems that the content of *taf.tmp is not sent to the box while encoding? Since the conversion will abort when I just restart the box and try to play the TAP again, I just let the box shutdown (waiting for finishing conversion). Which is fine for short content. But When it is a longer content, the converions aborts either, caused by time out...since nobdy is consuming the stream? So it seems that I cant consume the stream befor its conversion is done, but I cant complete the conversion due to not consuming it.
This is the corresponding docker log when aborting conversion by time out while box was / is shutted down:
ERROR|handler_cloud.c:0667:handleCloudContent| >> file /teddycloud/data/library/by/tapID/musikvideos.taf.tmp not available or not send, error=Timeout [220]... 2024-11-06T17:52:27.508849322Z INFO |toniefile.c:0778:ffmpeg_stream| Encoding aborted, active flag set to false 2024-11-06T17:52:27.508884544Z [aost#0:0/pcm_s16le @ 0x55563df0cc60] Error submitting a packet to the muxer: Broken pipe 2024-11-06T17:52:27.508889285Z [out#0/s16le @ 0x55563dc68320] Error muxing a packet 2024-11-06T17:52:27.508997821Z [out#0/s16le @ 0x55563dc68320] Error writing trailer: Broken pipe 2024-11-06T17:52:27.509003209Z [out#0/s16le @ 0x55563dc68320] Error closing file: Broken pipe 2024-11-06T17:52:27.509068838Z [out#0/s16le @ 0x55563dc68320] video:0kB audio:234109kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown 2024-11-06T17:52:27.509074579Z size= 234101kB time=00:20:48.95 bitrate=1535.5kbits/s speed=13.6x 2024-11-06T17:52:27.511752016Z Conversion failed! 2024-11-06T17:52:27.523801214Z INFO |toniefile.c:0622:ffmpeg_decode_audio_end| Stopped ffmpeg with code=57344... 2024-11-06T17:52:27.523820881Z ERROR|toniefile.c:0795:ffmpeg_stream| Could not close FFmpeg pipe error=Operation aborted [15] 2024-11-06T17:52:27.546289533Z ERROR|toniefile.c:0814:ffmpeg_stream| TAF encoding failed, deleting TAF
Another user in telegram had similar if not same experience:
Hello, I have tried to combine several TAFs via a TAP (playlist). As soon as I assign this TAP to a TAG, a *.taf.tmp is created when the TAG is set up. I can play this via the browser. However, the Toniebox flashes red several times and then switches off.
Is there anything I can do / adjust to make conversion not abort / timed out ?
If there is anything I can provide you with, just tell me.
Edit:
Toniebox is cc3200
TeddyCloud version is 0.6.2 (203f12d) ubuntu linux aarch64
docker host is raspi5-8gb
The text was updated successfully, but these errors were encountered: