News:

--

Main Menu

Can't load the last seconds of video

Started by Krelian, December 31, 2015, 08:42:23 PM

Previous topic - Next topic

Krelian

Hi, when i load a video on avidemux to edit, it simply ignores the last 2-4 seconds, when i hit play it auto pauses before the video ends and when i save the job it cuts these seconds, any fix please? the files to edit are in mp4. Thanks

Jan Gruuthuse

Can you upload a 10 second to max 1 minute duration of such video causing this 2-4 seconds drop @ the end of the video?
Use a free dropbox account or similar webservice (free public access, without registration to download your uploaded video) thank you.

Krelian

https://www.dropbox.com/s/selj45r466771vz/2016-01-03%2016-28-50.mp4?dl=0

this is just a 6 sec video, so it only cuts a few frames at the end, i found the length getting cut is proportional to the length of the video.

Jan Gruuthuse

Based on that video clip: you only have a key frame (I-FRM) every 2 seconds.
Some more info: http://avidemux.org/smif/index.php/topic,16534.msg73305.html#msg73305

Krelian

Yes, i have it set to insert a keyframe every 2 seconds, but i didn't think that was relevant since i can edit videos just fine (i cut at keyframes) and the problem only shows at the end of them.

Jan Gruuthuse

Recording from satellite or just DVB-T (terrestrial)
Do you pre process video with software?
QuoteYes, I have it set to insert a keyframe every 2 seconds
We need original recorded footage 10 to 60 seconds max
Are you cutting into separate parts, then load these afterwards?
Video parts needed for joining need to start and end with keyframe.

ps: small editing demo can be found here:  http://avidemux.org/smif/index.php/topic,12094.0.html

Krelian

Quote from: Jan Gruuthuse on January 04, 2016, 07:26:33 PM
Recording from satellite or just DVB-T (terrestrial)
Do you pre process video with software?
QuoteYes, I have it set to insert a keyframe every 2 seconds
We need original recorded footage 10 to 60 seconds max
Are you cutting into separate parts, then load these afterwards?
Video parts needed for joining need to start and end with keyframe.

ps: small editing demo can be found here:  http://avidemux.org/smif/index.php/topic,12094.0.html

no, the video is unedited, taken directly from the source, which is obs mp, the program i use to record my games, thats where i set the keyframe every 2 seconds. Ill upload a longer video

Jan Gruuthuse

This is a six seconds recording from "obs mp"?
Findings:
- The video crashes when opening with MediaInfo
- Shows in vlc as 60 fps/ avidemux as 60,002 fps
Avidemux reports:
- Video: Total Duration 5.300
- Audio: Total duration 5.268
I-FRM (02) @:
- 2 seconds
- 4 seconds
the one @ 6 seconds is missing:
- you did cut before 6 seconds?
- You stopped that recording before the 6 seconds?

avidemux plays the video up to 5.283

for developers:
avprobe -show_format test.mp4
Quoteavprobe version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2007-2014 the Libav developers
  built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.14.100
  Duration: 00:00:05.30, start: 0.000000, bitrate: 3985 kb/s
    Stream #0.0(und): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 3972 kb/s, 60 fps, 60 tbr, 15360 tbn, 120 tbc
    Stream #0.1(und): Audio: aac, 48000 Hz, stereo, fltp, 2 kb/s
# avprobe output

[format]
filename=test.mp4
nb_streams=2
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=0.000000
duration=5.300000
size=2640605.000000
bit_rate=3985818.000000

[format.tags]
major_brand=isom
minor_version=512
compatible_brands=isomiso2avc1mp41
encoder=Lavf57.14.100

Krelian

Quote from: Jan Gruuthuse on January 05, 2016, 07:12:47 AM
This is a six seconds recording from "obs mp"?
Findings:
- The video crashes when opening with MediaInfo
- Shows in vlc as 60 fps/ avidemux as 60,002 fps
Avidemux reports:
- Video: Total Duration 5.300
- Audio: Total duration 5.268
I-FRM (02) @:
- 2 seconds
- 4 seconds
the one @ 6 seconds is missing:
- you did cut before 6 seconds?
- You stopped that recording before the 6 seconds?

avidemux plays the video up to 5.283

for developers:
avprobe -show_format test.mp4
Quoteavprobe version 9.18-6:9.18-0ubuntu0.14.04.1, Copyright (c) 2007-2014 the Libav developers
  built on Mar 16 2015 13:19:10 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf57.14.100
  Duration: 00:00:05.30, start: 0.000000, bitrate: 3985 kb/s
    Stream #0.0(und): Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 3972 kb/s, 60 fps, 60 tbr, 15360 tbn, 120 tbc
    Stream #0.1(und): Audio: aac, 48000 Hz, stereo, fltp, 2 kb/s
# avprobe output

[format]
filename=test.mp4
nb_streams=2
format_name=mov,mp4,m4a,3gp,3g2,mj2
format_long_name=QuickTime / MOV
start_time=0.000000
duration=5.300000
size=2640605.000000
bit_rate=3985818.000000

[format.tags]
major_brand=isom
minor_version=512
compatible_brands=isomiso2avc1mp41
encoder=Lavf57.14.100

i took the video directly from obs mp, no reencoding or editing, i'm guessing the problem is theirs then, although my media info does not crash when opening it.

Jan Gruuthuse

Looks like you have to record + 3 seconds longer (lead out) as the video does not end @ keyframe.

Krelian

Quote from: Jan Gruuthuse on January 07, 2016, 12:11:59 PM
Looks like you have to record + 3 seconds longer (lead out) as the video does not end @ keyframe.

yep, that's the current workaround i'm doing right now. is not bad, but let's hope they fix it.

Jan Gruuthuse

It is the same when recording DVB on STB. I now have a 15 min. lead in and 15 min. lead out. (transmission start/end shift by station) the end of those recordings are not all ways on a keyframe. With commercial breaks, start / end, it can even get worse (pixellation).