Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-03-09 Thread ralphy


ralphy wrote: 
> I'll create a pull request for the newer faad binaries for lms 8.0 in
> the next few days, provided no other issues arise.

The updated faad binaries are included in LMS 8.0 builds from March 3rd.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-26 Thread ralphy


Thanks for confirming.

I'll create a pull request for the newer faad binaries for lms 8.0 in
the next few days, provided no other issues arise.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-26 Thread rickwookie


ralphy wrote: 
> That's great news!
> 
> Just to confirm your rpi is running debian wheezy?
> 
> And what rpi model are you using?

Yes, Pi 2 B on Wheezy


Code:

root@SqueezePlug:~# cat /etc/debian_version
  7.11
  root@SqueezePlug:~# cat /etc/os-release
  PRETTY_NAME="Raspbian GNU/Linux 7 (wheezy)"
  NAME="Raspbian GNU/Linux"
  VERSION_ID="7"
  VERSION="7 (wheezy)"
  ID=raspbian
  ID_LIKE=debian
  ANSI_COLOR="1;31"
  HOME_URL="http://www.raspbian.org/";
  SUPPORT_URL="http://www.raspbian.org/RaspbianForums";
  BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs";
  root@SqueezePlug:~# uname -a
  Linux SqueezePlug 4.9.68-v7+ #1064 SMP Tue Dec 12 15:08:24 GMT 2017 armv7l 
GNU/Linux
  root@SqueezePlug:~# cat /proc/cpuinfo|grep Revision
  Revision: a01041
  




rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-26 Thread ralphy


That's great news!

Just to confirm your rpi is running debian wheezy?

And what rpi model are you using?



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-26 Thread rickwookie


Ok. Ignore all that. After another reboot and lots more playing of
various combinations of m4a and flac and stopping and turning off during
playback, etc. I can't get it to repeat that behaviour at all, so all is
good.

Consider the newer faad build worth including with LMS for sure.



rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-26 Thread rickwookie


NEW INFORMATION ALERT!!!

Playing around switching between the old and new build again... and now
it works!!!

Does the system somehow cache the faad binary??? Because all I did was
reboot the Pi between the last attempt and this one (to kill that 100%
cpu gobbling faad process).

Anyway, the headline is THE NEW BUILD FIXES WHATEVER THE PLAYBACK ISSUE
WITH THOSE ROGUE ITUNES TRACKS.

I wonder why the faad process(es) never terminate(s). And why are there
two faad processes running?

This is minutes after stopping all players, putting them all into
standby, and clearing all playlists (playback queues)...

29563


I appreciate this is a different issue. but now I not it's there
(gobbling up my Pi's CPU resources for no apparent reason) it would be
nice if there was a fix for that too.


+---+
|Filename: 2020-02-26 (5).png   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=29563|
+---+


rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-26 Thread rickwookie


If I try to "play" a duff track for about 30 seconds I get this:
https://pastebin.com/zxqpNhMu
and the play time counter seems to tick up as if it's playing, but
there's no sound (or movement of the VU visualiser). This is what I get
with the old faad too.
The faad processes seem to be still running after I stop playback (and
even switch the player into standby). With the new faad build, I get
this:

29561

and with the old bundled build swapped back in I get this (a while after
stopping attempted playback and switching transporter into standby):

29562


+---+
|Filename: 2020-02-26 (4).png   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=29562|
+---+


rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-26 Thread bpa


rickwookie wrote: 
> Bonkers that I must have looked at that directory a dozen times and not
> spotted it before (and I was looking, the make sure the owner was
> correct)!
> 
> Anyway, now I'm sort of back to where I was, in that I can play all the
> m4a files except the "duff" ones, which is odd since faad seems to now
> be working. I will check the logs again...

OK - the "new" faad executables in Ralphys download have all been tested
on LMS system so they work for most AAC/MPEG4 files - which is why I
expected finger trouble.

I'll need to check the various builds - on a Pi - I've been using an
x86.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-26 Thread rickwookie


bpa wrote: 
> Has the replacement file got all the same characteristics permissions/
> owner etc as other files in the Bin directory ?
> 
> Does WebUI setting/Advanced/Filetypes under AAC show faa/flac etc or
> disabled ?


Code:

root@SqueezePlug:/usr/share/squeezeboxserver/Bin/armhf-linux# ls -la
  total 3568
  drwxr-xr-x 2 root root   4096 Feb 26 13:11 .
  drwxr-xr-x 5 squeezeboxserver nogroup4096 Feb 18 12:53 ..
  -rw-rw-rw- 1 root root 433043 Feb 26 09:35 faad
  -rwxr-xr-x 1 root root 432828 Aug  3  2009 faad.old
  -rwxr-xr-x 1 root root 327308 Aug  3  2009 flac
  -rwxr-xr-x 1 root root 185947 Aug  3  2009 mac
  -rwxr-xr-x 1 root root1986144 Aug  3  2009 sox
  -rwxr-xr-x 1 root root 274232 Aug  3  2009 wvunpack
  


29558


+---+
|Filename: 2020-02-26 (2).png   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=29558|
+---+


rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-26 Thread bpa


rickwookie wrote: 
> To clarify (because I just re-read the start of my last post and perhaps
> I wasn't clear): replacing the faad I had with this newer build (in
> place) results in me now not being able to play ANY m4a track on the
> Transporter.

Has the replacement file got all the same characteristics permissions/
owner etc as other files in the Bin directory ?

Does WebUI setting/Advanced/Filetypes under AAC show faa/flac etc or
disabled ?



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-26 Thread rickwookie


bpa wrote: 
> Worse ?  Did it hang ?  If it didn't hang then it is a bit better !!
> 
> I think the problem is a WAV file header "data" chunk size is set to 
> zero bytes which is norm for streaming data but not for file players who
> see an zero length file and not an infinite length file.
> 
> As LMS uses it for transcoding - try it with LMS - I think it will work
> on the problem m4a files

I think going from not being able to play one particular album on the
Transporter to not being able to play ANY m4a file is definitely
"worse". ;)

Wrt faad itself not hanging now, perhaps that can be seen as an
improvement, but what's the new problem that's been introduced whereby
no m4a files will play (please see the pastebin in my last post as to
what happened when I tried to play the album)?



rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-26 Thread bpa


rickwookie wrote: 
> Worse, that doesn't even work with the "fixed" track, nor any other m4a
> track I have.

Worse ?  Did it hang ?  If it didn't hang then it is a bit better !!

I think the problem is a WAV file header "data" chunk size is set to 
zero bytes which is norm for streaming data but not for file players who
see an zero length file and not an infinite length file.

As LMS uses it for transcoding - try it with LMS - I think it will work
on the problem m4a files



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-26 Thread rickwookie


bpa wrote: 
> Yes. Try the armhf one from there.
> 
> https://sourceforge.net/projects/lmsclients/files/utility/faad/20170831-383f2b0/

Worse, that doesn't even work with the "fixed" track, nor any other m4a
track I have.

https://pastebin.com/bNEpvv7Z

If I ssh in to the Pi and do:
Code:

/usr/share/squeezeboxserver/Bin/armhf-linux/faad -w -f 1 
"/mnt/samba/Music/Albums/Various Artists - In the Night Garden/25 In the Night 
Garden Theme.m4a" >output.wav

I get:
Code:

 *** Ahead Software MPEG-4 AAC Decoder V2.7 **
  
  Build: Aug 31 2017
  Copyright 2002-2004: Ahead Software AG
  http://www.audiocoding.com
  Floating point version
  
  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License.
  
  **
  
  /mnt/samba/Music/Albums/Various Artists - In the Night Garden/25 In the Night 
Garden Theme.m4a file info:
  
  LC AAC  67.620 secs, 2 ch, 44100 Hz
  
  iTunNORM:  0280 0287 180F 1519 001E 0025 5BE7 
64E2 002D 002B
  iTunSMPB:   0840 0200 002D81C0   
     
  title: In the Night Garden Theme
  artist: Various Artists
  album_artist: Various Artists
  writer: Andrew Davenport
  album: In the Night Garden… a Musical Journey…The Album
  genre: Children's Music
  track: 25
  totaltracks: 25
  disc: 1
  totaldiscs: 1
  date: 2007-11-26T08:00:00Z
  compilation:
  unknown: d
  
  -
  | Config:  2 Ch   |
  -
  | Ch |Position|
  -
  | 00 | Left front |
  | 01 | Right front|
  -
  
  Decoding /mnt/samba/Music/Albums/Various Artists - In the Night Garden/25 In 
the Night Garden Theme.m4a took:  2.40 sec. 28.18x real-time.



It completes after just a couple of seconds, and I have output.wav with
11,935,788 bytes. Looking at output.wav with media info it shows:
Code:

General
  Complete name: \\RICKWOODNAS\media\output.wav
  Format   : Wave
  File size: 11.4 MiB
  Duration : 1 min 7 s
  Overall bit rate mode: Constant
  Overall bit rate : 1 411 kb/s
  
  Audio
  Format   : PCM
  Format settings  : Little / Signed
  Codec ID : 1
  Duration : 1 min 7 s
  Bit rate mode: Constant
  Bit rate : 1 411.2 kb/s
  Channel(s)   : 2 channels
  Sampling rate: 44.1 kHz
  Bit depth: 16 bits
  Stream size  : 11.4 MiB (100%)

This output.wav file won't play on my laptop (Windows 10) using either
Groove Music or Windows Media Player, but VLC does play it, and the
codec info windows from that is thus:29557
I've PM'd a link to output.wav to you and ralphy.


+---+
|Filename: 2020-02-26 (1).png   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=29557|
+---+


rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-25 Thread bpa

rickwookie wrote: 
> Happy to, if you could let me have your newly built faad (or point me to
> where I can download it) I’ll try it right away. I need the armhf
> binary.
> 
> Edit - is this the build you mean?:
> https://sourceforge.net/projects/lmsclients/files/utility/faad/20170831-383f2b0/faad-armhf/

Yes. Try the armhf one from there.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-25 Thread rickwookie


ralphy wrote: 
> I agree.  But it does appear from the 'github issue'
> (https://github.com/ralph-irving/faad2/issues/4) that there still is a
> problem with certain mp4 iplayer files.
> 
> Perhaps @rickwookie would try replacing the faad binary from my builds
> just as a check point to confirm.

Happy to, if you could let me have your newly built faad (or point me to
where I can download it) I’ll try it right away. I need the armhf
binary.



rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-25 Thread ralphy


bpa wrote: 
> I understand the difficulties but it's a pity to waste time identifying
> a problem when a solution already exists.
> The linux backwards compatibility is a real issue.

I agree.  But it does appear from the 'github issue'
(https://github.com/ralph-irving/faad2/issues/4) that there still is a
problem with certain mp4 iplayer files.

Perhaps @rickwookie would try replacing the faad binary from my builds
just as a check point to confirm.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-25 Thread bpa


ralphy wrote: 
> Yes, that would be great!
> 
> No reason that I can remember.
> 
> Testing all the binaries on the various platforms is very time consuming
> and usually ends up with complaints that the newer linux binaries end up
> not running on older linux based systems.

I understand the difficulties but it's a pity to waste time identifying
a problem when a solution already exists.
The linux backwards compatibility is a real issue.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-25 Thread ralphy


bpa wrote: 
> Why not include them as part of say LMS 8.* so at least get them tested
> in the field.

You're right, lms 8 is a good opportunities to upgrade them.  At this
point, I should build against the latest sources first.

However, I'll wait until you've had a chance to look at this issue.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-25 Thread ralphy


bpa wrote: 
> There is outstanding faad issue on github from a user concerned an
> iplayer program.  The OP's problem also looks like an iplayer program
> (Night garden from BBC).
> 
> Would like me to pin down the change that fixed the issue ?
> Is there any reason why faad was not updated in LMS ?

Yes, that would be great!

No reason that I can remember.

Testing all the binaries on the various platforms is very time consuming
and usually ends up with complaints that the newer linux binaries end up
not running on older linux based systems.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-25 Thread ralphy


There are 'newer faad binaries available'
(https://sourceforge.net/projects/lmsclients/files/utility/faad/20170831-383f2b0/)
which include the CVE updates.

Not all of these are built from the latest source, but all commits after
the CVE change are cosmetic or specific platform build script updates.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-25 Thread bpa


ralphy wrote: 
> There are 'newer faad binaries available'
> (https://sourceforge.net/projects/lmsclients/files/utility/faad/20170831-383f2b0/)
> which include the CVE updates.
> 
> Not all of these are built from the latest source, but all commits after
> the CVE change are cosmetic or specific platform build script updates.

Why not include them as part of say LMS 8.* so at least get them tested
in the field.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-25 Thread bpa


ralphy wrote: 
> I'm not aware of a specific fix for this issue, but there where several
> 'CVE patches applied in Aug 2017'
> (https://github.com/ralph-irving/faad2/commit/80b2a822794894fe41d4ae7caa9f708c458c2a3c)
> that would not be included in the LMS binary. 
> 
> Unfortunately, I was lazy and applied them all together.

There is outstanding faad issue on github from a user concerned an
iplayer program.  The OP's problem also looks like an iplayer program
(Night garden from BBC).

Would like me to pin down the change that fixed the issue ?
Is there any reason why faad was not updated in LMS ?



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-25 Thread ralphy


bpa wrote: 
> The faad which has a build date of Apr 6 2017 - which is distributed as
> part of LMS 8.* - hangs
> If I take a copy of faad and build from Ralphys github  (who maintains
> LMS tools such as faad) - no problem.
> 
> Could be the issue has been found but the fix has not been distributed
> for some reason.

I'm not aware of a specific fix for this issue, but there where several
'CVE patches applied in Aug 2017'
(https://github.com/ralph-irving/faad2/commit/80b2a822794894fe41d4ae7caa9f708c458c2a3c)
that would not be included in the LMS binary. 

Unfortunately, I was lazy and applied them all together.



Ralphy

*1*-Touch, *5*-Classics, *3*-Booms, *1*-UE Radio
'Squeezebox client builds'
(https://sourceforge.net/projects/lmsclients/files/) 'donations'
(https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=LL5P6365KQEXN&lc=CA&item_name=Squeezebox%20client%20builds¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted)
always appreciated.

ralphy's Profile: http://forums.slimdevices.com/member.php?userid=3484
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-25 Thread bpa


The faad which has a build date of Apr 6 2017 - which is distributed as
part of LMS 8.* - hangs
If I take a copy of faad and build from Ralphys github  (who maintains
LMS tools such as faad) - no problem.

Could be the issue has been found but the fix has not been distributed
for some reason.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-25 Thread bpa

rickwookie wrote: 
> Re sent the fixed link. I can't give the commands as such, since Mp3tag
> uses a GUI.
> 
> I've looked at a few more m4a files I have that include embedded art,
> and they ALL have that second "video" stream to store the artwork. I
> think it's the standard iTunes way of doing it. They all play nice with
> faad. Probably because (as you mentioned before) the audio is the first
> stream.
OK got the file and interesting the "mp4info" command works OK on the
fixed version so perhaps the message is pointing to the specific problem
which is breaking faad.

Last year I looked at this issue or something very similar in faad and
but it was hard going but I didn't have time to locate the issue just
that video track was the "source". I had only one bad sample and it
looks like I was mistaken about the real problem. However with a good
and bad example I can probably find the issue. Since iTunes provided the
file, it would be good to fix it once and for all as there'll be other
incidences.


Code:


  /mnt/hddrive/home/albums/TestMP4$ mp4info '24 Time to Go to Sleep.m4a' 
  mp4info version -r
  24 Time to Go to Sleep.m4a:
  ReadAtom: "24 Time to Go to Sleep.m4a": invalid atom size, extends outside 
parent atom - skipping to end of "cprt" "data" 23262 vs 23224
  ReadProperties: atom 'data' is too small; overrun at property: typeReserved 
(src/mp4atom.cpp,386)
  mp4info: can't open 24 Time to Go to Sleep.m4a
  
  /mnt/hddrive/home/albums/TestMP4$ mp4info '24 Time to Go to Sleep2.m4a' 
  mp4info version -r
  24 Time to Go to Sleep2.m4a:
  Track TypeInfo
  1 audio   MPEG-4 AAC LC, 115.797 secs, 127 kbps, 44100 Hz
  Name: Time to Go to Sleep
  Artist: Various Artists
  Composer: Andrew Davenport
  Encoded with: Lavf57.41.100
  Release Date: 2007-11-26T08:00:00Z
  Album: In the Night Garden… a Musical Journey…The Album
  Track: 24 of 25
  Disk: 1 of 1
  Genre: Children's Music
  Part of Compilation: yes
  Cover Art pieces: 1
  Album Artist: Various Artists
  




bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread rickwookie


bpa wrote: 
> It's late & i'm not doing anything else tonight -  your link to fixed
> file doesn't seem to work. So just give commands used to extract and
> reinsert the art.
> 
> edit:
> 
> the link has "..." in it so it isn't complete.

Re sent the fixed link. I can't give the commands as such, since Mp3tag
uses a GUI.

I've looked at a few more m4a files I have that include embedded art,
and they ALL have that second "video" stream to store the artwork. I
think it's the standard iTunes way of doing it. They all play nice with
faad. Probably because (as you mentioned before) the audio is the first
stream.



rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread rickwookie


bpa wrote: 
> If you give the command you used to reinsert the art,  I'll try to
> reproduce.  I've other tools to pull MPEG4 files apart down to the
> "atoms" as file structure is probably the underlying issue (the order of
> "atoms" can matter) .  But as I said in my previous post - the problem
> is a faad implementation not an invalid file format.

I sent you a private message with a link to the fixed file after the art
was re-inserted. That's the file that plays, but shows in ffmpeg that it
has the second (mjpeg) stream. I re-inserted using Mp3tag ('Mp3tag
download' (https://www.mp3tag.de/en/download.html))



rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread bpa


It's late & i'm not doing anything else tonight -  your link to fixed
file doesn't seem to work. So just give commands used to extract and
reinsert the art.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread bpa


One of these other tools which is old an date & bit unreliable but then
again it may be very picky gives this output 

Code:


  # mp4info  "24 Time to Go to Sleep.m4a"
  24 Time to Go to Sleep.m4a:
  ReadAtom: "24 Time to Go to Sleep.m4a": invalid atom size, extends outside 
parent atom - skipping to end of "cprt" "data" 23262 vs 23224
  ReadProperties: atom 'data' is too small; overrun at property: typeReserved 
(src/mp4atom.cpp,386)
  




bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread bpa


rickwookie wrote: 
> But that file plays fine on the Transporter via faad.

If you give the command you used to reinsert the art,  I'll try to
reproduce.  I've other tools to pull MPEG4 files apart down to the
"atoms" as file structure is probably the underlying issue (the order of
"atoms" can matter) .  But as I said in my previous post - the problem
is a faad implementation not an invalid file format.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread rickwookie

bpa wrote: 
> The problem is that it is not a embedded covert which is metadata.  It
> has been stored as a single stream which has a video and audio component
> - just like a full movie.  faad was initially just a AAC decoder from
> ADTS fromatted streams and then a partial MPEG4 format decoder element
> was added later but the decoding assumes just a simple audio stream.  So
> the problem is the limitation of the implementation of faad. The choice
> is to fix faad or use ffmpeg instead of faad.

But when I added the cover art back, it again stored it as a stream (as
can be seen by running ffmpeg on the new file):

Code:

C:\Users\Richard\Downloads\ffmpeg\bin>ffmpeg -i "..\..\..\OneDrive\Music\24 
Time to Go to Sleep2.m4a"
  ffmpeg version N-80955-g5939878 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.4.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads 
--enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib 
--enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc 
--enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb 
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus 
--enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr 
--enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab 
--enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack 
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs 
--enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil  55. 28.100 / 55. 28.100
  libavcodec 57. 50.100 / 57. 50.100
  libavformat57. 41.100 / 57. 41.100
  libavdevice57.  0.102 / 57.  0.102
  libavfilter 6. 47.100 /  6. 47.100
  libswscale  4.  1.100 /  4.  1.100
  libswresample   2.  1.100 /  2.  1.100
  libpostproc54.  0.100 / 54.  0.100
  [mov,mp4,m4a,3gp,3g2,mj2 @ 006124e0] stream 0, timescale not set
  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '..\..\..\OneDrive\Music\24 Time to 
Go to Sleep2.m4a':
  Metadata:
  major_brand : M4A
  minor_version   : 512
  compatible_brands: isomiso2
  track   : 24/25
  disc: 1/1
  compilation : 1
  genre   : Children's Music
  date: 2007-11-26T08:00:00Z
  encoder : Lavf57.41.100
  title   : Time to Go to Sleep
  composer: Andrew Davenport
  artist  : Various Artists
  album_artist: Various Artists
  album   : In the Night Garden a Musical JourneyThe Album
  Duration: 00:01:55.80, start: 0.00, bitrate: 137 kb/s
  Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 127 kb/s (default)
  Metadata:
  handler_name: SoundHandler
  Stream #0:1: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 600x533 
[SAR 72:72 DAR 600:533], 90k tbr, 90k tbn, 90k tbc
  At least one output file must be specified
  



See "Stream #0:1: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown),
600x533 [SAR 72:72 DAR 600:533], 90k tbr, 90k tbn, 90k tbc"

But that file plays fine on the Transporter via faad.



rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread bpa


rickwookie wrote: 
> Ok, I've run the file through ffmpeg (a newer version on my Windows
> machine) with the stream copy options as you suggested, and sure enough
> that file plays fine. However, I'm confused as to why what is
> essentially just the embedded cover art is causing the problem. Lots of
> the other m4a files I have include embedded cover art and they still
> play fine.
> 
> What I then tried is extracting the cover art from the original "bad"
> file (I use Mp3tag) as a jpeg, then adding it back to the new "good"
> file as the front cover image again with Mp3tag. Looking at that file
> then with ffmpeg I can see that once again I have the second stream
> (#0:1) as an mjpeg, but now, the file plays fine too! The filesize is
> ever so slightly smaller than the original now: 1,990,794 bytes vs
> 1,991,289 bytes (so just 505 bytes smaller).
> 
> I'm now going to try to use ffmpeg again to copy BOTH streams (if I can
> work out the command syntax) to see if that will strip out whatever
> those mystery 505 bytes are that is causing the tracks not to play nice
> with faad.
> 
> I've DM'd you a link to the fixed file for comparison

The problem is that it is not a embedded covert which is metadata.  It
has been stored as a single stream which has a video and audio component
- just like a full movie.  faad was initially just a AAC decoder from
ADTS fromatted streams and then a partial MPEG4 format decoder element
was added later but the decoding assumes just a simple audio stream.  So
the problem is the limitation of the implementation of faad. The choice
is to fix fadd or use ffmpeg instead of faad.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread rickwookie


Ok, I've run the file through ffmpeg (a newer version on my Windows
machine) with the stream copy options as you suggested, and sure enough
that file plays fine. However, I'm confused as to why what is
essentially just the embedded cover art is causing the problem. Lots of
the other m4a files I have include embedded cover art and they still
play fine.

What I then tried is extracting the cover art from the original "bad"
file (I use Mp3tag) as a jpeg, then adding it back to the new "good"
file as the front cover image again with Mp3tag. Looking at that file
then with ffmpeg I can see that once again I have the second stream
(#0:1) as an mjpeg, but now, the file plays fine too! The filesize is
ever so slightly smaller than the original now: 1,990,794 bytes vs
1,991,289 bytes (so just 505 bytes smaller).

I'm now going to try to use ffmpeg again to copy BOTH streams (if I can
work out the command syntax) to see if that will strip out whatever
those mystery 505 bytes are that is causing the tracks not to play nice
with faad.



rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread rickwookie


bpa wrote: 
> This is MPEG-4 - not thre same as tracks in a CD
> 
> This mean there is a stream which has a video track and an audio track -
> faad doesn't like "video" parts as MPEG4 support was grafted on whereas
> Touch has a proper MPEG4 decoder which can ignore video.

Oh I see, the problem is that there is a video track at all (albeit
presumable a single frame mjpeg holding the cover art), not that it's
the first "track". I was confused by:bpa wrote: 
> At first glance the problem file has embedded image as a track #0 &
> audio in track #1 and IIRC faad expects audio to be in track #0Since the 
> audio IS the first stream #0:0 and the mjpeg is #0:1.



rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread bpa


rickwookie wrote: 
> Where are you seeing that the audio is not the first track in the file?
> If I use another tool I have on windows (AVANTI GUI, basically a GUI for
> the ffmpeg command) and use my duff m4a as the input file it reads it
> as:

This is MPEG-4 - not thre same as tracks in a CD

This mean there is a stream which has a video track and an audio track -
faad doesn't like "video" parts as MPEG4 support was grafted on whereas
Touch has a proper MPEG4 decoder which can ignore video.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread bpa

The output of the conversion

Code:


  ffmpeg version 3.4.6-0ubuntu0.18.04.1 Copyright (c) 2000-2019 the FFmpeg 
developers
  built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
  configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu 
--incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping 
--enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa 
--enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca 
--enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype 
--enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame 
--enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus 
--enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine 
--enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh 
--enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx 
--enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 
--enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal 
--enable-opengl --enable-sdl2 --enable-libdc1394 --enable-lib
 drm --enable-libiec61883 --enable-chromaprint --enable-frei0r 
--enable-libopencv --enable-libx264 --enable-shared
  libavutil  55. 78.100 / 55. 78.100
  libavcodec 57.107.100 / 57.107.100
  libavformat57. 83.100 / 57. 83.100
  libavdevice57. 10.100 / 57. 10.100
  libavfilter 6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale  4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc54.  7.100 / 54.  7.100
  [mov,mp4,m4a,3gp,3g2,mj2 @ 0x56042a43b900] stream 0, timescale not set
  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '24 Time to Go to Sleep.m4a':
  Metadata:
  major_brand : M4A 
  minor_version   : 0
  compatible_brands: M4A mp42isom
  creation_time   : 2007-10-31T05:52:03.00Z
  iTunNORM:  0080 0075 42E4 42E4 0065 0065 
558B 5590 0063 0063
  iTunSMPB:   0840 02E0 004DE0E0  
      
  title   : Time to Go to Sleep
  artist  : Various Artists
  album_artist: Various Artists
  composer: Andrew Davenport
  album   : In the Night Garden… a Musical Journey…The Album
  genre   : Children's Music
  track   : 24/25
  disc: 1/1
  date: 2007-11-26T08:00:00Z
  compilation : 1
  purchase_date   : 2008-08-06 13:35:15
  replaygain_track_gain: +5.6 dB
  replaygain_track_peak: 0.64856
  replaygain_album_gain: -1.74 dB
  replaygain_album_peak: 0.971222
  Duration: 00:01:55.80, start: 0.047889, bitrate: 137 kb/s
  Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 127 kb/s (default)
  Metadata:
  creation_time   : 2007-10-31T05:52:03.00Z
  Side data:
  replaygain: track gain - 5.60, track peak - 0.15, album gain - 
-1.74, album peak - 0.23, 
  Stream #0:1: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 600x533 
[SAR 72:72 DAR 600:533], 90k tbr, 90k tbn, 90k tbc
  Output #0, mp4, to 'output.mp4':
  Metadata:
  major_brand : M4A 
  minor_version   : 0
  compatible_brands: M4A mp42isom
  creation_time   : 2007-10-31T05:52:03.00Z
  iTunNORM:  0080 0075 42E4 42E4 0065 0065 
558B 5590 0063 0063
  iTunSMPB:   0840 02E0 004DE0E0  
      
  title   : Time to Go to Sleep
  artist  : Various Artists
  album_artist: Various Artists
  composer: Andrew Davenport
  album   : In the Night Garden… a Musical Journey…The Album
  genre   : Children's Music
  track   : 24/25
  disc: 1/1
  date: 2007-11-26T08:00:00Z
  compilation : 1
  purchase_date   : 2008-08-06 13:35:15
  replaygain_track_gain: +5.6 dB
  replaygain_track_peak: 0.64856
  replaygain_album_gain: -1.74 dB
  replaygain_album_peak: 0.971222
  encoder : Lavf57.83.100
  Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, 
fltp, 127 kb/s (default)
  Metadata:
  creation_time   : 2007-10-31T05:52:03.00Z
  Side data:
  replaygain: track gain - 5.60, track peak - 0.15, album gain - 
-1.74, album peak - 0.23, 
  Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Press [q] to stop, [?] for help
  size=1819kB time=00:01:55.72 bitrate= 128.7kbits/s speed=8.01e+03x
  video:0kB audio:1798kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: 1.149824%
  




bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showth

Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread rickwookie


bpa wrote: 
> IIRC There was a "split" in the developers - so some distros have avconv
> others have ffmpeg.  Usually interchanegable except for some build
> options.
> 
> What happened to the remainder of the command in red ?
> 
> avconv -i "/mnt/samba/Music/Albums/Various Artists - In the Night
> Garden/24 Time to Go to Sleep.m4a"  -map 0 -map -0:v -c copy output.mp4 

I was just trying to see what ffmpeg reported the on the file (which it
will do if you don't specify an output file), but instead it errors on
the input, and so I get the same error if I supply the whole command.


Code:


  root@SqueezePlug:~# ffmpeg -i "/mnt/samba/Music/Albums/Various Artists - In 
the Night Garden/24 Time to Go to Sleep.m4a" -map 0 -map -0:v -c copy output.m4a
  ffmpeg version 0.8.21-6:0.8.21-0+deb7u1+rpi1, Copyright (c) 2000-2014 the 
Libav developers
  built on Oct 26 2017 14:35:48 with gcc 4.6.3
  The ffmpeg program is only provided for script compatibility and will be 
removed
  in a future release. It has been deprecated in the Libav project to allow for
  incompatible command line syntax improvements in its replacement called avconv
  (see Changelog for details). Please use avconv instead.
  [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1df3660] error reading header: -1094995529
  /mnt/samba/Music/Albums/Various Artists - In the Night Garden/24 Time to Go 
to Sleep.m4a: Invalid data found when processing input
  root@SqueezePlug:~#
  



I probably need to use a newer version of ffmpeg than comes with that
Raspberry Wheezy distro that my SqueezePlug is based on.

Where are you seeing that the audio is not the first track in the file?
If I use another tool I have on windows (AVANTI GUI, basically a GUI for
the ffmpeg command) and use my duff m4a as the input file it reads it
as:


Code:


  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:/Users/Richard/OneDrive/Music/
  24 Time to Go to Sleep.m4a':
  Duration: 00:01:55.80, start: 0.047889, bitrate: 137 kb/s
  Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp,
  127 kb/s (default)
  Stream #0:1: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown),
  600x533 [SAR 72:72 DAR 600:533], 90k tbr, 90k tbn, 90k tbc
  
--
  




rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread bpa


rickwookie wrote: 
> Hmm...

IIRC There was a "split" in the developers - so some distros have avconv
others have ffmpeg.  Usually interchanegable except for some build
options.

What happened to the remainder of the command in red ?

avconv -i "/mnt/samba/Music/Albums/Various Artists - In the Night
Garden/24 Time to Go to Sleep.m4a"  -map 0 -map -0:v -c copy output.mp4



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread rickwookie


Hmm...


Code:


  root@SqueezePlug:~# ffmpeg -i "/mnt/samba/Music/Albums/Various Artists - In 
the Night Garden/24 Time to Go to Sleep.m4a"
  ffmpeg version 0.8.21-6:0.8.21-0+deb7u1+rpi1, Copyright (c) 2000-2014 the 
Libav developers
  built on Oct 26 2017 14:35:48 with gcc 4.6.3
  The ffmpeg program is only provided for script compatibility and will be 
removed
  in a future release. It has been deprecated in the Libav project to allow for
  incompatible command line syntax improvements in its replacement called avconv
  (see Changelog for details). Please use avconv instead.
  [mov,mp4,m4a,3gp,3g2,mj2 @ 0x8d6660] error reading header: -1094995529
  /mnt/samba/Music/Albums/Various Artists - In the Night Garden/24 Time to Go 
to Sleep.m4a: Invalid data found when processing input
  root@SqueezePlug:~#
  

also

Code:


  root@SqueezePlug:~# avconv -i "/mnt/samba/Music/Albums/Various Artists - In 
the Night Garden/24 Time to Go to Sleep.m4a"
  avconv version 9.14-6:9.14-1rpi1rpi1, Copyright (c) 2000-2014 the Libav 
developers
  built on Jul 22 2014 15:08:12 with gcc 4.6 (Debian 4.6.3-14+rpi1)
  [mov,mp4,m4a,3gp,3g2,mj2 @ 0x151caa0] error reading header: -1052488119
  /mnt/samba/Music/Albums/Various Artists - In the Night Garden/24 Time to Go 
to Sleep.m4a: Invalid data found when processing input
  root@SqueezePlug:~#
  




rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread bpa


The following command will strip out the "video" channel which is
upsetting faad and create a file called output.mp4


Code:


  ffmpeg -i '24 Time to Go to Sleep.m4a'  -map 0 -map -0:v -c copy output.mp4
  



A more generic solution would be to use ffmpeg instead of faad to
transcode - it is bigger and uses more memory. For one file I suggest
clean the file up using ffmpeg and use faad to transcode - keeps your
system standard.



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread bpa


rickwookie wrote: 
> Well that had me foxed for a good while before I spotted the rogue "
> after faad.
Sorry the cut & paste missed one char.

Got the two files. At first glance the problem file has embedded image
as a track #0 & audio in track #1 and IIRC faad expects audio to be in
track #0



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread rickwookie


bpa wrote: 
> I'd be interested to examine the track in detail.  It;'s the only way to
> tackle these odd issues.,  MPEG4 has many options and so hard to say
> offhand what the issue could be.  You can use something like ffmpeg to
> re-encode without having to rerip but it is not a friendly tool.
> 
> I had hope some other detail might show up in the log - they didn't.
> 
> It looks like the transcode faad/flac just stops without transcoding any
> audio.
> 
> If the problem is faad - it may produce an error message if run from a
> shell prompt with a command such as 
> > 
Code:

  >   > 
  > /usr/share/squeezeboxserver/Bin/armhf-linux/faad" -w -f 1 
"/mnt/samba/Music/Albums/Various Artists - In the Night Garden/24 Time to Go to 
Sleep.m4a"  >output.wav
  > 

> > 

Well that had me foxed for a good while before I spotted the rogue "
after faad. So assuming the command is 
Code:

/usr/share/squeezeboxserver/Bin/armhf-linux/faad -w -f 1 
"/mnt/samba/Music/Albums/Various Artists - In the Night Garden/24 Time to Go to 
Sleep.m4a"  >output.wav

The command never finishes, and if I force quit it with Ctrl-C,
output.wav is zero bytes.



rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread bpa


rickwookie wrote: 
> I'm happy to DM you a link to one of the curious tracks if you're
> interested, but I think the sensible thing for me to do in the
> circumstances is just re-encode that one album and see if it fixes it,
> because clearly there's nothing wrong with my transcoding settings if
> they work for every other m4a I have.
I'd be interested to examine the track in detail.  It;'s the only way to
tackle these odd issues.,  MPEG4 has many options and so hard to say
offhand what the issue could be.  You can use something like ffmpeg to
re-encode without having to rerip but it is not a friendly tool.

I had hope some other detail might show up in the log - they didn't.

It looks like the transcode faad/flac just stops without transcoding any
audio.

If the problem is faad - it may produce an error message if run from a
shell prompt with a command such as 

Code:


  /usr/share/squeezeboxserver/Bin/armhf-linux/faad" -w -f 1 
"/mnt/samba/Music/Albums/Various Artists - In the Night Garden/24 Time to Go to 
Sleep.m4a"  >output.wav
  




bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread rickwookie


I'm happy to DM you a link to one of the curious tracks if you're
interested, but I think the sensible thing for me to do in the
circumstances is just re-encode that one album and see if it fixes it,
because clearly there's nothing wrong with my transcoding settings if
they work for every other m4a I have.



rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread rickwookie


bpa wrote: 
> MPEG4 is the most generic description.  It doesn't tell how file is
> structured.  In LMS there can be an additional  qualification "leading
> audio" which gives a hint at structure.
> 
> Your problem is odd - usually files can be played using faad but fail
> when playing natively on Touch. 
> 
> Can you get a log of LMS trying to play the file to transporter with
> logging player.source set to INFO

https://pastebin.com/B9SQEkRG



rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread bpa


rickwookie wrote: 
> File Format: MPEG-4
> 
> That's the same as what mediainfo reports (see earlier screenie).

MPEG4 is the most generic description.  It doesn't tell how file is
structured.  In LMS there can be an additional  qualification "leading
audio" which gives a hint at structure.

Your problem is odd - usually files can be played using faad but fail
when playing natively on Touch. 

Can you get a log of LMS trying to play the file to transporter with
logging player.source set to INFO



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread rickwookie


bpa wrote: 
> The problem is not the codec AAC but the file structure MPEG4 (aka mp4).
> 
> faad support some but not all the possibles variants of MPEG4.
> 
> On LMS WebUI when you drill down onto the problem track - what does LMS
> say the "File format" is  (this is on the same display with "View tags"
> as last entry) ?

File Format: MPEG-4

That's the same as what mediainfo reports (see earlier screenie).



rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread bpa


rickwookie wrote: 
> Yes, that's transcoding fine and plays on my Transporter.
> 
> I notice that codec type is mentioned here (albeit as the "working"
> codec): https://github.com/ralph-irving/faad2/issues/4

The problem is not the codec AAC but the file structure MPEG4 (aka
mp4).

faad support some but not all the possibles variants of MPEG4.

On LMS WebUI when you drill down onto the problem track - what does LMS
say the "File format" is  (this is on the same display with "View tags"
as last entry) ?



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-24 Thread rickwookie


bpa wrote: 
> m4a files can have many reasons not to be  transcoded by faad.
> 
> Can you confirm that faad and flac work OK on your Pi. Test by playing a
> http/AAC stream 
> http://www.somafm.com/illstreet64.pls

Yes, that's transcoding fine and plays on my Transporter.
29525

I don't why it's not working with the tracks I'm trying to play.
29526


+---+
|Filename: 2020-02-24 (1).jpg   |
|Download: http://forums.slimdevices.com/attachment.php?attachmentid=29526|
+---+


rickwookie's Profile: http://forums.slimdevices.com/member.php?userid=6397
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter


Re: [SlimDevices: SqueezeCenter] Problem getting m4a to play (trancoded?) on Transporter

2020-02-23 Thread bpa


m4a files can have many reasons not to be  transcoded by faad.

Can you confirm that faad and flac work OK on your Pi. Test by playing a
http/AAC stream 
http://www.somafm.com/illstreet64.pls



bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=111719

___
Squeezecenter mailing list
Squeezecenter@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/squeezecenter