SHARE
TWEET

Untitled

a guest Jul 10th, 2013 74 Never
  1. ffmpeg  -s 320x240 -f video4linux2 -i /dev/video0 -f mpegts -vcodec libx264 udp://192.168.1.34:1234
  2.        
  3. [video writeToFile:@"videoStream.m4v" atomically:YES];
  4. NSURL *url = [NSURL fileURLWithPath:@"videoStream.m4v"];
  5.  
  6. MPMoviePlayerController *videoController = [[MPMoviePlayerController alloc] initWithContentURL:url];
  7.  
  8. [videoController.view setFrame:CGRectMake(100, 100, 150, 150)];
  9.  
  10. [self.view addSubview:videoController.view];
  11.  
  12. [videoController play];
RAW Paste Data
Top