-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
various: sync track information output #14453
Changes from all commits
5fc2ad2
178819e
eb0af02
21a87ef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
remove deprecated `packet-video-bitrate` `packet-audio-bitrate` and `packet-sub-bitrate` properties |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -252,7 +252,7 @@ static void print_stream(struct MPContext *mpctx, struct track *t, bool indent) | |
const char *langopt = "?"; | ||
switch (t->type) { | ||
case STREAM_VIDEO: | ||
tname = "Video"; selopt = "vid"; langopt = "vlang"; | ||
tname = t->image ? "Image" : "Video"; selopt = "vid"; langopt = "vlang"; | ||
break; | ||
case STREAM_AUDIO: | ||
tname = "Audio"; selopt = "aid"; langopt = "alang"; | ||
|
@@ -299,21 +299,23 @@ static void print_stream(struct MPContext *mpctx, struct track *t, bool indent) | |
if (s && s->codec->samplerate) | ||
APPEND(b, " %d Hz", s->codec->samplerate); | ||
} | ||
if (s && s->hls_bitrate > 0) | ||
APPEND(b, " %d kbps", (s->hls_bitrate + 500) / 1000); | ||
if (s && s->codec->bitrate) | ||
APPEND(b, " %d kbps", (s->codec->bitrate + 500) / 1000); | ||
if (s && s->hls_bitrate) | ||
APPEND(b, " %d HLS kbps", (s->hls_bitrate + 500) / 1000); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what kind of unit is "HLS kbps"? my suggestion is to print codec bitrate if available or else print hls bitrate, but without the extra "HLS" |
||
APPEND(b, ")"); | ||
|
||
bool first = true; | ||
if (t->default_track) | ||
ADD_FLAG(b, "default", first); | ||
if (t->forced_track) | ||
ADD_FLAG(b, "forced", first); | ||
if (t->attached_picture) | ||
ADD_FLAG(b, "picture", first); | ||
if (t->dependent_track) | ||
ADD_FLAG(b, "dependent", first); | ||
if (t->visual_impaired_track) | ||
ADD_FLAG(b, "visual_impaired", first); | ||
ADD_FLAG(b, "visual-impaired", first); | ||
if (t->hearing_impaired_track) | ||
ADD_FLAG(b, "hearing_impaired", first); | ||
ADD_FLAG(b, "hearing-impaired", first); | ||
if (t->is_external) | ||
ADD_FLAG(b, "external", first); | ||
if (!first) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks strange to me