morrolinux / mpradio-py

Morrolinux's Pirate radio (PiFmAdv wrapper with Bluetooth and mp3 support) - Stream music to your car's FM radio or use it as a Bluetooth speaker via headphone jack
72 stars 11 forks source link

Songs are in slow motion #64

Open owenashurst opened 3 years ago

owenashurst commented 3 years ago

Just done a fresh install on a Raspberry Pi 3 and threw a few .mp3's into /pirateradio. The songs seem to be in really slow motion.

Here's the log from service mpradio status

● mpradio.service - Morrolinux Pirate Radio
   Loaded: loaded (/etc/systemd/system/mpradio.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2021-05-31 23:57:53 BST; 4s ago
 Main PID: 1147 (sudo)
    Tasks: 14 (limit: 2062)
   CGroup: /system.slice/mpradio.service
           ├─1147 sudo -E chrt -f 99 /home/pi/mpradio.py
           ├─1158 python3 /home/pi/mpradio.py
           ├─1161 sox -t raw -G -b 16 -e signed -c 2 -r 44100 - -t wav - compand 0.3,1 6:-70,-60,-20 -5 -90 0.2 treble -6
           ├─1162 sudo pi_fm_adv --freq 88.0 --ctl /tmp/rds_ctl --audio -
           └─1172 pi_fm_adv --freq 88.0 --ctl /tmp/rds_ctl --audio -

May 31 23:57:55 mpradio bash[1147]: broadcasting on FM 88.0
May 31 23:57:55 mpradio bash[1147]: storage_player playing: /pirateradio/my-song.mp3
May 31 23:57:55 mpradio sudo[1162]:     root : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/usr/local/bin/pi_fm_adv --freq 88.0 --ctl /tmp/rds_ctl --audio -
May 31 23:57:55 mpradio sudo[1162]: pam_unix(sudo:session): session opened for user root by (uid=0)
May 31 23:57:55 mpradio bash[1147]: Estimating duration from bitrate, this may be inaccurate
May 31 23:57:55 mpradio bash[1147]: Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
May 31 23:57:55 mpradio bash[1147]: Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
May 31 23:57:55 mpradio bash[1147]: Encoder did not produce proper pts, making some up.
Teknoist commented 3 years ago

add force_turbo=1 to boot/config and turn off gui