• video not fill browser window on 4k moni

    From bad sector@forgetski@_INVALID.net to alt.os.linux on Sun May 17 22:53:59 2026
    From Newsgroup: alt.os.linux


    Why would a video of any resolution made with kdenlive and linked on a
    web page not fill the Firefox web navigator window on a 4k monitor?

    the code is as simple as it gets:

    <a href="videoname.webm">videoname.webm</a>





    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Paul@nospam@needed.invalid to alt.os.linux on Mon May 18 00:10:10 2026
    From Newsgroup: alt.os.linux

    On Sun, 5/17/2026 10:53 PM, bad sector wrote:

    Why would a video of any resolution made with kdenlive and linked on a web page not fill the Firefox web navigator window on a 4k monitor?

    the code is as simple as it gets:

    <a href="videoname.webm">videoname.webm</a>

    I'm not much of a video person, and my collection of samples
    is pretty small.

    *******

    Have you used any other tools to check the video and audio
    stream details of the project ?

    ffmpeg
    ffplay
    ffprobe

    ffprobe.exe key01.mp4

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'key01.mp4':
    Metadata:
    major_brand : mp42
    minor_version : 0
    compatible_brands: isommp42
    creation_time : 2015-05-04T17:26:26.000000Z
    Duration: 02:55:10.32, start: 0.000000, bitrate: 5001 kb/s
    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
    creation_time : 2015-05-04T17:26:26.000000Z
    handler_name : Mainconcept MP4 Sound Media Handler
    vendor_id : [0][0][0][0]

    Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720
    SAR 1:1 DAR 16:9, 4869 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
    creation_time : 2015-05-04T17:26:26.000000Z
    handler_name : Mainconcept MP4 Video Media Handler
    vendor_id : [0][0][0][0]
    encoder : AVC Coding

    You can see that video is 1280x720, and playing it on a 4K monitor
    requires the player wrapper frame to declare a somewhat larger value
    if I wanted it to fill the screen.

    I've seen other videos like that, 720x480, and those get scaled
    quite a bit, to not fill a 4K monitor, but to be significantly
    larger than the encoded format.

    I would be careful about assuming every video ever made,
    is actually natively 3840x2160 or something. That hardly
    ever happens, because the cameras aren't good enough for that.
    A RED 8K camera could likely make a nice 4K video. It might not
    be as sharp as a tack though, it might betray the 8K origin.
    I've tried a few RED samples, ones which were just dreadful
    (creators at fault), and this is really the only decent one.

    Name: epicw8k-standard-24fps-7to1redcode_16x9.zip 8192x4320 @ 23.976 FPS (153 frames, 6.09 seconds)
    Size: 1478855973 bytes (1410 MiB)
    SHA256: 81DC8B50B878A43FAC699213368E4A5452C7789AB7BC7EAA4813A6AE2CE6C152

    Needs a RED provided program to read the file. FFMPEG cannot
    handle it. I converted it to an MP4 with the RED software.
    There is no sound track. It's a scene of Hong Kong, collected at night.
    There are cars driving on the street. Everything is lit up, animated
    billboards and such.

    ffprobe movie.mp4

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'movie.mp4':
    Metadata:
    major_brand : isom
    minor_version : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.29.100
    Duration: 00:00:06.38, start: 0.000000, bitrate: 16095 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 3840x2160
    SAR 16:15 DAR 256:135, 16091 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
    Metadata:
    handler_name : VideoHandler
    vendor_id : [0][0][0][0]

    That's one of the few 4K video samples I've got :-)
    When I used ffplay on it, my screen is HIDPI and is set to 200%,
    because it is only 27 inches and not the correct dimension
    for a good 4K screen. Most of the video goes off the screen with
    ffplay.exe, I have to bring up Task Manager and kill it so I
    can use my screen again after the 6 second movie.

    I could do this on a Linux setup too, but the monitors are
    smaller elsewhere in the room, so it's not the same.

    Summary: Dump the metadata on the sample and see what's up.

    Paul
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Paul@nospam@needed.invalid to alt.os.linux on Mon May 18 00:47:37 2026
    From Newsgroup: alt.os.linux

    On Sun, 5/17/2026 10:53 PM, bad sector wrote:

    Why would a video of any resolution made with kdenlive and linked on a web page not fill the Firefox web navigator window on a 4k monitor?

    the code is as simple as it gets:

    <a href="videoname.webm">videoname.webm</a>

    OK, let's play with it now.
    I have my six second movie, 3840x2160 or so. The derivative of the RED short clip.
    I can do anything I want with it now.
    I can code WWW, I know I can do this, it's like Hello World only several lines longer.

    firefox test.htm

    Current working directory contents:

    432 May 18 00:37 test.htm
    12,826,013 Mar 16 2022 movie.mp4

    I got the idea for my wrapper, from here.

    https://www.w3schools.com/html/html5_video.asp

    I used Seamonkey Composer, which made a mess, but I waded in
    with a text editor and cleaned it up a bit.

    ********************** test.htm **********************************

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>test.htm</title>
    </head>
    <body>
    <video width="1440" height="900" controls>
    <source src="movie.mp4" type="video/mp4">
    <source src="movie.ogg" type="video/ogg">
    Your browser does not support the video tag.
    </video>
    </body>
    </html>

    ********************** END test.htm ******************************

    I have a movie that seems to play.
    Maybe I'm supposed to wrap that "Your browser" line with something... :-)
    Like I know how to code a web page o.O .

    Even though my wrapper window is smaller than the video, it
    handled it without whining.

    Paul
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Carlos E.R.@robin_listas@es.invalid to alt.os.linux on Mon May 18 09:19:06 2026
    From Newsgroup: alt.os.linux

    On 2026-05-18 04:53, bad sector wrote:

    Why would a video of any resolution made with kdenlive and linked on a
    web page not fill the Firefox web navigator window on a 4k monitor?

    the code is as simple as it gets:

    <a href="videoname.webm">videoname.webm</a>

    What does "not fill" mean? Do you see black borders up, down, left, and
    top? If you see black borders or window borders on all four edges simultaneously, then there is a problem.

    If the video fills left and right to the edge, but not up-dn, then there
    is no problem.

    You did not say the pixel count of the video.
    --
    Cheers, Carlos.
    ES🇪🇸, EU🇪🇺;
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to alt.os.linux on Tue May 19 01:10:26 2026
    From Newsgroup: alt.os.linux

    On Mon, 18 May 2026 00:47:37 -0400, Paul wrote:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    Nowadays we just say

    <!DOCTYPE html>

    and that indicates HTML 5 or later.
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From bad sector@forgetski@_INVALID.net to alt.os.linux on Mon May 18 22:43:20 2026
    From Newsgroup: alt.os.linux

    On 5/18/26 12:10 AM, Paul wrote:
    On Sun, 5/17/2026 10:53 PM, bad sector wrote:

    Why would a video of any resolution made with kdenlive and linked on a web page not fill the Firefox web navigator window on a 4k monitor?

    the code is as simple as it gets:

    <a href="videoname.webm">videoname.webm</a>

    I'm not much of a video person, and my collection of samples
    is pretty small.

    *******

    Have you used any other tools to check the video and audio
    stream details of the project ?

    ffmpeg
    ffplay
    ffprobe

    ffprobe.exe key01.mp4

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'key01.mp4':
    Metadata:
    major_brand : mp42
    minor_version : 0
    compatible_brands: isommp42
    creation_time : 2015-05-04T17:26:26.000000Z
    Duration: 02:55:10.32, start: 0.000000, bitrate: 5001 kb/s
    Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
    creation_time : 2015-05-04T17:26:26.000000Z
    handler_name : Mainconcept MP4 Sound Media Handler
    vendor_id : [0][0][0][0]

    Stream #0:1(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720
    SAR 1:1 DAR 16:9, 4869 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
    creation_time : 2015-05-04T17:26:26.000000Z
    handler_name : Mainconcept MP4 Video Media Handler
    vendor_id : [0][0][0][0]
    encoder : AVC Coding

    You can see that video is 1280x720, and playing it on a 4K monitor
    requires the player wrapper frame to declare a somewhat larger value
    if I wanted it to fill the screen.

    I've seen other videos like that, 720x480, and those get scaled
    quite a bit, to not fill a 4K monitor, but to be significantly
    larger than the encoded format.

    I would be careful about assuming every video ever made,
    is actually natively 3840x2160 or something. That hardly
    ever happens, because the cameras aren't good enough for that.
    A RED 8K camera could likely make a nice 4K video. It might not
    be as sharp as a tack though, it might betray the 8K origin.
    I've tried a few RED samples, ones which were just dreadful
    (creators at fault), and this is really the only decent one.

    Name: epicw8k-standard-24fps-7to1redcode_16x9.zip 8192x4320 @ 23.976 FPS (153 frames, 6.09 seconds)
    Size: 1478855973 bytes (1410 MiB)
    SHA256: 81DC8B50B878A43FAC699213368E4A5452C7789AB7BC7EAA4813A6AE2CE6C152

    Needs a RED provided program to read the file. FFMPEG cannot
    handle it. I converted it to an MP4 with the RED software.
    There is no sound track. It's a scene of Hong Kong, collected at night.
    There are cars driving on the street. Everything is lit up, animated billboards and such.

    D:> ffprobe movie.mp4

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'movie.mp4':
    Metadata:
    major_brand : isom
    minor_version : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.29.100
    Duration: 00:00:06.38, start: 0.000000, bitrate: 16095 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 3840x2160
    SAR 16:15 DAR 256:135, 16091 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
    Metadata:
    handler_name : VideoHandler
    vendor_id : [0][0][0][0]

    That's one of the few 4K video samples I've got :-)
    When I used ffplay on it, my screen is HIDPI and is set to 200%,
    because it is only 27 inches and not the correct dimension
    for a good 4K screen. Most of the video goes off the screen with
    ffplay.exe, I have to bring up Task Manager and kill it so I
    can use my screen again after the 6 second movie.

    I could do this on a Linux setup too, but the monitors are
    smaller elsewhere in the room, so it's not the same.

    Summary: Dump the metadata on the sample and see what's up.

    Paul


    The link is just one on a list on one of my pages so it has to remain a
    link and not an embeded video. Technically I 'could' make each link load another page just for that video as an embeded one, but I'm not
    interested enough to do all that work.

    However, browsers playing videos with resolution over the monitor
    resolution are zoomed down to that level, soooooooo...

    I do an ff thingie on all MY videos on that link list to make them 4k

    ffmpeg -i input.mp4 -vf "scale=3840:2160" -c:v libx264 -crf 18 -c:a copy output_4k.mp4

    ...and then they will fill the browser window on all except 5k monitors.
    I could also make them 5k but there are very few of those monitors and
    the overhead is 80% more than 4k.

    Does this sound like a workable workaround? I did my lowest res. video
    and raised it from 854x480 to 3840x21604. The result is acceptable.


    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From bad sector@forgetski@_INVALID.net to alt.os.linux on Mon May 18 22:43:25 2026
    From Newsgroup: alt.os.linux

    On 5/18/26 3:19 AM, Carlos E.R. wrote:
    On 2026-05-18 04:53, bad sector wrote:

    Why would a video of any resolution made with kdenlive and linked on a
    web page not fill the Firefox web navigator window on a 4k monitor?

    the code is as simple as it gets:

    <a href="videoname.webm">videoname.webm</a>

    What does "not fill" mean? Do you see black borders up, down, left, and
    top? If you see black borders or window borders on all four edges simultaneously, then there is a problem.

    If the video fills left and right to the edge, but not up-dn, then there
    is no problem.

    You did not say the pixel count of the video.



    It's different sizes from 854x480 up to 1920x1200 and yes, all 4 sides
    i.e. not just an aspect ratio issue. VLC lets me set up so as to open a
    file with a window size equal to video resolution, not sure if it has an option to fill window whatever size it opens to but I tought there would
    be such an option in browsers.





    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Paul@nospam@needed.invalid to alt.os.linux on Tue May 19 02:43:25 2026
    From Newsgroup: alt.os.linux

    On Mon, 5/18/2026 10:44 PM, bad sector wrote:


    Does this sound like a workable workaround? I did my lowest
    res. video and raised it from 854x480 to 3840x21604. The result is acceptable.

    When you do that, there's no such thing as a free lunch :-)

    The pixels are interpolated in any case.

    Doing that does not magically make the video "sharper".

    But if you want to do this as an experiment, then why not.
    Just don't toss the original video so you keep
    your starting materials for later.

    Video is very tolerant of abuse, whereas line art and
    fonts can get pretty fuzzy doing things like that.

    The browser is likely to do something else with the video, if
    it doesn't fit. It's not like some applications that push
    stuff off the screen on you.

    The video card has a scaler, and the little piece of code
    I copied in the example, is likely calling on the services
    of that scaler, to fit the video onto the screen. My
    video was being "down-scaled" by the operation.

    The video card didn't always have a scaler, and the CPU used
    to do that. It took 30% of a Pentium 4, to scale content
    with the CPU. Whereas when the video card does it, it is
    considered "free", because now your CPU can do something else.

    It's quite likely, with your little experiment, you are now
    paying for two scalings. You paid once, to re-scale your
    video up, and when the browser wraps the video, even a trivial
    change in XYWH could result in some video card scaling
    going on.

    Paul


    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Paul@nospam@needed.invalid to alt.os.linux on Tue May 19 02:44:57 2026
    From Newsgroup: alt.os.linux

    On Mon, 5/18/2026 9:10 PM, Lawrence D’Oliveiro wrote:
    On Mon, 18 May 2026 00:47:37 -0400, Paul wrote:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    Nowadays we just say

    <!DOCTYPE html>

    and that indicates HTML 5 or later.


    I didn't type that in, the Composer did that and
    I didn't waste time messing with it.

    The whole exercise was pretty painful, in that
    I practically retyped the thing twice.

    Paul
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Paul@nospam@needed.invalid to alt.os.linux on Tue May 19 02:53:18 2026
    From Newsgroup: alt.os.linux

    On Mon, 5/18/2026 10:43 PM, bad sector wrote:
    On 5/18/26 3:19 AM, Carlos E.R. wrote:
    On 2026-05-18 04:53, bad sector wrote:

    Why would a video of any resolution made with kdenlive and linked on a web page not fill the Firefox web navigator window on a 4k monitor?

    the code is as simple as it gets:

    <a href="videoname.webm">videoname.webm</a>

    What does "not fill" mean? Do you see black borders up, down, left, and top? If you see black borders or window borders on all four edges simultaneously, then there is a problem.

    If the video fills left and right to the edge, but not up-dn, then there is no problem.

    You did not say the pixel count of the video.



    It's different sizes from 854x480 up to 1920x1200 and yes, all 4 sides i.e. not just an aspect ratio issue. VLC lets me set up so as to open a file with a window size equal to video resolution, not sure if it has an option to fill window whatever size it opens to but I tought there would be such an option in browsers.

    You might be able to write code, that gets the current window
    dimensions, and then picks arguments for the video wrapper.

    Apparently this is called "responsive video embedding".

    Paul

    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Carlos E.R.@robin_listas@es.invalid to alt.os.linux on Tue May 19 10:35:39 2026
    From Newsgroup: alt.os.linux

    On 2026-05-18 06:47, Paul wrote:
    On Sun, 5/17/2026 10:53 PM, bad sector wrote:

    Why would a video of any resolution made with kdenlive and linked on a web page not fill the Firefox web navigator window on a 4k monitor?

    the code is as simple as it gets:

    <a href="videoname.webm">videoname.webm</a>

    OK, let's play with it now.
    I have my six second movie, 3840x2160 or so. The derivative of the RED short clip.
    I can do anything I want with it now.
    I can code WWW, I know I can do this, it's like Hello World only several lines longer.

    firefox test.htm

    Current working directory contents:

    432 May 18 00:37 test.htm
    12,826,013 Mar 16 2022 movie.mp4

    I got the idea for my wrapper, from here.

    https://www.w3schools.com/html/html5_video.asp

    I used Seamonkey Composer, which made a mess, but I waded in
    with a text editor and cleaned it up a bit.

    ********************** test.htm **********************************

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>test.htm</title>
    </head>
    <body>
    <video width="1440" height="900" controls>
    <source src="movie.mp4" type="video/mp4">
    <source src="movie.ogg" type="video/ogg">
    Your browser does not support the video tag.
    </video>
    </body>
    </html>

    ********************** END test.htm ******************************

    I have a movie that seems to play.
    Maybe I'm supposed to wrap that "Your browser" line with something... :-) Like I know how to code a web page o.O .

    Even though my wrapper window is smaller than the video, it
    handled it without whining.

    I tried your code on a video here:

    index.html

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>test.htm</title>
    </head>
    <body>
    <video width="640" height="480" controls>
    <source src="video.mkv" type="video/mkv">
    Your browser does not support the video tag.
    </video>
    </body>
    </html>


    I get a player window, but no video plays in it. Sniff :'-(
    --
    Cheers, Carlos.
    ES🇪🇸, EU🇪🇺;
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From J.O. Aho@user@example.net to alt.os.linux on Tue May 19 12:35:19 2026
    From Newsgroup: alt.os.linux

    On 19/05/2026 04.43, bad sector wrote:

    However, browsers playing videos with resolution over the monitor
    resolution are zoomed down to that level, soooooooo...

    I do an ff thingie on all MY videos on that link list to make them 4k

    ffmpeg -i input.mp4 -vf "scale=3840:2160" -c:v libx264 -crf 18 -c:a copy output_4k.mp4

    ...and then they will fill the browser window on all except 5k monitors.
    I could also make them 5k but there are very few of those monitors and
    the overhead is 80% more than 4k.

    6k and 8k monitors out there too. I would say scaling up the video will
    not be a good solution, you make the video larger for no reason at all. Majority of people will still have a 1080p monitor, some may have 1440p,
    the only benefit they get is a larger bandwidth usage.

    Does this sound like a workable workaround?

    It sounds like a 1995's bad solution, best solution would be to just
    provide it in it's original resolution.

    If you really want that people play the video in the browser, then use a player page that can take filename or id as argument and then have it as
    the source video, your link then goes to player page with a parameter
    telling which video, make the video to be 100% of the page/tab size,
    then people can adjust things based on what they want to have it and if
    they think full screen is too pixley, then they can make the window
    smaller and get a better quality.
    --
    //Aho

    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Paul@nospam@needed.invalid to alt.os.linux on Tue May 19 12:17:08 2026
    From Newsgroup: alt.os.linux

    On Tue, 5/19/2026 4:35 AM, Carlos E.R. wrote:
    On 2026-05-18 06:47, Paul wrote:
    On Sun, 5/17/2026 10:53 PM, bad sector wrote:

    Why would a video of any resolution made with kdenlive and linked on a web page not fill the Firefox web navigator window on a 4k monitor?

    the code is as simple as it gets:

    <a href="videoname.webm">videoname.webm</a>

    OK, let's play with it now.
    I have my six second movie, 3840x2160 or so. The derivative of the RED short clip.
    I can do anything I want with it now.
    I can code WWW, I know I can do this, it's like Hello World only several lines longer.

    firefox test.htm

    Current working directory contents:

               432 May 18 00:37  test.htm
        12,826,013 Mar 16  2022  movie.mp4

    I got the idea for my wrapper, from here.

         https://www.w3schools.com/html/html5_video.asp

    I used Seamonkey Composer, which made a mess, but I waded in
    with a text editor and cleaned it up a bit.

    ********************** test.htm **********************************

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
       <head>
         <meta http-equiv="content-type" content="text/html; charset=UTF-8"> >>      <title>test.htm</title>
       </head>
       <body>
         <video width="1440" height="900" controls>
         <source src="movie.mp4" type="video/mp4">
         <source src="movie.ogg" type="video/ogg">
         Your browser does not support the video tag.
         </video>
       </body>
    </html>

    ********************** END test.htm ******************************

    I have a movie that seems to play.
    Maybe I'm supposed to wrap that "Your browser" line with something... :-)
    Like I know how to code a web page o.O .

    Even though my wrapper window is smaller than the video, it
    handled it without whining.

    I tried your code on a video here:

    index.html

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">     <title>test.htm</title>
      </head>
      <body>
        <video width="640" height="480" controls>
        <source src="video.mkv" type="video/mkv">
        Your browser does not support the video tag.
        </video>
      </body>
    </html>


    I get a player window, but no video plays in it. Sniff :'-(

    And what is a browser prepared to play ? I don't know
    the answer to that. All I know is I try MP4 first. This is
    my movie.mp4 which is h264.

    ffprobe movie.mp4

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'movie.mp4':
    Metadata:
    major_brand : isom
    minor_version : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.29.100
    Duration: 00:00:06.38, start: 0.000000, bitrate: 16095 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 3840x2160
    SAR 16:15 DAR 256:135, 16091 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
    Metadata:
    handler_name : VideoHandler
    vendor_id : [0][0][0][0]

    Maybe the doctype is affecting your result ?
    See the message from Lawrence.

    I seem to remember we had some test to be run on a browser,
    to determine whether it could handle HTML5, and the test
    may have included attempting to play some modern formats.

    Paul
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From dillinger@dillinger@invalid.not to alt.os.linux on Tue May 19 22:08:25 2026
    From Newsgroup: alt.os.linux

    On 19/05/2026 12:35, J.O. Aho wrote:
    Does this sound like a workable workaround?

    It sounds like a 1995's bad solution, best solution would be to just
    provide it in it's original resolution.

    Indeed, most browsers these days are much better at scaling than a fixed ffmpeg script.
    If anything, have a look at jwplayer:
    https://jwplayer.github.io/jwplayer/ (not tested).
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Carlos E.R.@robin_listas@es.invalid to alt.os.linux on Tue May 19 22:34:09 2026
    From Newsgroup: alt.os.linux

    On 2026-05-19 18:17, Paul wrote:
    On Tue, 5/19/2026 4:35 AM, Carlos E.R. wrote:
    On 2026-05-18 06:47, Paul wrote:


    I tried your code on a video here:

    index.html

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
      <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8"> >>     <title>test.htm</title>
      </head>
      <body>
        <video width="640" height="480" controls>
        <source src="video.mkv" type="video/mkv">
        Your browser does not support the video tag.
        </video>
      </body>
    </html>


    I get a player window, but no video plays in it. Sniff :'-(

    And what is a browser prepared to play ? I don't know
    the answer to that. All I know is I try MP4 first. This is
    my movie.mp4 which is h264.

    I have few video samples of small resolution, that's the first I found.

    I just located "bbc2-trump-takes-on-the-world-ep1.mp4", and it plays perfectly. Starts in a small rectangle, but when I click on the button to fill the window, it does fill the window. But the keyboard does not respond.

    index.html

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>test.htm</title>
    </head>
    <body>
    <video width="720" height="576" controls>
    <source src="bbc2-trump-takes-on-the-world-ep1.mp4" type="video/mp4">
    Your browser does not support the video tag.
    </video>
    </body>
    </html>



    ffprobe movie.mp4

    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'movie.mp4':
    Metadata:
    major_brand : isom
    minor_version : 512
    compatible_brands: isomiso2avc1mp41
    encoder : Lavf58.29.100
    Duration: 00:00:06.38, start: 0.000000, bitrate: 16095 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 3840x2160
    SAR 16:15 DAR 256:135, 16091 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
    Metadata:
    handler_name : VideoHandler
    vendor_id : [0][0][0][0]

    Maybe the doctype is affecting your result ?
    See the message from Lawrence.

    I seem to remember we had some test to be run on a browser,
    to determine whether it could handle HTML5, and the test
    may have included attempting to play some modern formats.

    Paul
    --
    Cheers, Carlos.
    ES🇪🇸, EU🇪🇺;
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Paul@nospam@needed.invalid to alt.os.linux on Tue May 19 16:43:28 2026
    From Newsgroup: alt.os.linux

    On Tue, 5/19/2026 4:08 PM, dillinger wrote:
    On 19/05/2026 12:35, J.O. Aho wrote:
    Does this sound like a workable workaround?

    It sounds like a 1995's bad solution, best solution would be to just provide it in it's original resolution.

    Indeed, most browsers these days are much better at scaling than a fixed ffmpeg script.
    If anything, have a look at jwplayer: https://jwplayer.github.io/jwplayer/ (not tested).

    Partially, this is a result of some of the hardware features
    of the video card, being exposed in the browser for usage.
    The video card has a hardware scaler, which reduces the CPU
    effort to zero, to scale a rectangular region. Video cards,
    many of them have hardware video decode for Hollywood formats,
    which reduces the CPU usage to quite a low level.

    Firefox has a setting, where you can turn off hardware
    acceleration, if you want to see what unaccelerated
    performance is like.

    Paul
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From bad sector@forgetski@_INVALID.net to alt.os.linux on Tue May 19 20:15:14 2026
    From Newsgroup: alt.os.linux

    On 5/19/26 2:53 AM, Paul wrote:
    On Mon, 5/18/2026 10:43 PM, bad sector wrote:
    On 5/18/26 3:19 AM, Carlos E.R. wrote:
    On 2026-05-18 04:53, bad sector wrote:

    Why would a video of any resolution made with kdenlive and linked on a web page not fill the Firefox web navigator window on a 4k monitor?

    the code is as simple as it gets:

    <a href="videoname.webm">videoname.webm</a>

    What does "not fill" mean? Do you see black borders up, down, left, and top? If you see black borders or window borders on all four edges simultaneously, then there is a problem.

    If the video fills left and right to the edge, but not up-dn, then there is no problem.

    You did not say the pixel count of the video.



    It's different sizes from 854x480 up to 1920x1200 and yes, all 4 sides i.e. not just an aspect ratio issue. VLC lets me set up so as to open a file with a window size equal to video resolution, not sure if it has an option to fill window whatever size it opens to but I tought there would be such an option in browsers.

    You might be able to write code, that gets the current window
    dimensions, and then picks arguments for the video wrapper.

    Apparently this is called "responsive video embedding".

    Paul
    I usually keep the window around 80% of monitor size and think that it
    looks stupid with just a small video in the middle of it but hey, it's a client prerogative. I don't know about other browsers but using
    Firefox/Plasma Cntl ++ does it and that's at client level; maybe it's
    best to leave it that way. A browser pref to address the issue could be helpful, like it is in VLC.






    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Lawrence =?iso-8859-13?q?D=FFOliveiro?=@ldo@nz.invalid to alt.os.linux on Wed May 20 01:09:17 2026
    From Newsgroup: alt.os.linux

    On Tue, 19 May 2026 02:44:57 -0400, Paul wrote:

    On Mon, 5/18/2026 9:10 PM, Lawrence D’Oliveiro wrote:
    .
    On Mon, 18 May 2026 00:47:37 -0400, Paul wrote:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    Nowadays we just say

    <!DOCTYPE html>

    and that indicates HTML 5 or later.

    I didn't type that in, the Composer did that and I didn't waste time
    messing with it.

    The whole exercise was pretty painful, in that I practically retyped
    the thing twice.

    So you wasted time *not* messing with it?

    This is why we read the docs <https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/video>.

    You know the old saying among handypersons -- “measure twice, cut
    once”? Well, how about “read the docs twice, code once”?
    --- Synchronet 3.22a-Linux NewsLink 1.2
  • From Paul@nospam@needed.invalid to alt.os.linux on Tue May 19 23:29:58 2026
    From Newsgroup: alt.os.linux

    On Tue, 5/19/2026 9:09 PM, Lawrence D’Oliveiro wrote:
    On Tue, 19 May 2026 02:44:57 -0400, Paul wrote:

    On Mon, 5/18/2026 9:10 PM, Lawrence D’Oliveiro wrote:
    .
    On Mon, 18 May 2026 00:47:37 -0400, Paul wrote:

    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

    Nowadays we just say

    <!DOCTYPE html>

    and that indicates HTML 5 or later.

    I didn't type that in, the Composer did that and I didn't waste time
    messing with it.

    The whole exercise was pretty painful, in that I practically retyped
    the thing twice.

    So you wasted time *not* messing with it?

    This is why we read the docs <https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/video>.

    You know the old saying among handypersons -- “measure twice, cut
    once”? Well, how about “read the docs twice, code once”?


    The composer version filled my file with unnecessary punctuation
    symbols. Which I removed in the name of sanity. I have to be
    able to verify the ASCII characters that do the work, are typed
    correctly in the middle of that mess.

    I'm not a web designer, I'm more of a Hello World person.

    Paul
    --- Synchronet 3.22a-Linux NewsLink 1.2