Jump to content

Bug: Improperly storing MediaStreams2


Recommended Posts

joshua4
Posted

This is the command emby runs on videos and its output

> ffprobe.exe -v error -select_streams v:0 -show_entries stream=width,height,duration,bit_rate -of default=noprint_wrappers=1 "C:\video.mkv"
width=1920
height=1080
duration=N/A
bit_rate=N/A

These values are stored in the database as

Height | Width
1920   | 1080

Oops.

Carlo
Posted

Can you give us more info on the version of Emby you are seeing this on?

Carlo
Posted

Thanks for reporting.

Carlo
Posted

I just ran a SQL statement on my Database which has been through untold versions and I don't see anything like this.

What do you get if you run this SQL?

select Height, Width from MediaItems where Height > Width

 

 

joshua4
Posted

MediaStreams2

Carlo
Posted

What was your source of media?  What type of media?

Carlo
Posted

I see quite a few rows that have this wrong.

@Luke

Posted

Hi, yes it is an old defect. The naming of the columns was inadvertently flipped, but the code handles so it is essentially just a typo.

joshua4
Posted
37 minutes ago, Luke said:

Hi, yes it is an old defect. The naming of the columns was inadvertently flipped, but the code handles so it is essentially just a typo.

What's the diff between MediaItems Width/Height and MediaStreams2 Width/Height?

Posted
36 minutes ago, joshua4 said:

What's the diff between MediaItems Width/Height and MediaStreams2 Width/Height?

For videos, none. It's duplicated there because some things like photos need width/height but don't use mediastreams.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...