Avidemux Forum

Avidemux => Windows => Topic started by: SgrB2 on January 25, 2020, 09:27:35 PM

Title: Cannot Export an AVI file .....
Post by: SgrB2 on January 25, 2020, 09:27:35 PM
Hi,
I am running 2.7.5 on Windows 10 and was successful in changing the
frame rate of an AVI file that contained two frames that originally ran
at 10 fps and now runs at 1 fps within the application in the Preview
mode. I did set both the filter for frame rate and the filter for
resample.  However, I am not able to export it.  When I read in the AVI file
the Video Decoder gives:   RGB  DXVA2 which I assume is normal.  The
Video Output doesn't have an AVI option which I expected, but I note
that to obtain an active filter window, I needed to change it to anything
other than Copy.  I also tried to just export a copy of the AVI file without
trying to change the frame rate, but it won't do that either.   Any help
is gratefully received.
Cheers,
SgrB2
Title: Re: Cannot Export an AVI file .....
Post by: eumagga0x2a on January 25, 2020, 09:42:23 PM
If you are re-encoding using x264, please try the latest nightly. There was a bug preventing x264 from outputting anything with very short videos, it is fixed in current nightlies.

https://avidemux.org/nightly/

QuoteWhen I read in the AVI file the Video Decoder gives:   RGB  DXVA2

You should check that the DXVA2 video output is enabled, the unaccelerated Qt (called RGB) output just wastes CPU cycles.

edit: you seem to mix up video output (the interface responsible for displaying the picture on the screen) and output format (i.e. muxer, creating files of the given format). Of course there is an AVI muxer which you should not use for H.264, HEVC or similar modern codecs. Use MKV or mp4.
Title: Re: Cannot Export an AVI file .....
Post by: SgrB2 on January 25, 2020, 10:57:43 PM

edit: you seem to mix up video output (the interface responsible for displaying the picture on the screen) and output format (i.e. muxer, creating files of the given format). Of course there is an AVI muxer which you should not use for H.264, HEVC or similar modern codecs. Use MKV or mp4.

Hi,
Yes, I was confused about the video ouput vs output format.  So, I still have not been able to
export even the AVI file that I read in.  I did set DXVA2 in preferences but don't know that to
do with RGB.  I tried using both mp4 and MKV but got nowhere.  I can see and play the file
I read in but really have no idea how to set the parameter for exporting it.  Hope you can
help on that end.
Cheers,
SgrB2
Title: Re: Cannot Export an AVI file .....
Post by: SgrB2 on January 25, 2020, 11:14:33 PM
Here's the error I get on export ....
Title: Re: Cannot Export an AVI file .....
Post by: eumagga0x2a on January 25, 2020, 11:23:20 PM
Pardon, it was me who confused the indication for decoder (which is RGB) and video output (which is  DXVA2) – the video consists probably of uncompressed BMP images. You get the error because you left the "Video Output" (here it means the codec which should be used to compress the resuting video) at "Copy". Change it to an encoder for the codec you need. The MP4 muxer supports e.g. H.264, HEVC as well as a variety of legacy MPEG4 codecs (xvid / divx).
Title: Re: Cannot Export an AVI file .....
Post by: SgrB2 on January 25, 2020, 11:36:26 PM
I get this error now using HEVC.  Is that what you mean?
I do know the 2-frame avi movie was made from two TIFF
files with no compression.  I appreciate your patience
with my attempts at this....
Cheers,
SgrB2
Title: Re: Cannot Export an AVI file .....
Post by: eumagga0x2a on January 25, 2020, 11:43:17 PM
Please try x264 before we start looking into background of the failure with HEVC (the suggestion that the problem might be related to bitrate is a red herring). What is the ultimate purpose of the whole operation? Which equipment will play the resulting video?

(I assume you have installed the latest nightly)
Title: Re: Cannot Export an AVI file .....
Post by: SgrB2 on January 25, 2020, 11:50:35 PM
I tried x264 and got the same error.  How does one install
the nightly?
Title: Re: Cannot Export an AVI file .....
Post by: eumagga0x2a on January 25, 2020, 11:54:17 PM
Download the latest ZIP from https://avidemux.org/nightly/win64/ (currently from Jan 23), unpack it, run avidemux.exe (but not while the release is running).

Regarding the error, I suspect that you use wrong tools (filters) to achieve some goal you haven't clearly described.
Title: Re: Cannot Export an AVI file .....
Post by: SgrB2 on January 26, 2020, 12:03:25 AM
I did the nightly and got the same error.  I haven't
been setting any filters; just trying to export the
file I read in via the different output format. 
Title: Re: Cannot Export an AVI file .....
Post by: eumagga0x2a on January 26, 2020, 12:12:28 AM
Try to disable "use advanced configuration" in the configuration dialog of the x264 encoder plugin first. If this doesn't help, please compress (zip or 7z) and attach admlog.txt from %localappdata%\avidemux\ to your reply.

Apart from that, please explain the purpose. A video of 1/5 sec duration makes strictly speaking no sense.
Title: Re: Cannot Export an AVI file .....
Post by: SgrB2 on January 26, 2020, 12:18:38 AM
The video that I made is of the chromosphere of the sun.
The same data were processed two different ways.  The
movie runs to0 fast to discern the differences (if any) and
I am simply trying to slow it down from a frame rate of
10 fps to 1 fps (which would help my eyesight a great
deal).  In making the video in an application called
RSPEC, it seems that the default frame rate is 10 and
I can't change it.  So that's why I am bothering you
for which I humbly apologize.....
Title: Re: Cannot Export an AVI file .....
Post by: eumagga0x2a on January 26, 2020, 12:25:17 AM
While resample fps and change fps are usually the right tools for such a task, I think they need more frames to operate on. Please try to apply the "still image" filter to each of the two frames to inflate the number of frames first, then use changeFps.
Title: Re: Cannot Export an AVI file .....
Post by: eumagga0x2a on January 26, 2020, 12:36:52 AM
By the way, if you still have original bitmaps, you could import them in Avidemux directly (initially at 25 fps hardcoded) by renaming the files like chromosphere-000.bmp, chromosphere-001.bmp etc. and opening the first one with Avidemux without any intermediate application. Alternatively, as long as the number of pictures is very low, just drop one after another onto Avidemux window. JPEG, PNG and BMP type images are supported.

Again, the number of pictures may matter for subsequent editing, but the "Still Image" filter should help here.
Title: Re: Cannot Export an AVI file .....
Post by: SgrB2 on January 26, 2020, 12:48:45 AM
I increased the number of frames by using Append
on three separate video -- a total of 6 images.  That
didn't work either.  I think I'll stop for the night.  I
do thank you for all your efforts on my behalf.
Cheers,
SgrB2
Title: Re: Cannot Export an AVI file .....
Post by: eumagga0x2a on January 26, 2020, 12:54:38 AM
Please provide the log (admlog.txt) for any further analysis. I tried importing two pictures (.png) and direct encoding with x264 with advanced settings enabled as well as change fps + resample fps and using still image – every single combination worked for me.
Title: Re: Cannot Export an AVI file .....
Post by: SgrB2 on January 26, 2020, 12:58:27 PM
Attached is the admlog that results when I try to
export the results of successfully (as per Preview)
changing the avi file from 10 fps to 1 fps. 
Title: Re: Cannot Export an AVI file .....
Post by: eumagga0x2a on January 26, 2020, 03:04:47 PM
The log is incomplete (which is expected with VC++ builds like the 2.7.5 release unless you use "Help" --> "Advanced" -->"Open application log" or quit Avidemux) and doesn't originate from the latest nightly (which is MinGW-built and flushes the log to disk instantly). Please use the nightly, load the AVI, set x264 as encoder and try to save to an MP4 file, then quit Avidemux and provide the resulting admlog.txt.
Title: Re: Cannot Export an AVI file .....
Post by: SgrB2 on January 26, 2020, 05:48:36 PM
Hi,
Attached is admlog:  the latest attempt to export only
as you directed.
Cheers,
SgrB2
Title: Re: Cannot Export an AVI file .....
Post by: eumagga0x2a on January 26, 2020, 08:10:13 PM
Thanks, this time no bad things happen in the editor, it is really the encoder which doesn't like the configuration. My first guess would be the odd width of the images. Please try to add the crop filter and then add borders if necessary to make all dimensions a multiple of 16 (this is very important for compressibility).
Title: Re: Cannot Export an AVI file .....
Post by: SgrB2 on January 26, 2020, 10:56:40 PM
Congrats!

As you suggested I made both axes multiples of 16 in the
AVI file and was able to both export that file as an MP4
and also change the frame rate and export that file.
But only for the nightly version which is contained in
a folder on my desktop. 

The regular avidemux that is installed with the installer
does export a file but gives this error: This file isn't playable.
That might be because the file type is unsupported, the file
extension is incorrect, or the file is corrupt.    0xc10100be

Is there someway I can replace the regular version
with the nightly version? At the moment there seems
to be some minor conflict between the two versions.

Cheers,
SgrB2
Title: Re: Cannot Export an AVI file .....
Post by: eumagga0x2a on January 27, 2020, 12:11:58 AM
I reproduced the failure to initialize x264 with an odd width prior to checking the topic and finding your reply. Good that you could recreate the source with required even dimensions as neither the crop filter nor the "add border" one would have been able to help here. SwScale ("resize" filter) seems to be the only option without modifying the source video which works.

Quote from: SgrB2 on January 26, 2020, 10:56:40 PM
The regular avidemux that is installed with the installer
does export a file but gives this error: This file isn't playable.
That might be because the file type is unsupported, the file
extension is incorrect, or the file is corrupt.    0xc10100be

This error is not from Avidemux, it comes from some Windows multimedia framework.

QuoteIs there someway I can replace the regular version
with the nightly version? At the moment there seems
to be some minor conflict between the two versions.

Just uninstall the release and keep using the nightly (and replace it with fresh builds to keep up with the development). If you need Avidemux to be accessible from other user accounts, move its program folder to a location all users can read.
Title: Re: Cannot Export an AVI file .....
Post by: SgrB2 on January 27, 2020, 12:45:52 AM
Hi  eumagga0x2a !
Thank you for all the hard work and suffering
through to the end with me!
Cheers,
SgrB2