Disko Forum logo Login  |  Register  |  Lost Password
<< Start < Prev 1 2 Next > End >>
Video test application - need help

andre
Posts: 35
graphgraph

Video test application - need help 4 Years, 8 Months ago  
Hello,

I am trying to create a simple video test application.

Here is what I am doing:

#include <mms.h>
#include <iostream>

const char *const videofile = "./video_mpeg2_1.mpg";

int main(int argc, char *argv[]) {

mmsInit(MMSINIT_WINDOWS, argc, argv,&quot;./diskorc.xml&quot;

MMSRootWindow *video_window = new MMSRootWindow(&quot;&quot;,&quot;100%&quot;,&quot;100%&quot;,MMSALIGNMENT_CENTER, (MMSWINDOW_FLAGS)MMSW_VIDEO);

video_window-&gt;show();

cout &lt;&lt; &quot;Creating MMSVideo object now...&quot; &lt;&lt; endl;

MMSVideo *video_player = new MMSVideo(video_window);

if (video_player) {
cout &lt;&lt; &quot;MMSVideo object created successfully.&quot; &lt;&lt; endl;
video_player-&gt;startPlaying(videofile);
}
else
cout &lt;&lt; &quot;Error creating MMMVideo object&quot; &lt;&lt; endl;

pause();

delete video_window, video_player;

return 0;
}

Unfortunately I am experiencing the following error:

Starting Disko Application...
w: 1024, h: 768
DISKO: Available xv adaptors:
ATI Radeon Video Overlay (used)
Radeon Textured Video
DISKO: Using accelerated fill rectangle to YV12.
DISKO: Pixelformat ARGB is used for surfaces.
DISKO: Pixelformat ARGB is used for windows with alphachannel.
DISKO: Using accelerated fill rectangle to ARGB.
DISKO: Using accelerated copy ARGB to ARGB.
DISKO: Using accelerated blend ARGB to YV12.
DISKO: Pixelformat YV12 is used for windows with no alphachannel.
Creating MMSVideo obello,

I am trying to create a simple video test application.

Here is what I am doing:

#include <mms.h>
#include <iostream>

const char *const videofile = "./video_mpeg2_1.mpg";

int main(int argc, char *argv[]) {

mmsInit(MMSINIT_WINDOWS, argc, argv,"./diskorc.xml";

MMSRootWindow *video_window = new MMSRootWindow("","100%","100%",MMSALIGNMENT_CENTER, (MMSWINDOW_FLAGS)MMSW_VIDEO);

video_window->show();

cout << "Creating MMSVideo object now..." << endl;

MMSVideo *video_player = new MMSVideo(video_window);

if (video_player) {
cout << "MMSVideo object created successfully." << endl;
video_player->startPlaying(videofile);
}
else
cout << "Error creating MMMVideo object" << endl;

pause();

delete video_window, video_player;

return 0;
}

Unfortunately I am experiencing the following error:

Starting Disko Application...
w: 1024, h: 768
DISKO: Available xv adaptors:
ATI Radeon Video Overlay (used)
Radeon Textured Video
DISKO: Using accelerated fill rectangle to YV12.
DISKO: Pixelformat ARGB is used for surfaces.
DISKO: Pixelformat ARGB is used for windows with alphachannel.
DISKO: Using accelerated fill rectangle to ARGB.
DISKO: Using accelerated copy ARGB to ARGB.
DISKO: Using accelerated blend ARGB to YV12.
DISKO: Pixelformat YV12 is used for windows with no alphachannel.
Creating MMSVideo object now...
DISKO: Using accelerated copy YV12 to YV12.
terminate called after throwing an instance of 'MMSAVError*'
Aborted


Can anyone give me a clue of what am I doing wrong?

Thanks in advance.

André
 
  The administrator has disabled public write access.
Video test application - need help

andre
Posts: 35
graphgraph

Re:Video test application - need help 4 Years, 8 Months ago  
The message text is all messed up. I don't now what happened, but sorry for that!
 
  The administrator has disabled public write access.
Video test application - need help

Guido
Admin
Posts: 54
graphgraph

Re:Video test application - need help 4 Years, 8 Months ago  
Hi André,

please rebuild Disko with "messages=y debug=y" and send the output of the logfile.

regards

Guido
 
  The administrator has disabled public write access.
Video test application - need help

andre
Admin
Posts: 35
graphgraph

Re:Video test application - need help 4 Years, 8 Months ago  
Hello,

Please find the logfile attached.

Many thanks,
André

/home/andre/disko/tests-andre/video-test/logfile[/file]
 
  The administrator has disabled public write access.
Video test application - need help

andre
Admin
Posts: 35
graphgraph

Re:Video test application - need help 4 Years, 8 Months ago  
Problems uploading the file...

File Attachment:
File Name: logfile-54dc1288e85f02abef2f854537d29ac2.txt
File Size: 15507
/home/andre/disko/tests-andre/video-test/logfile.txt[/file]
 
  The administrator has disabled public write access.
Video test application - need help

Stefan
Admin
Posts: 91
graph

Re:Video test application - need help 4 Years, 8 Months ago  
Hi André,

did you compile libxine yourself?

We are relying on the vo_raw plugin of xine. Sadly at least Ubuntu does not provide it in the stock installation. Looking at the logfile it seems, that the plugin is missing.

have fun
Stefan
 
  The administrator has disabled public write access.
<< Start < Prev 1 2 Next > End >>
Powered by FireBoard
get the latest posts directly to your desktop