視頻合并旋轉(重新排版)

先說視頻合并 這是視頻和音頻合并 因為使用shareAEC sdk錄屏unity畫面 面對物體時候和easyARyou沖突 會黑屏 最終使用unity官方推薦的everyPlayer錄屏 但是錄不到unity自帶的聲音為,所以在錄屏的時候進行錄音,下面是錄音的關鍵代碼

-(void)setAudioSession{

AVAudioSession*audioSession=[AVAudioSessionsharedInstance];

//設置為播放和錄音狀態(tài),以便可以在錄制完之后播放錄音AVAudioSessionCategoryAmbient AVAudioSessionCategoryPlayAndRecord

[audioSessionsetCategory:AVAudioSessionCategoryPlayAndRecorderror:nil];

[audioSessionsetActive:YESerror:nil];
//下面這幾句代碼 是為了在錄音開啟的時候繼續(xù)播放外音 以達到能錄到模型的聲音

UInt32doChangeDefaultRoute =1;

//kAudioSessionProperty_OverrideAudioRoute kAudioSessionProperty_OverrideCategoryDefaultToSpeaker

AudioSessionSetProperty(

kAudioSessionProperty_OverrideCategoryDefaultToSpeaker,

sizeof(doChangeDefaultRoute),

&doChangeDefaultRoute

);

}

/**

*錄音文件設置

*

*@return返回錄音設置

*/

- (NSDictionary*)getAudioSetting

{

NSMutableDictionary*dic = [NSMutableDictionarydictionary];

[dicsetObject:@(kAudioFormatLinearPCM)forKey:AVFormatIDKey];//設置錄音格式

[dicsetObject:@(4410)forKey:AVSampleRateKey];//設置采樣率8000

[dicsetObject:@(2)forKey:AVNumberOfChannelsKey];//設置通道,這里采用單聲道1 2

[dicsetObject:@(8)forKey:AVLinearPCMBitDepthKey];//每個采樣點位數(shù),分為8,16,24,32

[dicsetObject:@(YES)forKey:AVLinearPCMIsFloatKey];//是否使用浮點數(shù)采樣

[dicsetObject:@(128000)forKey:AVEncoderBitRateKey];

//AVEncoderAudioQualityKey:@(AVAudioQualityMax)

returndic;

}

/**

*錄音存儲路徑

*

*@return返回存儲路徑

*/

- (NSString*)getSavePath

{

NSString*url = [[UtinityHelpertmpPath]stringByAppendingPathComponent:[NSStringstringWithFormat:@"aa.%@",MusicType]];

returnurl;

}

- (AVAudioRecorder*)audioRecorder

{

if(!_audioRecorder) {

NSError*error =nil;

_audioRecorder= [[AVAudioRecorderalloc]initWithURL:[NSURLURLWithString:[selfgetSavePath]]settings:[selfgetAudioSetting]error:&error];

_audioRecorder.delegate=self;

//_audioRecorder.meteringEnabled = YES; //是否啟用錄音測量,如果啟用錄音測量可以獲得錄音分貝等數(shù)據(jù)信息

if(![_audioRecorderprepareToRecord]) {

SL_Log(@"錄音啟動失敗");

}

[selfsetAudioSession];

if(error) {

NSLog(@"創(chuàng)建錄音機對象發(fā)生錯誤:%@",error.localizedDescription);

returnnil;

}

}

return_audioRecorder;

}

//混合音樂

- (void)merge

{

NSFileManager*manger = [NSFileManagerdefaultManager];

//路徑

//NSString *documents = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"];

//聲音來源

NSString*strMusicPath = [selfgetSavePath];

if(!strMusicPath) {

//音頻不存在

return;

}

NSURL*audioInputUrl = [NSURLfileURLWithPath:[selfgetSavePath]];

//視頻來源

NSString*strVideoPath = [[UtinityHelpertmpPath]stringByAppendingPathComponent:@"Everyplay/session"];

NSArray*pathlList = [mangersubpathsAtPath:strVideoPath];

if(pathlList.count<=0) {

NSLog(@"視頻不存在");

[SVProgressHUDshowErrorWithStatus:@"錄屏失敗"];

return;

}else{

strVideoPath = [strVideoPathstringByAppendingPathComponent:pathlList.firstObject];

NSArray*pathlList1 = [mangersubpathsAtPath:strVideoPath];

if(pathlList.count<=0) {

return;

}else{

for(NSString*strPathinpathlList1) {

if([strPath.pathExtensionisEqualToString:@"mp4"]) {

strVideoPath = [strVideoPathstringByAppendingPathComponent:strPath];

break;

}

}

}

}

//strVideoPath = [[NSBundle mainBundle] pathForResource:@"screen-001" ofType:@"mp4"];

NSURL*videoInputUrl = [NSURLfileURLWithPath:strVideoPath];

//最終合成輸出路徑

NSString*videoPath = [[UtinityHelperdocmentPath]stringByAppendingPathComponent:VideoFolder];

[UtinityHelpercreatFolderWithPath:videoPath];

NSString*strVideoName = [NSStringstringWithFormat:@"recoder_%@.mp4",[UtinityHelperswitchStrDateWithDate:[NSDatedate]format:@"yyyyMMddHHmmss"]];

NSString*outPutFilePath = [videoPathstringByAppendingPathComponent:strVideoName];

if([UtinityHelperisHasPath:outPutFilePath]) {

[UtinityHelperremoveFileWithPath:outPutFilePath];

}

//添加合成路徑

NSURL*outputFileUrl = [NSURLfileURLWithPath:outPutFilePath];

//時間起點

CMTimenextClistartTime =kCMTimeZero;

//創(chuàng)建可變的音視頻組合

AVMutableComposition*comosition = [AVMutableCompositioncomposition];

//視頻采集

AVURLAsset*videoAsset = [[AVURLAssetalloc]initWithURL:videoInputUrloptions:nil];

//視頻時間范圍

CMTimeRangevideoTimeRange =CMTimeRangeMake(kCMTimeZero, videoAsset.duration);

//視頻通道枚舉kCMPersistentTrackID_Invalid = 0

AVMutableCompositionTrack*videoTrack = [comositionaddMutableTrackWithMediaType:AVMediaTypeVideopreferredTrackID:kCMPersistentTrackID_Invalid];

//視頻采集通道

AVAssetTrack*videoAssetTrack = [[videoAssettracksWithMediaType:AVMediaTypeVideo]firstObject];

//把采集軌道數(shù)據(jù)加入到可變軌道之中

[videoTrackinsertTimeRange:videoTimeRangeofTrack:videoAssetTrackatTime:nextClistartTimeerror:nil];

//由于合成之后視頻會旋轉180度所以合成之前先旋轉180度

CGAffineTransformpreferredTransform = videoTrack.preferredTransform;

//CGAffineTransform trans = CGAffineTransformTranslate(preferredTransform, 0.0, -videoTrack.naturalSize.height);

CGAffineTransformtransNew =CGAffineTransformRotate(preferredTransform,M_PI);

videoTrack.preferredTransform= transNew;

//聲音采集

AVURLAsset*audioAsset = [[AVURLAssetalloc]initWithURL:audioInputUrloptions:nil];

//因為視頻短這里就直接用視頻長度了,如果自動化需要自己寫判斷

CMTimeRangeaudioTimeRange = videoTimeRange;

//音頻通道

AVMutableCompositionTrack*audioTrack = [comositionaddMutableTrackWithMediaType:AVMediaTypeAudiopreferredTrackID:kCMPersistentTrackID_Invalid];

//音頻采集通道

AVAssetTrack*audioAssetTrack = [[audioAssettracksWithMediaType:AVMediaTypeAudio]firstObject];

//加入合成軌道之中

[audioTrackinsertTimeRange:audioTimeRangeofTrack:audioAssetTrackatTime:nextClistartTimeerror:nil];

//創(chuàng)建一個輸出

AVAssetExportSession*assetExport = [[AVAssetExportSessionalloc]initWithAsset:comositionpresetName:AVAssetExportPresetMediumQuality];

//輸出類型

//assetExport.outputFileType = AVFileType3GPP;

assetExport.outputFileType=AVFileTypeMPEG4;

//輸出地址

assetExport.outputURL= outputFileUrl;

//優(yōu)化

assetExport.shouldOptimizeForNetworkUse=YES;

//合成完畢

[assetExportexportAsynchronouslyWithCompletionHandler:^{

//回到主線程

SL_Log(@"合成完畢");

dispatch_async(dispatch_get_main_queue(), ^{

});

}];

}

關于視頻旋轉的一些代碼

- (void)mergeAndExportVideosAtFileURLs:(NSArray *)fileURLArray

{

//NSLog(@"the getVideoCount is %lu", (unsigned long)[self getVideoCount]);

//if (self.getVideoCount != fileURLArray.count) {

//NSLog(@"必定崩潰-------");

//NSLog(@"必定崩潰-------");

//NSLog(@"必定崩潰-------");

//}

NSLog(@"the fileURLArray is %@", fileURLArray);

if (fileURLArray.count <= 0) {

#warning小片段視頻還未成功生成就開始合并視頻

NSLog(@"嚴重錯誤!!!!!!!!!!!!!!!!!!!!!");

return;

}else{

for (NSURL *fileURL in fileURLArray) {

NSString *path = fileURL.resourceSpecifier;

if ([[NSFileManager defaultManager] fileExistsAtPath:path])

{

//JFLog(DBGUI, @"mergeAndExportVideosAtFileURLs theVideoPath is %@", path);

NSUInteger size;

NSDictionary *attr = [[NSFileManager defaultManager] attributesOfItemAtPath:path error:nil];

size = [attr[NSFileSize] unsignedIntegerValue];

//JFLog(DBGUI, @"mergeAndExportVideosAtFileURLs fileSize is %lu", size/(1024*1024));

}

}

}

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{

NSError *error = nil;

CGSize renderSize = CGSizeMake(0, 0);

NSMutableArray *layerInstructionArray = [[NSMutableArray alloc] init];

AVMutableComposition *mixComposition = [[AVMutableComposition alloc] init];

CMTime totalDuration = kCMTimeZero;

//先去assetTrack也為了取renderSize

NSMutableArray *assetTrackArray = [[NSMutableArray alloc] init];

NSMutableArray *assetAudioTrackArray = [NSMutableArray arrayWithCapacity:0];

NSMutableArray *assetArray = [[NSMutableArray alloc] init];

for (NSURL *fileURL in fileURLArray) {

AVAsset *asset = [AVAsset assetWithURL:fileURL];

//AVURLAsset *asset = [AVURLAsset URLAssetWithURL:fileURL options:nil];

//NSString *tracksKey = @"tracks";

NSString *tracksKey = @"AVMediaTypeAudio";

if (!asset) {

continue;

}

[assetArray addObject:asset];

AVAssetTrack *assetTrack = [[asset tracksWithMediaType:AVMediaTypeVideo] objectAtIndex:0];

[assetTrackArray addObject:assetTrack];

//AVAssetTrack *assetAudioTrack = [[asset tracksWithMediaType:AVMediaTypeAudio] objectAtIndex:0];

//[assetAudioTrackArray addObject:assetAudioTrack];

renderSize.width = MAX(renderSize.width, assetTrack.naturalSize.height);

renderSize.height = MAX(renderSize.height, assetTrack.naturalSize.width);

}

NSLog(@"the assetAudioTrackArray is %@", assetAudioTrackArray);

CGFloat renderW = MIN(renderSize.width, renderSize.height);

NSLog(@"the renderW is %f", renderW);

NSLog(@"the assetArray cout is %lu", (unsigned long)[assetArray count]);

NSLog(@"the assetTrackArray cout is %lu", (unsigned long)[assetTrackArray count]);

for (int i = 0; i < [assetArray count] && i < [assetTrackArray count]; i++) {

AVAsset *asset = [assetArray objectAtIndex:i];

AVAssetTrack *assetTrack = [assetTrackArray objectAtIndex:i];

//AVMutableCompositionTrack *audioTrack = [mixComposition addMutableTrackWithMediaType:AVMediaTypeAudio preferredTrackID:kCMPersistentTrackID_Invalid];

//[audioTrack insertTimeRange:CMTimeRangeMake(kCMTimeZero, asset.duration)

//ofTrack:[[asset tracksWithMediaType:AVMediaTypeAudio] objectAtIndex:0]

//atTime:totalDuration

//error:nil];

#warning這里加一個判斷

//[asset tracksWithMediaType:AVMediaTypeAudio]取出的數(shù)組可能為空這段視頻沒有音頻

NSArray *arr = [asset tracksWithMediaType:AVMediaTypeAudio];

//JFLog(DBGUI, @"the audioTrackArr is %@", arr);

if (arr.count <= 0) {

NSLog(@"沒有視頻!!!!!!!!!!!!!!!!!!!!!");

NSLog(@"沒有視頻!!!!!!!!!!!!!!!!!!!!!");

}

if (arr.count > 0) {

AVMutableCompositionTrack *audioTrack = [mixComposition addMutableTrackWithMediaType:AVMediaTypeAudio preferredTrackID:kCMPersistentTrackID_Invalid];

[audioTrack insertTimeRange:CMTimeRangeMake(kCMTimeZero, asset.duration) ofTrack:[arr objectAtIndex:0] atTime:totalDuration error:nil];

}

//[audioTrack insertTimeRange:CMTimeRangeMake(kCMTimeZero, asset.duration) ofTrack:([arr count]>0)?[arr objectAtIndex:0]:nil atTime:totalDuration error:nil];

AVMutableCompositionTrack *videoTrack = [mixComposition addMutableTrackWithMediaType:AVMediaTypeVideo preferredTrackID:kCMPersistentTrackID_Invalid];

NSLog(@"the assetduration is %lld", asset.duration.value/asset.duration.timescale);

[videoTrack insertTimeRange:CMTimeRangeMake(kCMTimeZero, asset.duration)

ofTrack:assetTrack

atTime:totalDuration

error:&error];

//fix orientationissue

AVMutableVideoCompositionLayerInstruction *layerInstruciton = [AVMutableVideoCompositionLayerInstruction videoCompositionLayerInstructionWithAssetTrack:videoTrack];

totalDuration = CMTimeAdd(totalDuration, asset.duration);

CGFloat rate;

NSLog(@"the renderW is %f", renderW);

NSLog(@"assetTrack.naturalSize.width is %f", assetTrack.naturalSize.width);

NSLog(@"assetTrack.naturalSize.height is %f", assetTrack.naturalSize.height);

rate = renderW / MIN(assetTrack.naturalSize.width, assetTrack.naturalSize.height);

NSLog(@"the rate is %f", rate);

NSLog(@" preferredTransform.a is %f", assetTrack.preferredTransform.a);

NSLog(@" preferredTransform.b is %f", assetTrack.preferredTransform.b);

NSLog(@" preferredTransform.c is %f", assetTrack.preferredTransform.c);

NSLog(@" preferredTransform.d is %f", assetTrack.preferredTransform.d);

NSLog(@" preferredTransform.tx is %f", assetTrack.preferredTransform.tx);

NSLog(@" preferredTransform.ty is %f", assetTrack.preferredTransform.ty);

CGAffineTransform translateToCenter;

CGAffineTransform mixedTransform;

//AVMutableVideoComposition *waterMarkVideoComposition = [AVMutableVideoComposition videoComposition];

//waterMarkVideoComposition.frameDuration = CMTimeMake(1, 30);

int degrees = [self degressFromVideoFileWithURL:assetTrack];

//degrees = 180;

if (degrees == 0) {

//AVAssetExportSession *session = [[AVAssetExportSession alloc] initWithAsset:assetpresetName:AVAssetExportPresetMediumQuality];

//session.outputURL = outputURL;

//session.outputFileType = AVFileTypeQuickTimeMovie;

}else{

if(degrees == 90){

//順時針旋轉90°

NSLog(@"視頻旋轉90度,home按鍵在左");

translateToCenter = CGAffineTransformMakeTranslation(assetTrack.naturalSize.height, 0.0);

//mixedTransform = CGAffineTransformRotate(translateToCenter,0);

mixedTransform = CGAffineTransformRotate(translateToCenter,M_PI_2);

//videoTrack.renderSize = CGSizeMake(assetTrack.naturalSize.height,assetTrack.naturalSize.width);

}else if(degrees == 180){

//順時針旋轉180°

NSLog(@"視頻旋轉180度,home按鍵在上");

translateToCenter = CGAffineTransformMakeTranslation(assetTrack.naturalSize.width, assetTrack.naturalSize.height);

mixedTransform = CGAffineTransformRotate(translateToCenter,M_PI);

//waterMarkVideoComposition.renderSize = CGSizeMake(assetTrack.naturalSize.width,assetTrack.naturalSize.height);

}else if(degrees == 270){

//順時針旋轉270°

NSLog(@"視頻旋轉270度,home按鍵在右");

translateToCenter = CGAffineTransformMakeTranslation(0.0, assetTrack.naturalSize.width);

mixedTransform = CGAffineTransformRotate(translateToCenter,M_PI_2*3.0);

//waterMarkVideoComposition.renderSize = CGSizeMake(assetTrack.naturalSize.height,assetTrack.naturalSize.width);

}

}

CGAffineTransform preferredTransform = assetTrack.preferredTransform;

CGAffineTransform trans = CGAffineTransformTranslate(preferredTransform, 0.0, -assetTrack.naturalSize.height);

CGAffineTransform transNew = CGAffineTransformRotate(preferredTransform,M_PI_2*3);

transNew = CGAffineTransformTranslate(transNew, 0, -(assetTrack.naturalSize.width - assetTrack.naturalSize.height) / 2.0);

transNew = CGAffineTransformConcat(trans, transNew);

transNew = CGAffineTransformScale(transNew, rate, rate);//放縮,解決前后攝像結果大小不對稱

//CGAffineTransform layerTransform = CGAffineTransformMake(assetTrack.preferredTransform.a, assetTrack.preferredTransform.b, assetTrack.preferredTransform.c, assetTrack.preferredTransform.d, assetTrack.preferredTransform.tx * rate, assetTrack.preferredTransform.ty * rate);

//layerTransform = (a = 0, b = 1, c = -1, d = 0, tx = 1080, ty = 0)

CGAffineTransform layerTransform = CGAffineTransformMake(assetTrack.preferredTransform.a, assetTrack.preferredTransform.b, assetTrack.preferredTransform.c, assetTrack.preferredTransform.d, assetTrack.naturalSize.height * rate, assetTrack.preferredTransform.ty * rate);

//

//layerTransform = CGAffineTransformConcat(layerTransform, CGAffineTransformMake(1, 0, 0, 1, 0, -(assetTrack.naturalSize.width - assetTrack.naturalSize.height) / 2.0));//向上移動取中部影響

////

//layerTransform = CGAffineTransformScale(layerTransform, rate, rate);//放縮,解決前后攝像結果大小不對稱

//[layerInstruciton setTransform:layerTransform atTime:kCMTimeZero];

//[layerInstruciton setOpacity:0.0 atTime:totalDuration];

[layerInstruciton setTransform:transNew atTime:kCMTimeZero];

//[layerInstruciton setTransform:mixedTransform atTime:kCMTimeZero];

//[layerInstruciton setTransform:assetTrack.preferredTransform atTime:kCMTimeZero];

//data

[layerInstructionArray addObject:layerInstruciton];

}

//get save path

NSURL *mergeFileURL = [NSURL fileURLWithPath:[[self class] getVideoMergeFilePathString]];

//export

AVMutableVideoCompositionInstruction *mainInstruciton = [AVMutableVideoCompositionInstruction videoCompositionInstruction];

mainInstruciton.timeRange = CMTimeRangeMake(kCMTimeZero, totalDuration);

mainInstruciton.layerInstructions = layerInstructionArray;

AVMutableVideoComposition *mainCompositionInst = [AVMutableVideoComposition videoComposition];

mainCompositionInst.instructions = @[mainInstruciton];

mainCompositionInst.frameDuration = CMTimeMake(1, 30);

//mainCompositionInst.frameDuration = CMTimeMake(1, 24);

NSLog(@"the renderSize is %@", NSStringFromCGSize(CGSizeMake(renderW, renderW)));

mainCompositionInst.renderSize = CGSizeMake(renderW, renderW);

AVAssetExportSession *exporter = [[AVAssetExportSession alloc] initWithAsset:mixComposition presetName:AVAssetExportPresetMediumQuality];

exporter.videoComposition = mainCompositionInst;

exporter.outputURL = mergeFileURL;

exporter.outputFileType = AVFileTypeMPEG4;

exporter.shouldOptimizeForNetworkUse = YES;

[exporter exportAsynchronouslyWithCompletionHandler:^{

if ([exporter status] != AVAssetExportSessionStatusCompleted) {

NSLog(@"the status is %ld", (long)[exporter status]);

NSLog(@"the outPutPath is %@", [exporter.outputURL absoluteString]);

NSLog(@"the error is %@", [exporter error].userInfo);

NSLog(@"the error is %@", [exporter error]);

}

if ([exporter status] == AVAssetExportSessionStatusFailed) {

//if (DEBUG) {

//NSLog(@"error ");

//}

}

NSString *path = mergeFileURL.resourceSpecifier;

//NSString *pa1 = outputFileURL.absoluteString;

//NSString *pa2 = outputFileURL.resourceSpecifier;

//NSString *pa3 = outputFileURL.scheme;

//NSString *pa4 = outputFileURL.relativePath;

NSLog(@"theVideoPath is %@", path);

NSLog(@"outputFileURL is %@", mergeFileURL);

if ([[NSFileManager defaultManager] fileExistsAtPath:path])

{

NSLog(@"theVideoPath is %@", path);

NSUInteger size;

NSDictionary *attr = [[NSFileManager defaultManager] attributesOfItemAtPath:path error:nil];

size = [attr[NSFileSize] unsignedIntegerValue];

NSLog(@"didFinishRecordingToOutputFileAtURL fileSize is %lu", size/(1024*1024));

}

NSLog(@"the outputFile is %@", mergeFileURL);

dispatch_async(dispatch_get_main_queue(), ^{

//MSPreViewController *VC = [MSPreViewController new];

//

//VC.videoURL = mergeFileURL;

//

//NSLog(@"navi is %@", self.navigationController);

//

//[self.navigationController pushViewController:VC animated:YES];

});

//return;

//dispatch_async(dispatch_get_main_queue(), ^{

//if ([_delegate respondsToSelector:@selector(videoRecorder:didFinishMergingVideosToOutPutFileAtURL:)]) {

//[_delegate videoRecorder:self didFinishMergingVideosToOutPutFileAtURL:mergeFileURL];

//}

//});

}];

});

}

- (NSUInteger)degressFromVideoFileWithURL:(NSURL*)url

{

NSUIntegerdegress =0;

AVAsset*asset = [AVAssetassetWithURL:url];

NSArray*tracks = [assettracksWithMediaType:AVMediaTypeVideo];

if([trackscount] >0) {

AVAssetTrack*videoTrack = [tracksobjectAtIndex:0];

CGAffineTransformt = videoTrack.preferredTransform;

if(t.a==0&& t.b==1.0&& t.c== -1.0&& t.d==0){

// Portrait

degress =90;

}elseif(t.a==0&& t.b== -1.0&& t.c==1.0&& t.d==0){

// PortraitUpsideDown

degress =270;

}elseif(t.a==1.0&& t.b==0&& t.c==0&& t.d==1.0){

// LandscapeRight

degress =0;

}elseif(t.a== -1.0&& t.b==0&& t.c==0&& t.d== -1.0){

// LandscapeLeft

degress =180;

}

}

returndegress;

}

- (UIImage*)extractImageFromVideoFileWithUrl:(NSURL*)url

{

NSDictionary*opts =@{AVURLAssetPreferPreciseDurationAndTimingKey:@(NO)};

AVURLAsset*asset = [[AVURLAssetalloc]initWithURL:urloptions:opts];

AVAssetImageGenerator*gen = [[AVAssetImageGeneratoralloc]initWithAsset:asset];

//應用方向

gen.appliesPreferredTrackTransform=YES;

CMTimetime =CMTimeMakeWithSeconds(1,60);

NSError*error =nil;

CMTimeactualTime;

CGImageRefimage = [gencopyCGImageAtTime:timeactualTime:&actualTimeerror:&error];

if(error)

{

SL_Log(@"error %@",error);

returnnil;

}

UIImage*thumb = [[UIImagealloc]initWithCGImage:image];

CGImageRelease(image);

returnthumb;

}
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 230,002評論 6 542
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 99,400評論 3 429
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事。” “怎么了?”我有些...
    開封第一講書人閱讀 178,136評論 0 383
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經(jīng)常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 63,714評論 1 317
  • 正文 為了忘掉前任,我火速辦了婚禮,結果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當我...
    茶點故事閱讀 72,452評論 6 412
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 55,818評論 1 328
  • 那天,我揣著相機與錄音,去河邊找鬼。 笑死,一個胖子當著我的面吹牛,可吹牛的內容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 43,812評論 3 446
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側響起,我...
    開封第一講書人閱讀 42,997評論 0 290
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 49,552評論 1 335
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內容為張勛視角 年9月15日...
    茶點故事閱讀 41,292評論 3 358
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 43,510評論 1 374
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 39,035評論 5 363
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質發(fā)生泄漏。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 44,721評論 3 348
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 35,121評論 0 28
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 36,429評論 1 294
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個月前我還...
    沈念sama閱讀 52,235評論 3 398
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 48,480評論 2 379

推薦閱讀更多精彩內容

  • 用到的組件 1、通過CocoaPods安裝 2、第三方類庫安裝 3、第三方服務 友盟社會化分享組件 友盟用戶反饋 ...
    SunnyLeong閱讀 14,646評論 1 180
  • 黑色的海島上懸著一輪又大又圓的明月,毫不嫌棄地把溫柔的月色照在這寸草不生的小島上。一個少年白衣白發(fā),悠閑自如地倚坐...
    小水Vivian閱讀 3,130評論 1 5
  • 漸變的面目拼圖要我怎么拼? 我是疲乏了還是投降了? 不是不允許自己墜落, 我沒有滴水不進的保護膜。 就是害怕變得面...
    悶熱當乘涼閱讀 4,301評論 0 13
  • 感覺自己有點神經(jīng)衰弱,總是覺得手機響了;屋外有人走過;每次媽媽不聲不響的進房間突然跟我說話,我都會被嚇得半死!一整...
    章魚的擁抱閱讀 2,194評論 4 5
  • 夜鶯2517閱讀 127,749評論 1 9