public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Video plays past end of time it shows
@ 2021-08-25 17:45 Dale
  2021-08-25 18:08 ` Andrew Udvare
  2021-08-25 18:14 ` Andrew Lowe
  0 siblings, 2 replies; 10+ messages in thread
From: Dale @ 2021-08-25 17:45 UTC (permalink / raw
  To: gentoo-user

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

:-)  :-) 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Video plays past end of time it shows
  2021-08-25 17:45 [gentoo-user] Video plays past end of time it shows Dale
@ 2021-08-25 18:08 ` Andrew Udvare
  2021-08-25 18:47   ` Dale
                     ` (2 more replies)
  2021-08-25 18:14 ` Andrew Lowe
  1 sibling, 3 replies; 10+ messages in thread
From: Andrew Udvare @ 2021-08-25 18:08 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 814 bytes --]

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.


>

[-- Attachment #2: Type: text/html, Size: 1671 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Video plays past end of time it shows
  2021-08-25 17:45 [gentoo-user] Video plays past end of time it shows Dale
  2021-08-25 18:08 ` Andrew Udvare
@ 2021-08-25 18:14 ` Andrew Lowe
  2021-08-25 18:49   ` Dale
  1 sibling, 1 reply; 10+ messages in thread
From: Andrew Lowe @ 2021-08-25 18:14 UTC (permalink / raw
  To: gentoo-user

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Video plays past end of time it shows
  2021-08-25 18:08 ` Andrew Udvare
@ 2021-08-25 18:47   ` Dale
  2021-08-25 18:51   ` [gentoo-user] " Grant Edwards
  2021-09-01 16:58   ` [gentoo-user] " antlists
  2 siblings, 0 replies; 10+ messages in thread
From: Dale @ 2021-08-25 18:47 UTC (permalink / raw
  To: gentoo-user

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

:-)  :-) 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Video plays past end of time it shows
  2021-08-25 18:14 ` Andrew Lowe
@ 2021-08-25 18:49   ` Dale
  0 siblings, 0 replies; 10+ messages in thread
From: Dale @ 2021-08-25 18:49 UTC (permalink / raw
  To: gentoo-user

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

:-)  :-) 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-user] Re: Video plays past end of time it shows
  2021-08-25 18:08 ` Andrew Udvare
  2021-08-25 18:47   ` Dale
@ 2021-08-25 18:51   ` Grant Edwards
  2021-08-25 19:47     ` [gentoo-user] SOLVED " Dale
  2021-09-01 16:58   ` [gentoo-user] " antlists
  2 siblings, 1 reply; 10+ messages in thread
From: Grant Edwards @ 2021-08-25 18:51 UTC (permalink / raw
  To: gentoo-user

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





^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-user] SOLVED Video plays past end of time it shows
  2021-08-25 18:51   ` [gentoo-user] " Grant Edwards
@ 2021-08-25 19:47     ` Dale
  2021-08-25 20:18       ` [gentoo-user] " Grant Edwards
  0 siblings, 1 reply; 10+ messages in thread
From: Dale @ 2021-08-25 19:47 UTC (permalink / raw
  To: gentoo-user

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

:-)  :-) 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-user] Re: SOLVED Video plays past end of time it shows
  2021-08-25 19:47     ` [gentoo-user] SOLVED " Dale
@ 2021-08-25 20:18       ` Grant Edwards
  2021-08-25 20:37         ` Dale
  0 siblings, 1 reply; 10+ messages in thread
From: Grant Edwards @ 2021-08-25 20:18 UTC (permalink / raw
  To: gentoo-user

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



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Re: SOLVED Video plays past end of time it shows
  2021-08-25 20:18       ` [gentoo-user] " Grant Edwards
@ 2021-08-25 20:37         ` Dale
  0 siblings, 0 replies; 10+ messages in thread
From: Dale @ 2021-08-25 20:37 UTC (permalink / raw
  To: gentoo-user

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

:-)  :-) 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] Video plays past end of time it shows
  2021-08-25 18:08 ` Andrew Udvare
  2021-08-25 18:47   ` Dale
  2021-08-25 18:51   ` [gentoo-user] " Grant Edwards
@ 2021-09-01 16:58   ` antlists
  2 siblings, 0 replies; 10+ messages in thread
From: antlists @ 2021-09-01 16:58 UTC (permalink / raw
  To: gentoo-user

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-09-01 16:58 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-25 17:45 [gentoo-user] Video plays past end of time it shows Dale
2021-08-25 18:08 ` Andrew Udvare
2021-08-25 18:47   ` Dale
2021-08-25 18:51   ` [gentoo-user] " Grant Edwards
2021-08-25 19:47     ` [gentoo-user] SOLVED " Dale
2021-08-25 20:18       ` [gentoo-user] " Grant Edwards
2021-08-25 20:37         ` Dale
2021-09-01 16:58   ` [gentoo-user] " antlists
2021-08-25 18:14 ` Andrew Lowe
2021-08-25 18:49   ` Dale

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox