Problem with v4l2 on latest Mint 17/Ubuntu 14
Posted: 30 Jul 2014 08:24
Hi,
I've had a vlm file that's been working for a very long time in Linux Mint 15. I believe Mint 15 was based off Ubuntu 12. The vlm creates a mosaic of 6 vl42 devices which use 3 separate hardware devices and hence 3 different drivers. One device is a 4 port card. This had been working fine until I upgraded to Mint 17, which is based off Ubuntu 14. Anyhow, here's the vlm file:
I run the vlm file with the following command line:
Ok, I lied. I use a script that writes the vlm file and runs the command line, but the end result is the same. The script is here, for the sake of literally showing what I do:
https://gist.github.com/DanielCeregatti ... 5f5b7cb6f7
Note that the only difference between what I've posted and the script is that the script tries to run v4l2-ctl on the devices to make sure they're configured properly. This was necessary in Mint 15, where vlc 2.0.8 was used, but now it does not affect the stream at all.
Anyhow, since upgrading, the stream no longer works. Right now the "webcam" device is the only one showing a proper picture. The bttv camera seems to not have set the correct standard, as the image is green and fuzzy, and the other 4 on the saa7134 are completely blank. I've read a few other posts where it's been suggested this is a driver issue, but other apps such as mplayer and xawtv work perfectly with these devices. This leads me to believe it is NOT a driver issue.
Here is the output when I run the script with -vvv (The forum complained that I exceeded the 60k max character limit, so I put the file on my own web server):
http://ceregatti.org/log
I've also tried the 2.2.0 PPA, which installed a 3.0.0-git version, but this seg faulted. I'm willing to try the PPA version again if new builds happen nightly, as the PPA seems to suggest they do.
I've even tried running the old vlc in a chroot on the new machine (I had saved the previous root filesystem under /old). This yielded the same problems, where the v4l2 devices simply were not configured properly.
I'm hoping someone has some insights. And BTW, I'm lurking on IRC in #videolan on freenode as Primer. Feel free to contact me there directly.
Thanks,
Daniel
I've had a vlm file that's been working for a very long time in Linux Mint 15. I believe Mint 15 was based off Ubuntu 12. The vlm creates a mosaic of 6 vl42 devices which use 3 separate hardware devices and hence 3 different drivers. One device is a 4 port card. This had been working fine until I upgraded to Mint 17, which is based off Ubuntu 14. Anyhow, here's the vlm file:
Code: Select all
del all
new cam1 broadcast enabled
setup cam1 input v4l2:///dev/v4l/bttv_0:width=320:height=240:input=1
setup cam1 output #duplicate{dst=mosaic-bridge{id=1,height=320,width=240}
new cam2 broadcast enabled
setup cam2 input v4l2:///dev/v4l/saa7134_0:width=320:height=240:input=0
setup cam2 output #duplicate{dst=mosaic-bridge{id=2,height=320,width=240}}
new cam3 broadcast enabled
setup cam3 input v4l2:///dev/v4l/saa7134_1:width=320:height=240:input=0
setup cam3 output #duplicate{dst=mosaic-bridge{id=3,height=320,width=240}}
new cam4 broadcast enabled
setup cam4 input v4l2:///dev/v4l/saa7134_2:width=320:height=240:input=0
setup cam4 output #duplicate{dst=mosaic-bridge{id=4,height=320,width=240}}
new cam5 broadcast enabled
setup cam5 input v4l2:///dev/v4l/saa7134_3:width=320:height=240:input=0
setup cam5 output #duplicate{dst=mosaic-bridge{id=5,height=320,width=240}}
new cam6 broadcast enabled
setup cam6 input v4l2:///dev/v4l/webcam:width=320:height=240:input=0
setup cam6 output #duplicate{dst=mosaic-bridge{id=6,height=320,width=240}}
new audio broadcast enabled
#setup audio input http://npr.ic.llnwd.net/stream/npr_live24
#setup audio input alsa://hw:0,0
setup audio input alsa://pulse
setup audio output #transcode{acodec=mp4a,ab=128,samplerate=44100}:bridge-out
new bg broadcast enabled
setup bg input "bg.png"
setup bg option image-duration=-1
setup bg output #transcode{width=960,height=480,sfilter="marq{marquee=Date: %m-%d-%Y - Time: %H:%M:%S %Z,size=15,x=300,y=465}:marq{marquee=Front Yard,size=10,x=5,y=5}:marq{marquee=Front Door,size=10,x=325,y=5}:marq{marquee=Back Yard,size=10,x=645,y=5}:marq{marquee=South Yard,size=10,x=5,y=245}:marq{marquee=North Yard,size=10,x=325,y=245}:marq{marquee=Garage,size=10,x=645,y=245}:mosaic{width=960,height=480,position=1,order='4,5,2,3,1,6',cols=3}",vcodec=h264,venc=x264{keyint=30,profile=main},vb=2000}:bridge-in:std{access=http{mime=,user=cam,pwd=spam},mux=ts{use-key-frames},dst=:8086/}
control cam1 play
control cam2 play
control cam3 play
control cam4 play
control cam5 play
control cam6 play
control audio play
control bg play
Code: Select all
cvlc -v --no-osd -L -f --no-video-title-show --x11-display :0 --vlm-conf stream.conf
https://gist.github.com/DanielCeregatti ... 5f5b7cb6f7
Note that the only difference between what I've posted and the script is that the script tries to run v4l2-ctl on the devices to make sure they're configured properly. This was necessary in Mint 15, where vlc 2.0.8 was used, but now it does not affect the stream at all.
Anyhow, since upgrading, the stream no longer works. Right now the "webcam" device is the only one showing a proper picture. The bttv camera seems to not have set the correct standard, as the image is green and fuzzy, and the other 4 on the saa7134 are completely blank. I've read a few other posts where it's been suggested this is a driver issue, but other apps such as mplayer and xawtv work perfectly with these devices. This leads me to believe it is NOT a driver issue.
Here is the output when I run the script with -vvv (The forum complained that I exceeded the 60k max character limit, so I put the file on my own web server):
http://ceregatti.org/log
I've also tried the 2.2.0 PPA, which installed a 3.0.0-git version, but this seg faulted. I'm willing to try the PPA version again if new builds happen nightly, as the PPA seems to suggest they do.
I've even tried running the old vlc in a chroot on the new machine (I had saved the previous root filesystem under /old). This yielded the same problems, where the v4l2 devices simply were not configured properly.
I'm hoping someone has some insights. And BTW, I'm lurking on IRC in #videolan on freenode as Primer. Feel free to contact me there directly.
Thanks,
Daniel