[vlc-devel] Error in this code
evazquez at grm.uci.cu
evazquez at grm.uci.cu
Sun May 25 21:30:47 CEST 2014
This code work with the followings errors:
[0xb1b03558] [Medio: 5004] main input error: ES_OUT_SET_(GROUP_)PCR is
called too late (pts_delay increased to 300 ms)
[0xb1b03558] [Medio: 5004] main input error: ES_OUT_RESET_PCR called
[0xb1b03558] [Medio: 5004] main input error: ES_OUT_SET_(GROUP_)PCR is
called too late (pts_delay increased to 308 ms)
[0xb1b03558] [Medio: 5004] main input error: ES_OUT_RESET_PCR called
<CODE>
#include <iostream>
#include <cstdlib>
#include <vlc/vlc.h>
int main(int argc, char**argv)
{
// the array with parameters
const char* params[] = {"screen-top=0",
"screen-left=0",
"screen-width=640",
"screen-height=480",
"screen-fps=10"};
libvlc_instance_t * inst = libvlc_new(argc, argv);
libvlc_vlm_add_broadcast(inst, "mybroad",
"screen://",
"#transcode{vcodec=h264,vb=800,scale=1,acodec=mpga,ab=128,channels=2,samplerate=44100}:http{mux=ts,dst=:7777/}",
5, params, // Here seems to be the problem. But not
understand why?
1, 0);
libvlc_vlm_play_media(inst, "mybroad");
std::cout << "ready" << std::endl;
int i;
std::cin >> i;
return 0;
}
</CODE>
More information about the vlc-devel
mailing list