Skip to content
This repository was archived by the owner on Apr 21, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions tsMuxer/hevc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -773,10 +773,11 @@ string HevcSpsUnit::getDescription() const
{
string result = getProfileString();
result += string(" Resolution: ") + int32ToStr(pic_width_in_luma_samples) + string(":") + int32ToStr(pic_height_in_luma_samples);
if (interlaced_source_flag)
result += string("i");
else
result += string("p");
result += (interlaced_source_flag ? string("i") : string("p"));

double fps = getFPS();
result += " Frame rate: ";
result += (fps ? doubleToStr(fps) : string("not found"));
return result;
}

Expand Down
5 changes: 4 additions & 1 deletion tsMuxer/hevcStreamReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,10 @@ CheckStreamRez HEVCStreamReader::checkStream(uint8_t* buffer, int len)
if (m_vps && m_sps && m_pps && m_sps->vps_id == m_vps->vps_id && m_pps->sps_id == m_sps->sps_id)
{
rez.codecInfo = hevcCodecInfo;
rez.streamDescr = m_sps->getDescription() + string(" ") + m_vps->getDescription();
rez.streamDescr = m_sps->getDescription();
size_t frSpsPos = rez.streamDescr.find("Frame rate: not found");
if (frSpsPos != string::npos)
rez.streamDescr = rez.streamDescr.substr(0, frSpsPos) + string(" ") + m_vps->getDescription();
}

return rez;
Expand Down
14 changes: 0 additions & 14 deletions tsMuxer/metaDemuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,23 +623,9 @@ DetectStreamRez METADemuxer::DetectStreamReader(BufferedReaderManager& readManag
trackRez.codecInfo.programName == "V_MPEG4/ISO/MVC" ||
trackRez.codecInfo.programName == "V_MPEGH/ISO/HEVC"
)
{
size_t frPos = trackRez.streamDescr.find("Frame rate: not found");
if (frPos != string::npos)
{
double fps = demuxer->getTrackFps(itr->first);
if (fps != 0.0)
{
trackRez.streamDescr = trackRez.streamDescr.substr(0,frPos);
trackRez.streamDescr += "Frame rate: ";
trackRez.streamDescr += doubleToStr(fps);
}
}
addTrack(streams, trackRez, true);
}
else
addTrack(streams, trackRez, false);
//}
}
chapters = demuxer->getChapters();
if (calcDuration)
Expand Down
3 changes: 0 additions & 3 deletions tsMuxerGUI/tsmuxerwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,6 @@ QString toNativeDecPoint(QString str) {
}

float myStrToFloat(QString str) {
for (int i = 0; i < str.length(); ++i)
if (str[i] == ',' || str[i] == '.')
str[i] = locale.decimalPoint();
return str.toFloat();
}

Expand Down