mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-08-27 04:16:47 +00:00
sync video transcoding
This commit is contained in:
parent
c93740461e
commit
c63c39ce57
12 changed files with 2844 additions and 16 deletions
|
|
@ -412,7 +412,7 @@ namespace MediaBrowser.Server.Implementations.Sync
|
|||
jobItem.Status = SyncJobItemStatus.Converting;
|
||||
await _syncRepo.Update(jobItem).ConfigureAwait(false);
|
||||
|
||||
//jobItem.OutputPath = await MediaEncoder.EncodeAudio(new EncodingJobOptions(streamInfo, profile), new Progress<double>(), cancellationToken);
|
||||
jobItem.OutputPath = await MediaEncoder.EncodeVideo(new EncodingJobOptions(streamInfo, profile), new Progress<double>(), cancellationToken);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
@ -420,7 +420,7 @@ namespace MediaBrowser.Server.Implementations.Sync
|
|||
{
|
||||
jobItem.OutputPath = mediaSource.Path;
|
||||
}
|
||||
if (mediaSource.Protocol == MediaProtocol.Http)
|
||||
else if (mediaSource.Protocol == MediaProtocol.Http)
|
||||
{
|
||||
jobItem.OutputPath = await DownloadFile(jobItem, mediaSource, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
|
@ -464,7 +464,7 @@ namespace MediaBrowser.Server.Implementations.Sync
|
|||
{
|
||||
jobItem.OutputPath = mediaSource.Path;
|
||||
}
|
||||
if (mediaSource.Protocol == MediaProtocol.Http)
|
||||
else if (mediaSource.Protocol == MediaProtocol.Http)
|
||||
{
|
||||
jobItem.OutputPath = await DownloadFile(jobItem, mediaSource, cancellationToken).ConfigureAwait(false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue