vysheng / tg

telegram-cli
GNU General Public License v2.0
6.49k stars 1.54k forks source link

Sending MP3s shows 1:40 as length #745

Open Brawl345 opened 9 years ago

Brawl345 commented 9 years ago

When I send a MP3 through send_file, Telegram always shows "1:40" as length, but the mp3 is longer. This does not happen when I send it through a LUA script.

LukeLR commented 9 years ago

Are you sure your MP3-Files are correct? Sometimes they show less duration than they actually are. Check in a standard media player application.

Brawl345 commented 9 years ago

Yes, all files I tested were ~3 minutes long.

LukeLR commented 9 years ago

And they show up as 3 minutes long in other applications?

On 18 Aug 2015, at 11:27 pm, Andreas Bielawski notifications@github.com wrote:

Yes, all files I tested were ~3 minutes long.

— Reply to this email directly or view it on GitHub.

Brawl345 commented 9 years ago

Yes, even when I play them in Telegram Desktop (there is a blue bar over the group name, like a mini mp3 player)

LukeLR commented 9 years ago

Okay, then it's clearly not the MP3-File. Where do they show up as 1:40? In tg-cli?

On 19 Aug 2015, at 12:05 pm, Andreas Bielawski notifications@github.com wrote:

Yes, even when I play them in Telegram Desktop (there is a blue bar over the group name, like a mini mp3 player)

— Reply to this email directly or view it on GitHub.

Brawl345 commented 9 years ago

In Telegram Desktop and in Telegram for Android. See here: 1 The song is 03:32 long. When I send it through TDesktop, it shows the right length.

LukeLR commented 9 years ago

ah, okay, I Understand…

On 19 Aug 2015, at 3:20 pm, Andreas Bielawski notifications@github.com wrote:

In Telegram Desktop and in Telegram for Android. See here:

The song is 03:32 long. When I send it through TDesktop, it shows the right size.

— Reply to this email directly or view it on GitHub.

jacboy commented 9 years ago

Something new here?

dausruddin commented 8 years ago

I have same issue. Uploaded a few seconds long mp3 file, but telegram showing 1:40.

jegue commented 8 years ago

@Brawl345 How do you send using a LUA script? I have the same problem shows 1:40 as length. Thanks

dendendd commented 7 years ago

Any updates on how to get around this? Thanks!