Guest - Testers are needed for the reworked CDateTime core component. See... https://forum.kodi.tv/showthread.php?tid=378981 (September 29) x
v19 Force an aspect ratio from a RTSP stream somehow?
#1
Following the STRM method wiki article, I made the following which I use to view a security cam in Kodi.  I am wondering how I can force a 16:9 aspect ratio.  The native resolution of the cam is 2560x1920 so it's 4:3 and looks bad.  Thanks.

Code:
% cat cam1.strm
rtsp://view:[email protected]
​​​​​​​
Need help programming a Streamzap remote?
Reply
#2
I guess you should be able to add the stream to the library, then just adjust the aspect ratio in video settings.
Reply
#3
(2021-10-02, 21:46)wsnipex Wrote: I guess you should be able to add the stream to the library, then just adjust the aspect ratio in video settings.


I added it to the library, and adjusted it as you suggested.  Seems to work as expected.  Thanks for the suggestion.  Still wondering if there is a way to hard-code it into the actual text file or in the accompanying nfo file I made?  First time using nfo files.
Need help programming a Streamzap remote?
Reply
#4
should be possible, see https://kodi.wiki/view/NFO_files/Movies
xml:
<fileinfo> <streamdetails> <video> <aspect></aspect> <width></width> <height></height> </video>  </streamdetails> </fileinfo>

I'd try exporting the library entry to nfo
Reply
#5
Interestingly, when I exported to a single file then came down to the relevant bit, there is nothing about aspect ratio at all.  I wonder where it is stored.
Code:
    <movie>
        <title>garage access door</title>
        <sorttitle>agarage access door</sorttitle>
        <userrating>0</userrating>
        <top250>0</top250>
        <outline></outline>
        <plot>north-west cam</plot>
        <tagline></tagline>
        <runtime>0</runtime>
        <mpaa></mpaa>
        <playcount>22</playcount>
        <lastplayed>2021-10-02</lastplayed>
        <file></file>
        <path>nfs://10.2.9.112/srv/nfs/movies/</path>
        <filenameandpath>nfs://10.2.9.112/srv/nfs/movies/garage_access_door.strm</filenameandpath>
        <basepath>nfs://10.2.9.112/srv/nfs/movies/garage_access_door.strm</basepath>
        <id></id>
        <status></status>
        <code></code>
        <aired></aired>
        <trailer></trailer>
        <resume>
            <position>0.000000</position>
            <total>0.000000</total>
        </resume>
        <dateadded>2021-09-25 14:57:52</dateadded>
        <art>
            <fanart>nfs://10.2.9.112/srv/nfs/movies/g.jpg</fanart>
            <poster>nfs://10.2.9.112/srv/nfs/movies/g.jpg</poster>
            <thumb></thumb>
        </art>
    </movie>

So I removed that entry from the library and tried your idea. Which did launch in 16:9 so I think problem solved, thank you!
 
Code:
% cat garage_access_door.nfo
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<movie>
    <title>garage access door</title>
    <sorttitle>agarage access door</sorttitle>
    <plot>north-west cam on garage access door</plot>
    <aspect>16:9</aspect>
    <art>
        <poster>nfs://10.2.9.112/srv/nfs/movies/g.jpg</poster>
        <fanart>nfs://10.2.9.112/srv/nfs/movies/g.jpg</fanart>
    </art>
</movie>
Need help programming a Streamzap remote?
Reply

Logout Mark Read Team Forum Stats Members Help
Force an aspect ratio from a RTSP stream somehow?0