Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 10th, 2013  |  syntax: None  |  size: 0.45 KB  |  views: 38  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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];
clone this paste RAW Paste Data