![]() |
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 |
| All times are GMT. The time now is 01:45. |
vBulletin® Version 3.8.8