Avidemux Forum

Avidemux => Windows => Topic started by: Yisc76 on January 04, 2016, 11:02:13 AM

Title: 2.6.911 - Error too short
Post by: Yisc76 on January 04, 2016, 11:02:13 AM
Recently I discoverd this great tool, which finaly enabled me to cutt HD television recordings I had on my pc for some time.
Recordings are in TS-format and most of them can be cutt without any problems.
However, I do have a couple of files, which can't be cutt and is throwing the "too short" error.
It doesn't make a difference in which format I save the files (TS, MKV) as it's always giving the same error.

I've attached the Avidemux logfile
Orginal file is in TS format
Video output is set to Copy
Audio output is set to Copy
Output format is set to Mkv Muxer

Version of Avidemux used is the latest stable version as well as the latest beta.
Any help would be appreciated.
Title: Re: 2.6.911 - Error too short
Post by: Jan Gruuthuse on January 04, 2016, 12:25:53 PM
Recordings source: dvb-t(2), dvb-s(2), FTA?
Operating system?
used CPU/GPU?
SD or HD video? Format?
Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on January 04, 2016, 03:08:33 PM
Recording source: DVB Viewer
Operating system pc 1: Windows XP (x86) (this is a multi-purpose server, also being used for television recordings in both SD and HD)
Operating system pc 2: Windows 7 (x64)
Type of recordings: HD video
Format of recordings: MPEG2-TS Video format

Just to make sure, most of the recordings can be cutt and saved using Avidemux, but every now and then, there's one that won't go and is throwing the error.
Title: Re: 2.6.911 - Error too short
Post by: Jan Gruuthuse on January 04, 2016, 03:29:15 PM
Do you have the same issue on recent recordings?

If you could upload a sample video with these issues (10 - max 60 seconds in duration)
Use a free dropbox account or similar webservice (free public access, without registration to download your uploaded video) thank you.
Time permitting: dev(s) could have a look @ the video and tell what is going on exactly
Title: Re: 2.6.911 - Error too short
Post by: mean on January 04, 2016, 03:37:33 PM
Do you always cut out a few seconds at the start of the recording ?
If not, it could be worth trying that
Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on January 04, 2016, 07:04:57 PM
Quote from: Jan Gruuthuse on January 04, 2016, 03:29:15 PM
Do you have the same issue on recent recordings?

If you could upload a sample video with these issues (10 - max 60 seconds in duration)
Use a free dropbox account or similar webservice (free public access, without registration to download your uploaded video) thank you.
Time permitting: dev(s) could have a look @ the video and tell what is going on exactly

Yes, I do have the issue with one of the recent recordings (made 01-01-2016) as well.
Sadly, all those records are so big (this recent one is 8.77 GB), that it would be hard to upload them anyware.
Will see if I can make some short test-recordings and hope one of them has the same issue.
Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on January 04, 2016, 07:05:55 PM
Quote from: mean on January 04, 2016, 03:37:33 PM
Do you always cut out a few seconds at the start of the recording ?
If not, it could be worth trying that

Yes I do.
I've also take some margin at the start and at the end of each recording, so these are cutt off, as well as all the commercial blocks in between :)
Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on January 05, 2016, 02:52:43 PM
Quote from: Yisc76 on January 04, 2016, 07:04:57 PM
Will see if I can make some short test-recordings and hope one of them has the same issue.

I did a series of test-recordings (5 tests) and 2 of them have the "too short" issue.
I've uploaded them to Dropbox and shared them:

File 1: https://www.dropbox.com/s/oi7qhm0a5kcxhz0/test_1_20160105_1225.ts?dl=0
File 2: https://www.dropbox.com/s/zhe1ofm52hicw9t/test_2_20160105_1230.ts?dl=0
Title: Re: 2.6.911 - Error too short
Post by: Jan Gruuthuse on January 05, 2016, 03:43:21 PM
cut from 1st test: weightwatchers
cut from 1st test: HollandsNieuwe
Seems to be working without any problem?
What exactly do you do with the video?
Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on January 07, 2016, 09:39:22 PM
I load them, cutt off the start, cutt off the commercial breaks, cutt off the end and then try to save it.
After some times, the saving stops and the error "too short" is displayed.
As said, most files are working without any problems, but occasionaly, this happens.
Title: Re: 2.6.911 - Error too short
Post by: Jan Gruuthuse on January 08, 2016, 06:50:44 AM
see this reply 1st: when that happens : .... (http://avidemux.org/smif/index.php/topic,16541.msg73407.html#msg73407)

When this happens, try computer shut down, wait 5 seconds, start computer, remove the idx2 files from the folder holding the source videos.
Try with same video again, if it works this time, could be a local issue, driver not released properly, memory, ...
It does sometimes happen here to, not often, been looking for the issue, never found it. I can't reproduce this at will, it happens randomly.

Lets see what happens and take it from there.
Title: Re: 2.6.911 - Error too short
Post by: mean on January 08, 2016, 07:28:37 AM
when that happens :
After it has crashed, at next start up it will ask to load the crash file
Please do it, and save the project as foo.py
Normally when loading foo.py dans saving , it will crash everytime

And then please provide foo.py and the file needed to reproduce

It is the most efficient way, as the crash can be caused by something that looks harmess to you or neglectable
but we could spend a lot of time reproducing it

For example, the problem might only happen on windows
Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on January 08, 2016, 10:59:48 AM
I've just done a lot of testing and am able to reproduce the issue 10 out 10 following these steps:


When you leave the output format to the default setting "Avi Muxer" the files saves just fine.
When you drag te slider to 00:00:05.000 the file saves okay with Mkv Muxer as well.
So it looks like the issue is happening when cutting off a short piece at the beginning of a video.
Title: Re: 2.6.911 - Error too short
Post by: Jan Gruuthuse on January 08, 2016, 11:30:21 AM
When cutting, you need to cut on keyframe!

When you selected a cutting point with slider: from keyboard
- 1 x up arrow (move forward to next keyframe)
- 1 x down arrow (move backward to previous keyframe, not your selected cutting point)
- mark [ B]
-  [Ctrl] [X] (cut)

Do you still have the issue then?
Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on January 08, 2016, 04:44:09 PM
Quote from: Jan Gruuthuse on January 08, 2016, 11:30:21 AM
When cutting, you need to cut on keyframe!

When you selected a cutting point with slider: from keyboard
- 1 x up arrow (move forward to next keyframe)
- 1 x down arrow (move backward to previous keyframe, not your selected cutting point)
- mark [ B]
-  [Ctrl] [X] (cut)

Do you still have the issue then?

Just tested and the issue is exactly the same when I use your method.
Title: Re: 2.6.911 - Error too short
Post by: Jan Gruuthuse on January 08, 2016, 05:43:03 PM
provide foo.py as requested in: when that happens :  (http://avidemux.org/smif/index.php/topic,16541.msg73407.html#msg73407)
Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on January 08, 2016, 07:51:20 PM
Quote from: Jan Gruuthuse on January 08, 2016, 05:43:03 PM
provide foo.py as requested in: when that happens :  (http://avidemux.org/smif/index.php/topic,16541.msg73407.html#msg73407)

Here's the file as requested.
Title: Re: 2.6.911 - Error too short
Post by: mean on January 09, 2016, 02:24:52 PM
Thanks,  i can reproduce the issue
Title: Re: 2.6.911 - Error too short
Post by: mean on January 10, 2016, 08:05:52 AM
If i drop the  weird frame, it successfully saves all the file, but with corruption during the 1st second or so
I'll have to dig further
Title: Re: 2.6.911 - Error too short
Post by: mean on January 10, 2016, 04:44:07 PM
I've commited the fix, not sure about the side effects
Win32/win64 have been rebuilt
Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on January 11, 2016, 01:31:58 PM
Thanks for the fix.
I've downloaded and installed the latest build and am able to cutt and save most of the troubled files now.
There's one that still gives the "Too short" message after having saved 38% of the file (source file is 8,77 GB , so can't share that).
Here's the foo.py file if that's to any help.
Title: 2.6.12_r160309 - Error too short
Post by: Yisc76 on March 11, 2016, 08:58:48 AM
Just downloaded the latest nightly (2.6.12_r160309) and tried two files I am having trouble with for a long time.
I'm still getting the Error too short on both these files.
I've included both 'foo.py' files

Most of the files I record go through without any problem, so in general I am very happy with the program.
Just once in a while a file has problems.
Title: Re: 2.6.911 - Error too short
Post by: mean on March 11, 2016, 09:22:32 AM
Sadly, without the file and/or log , i can't do much
Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on March 11, 2016, 03:38:33 PM
Quote from: mean on March 11, 2016, 09:22:32 AM
Sadly, without the file and/or log , i can't do much

Sorry for not providing the log.
I've included it in this message, along with foo.py once more.
The file is currently syncing with my Dropbox, but since it's nearly 7 GB, it will take some time.
Title: Re: 2.6.911 - Error too short
Post by: AQUAR on March 12, 2016, 10:27:51 AM
Looking at the log: it seems to be suggesting that the video stream is somewhat broken (unref short failure!).

Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on March 12, 2016, 10:53:03 AM
Quote from: AQUAR on March 12, 2016, 10:27:51 AM
Looking at the log: it seems to be suggesting that the video stream is somewhat broken (unref short failure!).

When I cut the file and use the AVI muxer, the process is completing normaly.
It goes wrong when using the MKV muxer, which is also happening with the other file I mentioned.
I'm still uploading the file to my Dropbox, but it will take another 20 hours to complete.
Most files i record do not have any problems at all, it was one file not going through for a long time and then a second one this week.
Title: Re: 2.6.911 - Error too short
Post by: Jan Gruuthuse on March 13, 2016, 07:38:00 AM
Make cut with avimuxer, save, then reload and save using mkv-muxer, for now.
Perhaps time permitting ... a solution could be found.
Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on March 13, 2016, 05:39:49 PM
Link to the failing file: https://www.dropbox.com/s/ur3psa88n52ygfd/failing_20160309.ts?dl=0 (https://www.dropbox.com/s/ur3psa88n52ygfd/failing_20160309.ts?dl=0)
Title: Re: 2.6.911 - Error too short
Post by: Jan Gruuthuse on March 16, 2016, 06:37:16 AM
What is the source of this download (dutch tv)? DVB-t (digitenne), Sat (canaldigitaal) or cable?
Sat, this should not be an issue. DVB-t could be a signal drop. Within 1/2 hour I should be able to tell something more when download is finished.
see processing sbs6 HD from sat: https://www.youtube.com/watch?v=avs5AvlSq4Y
if Sat what box is used?
Title: Re: 2.6.911 - Error too short
Post by: mean on March 16, 2016, 06:39:43 AM
It's difficult to download the file without being cancelled
Title: Re: 2.6.911 - Error too short
Post by: Jan Gruuthuse on March 16, 2016, 06:45:27 AM
Just noticed, when failed with firefox you can click the refresh / reload, it resumes download. Seems you need to keep the page open.
download fluctuates a lot 2 - 5 MiB/s. max 5 MiB/s download
Will report back shortly
I have now the complete  download.
Title: Re: 2.6.911 - Error too short
Post by: Jan Gruuthuse on March 16, 2016, 07:14:32 AM
Sorry there is nothing wrong with that video. I can process this without apparently any issue for now. (1st looks)
Title: Re: 2.6.911 - Error too short
Post by: Jan Gruuthuse on March 16, 2016, 07:22:52 AM
cut from 18:33.720 to 19:03.960 (Mokka advert): dropbox mokka top right click download 41,3 MB

What are your exact steps?
Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on March 20, 2016, 08:49:34 PM
Quote from: Jan Gruuthuse on March 16, 2016, 06:37:16 AM
What is the source of this download (dutch tv)? DVB-t (digitenne), Sat (canaldigitaal) or cable?
Sat, this should not be an issue. DVB-t could be a signal drop. Within 1/2 hour I should be able to tell something more when download is finished.
see processing sbs6 HD from sat: https://www.youtube.com/watch?v=avs5AvlSq4Y
if Sat what box is used?

Sorry for my delayed answer, some bad things in my personal life happened.
The recordings are from Dutch television, cable, HD channel.
Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on March 20, 2016, 08:52:31 PM
Quote from: Jan Gruuthuse on March 16, 2016, 07:22:52 AM
cut from 18:33.720 to 19:03.960 (Mokka advert): dropbox mokka top right click download 41,3 MB (https://www.dropbox.com/s/b8qn2gxb6m5d0y9/Mokka.mkv?dl=0)

What are your exact steps?

- I start Avidemux
- Set it to MKV muxer
- Load the file
- Cut out all the commercials
- Save the file while ignoring it saying that corruptions could occur because cuts aren't on key frames (this happens with nearly ever file I cut, but never is a problem after all)
- Then it starts saving until it says "Errror too short"

I've already supplied logfile as well as foo.py for the above actions
Title: Re: 2.6.911 - Error too short
Post by: AQUAR on March 21, 2016, 07:42:24 AM
IMHO
The source file has AVC video in it and is a broadcast recording (=TS with correctable errors).
So - cutting on non key frames is asking for trouble when using the cut-edit-copy process.

Do all these Dutch broadcast sources have video encoded with AVC (.h264)?
I suspect not and those recordings that work, despite the warnings, are more likely MPEG2 encoded.

IIRC this video stream is somewhat broken (unref short failure!) and not cutting on key frames probably leaves ADM pointing to a nothing frame.



Title: Re: 2.6.911 - Error too short
Post by: Jan Gruuthuse on March 21, 2016, 07:51:08 AM
All HD content by Dutch broadcasters is now  AVC (.h264)
All distributors (Cable, Satellite, ...) are provided with the same source content.
Title: Re: 2.6.911 - Error too short
Post by: Jan Gruuthuse on March 21, 2016, 07:58:42 AM
Quote from: Yisc76 on March 20, 2016, 08:52:31 PM
I've already supplied logfile as well as foo.py for the above actions
that is developer stuff, not spend on me.
Quote- Cut out all the commercials

Removing Lead in video
At start of video. Assuming you don't need video lead in, Don't mark begin with [A ].
Move forward to the point where you want the new video to start.
Select exact cutting point, only using keyboard up/down arrow! (gebruik alléén toetsenbord pijl omhoog of omlaag, niet met pijl links of rechts)
When this point is selected, mark this with [ B]
Cut away the marked video with [Ctrl][X] simultaneous key press.
save as Video01.
Close loaded video file, load new video01

Removing Lead out video
Proceed to the end of where you want to stop the new video.
Select exact cutting point, only using keyboard up/down arrow! (gebruik alléén toetsenbord pijl omhoog of omlaag, niet met pijl links of rechts)
When this point is selected, mark this with [ B]
Now save this as Video02
Close loaded video file, load new video02

Removing commercial blocks video
Proceed now to start of first commercial block.
Select exact cutting point, only using keyboard up/down arrow! (gebruik alléén toetsenbord pijl omhoog of omlaag, niet met pijl links of rechts)
When this point is selected, mark this with [A ]
Proceed to the end of first commercial block.
Select exact cutting point, only using keyboard up/down arrow! (gebruik alléén toetsenbord pijl omhoog of omlaag, niet met pijl links of rechts)
When this point is selected, mark this with [ B]

Repeat the steps of first commercial block. For each remaining commercial block

-----
If you still get issues, save after each commercial block the video as a new video. And load the new video to proceed removing commercial blocks.
Title: Re: 2.6.911 - Error too short
Post by: mean on March 21, 2016, 09:20:01 AM
I think the download was successful this morning, i'll check that asap
Title: Re: 2.6.911 - Error too short
Post by: mean on March 21, 2016, 08:31:47 PM
Ok, got the file
Could you do your editing as usual and before saving save the project & attach it to a post ?
That way i'll be able to reproduce the problem exactly
(My initial simple test with the video went ok without problem)
Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on March 21, 2016, 09:31:09 PM
Quote from: mean on March 21, 2016, 08:31:47 PM
Ok, got the file
Could you do your editing as usual and before saving save the project & attach it to a post ?
That way i'll be able to reproduce the problem exactly
(My initial simple test with the video went ok without problem)

Here's the requested file
Title: Re: 2.6.911 - Error too short
Post by: mean on March 22, 2016, 05:12:04 AM
Thanks, reproduced
Title: Re: 2.6.911 - Error too short
Post by: mean on March 28, 2016, 01:34:40 PM
Might be ok now, not 100% sure
Double check the result
Title: Re: 2.6.911 - Error too short
Post by: Yisc76 on March 30, 2016, 06:06:08 PM
I've just processed the 2 files I had trouble with and both of them have gone through without any problem.
I did a check playblack check and all seems fine.
Thanks for sorting this out, great product and superb support.
Keep this up.

p.s: I have removed the large file from my Dropbox, so that link I gave is no longer valid.