General Question about VOL and header
Posted: 14 May 2009 18:22
Hello,
When I am streaming video to VLC, if VLC starts receiving stream prior to stream sender, then VLC plays it fine.
But if some initial packets are lost, I am not able to play the stream on VLC as it is saying that it is waiting for VOL.
I was sending VOL only once and hence the problem was there but when I send that VOL bitstream again then also VLC is not able to play it.
Foll was my initial bitsstream that contained (vol, voseq, vostartcode, gvopstartcode)
000001B004000001B503CF000001000000012000C4888032514043C1463F000001b3001027
Now when I need to send it again, I am keeping all other data same but changing only GVOP start code
/*uint* data = address of GVOP, where "001027" was the initial data
*/
data[0] = ( hours<<3 ) | ((( minites << 2 ) >> 5 ) );
data[1] = (minites<<5 ) | 0x10 |((seconds >> 2) );
data[2] = (data[2] & 0x3F) | (seconds<<6);
I am then again sending this newly created bitstream but still VLC is nto able to play it.
Can anyone help?
Thanks in advance..
-Digish
When I am streaming video to VLC, if VLC starts receiving stream prior to stream sender, then VLC plays it fine.
But if some initial packets are lost, I am not able to play the stream on VLC as it is saying that it is waiting for VOL.
I was sending VOL only once and hence the problem was there but when I send that VOL bitstream again then also VLC is not able to play it.
Foll was my initial bitsstream that contained (vol, voseq, vostartcode, gvopstartcode)
000001B004000001B503CF000001000000012000C4888032514043C1463F000001b3001027
Now when I need to send it again, I am keeping all other data same but changing only GVOP start code
/*uint* data = address of GVOP, where "001027" was the initial data
*/
data[0] = ( hours<<3 ) | ((( minites << 2 ) >> 5 ) );
data[1] = (minites<<5 ) | 0x10 |((seconds >> 2) );
data[2] = (data[2] & 0x3F) | (seconds<<6);
I am then again sending this newly created bitstream but still VLC is nto able to play it.
Can anyone help?
Thanks in advance..
-Digish