mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-04 03:27:21 -05:00 
			
		
		
		
	revised windows phone fix
This commit is contained in:
		
							parent
							
								
									893093a64a
								
							
						
					
					
						commit
						211d24e66e
					
				@ -518,7 +518,7 @@ namespace MediaBrowser.Api.Playback
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            ServerEntryPoint.Instance.OnTranscodeBeginning(outputPath, TranscodingJobType, process);
 | 
					            ServerEntryPoint.Instance.OnTranscodeBeginning(outputPath, TranscodingJobType, process);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            //Logger.Info(process.StartInfo.FileName + " " + process.StartInfo.Arguments);
 | 
					            Logger.Info(process.StartInfo.FileName + " " + process.StartInfo.Arguments);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            var logFilePath = Path.Combine(ApplicationPaths.LogDirectoryPath, "ffmpeg-" + Guid.NewGuid() + ".txt");
 | 
					            var logFilePath = Path.Combine(ApplicationPaths.LogDirectoryPath, "ffmpeg-" + Guid.NewGuid() + ".txt");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -72,7 +72,14 @@ namespace MediaBrowser.Api.Playback.Progressive
 | 
				
			|||||||
                }
 | 
					                }
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            return string.Format("{0} {1} -i {2}{3} -threads 0 {4} {5}{6} {7} \"{8}\"",
 | 
					            var format = string.Empty;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            if (string.Equals("wmv2", videoCodec, StringComparison.OrdinalIgnoreCase))
 | 
				
			||||||
 | 
					            {
 | 
				
			||||||
 | 
					                format = " -f asf ";
 | 
				
			||||||
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					            return string.Format("{0} {1} -i {2}{3} -threads 0 {4} {5}{6} {7}{8} \"{9}\"",
 | 
				
			||||||
                probeSize,
 | 
					                probeSize,
 | 
				
			||||||
                GetFastSeekCommandLineParameter(state.Request),
 | 
					                GetFastSeekCommandLineParameter(state.Request),
 | 
				
			||||||
                GetInputArgument(video, state.IsoMount),
 | 
					                GetInputArgument(video, state.IsoMount),
 | 
				
			||||||
@ -81,6 +88,7 @@ namespace MediaBrowser.Api.Playback.Progressive
 | 
				
			|||||||
                GetVideoArguments(state, videoCodec),
 | 
					                GetVideoArguments(state, videoCodec),
 | 
				
			||||||
                graphicalSubtitleParam,
 | 
					                graphicalSubtitleParam,
 | 
				
			||||||
                GetAudioArguments(state),
 | 
					                GetAudioArguments(state),
 | 
				
			||||||
 | 
					                format,
 | 
				
			||||||
                outputPath
 | 
					                outputPath
 | 
				
			||||||
                ).Trim();
 | 
					                ).Trim();
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
@ -124,11 +132,6 @@ namespace MediaBrowser.Api.Playback.Progressive
 | 
				
			|||||||
                args += " -bsf h264_mp4toannexb";
 | 
					                args += " -bsf h264_mp4toannexb";
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if (string.Equals("wmv2", videoCodec))
 | 
					 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                args += " -f asf";
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
            return args;
 | 
					            return args;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user