Error when using SampleCode SDL

This forum is about all development around libVLC.
vinifr
New Cone
New Cone
Posts: 9
Joined: 20 May 2013 19:18

Error when using SampleCode SDL

Postby vinifr » 24 May 2013 02:49

Hi guys,

I am getting an error: http://pastebin.com/NrxBq2Ts. But do not know if it's bad code:http://pastebin.com/3nCSh2F0 or unstable kernel. :(

I am using Ubuntu linaro 12.11 and kernel sunxi-v3.0.76-r0 in cubieboard.

kernel: https://github.com/linux-sunxi/linux-su ... v3.0.76-r0
cubieboard: http://cubieboard.org/

Command:

Code: Select all

./sdl_example --demux ffmpeg --codec cedar --vout cedarfb --no-osd <media file>
NOTE: cedar is the specific cubieboard decoder: CedarX is Allwinner's multimedia co-processing technology for hardware accelerated video and image decoding, as used inside their A10 SoC's and others. I am using a special port vlc to Allwinner A10. If i use:

Code: Select all

cvlc --demux ffmpeg --codec cedar --vout cedarfb --no-osd <media file>
runs cool!

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Error when using SampleCode SDL

Postby Rémi Denis-Courmont » 24 May 2013 06:43

VLC is unable to convert from the decoder plugin's output format to the video output plugin's input format.

Note that you can obviously not have a custom video output and custom video output callbacks at the same time.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

vinifr
New Cone
New Cone
Posts: 9
Joined: 20 May 2013 19:18

Re: Error when using SampleCode SDL

Postby vinifr » 24 May 2013 13:27

I beg your pardon, but I do not understand. :oops:

Do you mean that vlc can playback a video using custom decoder like cedar, but libvlc does not? Because there are lots of callback functions.

If I use another graphical library can work? Like libx11 or libqt. The result is the same?

thanks for your help.

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Error when using SampleCode SDL

Postby Rémi Denis-Courmont » 24 May 2013 22:16

Your code requests RV16 as video output chroma. Your decoder outputs something else. VLC does not know how to convert that something else to RV16.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

vinifr
New Cone
New Cone
Posts: 9
Joined: 20 May 2013 19:18

Re: Error when using SampleCode SDL

Postby vinifr » 24 May 2013 23:40

Now I get it! :lol:

You have reason, i changed to 'libvlc_video_set_format(mp, "RV32", VIDEOWIDTH, VIDEOHEIGHT, VIDEOWIDTH*4);' and i get this:

[0x44a37d00] main filter error: Failed to create video filter2
[0x44a363f0] main filter error: Failed to create video filter2
[0x44a34dc0] main filter error: Failed to create video filter2
[0x44a343a0] main vout display error: Failed to create video filter2
[0x44a343a0] main vout display error: Failed to adapt decoder format to display


Thanks for your help and time!


Return to “Development around libVLC”

Who is online

Users browsing this forum: Bing [Bot] and 9 guests