• [gentoo-user] Video plays past end of time it shows

    From Andrew Udvare@21:1/5 to rdalek1967@gmail.com on Wed Aug 25 20:10:02 2021
    On Wed, Aug 25, 2021, 13:44 Dale <rdalek1967@gmail.com> wrote:

    Hi,

    I have a video that does something weird. The video plays about 6
    minutes or so past the length it should. During that extended time, you can't fast forward, pause or anything either. I've ran into this a
    couple times with my deer camera and thought it odd but didn't worry
    about it. My question is, can this be fixed somehow? Can I get mplayer
    or something to process the file and adjust the time it thinks the video
    is to what it actually is?


    You can try to re-encode or maybe remux with ffmpeg.


    Bonus, how in the world did it get that way?


    More than likely the metadata in the file is off.

    This playback issue can happen with VBR MP3s and also Oggs as the length of
    the file can be spoofed in the header.




    <div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Aug 25, 2021, 13:44 Dale &lt;<a href="mailto:rdalek1967@gmail.com">rdalek1967@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:
    0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>

    I have a video that does something weird.  The video plays about 6<br>
    minutes or so past the length it should.  During that extended time, you<br> can&#39;t fast forward, pause or anything either.  I&#39;ve ran into this a<br>
    couple times with my deer camera and thought it odd but didn&#39;t worry<br> about it.  My question is, can this be fixed somehow?  Can I get mplayer<br> or something to process the file and adjust the time it thinks the video<br>
    is to what it actually is? <br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">You can try to re-encode or maybe remux with ffmpeg.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote"
    style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

    Bonus, how in the world did it get that way? <br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">More than likely the metadata in the file is off.</div><div dir="auto"><br></div><div dir="auto">This playback issue can happen with VBR
    MP3s and also Oggs as the length of the file can be spoofed in the header.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
    </blockquote></div></div></div>

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to All on Wed Aug 25 19:50:02 2021
    Hi,

    I have a video that does something weird.  The video plays about 6
    minutes or so past the length it should.  During that extended time, you
    can't fast forward, pause or anything either.  I've ran into this a
    couple times with my deer camera and thought it odd but didn't worry
    about it.  My question is, can this be fixed somehow?  Can I get mplayer
    or something to process the file and adjust the time it thinks the video
    is to what it actually is? 

    Bonus, how in the world did it get that way? 

    Thanks.

    Dale

    :-)  :-) 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Andrew Lowe@21:1/5 to Dale on Wed Aug 25 20:20:01 2021
    On 26/8/21 1:45 am, Dale wrote:
    Hi,

    I have a video that does something weird.  The video plays about 6
    minutes or so past the length it should.  During that extended time, you can't fast forward, pause or anything either.  I've ran into this a
    couple times with my deer camera and thought it odd but didn't worry
    about it.  My question is, can this be fixed somehow?  Can I get mplayer
    or something to process the file and adjust the time it thinks the video
    is to what it actually is?

    Bonus, how in the world did it get that way?

    Thanks.

    Dale

    :-)  :-)

    Seen the same sort of behaviour in vid's "liberated" from youtube using youtube-dl. I can't remember if I found the problem. What format are you
    using? For example mkv has mkvalidator which will check the integrity
    and I thing mkvclean to fix errors etc.

    Andrew

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to Andrew Udvare on Wed Aug 25 20:50:02 2021
    Andrew Udvare wrote:


    On Wed, Aug 25, 2021, 13:44 Dale <rdalek1967@gmail.com <mailto:rdalek1967@gmail.com>> wrote:

    Hi,

    I have a video that does something weird.  The video plays about 6
    minutes or so past the length it should.  During that extended
    time, you
    can't fast forward, pause or anything either.  I've ran into this a
    couple times with my deer camera and thought it odd but didn't worry
    about it.  My question is, can this be fixed somehow?  Can I get
    mplayer
    or something to process the file and adjust the time it thinks the
    video
    is to what it actually is? 


    You can try to re-encode or maybe remux with ffmpeg.


    Bonus, how in the world did it get that way? 


    More than likely the metadata in the file is off.

    This playback issue can happen with VBR MP3s and also Oggs as the
    length of the file can be spoofed in the header.




    It started out with a bunch of .rar files.  I've never ran into those before.  Anyway, figured out how to deal with it and got the video but
    there was a error about "unexpected end of data" in the last .rar file. 
    The others were fine.  I suspect that is what lead to the video playing
    longer than it shows.  The end result was a .avi file.  It plays fine
    until the last bit, where it goes past the expected end. 

    I've never dealt with this before so it could be a one time thing or it
    could be expected behaviour that needs fixing.  Just in case, I'd like
    to know how to fix it for this one and any others I run into. 

    Thanks.

    Dale

    :-)  :-) 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to Andrew Lowe on Wed Aug 25 20:50:02 2021
    Andrew Lowe wrote:
    On 26/8/21 1:45 am, Dale wrote:
    Hi,

    I have a video that does something weird.  The video plays about 6
    minutes or so past the length it should.  During that extended time, you
    can't fast forward, pause or anything either.  I've ran into this a
    couple times with my deer camera and thought it odd but didn't worry
    about it.  My question is, can this be fixed somehow?  Can I get mplayer >> or something to process the file and adjust the time it thinks the video
    is to what it actually is?

    Bonus, how in the world did it get that way?

    Thanks.

    Dale

    :-)  :-)

        Seen the same sort of behaviour in vid's "liberated" from youtube using youtube-dl. I can't remember if I found the problem. What format
    are you using? For example mkv has mkvalidator which will check the
    integrity and I thing mkvclean to fix errors etc.

        Andrew




    It started with .rar files.  See reply to other Andrew.  ;-)  I figured
    out, with googles help, how to unpack them and got a nice .avi file.  It
    just gets weird at the end. 

    Dale

    :-)  :-) 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Edwards@21:1/5 to Andrew Udvare on Wed Aug 25 21:00:03 2021
    On 2021-08-25, Andrew Udvare <audvare@gmail.com> wrote:

    You can try to re-encode or maybe remux with ffmpeg.

    That's what I'd do. Try remuxing first (it can be done losslessly).
    To remux losslessly, use the "copy" codecs for both audio and video.

    --
    Grant

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to Grant Edwards on Wed Aug 25 21:50:02 2021
    Grant Edwards wrote:
    On 2021-08-25, Andrew Udvare <audvare@gmail.com> wrote:

    You can try to re-encode or maybe remux with ffmpeg.
    That's what I'd do. Try remuxing first (it can be done losslessly).
    To remux losslessly, use the "copy" codecs for both audio and video.

    --
    Grant


    I looked at the man page.  I felt like I was trying to become a brain surgeon.  Then I had a thought that this suggestion made me think of. 
    I'd prefer a .mp4 file anyway so I used the video download helper tool
    in Firefox to convert the video from .avi to .mp4.  When it was
    completed, the video shows the right play time and it works as it
    should, plus I have my preferred .mp4 file. 

    While it may be a odd workaround, it did work.  I wouldn't have thought
    about that if it wasn't suggested to re-encode the file. 

    Thanks to all.  Took a strange path but got what I wanted.  ;-)

    Dale

    :-)  :-) 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Grant Edwards@21:1/5 to Dale on Wed Aug 25 22:20:02 2021
    On 2021-08-25, Dale <rdalek1967@gmail.com> wrote:
    Grant Edwards wrote:
    On 2021-08-25, Andrew Udvare <audvare@gmail.com> wrote:

    You can try to re-encode or maybe remux with ffmpeg.
    That's what I'd do. Try remuxing first (it can be done losslessly).
    To remux losslessly, use the "copy" codecs for both audio and video.

    I looked at the man page.

    Yea, that's abit overwhelming. Usually it's easier to google ffmeg
    and the task you want to do (e.g. google "ffmpeg remux avi to
    mp4"). The first hit explains it nicely:

    https://ottverse.com/ffmpeg-convert-avi-to-mp4-lossless/

    FWIW, the command is

    ffmpeg -i input.avi -c:v copy -c:a copy output.mp4

    --
    Grant

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dale@21:1/5 to Grant Edwards on Wed Aug 25 22:40:02 2021
    Grant Edwards wrote:
    On 2021-08-25, Dale <rdalek1967@gmail.com> wrote:
    Grant Edwards wrote:
    On 2021-08-25, Andrew Udvare <audvare@gmail.com> wrote:

    You can try to re-encode or maybe remux with ffmpeg.
    That's what I'd do. Try remuxing first (it can be done losslessly).
    To remux losslessly, use the "copy" codecs for both audio and video.
    I looked at the man page.
    Yea, that's abit overwhelming. Usually it's easier to google ffmeg
    and the task you want to do (e.g. google "ffmpeg remux avi to
    mp4"). The first hit explains it nicely:

    https://ottverse.com/ffmpeg-convert-avi-to-mp4-lossless/

    FWIW, the command is

    ffmpeg -i input.avi -c:v copy -c:a copy output.mp4

    --
    Grant


    So the method does exist.  ROFL  I wasn't worried about converting it at first but since doing so might fix it, I gave it a shot. 

    Thanks.

    Dale

    :-)  :-) 

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From antlists@21:1/5 to Andrew Udvare on Wed Sep 1 19:00:01 2021
    On 25/08/2021 19:08, Andrew Udvare wrote:


    On Wed, Aug 25, 2021, 13:44 Dale <rdalek1967@gmail.com <mailto:rdalek1967@gmail.com>> wrote:

    Hi,

    I have a video that does something weird.  The video plays about 6
    minutes or so past the length it should.  During that extended time, you
    can't fast forward, pause or anything either.  I've ran into this a
    couple times with my deer camera and thought it odd but didn't worry
    about it.  My question is, can this be fixed somehow?  Can I get mplayer
    or something to process the file and adjust the time it thinks the video
    is to what it actually is?


    You can try to re-encode or maybe remux with ffmpeg.


    Bonus, how in the world did it get that way?


    More than likely the metadata in the file is off.

    This playback issue can happen with VBR MP3s and also Oggs as the length
    of the file can be spoofed in the header.


    I have this with my in-car mp3 player. Every so often it has a
    brain-fart, gets thoroughly confused, and displays one song while
    playing another. This is invariably accompanied by it either playing the
    tune for the length of the song it thinks it is, or the display gets
    stuck as the song overruns the length it thinks it is.

    I usually end up pulling the chip out and putting it back, which resets
    it, but it's then a nightmare because the player has to re-read the
    chip, during which it plays random tracks from 32GB of music and any
    attempt to tell it what you want it to play is blocked. Surely it should
    let you drill down the directory structure? Even worse, all this effort
    is to build up a db of tracks by genre, artist etc, which I never use!
    (It takes about 10 minutes which, I believe, is the national average
    journey length in the UK...)

    Cheers,
    Wol

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)