Transcoding from FLAC to OGG for your Android FAIL

Need help? Post your questions here.

Moderator: moderators

Postby alphawave7 » Fri Jan 07, 2011 12:31 am

"As someone who is unfamiliar with OGG, can I ask why you would use it on the Android as opposed to just transcoding to mp3? "

I would like to know the answer; alas, it elicited a defensive response. :| Is it just a bandwidth/bitbucket saver?
alphawave7
 
Posts: 1042
Joined: Thu Feb 11, 2010 9:54 am

Postby tschan » Fri Jan 07, 2011 12:39 am

I take the liberty of quoting myself:
tschan wrote:I've determined through double blind testing that I can reach near transparency with OGG at 64 kbit/s. With MP3 I would need at least double that. And because my data plan is capped at 300 mb I want to save as much bandwidth as I can.

:)
tschan
 
Posts: 16
Joined: Sat Jan 01, 2011 9:43 pm

Postby alphawave7 » Fri Jan 07, 2011 12:50 am

Ah..I missed the part where you 'said' you ABX'd with 128kbps MP3. My collection is all -alt.preset standard/extreme as I ABX'd only vbr MP3 from EAC/LAME encodes, and decided I couldn't tell the difference btw. a 256vbr vs. 225, but could from 225 vs. 192. Standard gets you a hair above 192 average. which was good enough for all that old classic rock/punk/metal anyway. :p My Jazz/Singer-songwriter/New Age/DownTempo gets more bits (extreme). :)

edit: Oh! only 300MB! :shock:
Last edited by alphawave7 on Fri Jan 07, 2011 12:54 am, edited 1 time in total.
alphawave7
 
Posts: 1042
Joined: Thu Feb 11, 2010 9:54 am

Postby GJ51 » Fri Jan 07, 2011 12:51 am

Thanks tschan, your answer sheds light on the subject and I appreciate it when users share their information. It's how we all learn more and benefit from an open exchange of information in the forum. I'll try to rip a cd or two to ogg to learn a bit more about it.

Sindre made a post that he change the player to read the file extension, which means that if the file is in a format that JW can read, it will play without transcoding. I'm not sure if it will fix your particular issue, but it's worth a try. Just go to the player menu in settings, pull up your Android player and uncheck the box for the oog transcoding. I just tried the same concept with an mp4 movie file and was happy to see that it works for the mp4 format.

Please let us know if it fixes your problem.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby tschan » Fri Jan 07, 2011 12:22 pm

Well, most of my music is in a lossless format for archiving. I also rip cds only once to flac for storage purposes. I'm actually pretty anal about the quality of my music, but for listening in a noisy environment via headphones a Vorbis encode (with this particular encoder that has been optimized for low bitrate encodes) at 64 kbit/s is more than enough.

@GJ51: I understand that the JW player is the flash player of the web interface and has nothing to do with playback in the Android app. So the mentioned change should not affect me at all, or am I wrong?
tschan
 
Posts: 16
Joined: Sat Jan 01, 2011 9:43 pm

My apologies, but this is off topic

Postby papatel » Fri Jan 07, 2011 8:19 pm

Good to know that people are learning the advantages of ogg over mp3, but this is not why I started the thread. Sorry if I insulted anyone, but can we get back on track and try to debug? Please feel free to create another thread "Why you should stream ogg instead of X on your mobile device". This would help because more people will have this issue and try to contribute to a fix :)

I don't mean to complain, even with ogg streams breaking when you lose connection, this is still the best music streaming option for my android hands down.

I've got my nexus one and subsonic server waiting for instructions so I can post some sort of trace of the error.
papatel
 
Posts: 21
Joined: Fri Jul 09, 2010 12:10 am

Postby alphawave7 » Fri Jan 07, 2011 8:34 pm

Go to the market, and download 'SendLog'...it takes various snapshots of the Nexus's state, and you can email them to Sindre...he can likely tell you which formats are most useful for him. :)
alphawave7
 
Posts: 1042
Joined: Thu Feb 11, 2010 9:54 am

Postby alphawave7 » Fri Jan 07, 2011 8:42 pm

Here's the low-down on SendLog:
http://l6n.org/android/sendlog.shtml
alphawave7
 
Posts: 1042
Joined: Thu Feb 11, 2010 9:54 am

Error trace

Postby papatel » Mon Jan 10, 2011 8:09 am

thanks for the sendlog advice. Just used it to get a trace of the ogg playback failure (after an interrupted stream, intentional wifi turnoff while streaming...).

01-09 23:56:28.896 I/DownloadServiceImpl( 2069): Buffering /mnt/sdcard/subsonic/music/Armin van Buuren/A State of Trance 2006/01-Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix].0.partial.ogg (6109184/6091776, false)
01-09 23:56:28.906 I/DownloadServiceImpl( 2069): DOWNLOADING -> IDLE (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:28.966 I/DownloadServiceImpl( 2069): IDLE -> PREPARING (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:28.976 I/DownloadServiceImpl( 2069): PREPARING -> PREPARED (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:28.976 I/DownloadServiceImpl( 2069): Restarting player from position 39542
01-09 23:56:28.976 E/VorbisPlayer( 58): ov_time_seek() returned -131
01-09 23:56:28.976 E/MediaPlayer( 2069): error (-131, 0)
01-09 23:56:28.976 E/MediaPlayer( 2069): Error (-131,0)
01-09 23:56:28.986 E/DownloadServiceImpl( 2069): Error playing "Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]"
01-09 23:56:28.986 E/DownloadServiceImpl( 2069): java.lang.Exception: MediaPlayer error: -131 (0)
01-09 23:56:28.986 E/DownloadServiceImpl( 2069): at net.sourceforge.subsonic.androidapp.service.DownloadServiceImpl$1.onError(DownloadServiceImpl.java:84)
01-09 23:56:28.986 E/DownloadServiceImpl( 2069): at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:1264)
01-09 23:56:28.986 E/DownloadServiceImpl( 2069): at android.os.Handler.dispatchMessage(Handler.java:99)
01-09 23:56:28.986 E/DownloadServiceImpl( 2069): at android.os.Looper.loop(Looper.java:123)
01-09 23:56:28.986 E/DownloadServiceImpl( 2069): at android.app.ActivityThread.main(ActivityThread.java:4627)
01-09 23:56:28.986 E/DownloadServiceImpl( 2069): at java.lang.reflect.Method.invokeNative(Native Method)
01-09 23:56:28.986 E/DownloadServiceImpl( 2069): at java.lang.reflect.Method.invoke(Method.java:521)
01-09 23:56:28.986 E/DownloadServiceImpl( 2069): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
01-09 23:56:28.986 E/DownloadServiceImpl( 2069): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
01-09 23:56:28.986 E/DownloadServiceImpl( 2069): at dalvik.system.NativeStart.main(Native Method)
01-09 23:56:28.986 E/MediaPlayer( 2069): start called in state 0
01-09 23:56:28.986 E/MediaPlayer( 2069): error (-38, 0)
01-09 23:56:28.986 I/DownloadServiceImpl( 2069): PREPARED -> STARTED (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:28.986 D/CancellableTask( 2069): Stopping thread for BufferTask (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:28.986 I/DownloadServiceImpl( 2069): STARTED -> IDLE (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:28.986 I/DownloadServiceImpl( 2069): IDLE -> COMPLETED (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:28.986 I/DownloadServiceImpl( 2069): Requesting restart from 39542 of 458000
01-09 23:56:28.986 D/CancellableTask( 2069): Cancelling BufferTask (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:28.986 I/DownloadServiceImpl( 2069): COMPLETED -> IDLE (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:29.006 D/CancellableTask( 2069): Starting thread for BufferTask (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:29.006 I/DownloadServiceImpl( 2069): IDLE -> DOWNLOADING (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:29.006 I/DownloadServiceImpl( 2069): Buffering /mnt/sdcard/subsonic/music/Armin van Buuren/A State of Trance 2006/01-Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix].0.partial.ogg (6182912/6730752, false)
01-09 23:56:30.006 I/DownloadServiceImpl( 2069): Buffering /mnt/sdcard/subsonic/music/Armin van Buuren/A State of Trance 2006/01-Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix].0.partial.ogg (6772736/6730752, false)
01-09 23:56:30.006 I/DownloadServiceImpl( 2069): DOWNLOADING -> IDLE (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:30.066 I/DownloadServiceImpl( 2069): IDLE -> PREPARING (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:30.066 I/DownloadServiceImpl( 2069): PREPARING -> PREPARED (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:30.066 I/DownloadServiceImpl( 2069): Restarting player from position 39542
01-09 23:56:30.066 E/VorbisPlayer( 58): ov_time_seek() returned -131
01-09 23:56:30.066 E/MediaPlayer( 2069): error (-131, 0)
01-09 23:56:30.066 E/MediaPlayer( 2069): Error (-131,0)
01-09 23:56:30.076 E/MediaPlayer( 2069): start called in state 0
01-09 23:56:30.076 E/MediaPlayer( 2069): error (-38, 0)
01-09 23:56:30.076 I/DownloadServiceImpl( 2069): PREPARED -> STARTED (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:30.076 D/CancellableTask( 2069): Stopping thread for BufferTask (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:30.076 E/DownloadServiceImpl( 2069): Error playing "Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]"
01-09 23:56:30.076 E/DownloadServiceImpl( 2069): java.lang.Exception: MediaPlayer error: -131 (0)
01-09 23:56:30.076 E/DownloadServiceImpl( 2069): at net.sourceforge.subsonic.androidapp.service.DownloadServiceImpl$1.onError(DownloadServiceImpl.java:84)
01-09 23:56:30.076 E/DownloadServiceImpl( 2069): at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:1264)
01-09 23:56:30.076 E/DownloadServiceImpl( 2069): at android.os.Handler.dispatchMessage(Handler.java:99)
01-09 23:56:30.076 E/DownloadServiceImpl( 2069): at android.os.Looper.loop(Looper.java:123)
01-09 23:56:30.076 E/DownloadServiceImpl( 2069): at android.app.ActivityThread.main(ActivityThread.java:4627)
01-09 23:56:30.076 E/DownloadServiceImpl( 2069): at java.lang.reflect.Method.invokeNative(Native Method)
01-09 23:56:30.076 E/DownloadServiceImpl( 2069): at java.lang.reflect.Method.invoke(Method.java:521)
01-09 23:56:30.076 E/DownloadServiceImpl( 2069): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
01-09 23:56:30.076 E/DownloadServiceImpl( 2069): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
01-09 23:56:30.076 E/DownloadServiceImpl( 2069): at dalvik.system.NativeStart.main(Native Method)
01-09 23:56:30.076 I/DownloadServiceImpl( 2069): STARTED -> IDLE (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:30.076 I/DownloadServiceImpl( 2069): IDLE -> COMPLETED (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:30.076 I/DownloadServiceImpl( 2069): Requesting restart from 39542 of 458000
01-09 23:56:30.076 D/CancellableTask( 2069): Cancelling BufferTask (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:30.076 I/DownloadServiceImpl( 2069): COMPLETED -> IDLE (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:30.096 D/CancellableTask( 2069): Starting thread for BufferTask (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:30.096 I/DownloadServiceImpl( 2069): IDLE -> DOWNLOADING (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:30.096 I/DownloadServiceImpl( 2069): Buffering /mnt/sdcard/subsonic/music/Armin van Buuren/A State of Trance 2006/01-Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix].0.partial.ogg (6846464/7369728, false)
01-09 23:56:30.196 D/dalvikvm( 2477): GC_EXPLICIT freed 1741 objects / 117648 bytes in 172ms
01-09 23:56:30.986 I/AudioHardwareQSD( 58): AudioHardware pcm playback is going to standby.
01-09 23:56:31.101 I/DownloadServiceImpl( 2069): Buffering /mnt/sdcard/subsonic/music/Armin van Buuren/A State of Trance 2006/01-Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix].0.partial.ogg (7411712/7369728, false)
01-09 23:56:31.101 I/DownloadServiceImpl( 2069): DOWNLOADING -> IDLE (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:31.156 I/DownloadServiceImpl( 2069): IDLE -> PREPARING (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:31.156 I/DownloadServiceImpl( 2069): PREPARING -> PREPARED (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:31.156 I/DownloadServiceImpl( 2069): Restarting player from position 39542
01-09 23:56:31.156 E/VorbisPlayer( 58): ov_time_seek() returned -131
01-09 23:56:31.156 E/MediaPlayer( 2069): error (-131, 0)
01-09 23:56:31.156 E/MediaPlayer( 2069): Error (-131,0)
01-09 23:56:31.156 E/DownloadServiceImpl( 2069): Error playing "Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]"
01-09 23:56:31.156 E/DownloadServiceImpl( 2069): java.lang.Exception: MediaPlayer error: -131 (0)
01-09 23:56:31.156 E/DownloadServiceImpl( 2069): at net.sourceforge.subsonic.androidapp.service.DownloadServiceImpl$1.onError(DownloadServiceImpl.java:84)
01-09 23:56:31.156 E/DownloadServiceImpl( 2069): at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:1264)
01-09 23:56:31.156 E/DownloadServiceImpl( 2069): at android.os.Handler.dispatchMessage(Handler.java:99)
01-09 23:56:31.156 E/DownloadServiceImpl( 2069): at android.os.Looper.loop(Looper.java:123)
01-09 23:56:31.156 E/DownloadServiceImpl( 2069): at android.app.ActivityThread.main(ActivityThread.java:4627)
01-09 23:56:31.156 E/DownloadServiceImpl( 2069): at java.lang.reflect.Method.invokeNative(Native Method)
01-09 23:56:31.156 E/DownloadServiceImpl( 2069): at java.lang.reflect.Method.invoke(Method.java:521)
01-09 23:56:31.156 E/DownloadServiceImpl( 2069): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
01-09 23:56:31.156 E/DownloadServiceImpl( 2069): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
01-09 23:56:31.156 E/DownloadServiceImpl( 2069): at dalvik.system.NativeStart.main(Native Method)
01-09 23:56:31.156 E/MediaPlayer( 2069): start called in state 0
01-09 23:56:31.156 E/MediaPlayer( 2069): error (-38, 0)
01-09 23:56:31.156 I/DownloadServiceImpl( 2069): PREPARED -> STARTED (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:31.156 D/CancellableTask( 2069): Stopping thread for BufferTask (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:31.156 I/DownloadServiceImpl( 2069): STARTED -> IDLE (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:31.166 I/DownloadServiceImpl( 2069): IDLE -> COMPLETED (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:31.166 I/DownloadServiceImpl( 2069): Requesting restart from 39542 of 458000
01-09 23:56:31.166 D/CancellableTask( 2069): Cancelling BufferTask (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:31.166 I/DownloadServiceImpl( 2069): COMPLETED -> IDLE (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:31.176 D/CancellableTask( 2069): Starting thread for BufferTask (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:31.176 I/DownloadServiceImpl( 2069): IDLE -> DOWNLOADING (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:31.176 I/DownloadServiceImpl( 2069): Buffering /mnt/sdcard/subsonic/music/Armin van Buuren/A State of Trance 2006/01-Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix].0.partial.ogg (7460864/8008704, false)
01-09 23:56:31.196 I/DownloadFile( 2069): Downloaded 3.35 MB of Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]
01-09 23:56:32.176 I/DownloadServiceImpl( 2069): Buffering /mnt/sdcard/subsonic/music/Armin van Buuren/A State of Trance 2006/01-Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix].0.partial.ogg (8001536/8008704, false)
01-09 23:56:33.176 I/DownloadServiceImpl( 2069): Buffering /mnt/sdcard/subsonic/music/Armin van Buuren/A State of Trance 2006/01-Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix].0.partial.ogg (8524866/8008704, false)
01-09 23:56:33.176 I/DownloadServiceImpl( 2069): DOWNLOADING -> IDLE (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:33.236 I/DownloadServiceImpl( 2069): IDLE -> PREPARING (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:33.246 I/DownloadServiceImpl( 2069): PREPARING -> PREPARED (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:33.246 I/DownloadServiceImpl( 2069): Restarting player from position 39542
01-09 23:56:33.246 E/VorbisPlayer( 58): ov_time_seek() returned -131
01-09 23:56:33.246 E/MediaPlayer( 2069): error (-131, 0)
01-09 23:56:33.246 E/MediaPlayer( 2069): Error (-131,0)
01-09 23:56:33.246 E/DownloadServiceImpl( 2069): Error playing "Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]"
01-09 23:56:33.246 E/DownloadServiceImpl( 2069): java.lang.Exception: MediaPlayer error: -131 (0)
01-09 23:56:33.246 E/DownloadServiceImpl( 2069): at net.sourceforge.subsonic.androidapp.service.DownloadServiceImpl$1.onError(DownloadServiceImpl.java:84)
01-09 23:56:33.246 E/DownloadServiceImpl( 2069): at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:1264)
01-09 23:56:33.246 E/DownloadServiceImpl( 2069): at android.os.Handler.dispatchMessage(Handler.java:99)
01-09 23:56:33.246 E/DownloadServiceImpl( 2069): at android.os.Looper.loop(Looper.java:123)
01-09 23:56:33.246 E/DownloadServiceImpl( 2069): at android.app.ActivityThread.main(ActivityThread.java:4627)
01-09 23:56:33.246 E/DownloadServiceImpl( 2069): at java.lang.reflect.Method.invokeNative(Native Method)
01-09 23:56:33.246 E/DownloadServiceImpl( 2069): at java.lang.reflect.Method.invoke(Method.java:521)
01-09 23:56:33.246 E/DownloadServiceImpl( 2069): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
01-09 23:56:33.246 E/DownloadServiceImpl( 2069): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
01-09 23:56:33.246 E/DownloadServiceImpl( 2069): at dalvik.system.NativeStart.main(Native Method)
01-09 23:56:33.246 E/MediaPlayer( 2069): start called in state 1
01-09 23:56:33.246 E/MediaPlayer( 2069): error (-38, 0)
01-09 23:56:33.246 I/DownloadServiceImpl( 2069): PREPARED -> STARTED (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:33.246 D/CancellableTask( 2069): Stopping thread for BufferTask (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:33.246 I/DownloadServiceImpl( 2069): STARTED -> IDLE (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:33.246 I/DownloadServiceImpl( 2069): IDLE -> COMPLETED (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:33.246 I/DownloadServiceImpl( 2069): Requesting restart from 39542 of 458000
01-09 23:56:33.246 D/CancellableTask( 2069): Cancelling BufferTask (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:33.246 I/DownloadServiceImpl( 2069): COMPLETED -> IDLE (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:33.256 D/CancellableTask( 2069): Starting thread for BufferTask (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:33.256 I/DownloadServiceImpl( 2069): IDLE -> DOWNLOADING (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:33.256 I/DownloadServiceImpl( 2069): Buffering /mnt/sdcard/subsonic/music/Armin van Buuren/A State of Trance 2006/01-Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix].0.partial.ogg (8566784/9114624, false)
01-09 23:56:34.207 I/DownloadFile( 2069): Downloaded 4.86 MB of Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]
01-09 23:56:34.256 I/DownloadServiceImpl( 2069): Buffering /mnt/sdcard/subsonic/music/Armin van Buuren/A State of Trance 2006/01-Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix].0.partial.ogg (9082880/9114624, false)
01-09 23:56:35.266 I/DownloadServiceImpl( 2069): Buffering /mnt/sdcard/subsonic/music/Armin van Buuren/A State of Trance 2006/01-Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix].0.partial.ogg (9598976/9114624, false)
01-09 23:56:35.266 I/DownloadServiceImpl( 2069): DOWNLOADING -> IDLE (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:35.286 I/DownloadServiceImpl( 2069): IDLE -> PREPARING (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:35.296 I/DownloadServiceImpl( 2069): PREPARING -> PREPARED (DownloadFile (Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]))
01-09 23:56:35.296 I/DownloadServiceImpl( 2069): Restarting player from position 39542
01-09 23:56:35.296 E/VorbisPlayer( 58): ov_time_seek() returned -131
01-09 23:56:35.296 E/MediaPlayer( 2069): error (-131, 0)
01-09 23:56:35.296 E/MediaPlayer( 2069): Error (-131,0)
01-09 23:56:35.296 E/DownloadServiceImpl( 2069): Error playing "Shipwrecked [John O'Callaghan vs. Mike Foyle Club Mix]"
01-09 23:56:35.296 E/DownloadServiceImpl( 2069): java.lang.Exception: MediaPlayer error: -131 (0)
01-09 23:56:35.296 E/DownloadServiceImpl( 2069): at net.sourceforge.subsonic.androidapp.service.DownloadServiceImpl$1.onError(DownloadServiceImpl.java:84)
01-09 23:56:35.296 E/DownloadServiceImpl( 2069): at android.media.MediaPlayer$EventHandler.handleMessage(MediaPlayer.java:1264)
01-09 23:56:35.296 E/DownloadServiceImpl( 2069): at android.os.Handler.dispatchMessage(Handler.java:99)
01-09 23:56:35.296 E/DownloadServiceImpl( 2069): at android.os.Looper.loop(Looper.java:123)
01-09 23:56:35.296 E/DownloadServiceImpl( 2069): at android.app.ActivityThread.main(ActivityThread.java:4627)
01-09 23:56:35.296 E/DownloadServiceImpl( 2069): at java.lang.reflect.Method.invokeNative(Native Method)
01-09 23:56:35.296 E/DownloadServiceImpl( 2069): at java.lang.reflect.Method.invoke(Method.java:521)
01-09 23:56:35.296 E/DownloadServiceImpl( 2069): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:858)
01-09 23:56:35.296 E/DownloadServiceImpl( 2069): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
01-09 23:56:35.296 E/DownloadServiceImpl( 2069): at dalvik.system.NativeStart.main(Native Method)
01-09 23:56:35.296 E/MediaPlayer( 2069): start called in state 0

Vorbis player is complaining:
01-09 23:56:28.976 E/VorbisPlayer( 58): ov_time_seek() returned -131
My hunch is that the ogg stream is not being put back together properly when the data connection is re-acquired. I have the whole system log of me turning off wifi and back on again; I can provide if anyone thinks its helpful.

Thanks in advance to anyone who can help!
papatel
 
Posts: 21
Joined: Fri Jul 09, 2010 12:10 am

Found a cumbersome WAR

Postby papatel » Thu Jan 13, 2011 10:03 am

Looks like no one who has any insight has looked at my debug spew. I discovered if I transcode to ogg on my linux box first, then the stream on the Android client is able to recover even if the data connection is intermittent. I wrote a perl script to mirror my flac library in ogg format. Works if you have hard drive space to waste but I'm not really addressing the problem at hand.

I wonder if the fact that pre-transcoded ogg files do not corrupted shed's any light on this issue? Any ideas anyone? Thanks!
papatel
 
Posts: 21
Joined: Fri Jul 09, 2010 12:10 am

ogg streaming anyone?

Postby papatel » Wed Jan 19, 2011 11:07 pm

Does no one else transcode to ogg for Android client streaming? Please, if you are not experiencing this issue that is really useful information.
papatel
 
Posts: 21
Joined: Fri Jul 09, 2010 12:10 am

Postby GJ51 » Thu Jan 20, 2011 3:40 am

Ok - I finally gave in and transcoded an album to OGG just for testing to see if I could duplicate your problem. So far I've tried it transcodding OGG>MP3 and playing the OGG files w/o transcoding and don't see any sign of the problems you describe. I'm on a Wondows Server 2008 R2 platform with the std Windows install and I'm streaming to my EVO 4G over 3G connection. I've killed and restarted 3g several times during playback. Each time, SS just picks up where I left off and keeps on truckin.

Try it out for yourself:


http://maplegrove.subsonic.org

guest
guest

Select folder at bottom, "OGG Music"

I've deselected OGG>mp3 in the settings so they will play directly. If you need to test transcoding ogg>mp3 just let me know.

EDIT: OK, now I'm testing flac > ogg and I'm starting to see problems. I sent up a signal flare to Stozher, If anyone knows the answer, it's him.

I'm getting similar results. Over 3g, if the data stream is interrupted, the track will not play even after it is fully downloaded. I'm only getting it to work on wifi, and even then I'm getting quite a bit of stuttering. maybe it's just more than ffmpeg can handle, trying to squeeze a 1500 kbps flac into a 64 kbps ogg.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Postby stozher » Thu Jan 20, 2011 5:30 am

http://forum.subsonic.org/forum/viewtopic.php?p=19145#19145

http://en.wikipedia.org/wiki/Vorbis#Technical_details

Ext: OGA (OGG) 64kbps ABR | <???> | ogg <oga> |
ffmpeg -loglevel error -v 0 -i %s -f ogg -vn -acodec libvorbis -ar 44100 -ab 64k -ac 2 -map_meta_data 0:0 - | <blank>

Ext: OGA (OGG) 64kbps VBR | <???> | ogg <oga> |
ffmpeg -loglevel error -v 0 -i %s -f ogg -vn -acodec libvorbis -ar 44100 -aq 0 -ac 2 -map_meta_data 0:0 - | <blank>


FFmpeg compiled with option: --enable-libvorbis
Code: Select all
FFmpeg version SVN-r25838, Copyright (c) 2000-2010 the FFmpeg developers
  built on Nov 29 2010 15:39:30 with gcc 4.4.5
  configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
  libavutil     50.33. 0 / 50.33. 0
  libavcore      0.14. 0 /  0.14. 0
  libavcodec    52.97. 2 / 52.97. 2
  libavformat   52.87. 1 / 52.87. 1
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.65. 0 /  1.65. 0
  libswscale     0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'
http://music.stozher.com:8080/login.view?user=guest&password=
User avatar
stozher
 
Posts: 313
Joined: Tue Nov 16, 2010 10:56 am
Location: Sofia, Bulgaria

Postby GJ51 » Thu Jan 20, 2011 5:39 am

Many thanks! Seems to have fixed it. Wow - even cured a track that was previously botsed.

You da man Stozher. 8)

I've put a flac album on my server for testing. Everything seems to be working fine.

http://maplegrove.subsonic.org

guest
guest

Go to the Albums folder. Select Handel/Messiah. It will show as flac>ogg for all tracks. Plays fine on my EVO over 3g. No stutter, no skip, and it even sounds good.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Looks like the issue is related to debian/linux installs

Postby papatel » Thu Jan 20, 2011 7:16 pm

Thanks guys, you both really rock. I actually found Stozher's post awhile back and tried those exact same transcoding settings without any luck. I tried again just now and on my Debian Squeeze system I still have the same issue. Subsonic: 4.3 (build 2078) – January 7, 2011
Really frustrating!

I confirmed that your server works GJ51 :) I can interrupt the stream 20 times before completion and the ogg file plays perfectly. Why can't mine with the same transcodings!?!?

here is a dump of my ffmpeg: I just got it using aptitude install "ffmpeg". Looks like it comes with --enable-libvorbis already. Do I still need a custom compile of ffmpeg or a different version? My version seems to Match Stozher's:

Code: Select all
FFmpeg version SVN-r25838, Copyright (c) 2000-2010 the FFmpeg developers
  built on Nov 29 2010 15:39:30 with gcc 4.4.5
  configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
  libavutil     50.33. 0 / 50.33. 0
  libavcore      0.14. 0 /  0.14. 0
  libavcodec    52.97. 2 / 52.97. 2
  libavformat   52.87. 1 / 52.87. 1
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter    1.65. 0 /  1.65. 0
  libswscale     0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0


Thanks again for the help guys, anything else besides this you can think of causing my flac->ogg streams to get garbled when data connection is lost?

I guess I could confirm the issue by setting up a windows box with subsonic and go from there. But I don't want to keep my win7 box on all the time...

Thanks,
Patrick.
papatel
 
Posts: 21
Joined: Fri Jul 09, 2010 12:10 am

PreviousNext

Return to Help

Who is online

Users browsing this forum: No registered users and 21 guests