![]() |
Re: Here is a working VLC Media Player!!
Looking at the VLC code, it seems that the "Failed to wait (VIDIOC_DQBUF)" error is returned by vlc when the VIDIOC_DQBUF function of the v4l2 driver returns the error code EIO.
And looking at the maemo bug list, I found a patch from Sakari Ailus dealing with this error : https://bugs.maemo.org/attachment.cgi?id=661 "vidioc_dqbuf returned -EIO in a number of cases which is probably a bit confusing for many programs. This patch changes behaviour so that the next intact frame is always returned (i.e. never -EIO anymore)." I don't think this patch is applied to the current kernel because I don't see it in the source code, but I think it could do the trick. Lokidor |
Re: Here is a working VLC Media Player!!
Any ideas why "size" is being ignored?
As for the buffer errors: I've seen similar buffer errors with other camera-related programs, especially mplayer. I would say that all of the programs that use the camera (even gstreamer) struggle with the "missing frames" problem. I would love to see a patched kernel (I guess fanoush is the go-to guy for that), but I hope that a maemo version of VLC has some kind of workaround, since most people won't have a custom kernel. |
Re: Here is a working VLC Media Player!!
I have a fairly acceptable stream from VLC now. I replaced "size" with "width" and "height" and I used 160x120 for the dimensions.
Code:
vlc -Idummy v4l2://dev/video0:chroma=RV16:width=160:height=120 :sout="#transcode{vcodec=WMV2,fps=10,vb=196}:duplicate{dst=std{access=http,mux=asf,dst=:7070}}" One bit of good news: we don't have to worry too much about hildonizing VLC. Just run the following: Code:
vlc -I http |
Re: Here is a working VLC Media Player!!
Hey qole,
Reading your command line I think you are missing a slash, you should do this : Code:
vlc -Idummy v4l2:///dev/video0:chroma=RV16:width=160:height=120 :sout="#transcode{vcodec=WMV2,fps=10,vb=196}:duplicate{dst=std{access=http,mux=asf,dst=:7070}}" Code:
[00000369] v4l2 demux error: cannot open video device (No such file or directory) Lokidor |
Re: Here is a working VLC Media Player!!
Hey sampppa,
Can't reply your last private message, I think your inbox or outbox is full. To do the mv commands you need to be outside scratchbox and run the commands as root. Be sure to be in the folder you run "scratchbox/login" and you should be able to complete commands like: Code:
mv scratchbox/tools/bin/m4.bak scratchbox/tools/bin/m4 |
Re: Here is a working VLC Media Player!!
Quote:
|
Re: Here is a working VLC Media Player!!
Yes I think that would be very useful to test this patch.
Thank you qwerty12 |
Re: Here is a working VLC Media Player!!
Sure, I'm away from computer now but I'll do it 1st thing in the morning if someone doesn't beat me overnight :)
|
Re: Here is a working VLC Media Player!!
What did I tell you ;) :)
This is the stock kernel with the patch applied: http://www.mediafire.com/?mabwyzytjuo |
Re: Here is a working VLC Media Player!!
Thanks qwerty12
I tested your stock kernel, as expected the patch solve the VIDIOC_DQBUF error. Lokidor |
Re: Here is a working VLC Media Player!!
I've been meaning to get around to putting a new kernel on my tablet for a while, but I would like one with all the bells and whistles; is there any way to get that patch integrated into the "fancy" kernel with rotation support, etc?
|
Re: Here is a working VLC Media Player!!
I've got an experimental one if you want to try it...
(kernelpanic's b_idle usb fix, fanoush's stuff, rotation, full sd speed, the v4l patch, ipv6, luks, lardman's fb dsp fix thing, case copy symbol for unionfs & pH5's unfinished powervr driver (don't get excited, it only powers up the chip, not let you use it) |
Re: Here is a working VLC Media Player!!
Quote:
Do you have a page like fanoush? Or do you have to upload it to one of those file hosting places? |
Re: Here is a working VLC Media Player!!
Well, I can take out the powervr driver. I don't think it does much atm :/
So far, I haven't noticed any problems but I class it as experimental to cover my *** :p. I have to upload to a free hoster. |
Re: Here is a working VLC Media Player!!
Well this is all well and good but the link doesn't work.
|
Re: Here is a working VLC Media Player!!
Try actually reading the thread. 10 seconds later and I've found a link.
I'll be a prick and not give the link. |
Re: Here is a working VLC Media Player!!
Well a prick you are then. Since there are two links on the first page that go to a 404 page, I'll just add this app. to the list of apps I wont' be installing. My loss I'm sure.:rolleyes:
|
Re: Here is a working VLC Media Player!!
Quote:
http://manupap1.free.fr/maemo/chinook/ Seriously though, I gave links to that post a couple of pages back. |
Re: Here is a working VLC Media Player!!
The reason I'm being a prick is because I found a link on the page before this in 10 seconds.
|
Re: Here is a working VLC Media Player!!
qwerty12, could you please post your "experimental" kernel for me?
I can see it being useful to others, too, so maybe start a new thread. If you have already started that thread, please point me to it. |
Re: Here is a working VLC Media Player!!
Quote:
|
Re: Here is a working VLC Media Player!!
Quote:
|
Re: Here is a working VLC Media Player!!
Quote:
I don't want to start a new thread because it's only bits I've found and compiled them together. @BoxOfSnoo There is a higher unsupported speed mode. Some cards dont agree with it though. If you have fanoush's kernel, it's already enabled. I'm gonna recompile this tommorow to remove the powervr driver and make it a module and post up all the kernel modules that were compiled with this kernel. |
Re: Here is a working VLC Media Player!!
Quote:
Quote:
|
Re: Here is a working VLC Media Player!!
Ok, heres the new one :)
PowerVR driver now turned into a module. http://www.mediafire.com/?mamtgvjmpmr Modules (powervr and unionfs module in there :/): http://www.mediafire.com/?fmpddjibjry (sorry for hijacking this thread btw) |
Re: Here is a working VLC Media Player!!
i gotta say the work here is impressive....not ready for the masses YET.......i have fait that you guys will get it...
|
Re: Here is a working VLC Media Player!!
querty12, if your kernel gets the camera on the N800 working, you are contributing hugely. Off to try flashing this beast.
|
Re: Here is a working VLC Media Player!!
It's just patches I found on the maemo sites :)
I also forgot to add that I enabled v4l1 iirc but I'm not sure it will do anything great |
Re: Here is a working VLC Media Player!!
Quote:
<dreaming>If only someone could figure out a way to get the mic working as a standard piece of ALSA hardware.</dreaming> |
Re: Here is a working VLC Media Player!!
I didn't mention that ;). I said v4l patch which is wrong term to use as I mean the patch lokidor linked to. I said nothing about v4l1.
|
Re: Here is a working VLC Media Player!!
Maybe I'm wrong but for the microphone I tried the osso-dsp-plugin-alsa package after reading this http://hg-mirror.alsa-project.org/al...c/README-maemo
As mentionned : "ALSA native applications can run over DSP Gateway and use DSP PCM task nodes" I tried this : cvlc Code:
v4l2:///dev/video0:chroma="UYVY":width=320:height=240:adev=default Code:
[00000645] v4l2 demux debug: added new video es UYVY 320x240 Code:
arecord -Ddefault --format=S16_LE foo.wav Maybe some dbus guru could help. Lokidor |
Re: Here is a working VLC Media Player!!
Here's an interesting update to the audio problem. I read this in another thread:
Quote:
Code:
cvlc v4l2:///dev/video0:chroma="UYVY":width=320:height=240:adev=default:audio-method=2:samplerate=8000 By the way, I've installed the full VLC package. It's annoying not having video out. EDIT: I wonder if we need to ask even more nicely. How do we get VLC to use the S16_LE audio format? |
Re: Here is a working VLC Media Player!!
I will check the audio format in the vlc code
Lokidor |
Re: Here is a working VLC Media Player!!
hi,there:
Now, can't download the file from "http://www.filecrunch.com/file/~euhmyn". Could you upload it again? Thx |
Re: Here is a working VLC Media Player!!
Read down from #95.
|
Re: Here is a working VLC Media Player!!
So, qwerty12, I've tried out your kernel. I've had lots of fun with the rotation, and it seems to me that my tablet boots a bit faster with the high speed SD, but I could be imagining it.
The "EIO not returned in VIDIOC_DQBUF" patch certainly stops the errors, but I'm not sure it is a good solution. A/V sync in Videocamera (look in the Garage) and with a standard GStreamer pipeline is pretty dismal; I think it has actually gotten worse with this patch. I don't know what a better solution would be here, though... I'll keep playing around; I still think there's hope. As for the V4L1 patch: how do I use it? There's no v4l1 device created (usually /dev/video) and /dev/video0 is not recognized as a v4l device by VLC 0.8.6... Sigh. Thanks for the kernel anyway! |
Re: Here is a working VLC Media Player!!
Quote:
Hmm, thanks for the report, I'll have to boot into a kernel with that patch removed and see if it's slower too :/ No idea, sorry, V4l1 is enabled, I think it's up to the driver which V4l it reports itself as. BTW: If you do end up flashing another kernel to remove the "EIO not returned in VIDIOC_DQBUF" patch, I recommend flashing fanoush's rotation kernel. That has the fixed rotation and the SD high speed without any extreme stuff like my kernel. |
Re: Here is a working VLC Media Player!!
Quote:
|
Re: Here is a working VLC Media Player!!
I'm 95% sure it's on all the partitions (kernel has fixed partition on /dev/mtd2 iirc) , you can verify next time you boot into the flash by running uname -a.
My kernels say BST, fanoush's say CEST and Nokia ones say EEST. |
Re: Here is a working VLC Media Player!!
Quote:
But looking at the code I found that the audio-method command is broken in vlc-git, if you want to use it you have to omit the "=" character... :confused:. With this bug vlc doesn't even try to load the alsa stuff and that's why you don't have the dbus error. However after some code modifications I made a little step forward. With my test version I have no longer the dbus error but still no sound (error in the alsa dsp plugin at the start of transcoding)... :( I'll do other tests this weekend. lokidor |
All times are GMT. The time now is 03:12. |
vBulletin® Version 3.8.8