Avidemux Forum

Avidemux => Windows => Topic started by: xanderian on August 04, 2012, 01:06:55 PM

Title: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: xanderian on August 04, 2012, 01:06:55 PM
Avidemux user here..

Trying to direct copy a mp4 (mp4 muxer) file which is encoded with h264 but only with this file i get this Too Short problem at the beginning of the file. The saved file is only 50kb. I tried 4 other mp4 files they all worked fine, but i need to cut/copy this file too. The source file is not broken so its not the solution. I also tried mp4v2 muxer but the result file is not playable on VLC or any other players.

Is there anything I can do ? The file is 3 gigs so its impossible for me to upload also its NSFW file

Here is the MediaInfo of the file:


General
Complete name                    : D:\*****************- 11.06.23 - 1080p.mp4
Format                           : MPEG-4
Format profile                   : QuickTime
Codec ID                         : qt 
File size                        : 3.13 GiB
Duration                         : 1h 3mn
Overall bit rate                 : 7 011 Kbps
Encoded date                     : UTC 2011-06-13 07:23:32
Tagged date                      : UTC 2011-06-13 12:34:27
Writing library                  : Apple QuickTime
Media/UUID                       : 5D69D21B-BB3A-45ED-B46E-8EBC4BE0875E
Media/History/UUID               : 6B09C759-1A93-48E4-9392-7D61DE7C1F1A
Ã,©TSC                             : 2997
Ã,©TSZ                             : 100

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : Main@L4.0
Format settings, CABAC           : No
Format settings, ReFrames        : 2 frames
Format settings, GOP             : M=2, N=60
Codec ID                         : avc1
Codec ID/Info                    : Advanced Video Coding
Duration                         : 1h 3mn
Bit rate                         : 6 898 Kbps
Width                            : 1 888 pixels
Original width                   : 1 920 pixels
Height                           : 1 062 pixels
Original height                  : 1 080 pixels
Display aspect ratio             : 16:9
Frame rate mode                  : Constant
Frame rate                       : 29.970 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.115
Stream size                      : 3.08 GiB (98%)
Language                         : English
Encoded date                     : UTC 2011-06-13 12:30:48
Tagged date                      : UTC 2011-06-13 12:34:27
Color primaries                  : BT.709-5, BT.1361, IEC 61966-2-4, SMPTE RP177
Transfer characteristics         : BT.709-5, BT.1361
Matrix coefficients              : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID                               : 2
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format profile                   : LC
Codec ID                         : 40
Duration                         : 1h 3mn
Bit rate mode                    : Constant
Bit rate                         : 109 Kbps
Nominal bit rate                 : 128 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 48.0 KHz
Compression mode                 : Lossy
Stream size                      : 49.6 MiB (2%)
Language                         : English
Encoded date                     : UTC 2011-06-13 12:30:49
Tagged date                      : UTC 2011-06-13 12:34:27
Material_Duration                : 3836587
Material_StreamSize              : 52043626

Menu
ID                               : 3
Language                         : English
Encoded date                     : UTC 2011-06-13 12:34:27
Tagged date                      : UTC 2011-06-13 12:34:27
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: xanderian on August 17, 2012, 04:00:20 PM
Tried with 2.6 r 8121 beta w7 64 bit..

I still get the error :(

What can i do to remedy this error ?

Please, Jan or Mean can you try to help me ? If there is any way i can help you guys please let me know ?

(BTW I can cut this file using mkvmerge and the output file is mkv, I can supply that if it will help you guys )
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: Jan Gruuthuse on August 17, 2012, 06:08:59 PM
File opens in avidemux 2.6 and plays?
Have you tried loading the video and use copy for both video and audio and use Output Format: Mkv Muxer and then save the video?
Then start from this MKV: load in avidemux and try to do what you want to do?
If you want to take it any further a sample of similar mp4 (20 MB) would be needed.
The remuxed mkv would not help here as the container is changed.

Can you do anything with the mkvmerged mkv file in avidemux? load cut/edit then save in mp4v2 mp4?

Could be you need to re-encode Video Output: Mpeg4 AVC (x264).
Try this with a [A][B]marked 10 second of that video. Select marks only with up/down keyboard arrow.

FAQ: File too short (http://www.avidemux.org/smf/index.php?topic=10183.0)

If all fails:
You could re-encode in Handbrake and then do the edit/cut with avidemux
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: xanderian on August 17, 2012, 07:30:40 PM
-File opens in avidemux 2.6 and plays?
-YES

-Have you tried loading the video and use copy for both video and audio and use Output Format: Mkv Muxer and then save the video?
-Gives the same error "FILE IS TOO SHORT"

-I did what you have suggested to me. I have cut the first 1minutes of the file with MkvMerge and the resulting file was mkv = matroska, then i opened this mkv file with avidemux, then save as mp4. No Problem it was saved !

I already read that FAQ you posted, i guess there is a problem with avidemux and timestamps, while mkvmerge doesnt have this problem, because once the file is put in mkv, avidemux can do whatever it wants.

What are your comments Jan ? or Mean ?
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: styrol on August 17, 2012, 08:29:04 PM
Quotei guess there is a problem with avidemux and timestamps, while mkvmerge doesnt have this problem, because once the file is put in mkv, avidemux can do whatever it wants.
Remuxing the file with another software often helps, you don't have to change the container format (ok, mkvmerge sticks to MKV format). Remuxing your file with ffmpeg (retaining the container) might also have helped.
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: Jan Gruuthuse on August 18, 2012, 05:39:53 AM
So you have a working solution, for now. Without a sample of identical type video, 5 secs or max 20 MB (container/used codecs/ same parameters/ not the same subject), there is nothing much the developers can undertake.
This is my opinion as user and may not reflect what developers or forum staff want to say/do about it.
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: Jan Gruuthuse on September 02, 2012, 05:00:31 AM
download a longer version from other location.
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: mean on September 02, 2012, 10:06:08 AM
without a sample to reproduce we cant do much
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: pascal4 on May 26, 2013, 11:05:13 PM
Here's your sample...  would have uploaded something else, but it didn't want to waste time.
http://www33.zippyshare.com/v/yyy/file.html

Basically it was a flv, and when saving it cuts the clip in half and throws this message.
2.6.4 r8696 does this, when opening it shows no message.

2.5.6-1 shows when opening the H.264 alternate mode message, then the rebuild index message, if I select yes it cracks, if I select no it keeps stable.
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: mean on May 27, 2013, 06:29:59 AM
The frame per second is sightly wrong
29.69 instead of 26.71,  that's why it aborts at some point
Looking why the error
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: mean on May 27, 2013, 10:19:48 AM
The samples you provided can now be saved as mp4 with latest nightly
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: ilustrul on February 05, 2014, 08:40:36 AM
Hello!
I have the same problem (2.6.7 and also the latest nightly r9010 included).

I tried everything but the same message "File too short" (AVI/MP4 muxers tested, Video: MPEG-4 AVC & XVID, Audio: AAC (Faac)).

Here is the file I want to convert. Actually is a movie, you can download it here for testing purposes:
http://kickass.to/universal-soldier-1992-1080p-brrip-x264-yify-t7243502.html

Hope you can take a look at this.
Thanks!
Mircea
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: massimodec on February 17, 2014, 12:00:43 AM
Hi
I have the same problem: after cutting some seconds at the beginning and at the ending of a MP4 movie, full HD 1920x1080. 25 fps PAL
the "save" got wrong, with the message "too short"
Version 2.6.7

It looks like a problem (?)
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: DjDiabolik on March 09, 2015, 12:59:42 PM
Same problems.............
I need to cut a parts of about 3 minutes from this:
General
Complete name               : D:\Programmi\rtmpdump-2.4-2013-12-22\viva_l'italia.mp4
Format                      : Flash Video
File size                   : 56.5 MiB
Duration                    : 5mn 37s
Overall bit rate mode       : Variable
Overall bit rate            : 1 407 Kbps

Video
Format                      : AVC
Format/Info                 : Advanced Video Codec
Format profile              : Main@L3.0
Format settings, CABAC      : Yes
Format settings, ReFrames   : 2 frames
Codec ID                    : 7
Duration                    : 5mn 37s
Bit rate mode               : Variable
Maximum bit rate            : 2 544 Kbps
Width                       : 640 pixels
Height                      : 360 pixels
Display aspect ratio        : 16:9
Frame rate mode             : Constant
Frame rate                  : 25.000 fps
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Scan type                   : Progressive
Scan order                  : Top Field First
Color range                 : Limited

Audio
Format                      : AAC
Format/Info                 : Advanced Audio Codec
Format profile              : LC
Codec ID                    : 10
Duration                    : 5mn 37s
Channel(s)                  : 2 channels
Channel positions           : Front: L R
Sampling rate               : 44.1 KHz
Compression mode            : Lossy

Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: Jan Gruuthuse on March 09, 2015, 02:30:56 PM
Are you using the latest avidemux?
avidemux_2.6.8_8_march_2015_win32.exe @ http://www.avidemux.org/nightly/win32/
avidemux_2.6.8_9_march_2015_win64.exe @ http://www.avidemux.org/nightly/win64/
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: Invertex on April 06, 2015, 01:01:36 AM
Quote from: Jan Gruuthuse on March 09, 2015, 02:30:56 PM
Are you using the latest avidemux?
avidemux_2.6.8_8_march_2015_win32.exe @ http://www.avidemux.org/nightly/win32/
avidemux_2.6.8_9_march_2015_win64.exe @ http://www.avidemux.org/nightly/win64/
This issue still happens for me on that latest release. It seems that AVIDemux does not like how "Open Broadcaster" encodes its H.264 files.
Here is the video file I am trying to re-encode and it's telling me it's too short. (This is my own recording, nothing copyright infringing)
https://mega.co.nz/#!SZQQDQAb!GOUUaC-HC1zGigdi_vigU1NWREsjaxwTu8JFbyV2KB4

Hope it helps, as this is a bug I run into a lot these days it seems.
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: Jan Gruuthuse on April 06, 2015, 04:56:49 AM
You need to tell how you want to re-encode:
- video part
- audio part
some stuff does not work, some does. I'm not on windows, so it could be my testing is not relevant to your working environment.
I'm no expert in this:
Video wise could be an issue (container profile=High@3.1)(Main@L4.1), first time I see this combination, could be contradicting information
If you have a choice to select otherwise?
Can you give some detail on you avidemux setup?
Your recording re-encoded: openbroadcaster 3.8 MB download
update to: Mar 28 Apr 6 2015 version 32 or 64 bit: http://www.avidemux.org/nightly/
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: Invertex on April 06, 2015, 06:11:39 AM
I am on the Mar 28th build, latest one there.

Audio is set to copy (doesn't work setting it to something else like AAC either)
Video is set to Mpeg4 AVC (x264), default and custom settings tried.
Output with MP4 Muxer.

Nothing else changed. And yes, this is on Windows 64bit. Also tested 32bit and it fails as well.

As for changing the encoding settings, I can change it from 'main' to 'high', turn off "CFR", set Keyframe interval and "Encode in Full Range", but none of those fixed it.
They provide an x264 command line options setting though, and I just looked up a bunch and tried them out, I was able to narrow down the specific x264 property that is causing the issue.

If I set "bframes=1", this fixes the problem and I can re-encode the file it created without issues.
Using ffprobe to check out the normal files OBS creates, it appears OBS sets bframes=2 internally, and AVIDemux is not able to handle this properly for some reason, at least on Windows.
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: Jan Gruuthuse on April 06, 2015, 07:36:27 AM
I can process these video only without HWaccel and for Video display not:
- vdpau
- OpenGL
- libva
getting muxer not found with those settings.
Perhaps developer has better a view on this
Openbroadcast: can't get installed due to special ffmpeg, it brakes to much on 14.04 LTS 64-bit


win32 & win64 bit are now available in http://www.avidemux.org/nightly/ 6 april 2015 see next 2 postings.
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: mean on April 06, 2015, 12:14:03 PM
It's a rounding issue again
You could try mp4v2 as muxer, it's more tolerant to those
Or use mkv as intermediate format
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: mean on April 06, 2015, 12:15:40 PM
regenerating windows binaries, the crop fix might help
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: Invertex on April 07, 2015, 10:31:21 PM
Yeah, for now I'll just make sure to record with bframes=1.
I hope this will be an easy fix for AVIDemux though.

Crop fix? I tried the April 6th binary I am assuming you made, and the issue still happens with the regular MP4 mixer. MP4v2 does work fine though.
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: pascal on August 28, 2016, 09:09:42 AM
Hello. I get same trouble on latest version of avidemux. When i cut video at the begin i have "Too short" exception.
Cause of my problem was incorrect type of start frame. MPEG videos should be start at I-frame, but i cut and attempt to save video at B-frame. More about frames you can read in Wikipedia: https://en.wikipedia.org/wiki/Video_compression_picture_types

Wrong way:
(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fsavepic.ru%2F11125420m.png&hash=8479eb22ffaef720dbf2a49656fcd5abff64aba6) (http://savepic.ru/11125420.htm)

Right way:
(https://avidemux.org/smif/proxy.php?request=http%3A%2F%2Fsavepic.ru%2F11119276m.png&hash=941c7d2834996e80d46019423252cb088946b762) (http://savepic.ru/11119276.htm)
Title: Re: Avidemux 2.6 r 8097 w7 64bit - Too Short
Post by: mean on August 28, 2016, 10:17:10 AM
Try with 2.6.13