 |
pyTivo Discussion Forum Answers and the development of pyTivo a TiVo transcoding server
|
|
| Author |
Message |
wmcbrine

Joined: 04 Jan 2008 Posts: 514
|
Posted: Mon Feb 11, 2008 9:01 pm Post subject: Music fast-forwarding and rewinding |
|
|
You can now have your green bars... I've added support for the "Seek" parameter (and "Duration", but I don't think TiVo ever actually uses that one) to the music plugin in my repository. This is basically a simple extension of the transcoding support. I'd had in mind another way to do it, but this is simpler, and won't add the delay between tracks that I'd mentioned previously when talking about this.
To my surprise, I also haven't had the HMO music player get "stuck" -- i.e., refusing to automatically go on to the next track -- since I did this, no matter how much I skip around. Maybe I've killed two birds with one stone? _________________ My pyTivo fork |
|
| Back to top |
|
 |
windracer

Joined: 04 Jan 2008 Posts: 160 Location: St. Pete, FL
|
Posted: Sat Mar 01, 2008 6:22 pm Post subject: |
|
|
Just downloaded the latest snapshot, but after coming out of FF/RW trickplay, it jumps to the next song (or to the beginning of the song if it's the only one in the folder). I see something like this in the log around the trickplay:
| Code: | 192.168.1.77 - - [01/Mar/2008 21:17:14] "GET /pyMusic/A%20Flock%20of%20Seagulls/
The%20Best%20of%20.._/02%20Space%20
Age%20Love%20Song.mp3?Seek=41800 HTTP/1.1" 200 -
FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: --prefix=/usr --enable-gpl --enable-pp
--enable-pthreads --enable-dc1394 --enable-libfaac
--enable-libfaad --enable-libgsm --enable-libmp3lame
--enable-libogg --enable-libtheora --enable-libvorbis
--enable-x264 --enable-xvid --enable-shared
--disable-debug
libavutil version: 49.3.0
libavcodec version: 51.38.0
libavformat version: 51.10.0
built on Oct 19 2007 20:33:17, gcc: 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
Input #0, mp3, from '/media/nas/Music/A Flock of Seagulls/The Best of .._/02 Space Age Love Song.mp3':
Duration: 00:03:50.2, start: 0.000000, bitrate: 128 kb/s
Stream #0.0: Audio: mp3, 44100 Hz, stereo, 128 kb/s
Unknown codec 'libmp3lame'
192.168.1.77 - - [01/Mar/2008 21:17:15] "GET /TiVoConnect?Command=QueryContainer
&Container=pyMusic%2FA%20Flock%20of%20Seagulls
&Recurse=Yes&Filter=audio%2F*&SortOrder=Random
&RandomSeed=1204424424&AnchorItem=%2FpyMusic
%2FA%2520Flock%2520of%2520Seagulls%2FThe
%2520Best%2520of%2520.._%2F02%2520Space
%2520Age%2520Love%2520Song.mp3&ItemCount=1
&Details=Optimal&Format=text%2Fxml HTTP/1.0" 200 -
192.168.1.77 - - [01/Mar/2008 21:17:15] "GET /TiVoConnect?Command=QueryItem&Url=%2FpyMusic
%2FA%2520Flock%2520of%2520Seagulls%2FThe
%2520Best%2520of%2520.._%2F03%2520I
%2520Ran%2520%2528So%2520Far%2520Away
%2529.mp3 HTTP/1.0" 404 -
192.168.1.77 - - [01/Mar/2008 21:17:15] "GET /pyMusic/A%20Flock%20of%20Seagulls/The%20Best
%20of%20.._/03%20I%20Ran%20(So%20Far
%20Away).mp3 HTTP/1.1" 200 - |
Not sure if that libmp3lame code error is important ... I'm pretty sure I have that compiled in.
I've tried dropping out of FF/RW in different ways (reverse three times, play, etc.) and it always just jumps to the next track.
But yeah, the "go to next song even after I manually advance" bug hasn't happened. _________________ pyTiVo on Ubuntu 8.10 |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 514
|
Posted: Sat Mar 01, 2008 10:04 pm Post subject: |
|
|
| windracer wrote: | Not sure if that libmp3lame code error is important ... |
Um, yeah, I think it's the whole problem...
| Quote: | I'm pretty sure I have that compiled in. |
I'm pretty sure you don't. Edit: I do see it there in the "configuration" line, but judging by the error message, that didn't work... hmm.
Incidentally, if this is the version that came with Ubuntu, I can tell you definitively that it doesn't support encoding to mp3. You'll have to build a new one from source. (Or, I suppose you could use mine, if you're running AMD64...) _________________ My pyTivo fork |
|
| Back to top |
|
 |
windracer

Joined: 04 Jan 2008 Posts: 160 Location: St. Pete, FL
|
Posted: Sun Mar 02, 2008 5:31 am Post subject: |
|
|
| wmcbrine wrote: | Incidentally, if this is the version that came with Ubuntu, I can tell you definitively that it doesn't support encoding to mp3. You'll have to build a new one from source. |
I did build this from source, but looking at my notes, it looks like the mp3 library wasn't in the list of libraries I downloaded via apt-get.
I'll give it another shot, thanks. _________________ pyTiVo on Ubuntu 8.10 |
|
| Back to top |
|
 |
gonzotek
Joined: 12 Jan 2008 Posts: 20
|
Posted: Sun Mar 02, 2008 6:06 am Post subject: |
|
|
I was considering building a least an i386 Ubuntu binary for distribution alongside the deb(but in a separate package). If you get things working as they should, could you please post your build notes? I built an ffmpeg binary from source in late january, and it wasn't too bad, but I didn't keep detailed notes on the steps I took(something I am doing for the deb).
Just an additional datapoint about ffmpeg versions, before the january build, I was using the default ubuntu one, and it choked badly on an h264 codec file. The new build re-encoded the file for TiVo without issue (other than exceptionally high cpu usage compared with your normal divx file). |
|
| Back to top |
|
 |
windracer

Joined: 04 Jan 2008 Posts: 160 Location: St. Pete, FL
|
Posted: Sun Mar 02, 2008 9:45 am Post subject: |
|
|
Hmm ... I double-checked and I do have the liblame0 and liblame-dev packages installed. I have the libmp3lame.so library under /usr/lib.
So it looks like I do have the library and have support compiled in:
| Code: | windracer@zhaan:/usr/src$ ffmpeg -formats 2>&1 | grep mp3
configuration: --prefix=/usr --enable-gpl --enable-pp --enable-pthreads --enable-dc1394 --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libogg --enable-libtheora --enable-libvorbis --enable-x264 --enable-xvid --enable-shared --disable-debug
DE mp3 MPEG audio layer 3
DEA mp3
D A mp3adu
D A mp3on4
|
@gonzotek: here're the steps I used to build my ffmpeg on Ubuntu:
- sudo apt-get install liblame-dev libxvidcore4-dev libx264-dev libfaac-dev libfaad2-dev
- sudo apt-get build-dep ffmpeg (which installed a TON of other packages including the gcc compiler and libraries)
- sudo apt-get source ffmpeg
- sudo ./configure --prefix=/usr --enable-gpl --enable-pp --enable-pthreads --enable-dc1394 --enable-libfaac --enable-libfaad --enable-libgsm --enable-libmp3lame --enable-libogg --enable-libtheora --enable-libvorbis --enable-x264 --enable-xvid --enable-shared --disable-debug
- make, make install _________________ pyTiVo on Ubuntu 8.10 |
|
| Back to top |
|
 |
krkeegan Site Admin

Joined: 04 Jan 2008 Posts: 412 Location: Los Angeles, CA
|
Posted: Sun Mar 02, 2008 9:56 am Post subject: |
|
|
I don't know if it is an option, but since ubuntu was once based on debian I thought ubuntu could still use at least some deb packages.
If it can the debian-multimedia site is very helpful:
http://debian-multimedia.org/
Like I said I have no idea if it works for ubuntu. |
|
| Back to top |
|
 |
wmcbrine

Joined: 04 Jan 2008 Posts: 514
|
Posted: Sun Mar 02, 2008 2:27 pm Post subject: |
|
|
Ubuntu's still based on Debian AFAIK (they pull from the unstable branch every six months, I think).
windracer, perhaps the version of ffmpeg you're using is too old. I've read that old versions needed "-acodec mp3", where new ones use "-acodec libmp3lame". You could try searching for "libmp3lame" (only one instance) in plugins/music/music.py and replacing it with "mp3" to confirm that. But my advice would be to just upgrade to a recent version. (I'd pull it from their SVN.) _________________ My pyTivo fork |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
|