Make the ipod format output compatible with non seekable output stream (pipe).#36
This commit is contained in:
@@ -235,6 +235,8 @@ guessMediaFileFormat(const std::filesystem::path& file)
|
|||||||
if (!format || !format->name)
|
if (!format || !format->name)
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
|
LMS_LOG(AV, DEBUG) << "File '" << file.string() << "', formats = '" << format->name << "'";
|
||||||
|
|
||||||
auto formats {StringUtils::splitString(format->name, ",")};
|
auto formats {StringUtils::splitString(format->name, ",")};
|
||||||
if (formats.size() > 1)
|
if (formats.size() > 1)
|
||||||
LMS_LOG(AV, INFO) << "File '" << file.string() << "' reported several formats: '" << format->name << "'";
|
LMS_LOG(AV, INFO) << "File '" << file.string() << "' reported several formats: '" << format->name << "'";
|
||||||
|
|||||||
@@ -162,6 +162,13 @@ Transcoder::start()
|
|||||||
args.emplace_back("-f");
|
args.emplace_back("-f");
|
||||||
args.emplace_back(mediaFileFormat->format);
|
args.emplace_back(mediaFileFormat->format);
|
||||||
|
|
||||||
|
// Workaround for ipod streams: make it compatible with non seekable output
|
||||||
|
if (mediaFileFormat->format == "ipod")
|
||||||
|
{
|
||||||
|
args.emplace_back("-movflags");
|
||||||
|
args.emplace_back("frag_keyframe");
|
||||||
|
}
|
||||||
|
|
||||||
_outputMimeType = mediaFileFormat->mimeType;
|
_outputMimeType = mediaFileFormat->mimeType;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user