Raspberry Pi - Who's gonna have a dabble?
Raspberry Pi - Who's gonna have a dabble?
Author
Discussion

Nimbus

1,176 posts

254 months

Sunday 24th March 2013
quotequote all
slomax said:
I had no issues with any format up until last night when it wouldn't play a video in a .avi file. It played the sound, but no video. Tried it on my laptop with VLC and it worked fine. I have not had any issues with any other .avi file though. Seems odd.....
Have you paid for any of the extra codecs ?

You probably need one of these..

http://www.raspberrypi.org/archives/tag/codecs

Think they are about £5, and are tied to your hardware.. I certainly needed it to play my mpeg2 encoded files that my mythbox produces..

Before this I had the same symptoms... ie sound was fine but no picture.

Dave^

7,846 posts

279 months

Monday 25th March 2013
quotequote all
0000 said:
Try > /tmp/playlist
woohoo

That will let me write out the playlist... but... hehe

When trying to play from the playlist, it's looking for the files in the /tmp/ folder...

So yes, the issue is, not being allowed write permission to /mnt/usbhd/Music, but I've run chmod 777 on all the folders/files... confused

eta - I can't move the playlist from /tmp/ to /mnt/usbhd/Music, but somewhere along the line it has let me move it... it's there and working , but whenever I try to create a new playlist in the /mnt/usbhd/Music it tells me Permission Denied, same when moving...

But somehow it's in there and working now, I just don't know how, which is more annoying than not working at all!! laugh

Edited by Dave^ on Monday 25th March 12:57



eata - "sudo mount -o umask=0 /dev/sda1 /mnt/usbhd" mounts the usb stick with write permissions, no messing, job done!

Waiting for someone to tell me I've done it wrong and Kittens have been killed as a result...

Edited by Dave^ on Monday 25th March 14:46

ajprice

32,647 posts

222 months

Monday 25th March 2013
quotequote all
This case looks pretty decent. Its purposely made bigger than the PI so that the SD doesn't stick out, and the micro USB power is router around to the same side as the USB ports. http://shortcrust.net/updates/. Its in the final prototype stage.


Dave^

7,846 posts

279 months

Monday 25th March 2013
quotequote all
ajprice said:
This case looks pretty decent. Its purposely made bigger than the PI so that the SD doesn't stick out, and the micro USB power is router around to the same side as the USB ports. http://shortcrust.net/updates/. Its in the final prototype stage.

It's nice that, I wouldn't mind it being a little bigger still so everything is along one side so it can sit/be mounted more conveniently/neater...

0000

13,816 posts

217 months

Tuesday 26th March 2013
quotequote all
Dave^ said:
0000 said:
Try > /tmp/playlist
woohoo
thumbup

Dave^ said:
eata - "sudo mount -o umask=0 /dev/sda1 /mnt/usbhd" mounts the usb stick with write permissions, no messing, job done!

Waiting for someone to tell me I've done it wrong and Kittens have been killed as a result...
That's a slightly odd command, I'd have thought it would be more like 'sudo mount -o rw,uid=0 ...' and I'm not used to seeing umask without at least three digits. But hey, if it works!

I've just ordered my third Raspberry Pi. banghead

Dave^

7,846 posts

279 months

Wednesday 27th March 2013
quotequote all
0000 said:
That's a slightly odd command, I'd have thought it would be more like 'sudo mount -o rw,uid=0 ...' and I'm not used to seeing umask without at least three digits. But hey, if it works!

I've just ordered my third Raspberry Pi. banghead
Yeah, well...

I killed it yesterday trying to get things to run on boot without any user input... then everytime I logged on via Putty, it just closed the connection... hehe Oops!

Anyway, back up an running, and mounted the usb with "sudo mount /dev/sda1 /mnt/usbstick/ -o uid=1000" (from here - http://tipstricksandmore.blogspot.co.uk/2010/04/mo... ) instead of the previous method (from here - http://superuser.com/questions/175987/how-can-i-au... )


Third you say? clap

What are the current two doing, and what's the plan for the third?

0000

13,816 posts

217 months

Wednesday 27th March 2013
quotequote all
One is running XBMC, DNS caching, apt-cache and some network monitoring to alert me if things go down or unknown machines connect to the network.

The other is also DNS caching with transparent HTTP proxy and has a webcam I've removed the IR filter on so I can turn it into a baby monitor with network streaming video and audio - need to solder on an IR led or two.

The third may take over the DNS caching and HTTP proxy from the second with an intrusion detection system added, but I'll probably put it to use cracking wireless networks first and maybe following the Cambridge OS development tutorial and/or some of the hardware hacking tutorials around. I've been meaning to write something to notify me of swings in share prices too so I'd probably put that on there if I ever get round to it.

leemarkadams

856 posts

241 months

Wednesday 27th March 2013
quotequote all
Just got one and plan on using it as a media server and xbmc with icefilms etc

If it works ok may get another couple for the bedrooms as well?

Lee

essayer

10,382 posts

220 months

Wednesday 27th March 2013
quotequote all
Been playing with the gertboard and programming the atmel 328p that's on it.. managed to improve the supplied "LED blink" program massively; it is now "LED blink and stop blinking while I generate an interrupt".

Also set it up as a static-IP SSH server mounting drives off the network.

Going to see if I can set it up like a central heating controller, monitoring temperatures everywhere.


Otispunkmeyer

Original Poster:

13,683 posts

181 months

Tuesday 2nd April 2013
quotequote all
Bought a pi today

Set up raspbmc as a first sort of thing to play about with. Only issue is I can't get airplay to run smooth.

As I see it, the pi is connected to my router via wifi with the ip 192.168.1.79. All is well there. However in the raspbmc settings program there is the network mode option between wired and wireless and from what I can gather, the pi itself is also broadcasting its own wifi? I assume this is needed for AirPlay (ie a direct link between ipad and pi, that doesn't go via the router).?

If I turn that off and switched to wired, the airplay plays a lot better, though will still buffer, just not every 2 seconds.

So what I'm asking is what are those network settings for? I don't seem to need it set to wifi. I used the network manager add on to set my wifi up. Was this wrong?

Otispunkmeyer

Original Poster:

13,683 posts

181 months

Tuesday 2nd April 2013
quotequote all
Was about to come back and say the wifi dongle was just in the box with the kit I bought so its probably ste. Shame my home plug setup died, I don't really want a cat 5 draped across the living room!

tank slapper

7,949 posts

309 months

Tuesday 2nd April 2013
quotequote all
[redacted]

Otispunkmeyer

Original Poster:

13,683 posts

181 months

Tuesday 2nd April 2013
quotequote all
Also cec isn't working. I know my tv supports it because it works with my PS3.

Although as that is still plugged in perhaps the tv can only support one cec device at a time. The ps3 is listed on the sources menu on the telly but the pi is not.

Otispunkmeyer

Original Poster:

13,683 posts

181 months

Tuesday 2nd April 2013
quotequote all
tank slapper said:
I've been using mine with Raspbmc and wifi since I've had it and haven't had any problems with it, and that includes playing 1080p films via NFS. It is possible that the radio signal is not the problem, but the wifi adaptor driver. Which one have you tried?
How do you alter the driver ? I just used the network manager add on. Works perfectly except for AirPlay.

tank slapper

7,949 posts

309 months

Tuesday 2nd April 2013
quotequote all
The driver will be determined by the adaptor you are using. There won't usually be an alternative for the same adaptor. I am using this one: http://www.amazon.co.uk/GMYLE-Wireless-802-11n-Net...

Using SMB was fine for anything up to 720p, but 1080p caused stuttering. Switching to NFS now allows 1080p to stream with no issues. SMB has higher CPU overheads than NFS which is why it can cause problems at higher bit rates.

The ethernet adaptor on the Pi is connected via USB internally, but I think it has lower CPU requirements than wifi does. Homeplugs are the spawn of the devil as far as I'm concerned, but they do connect via ethernet so that shouldn't affect things.

Make sure you have the overclock settings to "Fast" in the Raspbmc settings add on. "Super" tends to cause corruption of the SD card for some reason.


Otispunkmeyer

Original Poster:

13,683 posts

181 months

Wednesday 3rd April 2013
quotequote all
ok so progressing with this media center thing

I have my Pi set up as I want ( I think ) so I guess now I just need media

I assume I can either have a hard disk wired to the USB port which means if I want to add anything new I have to remove the drive to a computer or perhaps utilise the uTorrent client to save direct to the HDD without going near a PC.

Or

I can have a central HDD on my network with my films and music on which the Pi can access and index.

For the former I reckon I can just use a 500 GB 2.5" portable drive I have lying around. Tape the HDD to the top of the Pi box and done! Or for the latter I have one of these lying around:

http://www.linuxuser.co.uk/opinion/iomega-500gb

I have the 1 TB version of that and I think, but am not sure it is capable of using the network file system. Is there anywhere I can read up on what SMB, NFS are and how to set them up? Will I be able to access the drive with my Mac? Confusingly this HDD came with some software which I pressumed you needed to access the drive because it provided a front end to control everything. However I think if you just plug it in it pops up as a share drive automatically. I had an old Freecom HDD that was a pseudo NAS... you could connect it via ethernet to a router but you needed freecoms software to actually access it as it wasnt a proper NAS drive. I think they called it D-NAS or something.


After that... what the hell am I gonna use to manage all my media because as it is, its a jumble sale of folders and wonky names.

mojitomax

1,876 posts

218 months

Wednesday 3rd April 2013
quotequote all
You should just be able to plug the Iomega disk into your router. It ought to have instructions in how to do the initial setup.

Once this is done the disk should show up in the finder on your mac.

Once you've accessed the disk in your mac you can start moving your movies.

I have two root folders - movies and TV shows.

In movies I have subfolders for genres. Then create a folder for each film and put the film file into its folder.

In TV shows create a folder for each show, a subfolder for each season and the files into the season subfolders.

Check here

http://wiki.xbmc.org/index.php?title=Supplemental_...

It has a load of mac software.

I use vimediamanager to download movie artwork and info and it will rename the movie folders.

Once you've done this, add the root movie folder as a video source in Xbmc and set it to scan the library.

Wait for a few hours and then you'll have all the movies with artwork.

You can browse either by your own genre/directory structure through the videos menu.

Connect the pi to your router with an Ethernet cable and use the xbmcremote iOS app to control it.

Hope that helps

Otispunkmeyer

Original Poster:

13,683 posts

181 months

Thursday 4th April 2013
quotequote all
ok ill have a stab at that

but before I got back to this thread I tried using TheRenamer and downloading fanart and stuff from TVDB.

But when I plug the HDD back to the Pi, I have to drill down throw all the folders to find the files is that right? (videos -> HDD - > TV show -> Season -> Episode) and the fanart looks ste, super low res but that maybe because the default skin doesnt support the various things.

Otispunkmeyer

Original Poster:

13,683 posts

181 months

Thursday 4th April 2013
quotequote all
Ok getting there.... It looks like Raspbmc will actually do most of the leg work for you? I loaded some renamed files on (used the Renamer) and then the Pi did its own search and renamed everything again and downloaded better artworks. Seems like you can just hoy a load of films in a folder and so long as they have sensible names xmbc will sort you out.

Tried the Media Elch and ViMediaManager.... they seem a bit obtuse to me. Media Elch decides to only find some movies, then you have to search the title of each one individually to get the data, then you have to press save before pressing rename. I am probably doing it wrong but that is a gigantic faff about. ViMedia seems even harder ..... Perhaps ill come back to it tomorrow when I am not so tired.

The renamer is working the best so far... just a bit of a fanny with that because I have to fire up parallels to make it work.

tank slapper

7,949 posts

309 months

Thursday 4th April 2013
quotequote all
XBMC is quite flexible in understanding file names for scraping information. You don't need separate folders for each film for example, and you don't need to have a separate folder for each series of a TV show.

This page gives info about what name formats it will understand, and there are some links to tools to help you do it if necessary: http://wiki.xbmc.org/index.php?title=Video_library...

There is a useful add-on called Missing Movie Scanner which you can use to check that everything has been identified correctly and is in the library. It's easy to miss the odd film if you have a large library: https://code.google.com/p/xbmc-missing-movie-searc...