Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - sedgington

Pages: 1 2 [3] 4 5 6
OK, many thanks for your quick replies.

Users / Am I the only one who can not play .m2ts? SOLVED!
« on: January 30, 2011, 09:48:10 pm »
I've been bugged for several months that 8.10 lets me play everything, including .mkv files through xine, everything except for .m2ts files (no video, but perfect sound) and h264 files recorded by MythTV (HD video but no sound) through mplayer. No one seems to have this problem in the forum recently (it seems that every else had problems playing .mkv files in the past). Granted, I found a post from Sept. 2010 that said mplayer did not support .m2ts files (with a work around), but I assumed that this had been fixed since then and hate messing around with the work arounds unless absolutely necessary:

If it is still not working, please, could someone let me know that this is the case--no .m2ts until further notice?

If it has been fixed and someone can help me get it working here is my situation:
I'm running VDPAU with the a nvidia GEForce 9600GT PCIe card and the lastest nvida driver 260.19.36 and I allowed nvida xconfig to overwrite my /etc/X11/xorg.conf. I'm pretty sure VDPAU is working because when I run top from the command line and play a file in either xine or mplayer it uses about 1% of the cpu.

But when I run (as root):
mplayer -vc ffh264vdpau -vo vdpau /home/public/data/videos/THE_AVIATOR/BDMV/STREAM/00000.m2ts

I get:

MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz (Family: 6, Model: 23, Stepping: 10)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /home/public/data/videos/THE_AVIATOR/BDMV/STREAM/00000.m2ts.
TS file format detected.
VIDEO VC1(pid=4113) AUDIO A52(pid=4353) NO SUBS (yet)!  PROGRAM N. 1
Searching for VC1 sequence header... found
VIDEO:  VC-1  1920x1080, 23.976 fps, header len: 33
Error opening/initializing the selected video_out (-vo) device.
Forced audio codec: mad
Trying to force audio codec driver family hwac3...
Opening audio decoder: [hwac3] AC3/DTS pass-through S/PDIF
No accelerated IMDCT transform found
hwac3: switched to AC3, 640000 bps, 48000 Hz
AUDIO: 48000 Hz, 2 ch, ac3, 640.0 kbit/41.67% (ratio: 80000->192000)
Selected audio codec: [hwac3] afm: hwac3 (AC3 through S/PDIF)
[AO_ALSA] alsa-lib: conf.c:3843:(parse_args) Unknown parameter AES0
[AO_ALSA] alsa-lib: conf.c:3969:(snd_config_expand) Parse arguments error: No such file or directory
[AO_ALSA] alsa-lib: pcm.c:2205:(snd_pcm_open_noupdate) Unknown PCM hw:0,1,AES0=6
AO: [alsa] 48000Hz 2ch ac3 (1 bytes per sample)
Video: no video
Starting playback...
A:  23.7 (23.7) of 282943.1 (78:35:43.0)  0.7%

In other words: The sound plays and there is no video because it can not open the video out device:
Error opening/initializing the selected video_out (-vo) device.

When I run:
mplayer -vo help

to determine what is available as a vo I get:
MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz (Family: 6, Model: 23, Stepping: 10)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Available video output drivers:
   xmga   Matrox G200/G4x0/G550 overlay in X11 window (using /dev/mga_vid)
   mga   Matrox G200/G4x0/G550 overlay (/dev/mga_vid)
   tdfxfb   3Dfx Banshee/Voodoo3/Voodoo5
   3dfx   3dfx (/dev/3dfx)
   xv   X11/Xv
   x11   X11 ( XImage/Shm )
   xover   General X11 driver for overlay capable video output drivers
   gl   X11 (OpenGL)
   gl2   X11 (OpenGL) - multiple textures version
   dga   DGA ( Direct Graphic Access V2.0 )
   sdl   SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
   ggi   General Graphics Interface (GGI) output
   fbdev   Framebuffer Device
   fbdev2   Framebuffer Device
   svga   SVGAlib
   aa   AAlib
   caca   libcaca
   dxr3   DXR3/H+ video out
   v4l2   V4L2 MPEG Video Decoder Output
   xvidix   X11 (VIDIX)
   cvidix   console VIDIX
   null   Null video output
   xvmc   XVideo Motion Compensation
   mpegpes   Mpeg-PES to DVB card
   yuv4mpeg   yuv4mpeg output for mjpegtools
   png   PNG file
   jpeg   JPEG file
   gif89a   animated GIF output
   tga   Targa output
   pnm   PPM/PGM/PGMYUV file
   md5sum   md5sum of each frame

Telling me there is no vdpau. Okay, fair enough. So let's try it with gl which is in the list:
mplayer -vc ffh264vdpau -vo gl /home/public/data/videos/THE_AVIATOR/BDMV/STREAM/00000.m2ts
MPlayer 1.0rc2-4.3.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Core(TM)2 Duo CPU     E8400  @ 3.00GHz (Family: 6, Model: 23, Stepping: 10)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing /home/public/data/videos/THE_AVIATOR/BDMV/STREAM/00000.m2ts.
TS file format detected.
VIDEO VC1(pid=4113) AUDIO A52(pid=4353) NO SUBS (yet)!  PROGRAM N. 1
Searching for VC1 sequence header... found
VIDEO:  VC-1  1920x1080, 23.976 fps, header len: 33
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
vo: couldn't open the X11 display ()!
Error opening/initializing the selected video_out (-vo) device.

So now it can't open the X11 display, OK, how about gl:nomanyfmts? nope, same problem. OK, how about xv? nope, same problem.x11? nope.

I went to the nvidia team ppa and added their debs to my sources.list, but when I went to install vdpauinfo--it told me it was already there, so I didn't want to mess about with what has been installed and stopped to write this.

If anyone has any hints, suggestions, etc. many thanks in advance.

I got the Hauppauge hdpvr ID 4903 to load in LMCE by tweaking the hdpvr driver to recognize the ID (waiting to see if the next update from developers fixes this detection issue of this ID before posting a how to).

Overall,  the hdpvr functions extremely well when recorded material is played from the mythtv frontend. The problem is when I select the same file to play from the orbiter under media video (the files are being written to /home/public/data/pvr and LMCE is picking them up in that directory.) The file plays with the same image quality but there is no sound. I'm using VDPAU and S/PDIF from the motherboard to a receiver. I have followed the various posts in this forum and the wiki and tried the variations in the web admin for the media director, but this doesn't seem to be the problem. MY DVD, audio files, and live TV streamed through the HDPVR are all fine when selected from the orbiter--it is just the recorded h264 which is transcoded to a mpg file by mythtv that will not play back sound.

Since mythtv uses its own player for playback, I'm starting to think that Xine in LMCE does not have the right drivers loaded and perhaps I need to patch or update Xine. I also saw a post that mplayer is capable of playing blu ray decoded disks with some tweaking so I am wondering if I should focus on this as a better alternative for playing back these files.

If anyone could shed some light on what might be going on here and how to approach the problem I would be very grateful. Thanks in advance.

Update2: From looking at the templates for the hdpvr device in lmce and the some instructions for compiling the driver from the mythTV wiki ( , it seems like I may have been hit by the need to update the driver to 4903 instead of 4902 or 4901--which are currently listed in the template. Compounding that, the changes in the sources.list for the downloads of the ivtv-utils may be affecting some of the scripts that are supposed to load ivtv-utils at boot. (if it can't download it, it can't load it.)

Has anybody some insight into if this might be the case and how to fix one or both? It seems like the first step to testing this would be to recompile the hdpvr driver  with/for dkms. Having never done this, it would be great to get a confirmation that this is (could be) the problem.

first update here:

Update: after searching around on the web, it appears that the reason I'm not getting a /dev/videox when the hdpvr driver is loading is because the driver is loading improperly or is outdated.

I went through the drivers that interacted with hdpvr one by one and found that the cx88-dvb.ko driver, even though it showed that it was present in the dkms directory (/lib/modules/2.6.27-17-generic/updates/dkms/) where all the other drivers were loading from, would not load:

root@dcerouter:/lib/modules/2.6.27-17-generic/updates/dkms# modprobe cx88-dvb
FATAL: Error inserting cx88_dvb (/lib/modules/2.6.27-17-generic/updates/dkms/cx88-dvb.ko): No such device

So my question is, not being familiar with how dkms works in LinuxMCE, can I move this directory so that the other drivers I have compiled with the kernel (see below) will work as is suggested by mythtv wiki:

"In Ubuntu, the module may fail to load and refer you to the dmesg command. If this happens, reboot and see if the error resolves itself. It is also possible that Ubuntu is prioritizing another, older copy of the v4l-dvb modules above the one you just installed, and the hdpvr will fail because the two versions do not match. Try a command like:

locate cx88-dvb.ko |grep `uname -r`

This will search for the cx88-dvb kernel module, which is provided in the Hg tree you just built, and also in default Ubuntu installs. If you see more than one copy of this file, you may need to move the older versions out of the way. In at least one case, alternate versions of all the modules were located in "/opt/ltsp/amd64/lib/modules/kernel version number/ubuntu/". The symbol mismatch was solved by moving the "/opt/ltsp/amd64/lib/modules/kernel version number/ubuntu/media" directory into a backup directory in the user's home, then rebooting. " from

Or, will that kill LinuxMCE? Alternatively, is there a way to replace the driver that does not load? Just copying it in give me a whole series of mismatches in dmesg.

Any help greatly appreciated. This is killing me that the driver loads with very little trace of why it will not create the /dev/videox link I need to get this thing working. It seems so close...

Original post begins here:

Emboldened by this link that says it works:

I manually created a device from the template and followed the instruction in the wiki for enabling S/PDIF

I then went to the MythTV wiki page which was a link in the Wiki:

From there, I updated the firmware to 1.5.7 as suggested and for good measure, installed and tested it on Win XP. Everything worked fine. BTW, my unit is rev. F1

I then went to the section on HD-PVR Driver Compilation Howto and looked through the directions. Since I had previously had problems compiling and installing an updated network driver I thought I would just see if an existing driver could be located.

modprobe hdpvr
it installed with no problems that I could detect so I did a

modinfo hdpvr

and got back that it was in the dkms folder under updates

filename:       /lib/modules/2.6.27-17-generic/updates/dkms/hdpvr.ko
description:    Hauppauge HD PVR driver
author:         Janne Grunau
license:        GPL
srcversion:     FA2DE51489C7F30C23989B9
alias:          usb:v2040p4982d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v2040p4902d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v2040p4901d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v2040p4900d*dc*dsc*dp*ic*isc*ip*
depends:        usbcore,videodev,v4l2-common
vermagic:       2.6.27-17-generic SMP mod_unload modversions 586
parm:           video_nr:video device number (-1=Auto) (array of int)
parm:           hdpvr_debug:enable debugging output (int)
parm:           default_video_input:default video input: 0=Component / 1=S-Video / 2=Composite (uint)
parm:           default_audio_input:default audio input: 0=RCA back / 1=RCA front / 2=S/PDIF (uint)
parm:           boost_audio:boost the audio signal (bool)

when I went to dmesg I got:

14519.552800] usb 5-4: new high speed USB device using ehci_hcd and address 6
[14519.716586] usb 5-4: configuration #1 chosen from 1 choice


[11655.462505] usbcore: registered new interface driver hdpvr


Bus 005 Device 006: ID 2040:4903 Hauppauge

all seemed like this was going to be the easiest install ever until I ran

ls -l /dev/video*

ls: cannot access /dev/video*: No such file or directory

Which indicated to me that even though modprobe loaded hdpvr and it was registered, the driver was not loading properly

Thinking something was either missing or being duplicated I did:

locate cx88-dvb.ko |grep `uname -r`


suggesting there was only one copy installed

So, I thought that the kernel did need to be updated after all and followed the directions on the mythtv wiki:

sudo apt-get install build-essential mercurial linux-headers-`uname -r`

hg clone

cd v4l-dvb
sudo make install

sudo modprobe hdpvr

hdpvr loaded, but when I did modinfo I found it was the same hdpvr that was loaded initially.

So...going back to first principles, I went to the LinuxMCE template for the HDPVR and found that the file Name and path script had apparently not run

sh /usr/pluto/bin/

gave me the error that /usr/pluto/bin/ line 18: v4l2-ctl: command not found

running v4l2-ctl gave me

The program 'v4l2-ctl' is currently not installed.  You can install it by typing:
apt-get install ivtv-utils
bash: v4l2-ctl: command not found

But wait, didn't LinuxMCE tell me it was starting ivtv-utils during the messages at start up?

Sure enough modprobe ivtv loaded

Thinking I needed to install a newer version I did the

apt-get install ivtv-utils

I got these error messages, apparently because I had changed the sources.list to old-releases where ever there was an "archives" or "security" in the URL as per  this post:

But I have no idea where to get ivtv-utils or even if this is the problem at this point so I did not pursue it.

So now I am in a loop where I get no /dev/video loading apparently because v4l2-ctl is not installed, even though ivtv-utils is installed, but is not upgradeable.

Anyone who has installed hdpvr or knows how the ivtv-utils is supposed to work in loading the /dev/video or anything else I've missed willing to give me some ideas how to get this to work?

Many thanks in advance. Hopefully, once I get this sorted, I can put these instructions in the wiki for others to follow.

Thanks for the suggestion, I tried it and i I did get it to work in the SB to SB mode! 

However, my original post was based on the assumption that the squeezebox server could deliver content to the Media Director based on what was playing on the SB server. As far as I can tell, this is an erroneous assumption, unless an additional SB device is directly attached to the MD. Is this how it works for you?

if so, it seems to me that getting the SB server to declare itself as a SB device to lmce--thereby saving the lmce user the additional expense of attaching another SB device that duplicates MD functions--would be a very valuable addition to the system. already does this on its fedora-based SB server (identifies itself as a SB device) and this enables you to simultaneously play music on it as well as the other SBs in your home.

Before I go further down this road, I just wanted to be sure that I have the current lmce-SB server relationship right.

In any case, thanks for your help, it is deeply appreciated.

Recently, looks like squeezebox server (slimserver) was updated on 8.10 to the new 7.5.1 version through an apt-get upgrade. I  subsequently got two squeezebox radios and tried to get the whole house music working between them as outlined in the wiki:

The squeezeboxes are recognized and added to the system, but when I add them to separate rooms and then try and use the floorplan under the media map to connect them, there is no control--no on off, no/volume, no channel either singularly or together--with either the media director interface or the quite nice Roaming Orb app for the iPhone. So far, only thing I have tried to rectify the situation was based on this post that said I should change the port from the default 9090 to 7890 on the CLI settings plugin--but still no joy:

BTW, I didn't do any of the setup outlined for 7.10 using the net UDAP utility as it seems like all this was done through the interface on each device:

Since the two squeezebox device are controllable from the squeezebox server on 8.10, it seems like I'm missing something in the setup/configuration in the web admin.

Has anyone successfully used the new squeezebox server with 8.10 and, if so, what are the magic steps?

Thanks in advance!

Apparently, changing the ownership of the voicemail.conf is not the correct thing to do if you are creating new users and your voicemail.conf is empty or somehow got deleted. I started having the same problem as listed above after I had to rebuild my drive again and followed my directions. This time voicemail.conf was empty. when the permissions were not set to www-data:www-data whatever script is run when you create a new user with a voicemail account did not run and voicemail.conf remained empty. When i inserted the information manually the voicemail access worked again. When I changed the permissions back as they were originally and then added a new user from wizard]basics\Users, it automatically wrote the info to voicemail.conf.

Sorry for any confusion my earlier post might have caused.

Installation issues / Re: [SOLVED] Solo USB microphone problem
« on: August 06, 2010, 02:40:21 pm »
Please note that for 7.10 users this fix is likely (will) break your system. Only try this on 8.10. I think there is a bit of confusion from the you tube video and the wiki about using phoenix solo usb with 7.10. As far as I know, it does not work. Can anyone confirm?

Thanks for your reply. Actually what I was looking for was what is run to connect the users' voicemail box number (301, 302 etc) to asterisk so that you can dial in to get voicemails. I believe this script actually creates the voice messaging when someone dials in (for John dial 1, for Sarah dial 2).

After some sleuthing around on the web it appears that you need to write this information to /etc/asterisk/voicemail.conf. Since mine was completely blank, I went looking around on 8.10 and found that the permissions need to be set asterisk:asterisk. Mine was set as www-data www-data.

so the command I ran was:

chown asterisk:asterisk /etc/asterisk/voicemail.conf

After checking that this worked I went to wizard\basic info\users and deleted and added back a user.
I then opened voicemail.conf and found it fully populated with all users. When I went to telecom, my voicemail and general voicemail I could now see my voicemail instead of receiving the login button. Hope this helps someone missing their voicemail.

After what I thought was a complete cloning of my primary drive (see the only thing that does not work is my voice mail accounts for each user. If you dial *98 and enter the user's voicemail account number as it shows up in wizard\basic info\users as the user name and use the same number for the password you get a voice message telling you that it was the wrong username and password. In the web admin, if you go to telecom\my voicemail or \General voicemail you get a screen that says incorrect user name or password with the opportunity to log in again. Since it is supposed to give you a link showing your voicemails and settings based on your login info to the web admin I am guessing that that somehow the link between the users and the voicemail was broken--and I can not discover how to reset it.

I tried deleting users or adding users from the startup wizard and from the web admin and this did not fix the problem.
I looked at the index.php link for the voicemail section and the other php pages that form this section and nothing seemed out of order.

Is it possible that there is a mysql table that is used for the lookup in asterisk that has missing or corrupted data? Is there a specific .sh script I can run to link these back up? Any help greatly appreciated.

For many linux users this will be trivial, but I had enough problems that I thought I would show one way to do it that worked for me.
My original drive was 80gb and perhaps through all the experimentation I had done with it and despite the fact that I had tons of other drives to store data, it kept giving me the "you are nearly out of disk space" message. This was an old IDE drive that I had used originally to test the idea of LinuxMCE and once I got it working I had added things like doorbells that ring asterisk and hylafax, so doing a simple reinstall would have forced me to retrace a lot of old (and partially forgotten) steps.
Grabbing a new 500 gb SATA drive I partitioned it according to this tutorial:

Please note that in my case, the padding in the dd command seems to have expanded what is written to the new drive as a percentage of what was used on the old drive, so you may want to make the new drive partition only slightly larger than the original and then once everything is copied, reboot into gparted, expand the new partition and then add the extended partition as outlined. This is what I had to do.

However, instead of doing this manually, I used g-parted live CD which gave me a graphical interface and just set it up as suggested:

The reason I partitioned it this way in advance was that my IDE drive had bad sectors that I could not seem to fix and also a major superblock error which prevented me from just cloning the drive to the SATA drive and getting it to work--the superblock error would show up in the new drive as well.

After setting up the new SATA drive as described in the tutorial, I opened a terminal in g-parted live and used the dd command to copy the original drive to the SATA drive.

The command I used was dd if=/dev/hda1 of=/dev/sda1 bs=32256 conv=noerror,sync

dd= data dump, the linux command that reads the binary file from the input and writes it to the output

if= input file, your original drive which you are copying from. You can easily see it in g-parted. I decided to copy only the first partition because it had all that I needed to get a new drive running and the drive had a lot of problems as outlined above

of= output file, the drive you are copying to-also easily determined in g parted. I copied only to sda1 because of the errors mentioned above. So this was a partition to partition copy instead of a whole drive to whole drive copy.

bs= block size, in this case it is 63 sectors each with 512 bytes in each transfer--this is supposed to be optimum, but you can research it if you want to try something else.
conv=noerror,sync converts the sectors without stopping when it finds errors. The sync pads the sector where the errors are so that the clone will be the same size as the original. As state above, because the original drive had errors I had to use this

Once everything is set up, you hit enter and the terminal command begins to run. When it finds an error, it will print it out in terms of input and output and number of bytes written. Be careful, because the program is not through at this point, and there is really no feedback about how long it will take other than a suggestion of how long it took to write the first transfer before finding an error. Wait until you have a new command prompt and the info above it tells you that it wrote the original used capacity of the drive and the process completed before doing anything else. In my case 70 gb took about 70 minutes.

Once this is done, exit g-parted and pull the power to your original drive keeping the new drive connected. Now you must install grub on the new drive so that it will boot properly. In my case, I used the kubuntu 7.10 live cd to do this:

I booted into the live cd and then followed the instructions for installing grub found here:

For some reason, when I went into terminal and got a grub prompt and typed in the find /boot/grub/stage1 what was returned (hd0,0) would not work in the following steps unless I copied and pasted it from the terminal into the command. It kept giving me an error -11.

Once I completed the steps for installing grub outlined in the arsgeek article, I rebooted into the new SATA drive, it found grub, gave me a few errors and then ran. So far, the only thing I have found that LinuxMCE does not recognize the users in the telecom voicemail. The doorbell, phones, and hylafax all seem to work fine. I think running through the setup wizard again should be able to fix this telecom problem.

Hope this helps. If someone has a better method, please let us all know.

I thought I would try a clean reinstall to solve some of my mythtv problems and was surprised to find that when i plugged the phoenix solo usb in that the whole systems just froze. Tried rebooting with solo usb still plugged in and kubuntu load just sat there scratching it's head with bar at about 1/8 of the way across. Unplugged the usb and rebooted and everything loaded just fine. Before I start playing with IRQs and pulling my hair out I was wondering if anyone else had this problem with the latest snapshot. I saw that there were some issues with flash so I wondered if anyone else had success with this microphone.

Many thanks.

Users / Re: Anyone know how to move video files in 7.10 Raid 1 array?
« on: June 22, 2010, 03:43:47 pm »
OK, thanks, so do you know what is in there from linuxmce? Is it possible to delete some of the files there or is my only choice to try and enlarge this partition? A little guidance would be greatly appreciated.

Users / Re: Anyone know how to move video files in 7.10 Raid 1 array?
« on: June 21, 2010, 09:16:11 pm »

Here is the output:

Filesystem            Size  Used Avail Use% Mounted on
rootfs                 65G   59G  2.3G  97% /
udev                  506M  120K  506M   1% /dev
                       65G   59G  2.3G  97% /
                       65G   59G  2.3G  97% /dev/.static/dev
tmpfs                 506M  920K  505M   1% /var/run
tmpfs                 506M     0  506M   0% /var/lock
tmpfs                 506M   38M  469M   8% /lib/modules/2.6.22-14-generic/volatile
tmpfs                 506M     0  506M   0% /dev/shm
tmpfs                 506M  920K  505M   1% /var/run
tmpfs                 506M     0  506M   0% /var/lock
/dev/sda6             9.2G  4.5G  4.3G  52% /mnt/recovery
                       13G  2.1G   10G  18% /mnt/device/217
/dev/md1              151G  108G   35G  76% /mnt/device/26

Many thanks for looking at this!

Pages: 1 2 [3] 4 5 6