Avidemux Forum

Avidemux => Unix-Like (Linux/Bsd/...) => Topic started by: Fleabag on March 14, 2012, 08:20:50 PM

Title: Avidemux doesn't save videos correctly.
Post by: Fleabag on March 14, 2012, 08:20:50 PM
Whenever I try to save a portion of a video Avidemux seems to get stuck in a loop of some sort because the estimated completion time in minutes keeps increasing, but yet there in NO increase in the total video and/or audio size (they stay at zero). Please help.
Title: Re: Avidemux doesn't save videos correctly.
Post by: zakk on March 14, 2012, 09:05:47 PM
how? please give mediainfo details or sample.
Title: Re: Avidemux doesn't save videos correctly.
Post by: Fleabag on March 15, 2012, 05:39:25 AM
Here are the samples that you asked for, It should be noted that Avidemux didn't start out acting like that.
Title: Re: Avidemux doesn't save videos correctly.
Post by: Jan Gruuthuse on March 15, 2012, 07:57:55 AM
MediaInfo (http://mediainfo.sourceforge.net/en)<- click details of source. Looks like trying to process some content with protection on it (DRM (http://en.wikipedia.org/wiki/Digital_rights_management)<- click).
I'm not saying: it is or that you're doing something illegal. It is stuck at frame 5.
Title: Re: Avidemux doesn't save videos correctly.
Post by: Fleabag on March 15, 2012, 02:37:00 PM
I was just trying to process something that I recorded from the TV, and it does that with any other video that I have tried, but the thing is that Avidemux didn't have that problem when I first started using it. So how do I resolve that problem?
Title: Re: Avidemux doesn't save videos correctly.
Post by: Jan Gruuthuse on March 15, 2012, 02:44:14 PM
When video is loaded in avidemux is it still playing in avidemux? Start avidemux from terminal, so you see terminal output of avidemux, could give you indication what goes wrong? Have you changed setting in avidemux preferences: video: display?
Title: Re: Avidemux doesn't save videos correctly.
Post by: Fleabag on March 15, 2012, 07:58:02 PM
Quote from: Jan Gruuthuse on March 15, 2012, 02:44:14 PM
When video is loaded in avidemux is it still playing in avidemux? Start avidemux from terminal, so you see terminal output of avidemux, could give you indication what goes wrong? Have you changed setting in avidemux preferences: video: display?
Would it help if I included a copy of the log file, and if so, where would I find it? Having said that, I'm not sure what to look for as far as what the cause of the problem is. And yes, the video still plays in Avidemux.
Title: Re: Avidemux doesn't save videos correctly.
Post by: nibbles on March 15, 2012, 08:35:18 PM
We still don't know if his Vector Linux supplied build of 2.5.6 logs correctly.  2.5.6 doesn't log to the terminal when the qt gui is run (on my system at least).  His last VL version, 2.5.4 didn't log, which was irritating.

file:///var/log/syslog

or

file:///var/log/messages

should have them.  Paste those info Firefox if you want to make some headway.  At some point you are going to want to run this in a terminal

avidemux2_cli --help

and gist the output of all three of those.
Title: Re: Avidemux doesn't save videos correctly.
Post by: Fleabag on March 15, 2012, 11:48:48 PM
The end result of the first code is: https://gist.github.com/2047668, the end result of the second code is: https://gist.github.com/2047671, and the end result of the third code is: https://gist.github.com/2047691.
Title: Re: Avidemux doesn't save videos correctly.
Post by: Jan Gruuthuse on March 16, 2012, 08:05:41 AM
Quote from: nibbles on March 15, 2012, 08:35:18 PM
2.5.6 doesn't log to the terminal when the qt gui is run (on my system at least).  His last VL version, 2.5.4 didn't log, which was irritating.
Under most linux you can open a terminal and start avidemux (2.5.6 or 2.6) from there.
/usr/bin/avidemux2_qt4
If you are lucky in the terminal menu you can change the settings (preferences): Scrollback [V] Unlimited: all output stays in window and is not cut at the last preset 512 lines? While working with avidemux, you can follow in terminal window what is going on. If needed you can from the terminal menu select all output and copy this and paste to where you need this.
Title: Re: Avidemux doesn't save videos correctly.
Post by: Jan Gruuthuse on March 16, 2012, 03:30:33 PM
not even launching avidemux from a terminal? Don't start root terminal! one of these:
https://vector.ecosq.com/ic/HowTos/HowToBook/ChapCommandLine/startTerm
Title: Re: Avidemux doesn't save videos correctly.
Post by: Fleabag on March 16, 2012, 03:50:54 PM
I have discovered that when Avidemix is run independently of the terminal, it has a totally different appearance than when run in terminal mode, as can be seen in the following two images (the first image is without the terminal):
Title: Re: Avidemux doesn't save videos correctly.
Post by: Jan Gruuthuse on March 16, 2012, 04:33:47 PM
In the menu: Help: About it should tell you what avidemux version is running. Bottom looks like QT (http://www.avidemux.org/admWiki/doku.php?id=using:main_window_-_qt_version), top one could be GTK (http://www.avidemux.org/admWiki/doku.php?id=using:main_window_-_gtk_version). When you slide upwards in the terminal window it should tell you to.
Title: Re: Avidemux doesn't save videos correctly.
Post by: Jan Gruuthuse on March 16, 2012, 04:47:18 PM
On the terminal window, do you have a menu bar there? Check if you can change the settings of scroll back for this window, normal it is limited to a certain amount,  change to keep all the terminal lines and not just the last ones. Concerning the video, load it and keep an eye on terminal for what is going on, it should display some messages while stuck on that 5th frame.
Title: Re: Avidemux doesn't save videos correctly.
Post by: nibbles on March 16, 2012, 07:16:21 PM
@Jan Nice trick to get the gui to log to the terminal.  I forgot that.

@Flea Do like Jan said: increase how much history you can scoll back to.

Some information you may not know: Avidemux 2 builds in three forms,

1) avidemux2_cli
2) avidemux2_qt4
3) avidemux2_gtk

The first is the Command Line Interface.  It only works in the terminal.
Your top picture is the GTK one, bottom is Qt4, like Jan said.

This will start the qt4 version:
avidemux2_qt4

This will start the GTK version:
avidemux2_gtk

Try both.  The Qt4 will probably work better.  Gist the terminal output.  If you can't get it all, increase  your history.
Title: Re: Avidemux doesn't save videos correctly.
Post by: Fleabag on March 16, 2012, 07:47:34 PM
One of the other interesting discoveries that I made is that the problem that I mentioned seems to happen when I have the "Gain" option of the Audio filters menu set to "Automatic" (I suspect that because I successfully saved a video file after making sure that the "Gain" option was set to "None").
Title: Re: Avidemux doesn't save videos correctly.
Post by: nibbles on March 16, 2012, 09:07:00 PM
I took an xvid+mp3+avi, and I opened it in 2.5.6.  I selected an I-Frame.  I hit point A.  I selected a later I-Frame and set that as B.  I chose mpeg2enc+mp2(lav)+mpeg-ps like you did.  I changed the audio filter Gain Mode: to Automatic (max -3 dB).  I hit save and gave it name.vob.  It worked.  I can't reproduce your error in avidemux2_qt4.  You never pasted in the terminal output from when it failed.  You never opened the original video in MediInfo GUI and pasted in the output so we could see what you were starting with.  We can't accomplish anything if you can't make a reproducible test case, but I'm glad it's working for you.
Title: Re: Avidemux doesn't save videos correctly.
Post by: Fleabag on March 17, 2012, 03:25:53 PM
I used an extension of.mpg instead of .vob which MAY account for the difference.
Title: Re: Avidemux doesn't save videos correctly.
Post by: Agent_007 on March 18, 2012, 11:47:13 AM
File extensions shouldn't matter (unless there is a media player, that is poorly coded).
Title: Re: Avidemux doesn't save videos correctly.
Post by: styrol on March 18, 2012, 06:48:09 PM
QuoteFile extensions shouldn't matter (unless there is a media player, that is poorly coded).
I don't know if it's (only) the proper coding. MPlayer and VLC are great (also) because they play many non-conform media files. QuickTime Player and mainly Windows Media Player are rather picky on the 'right' file extension.

For example Apple uses special file extension on MP4 files depending on features, e.g. "M4V" for MP4 files with AC-3 audio. AC-3 in MP4 container is not standardized by MPEG. QuickTime without Perian Plugin won't play such file if the extension is MP4.
Other example, try to play a file labeled as MP4 (a MP4 file streamed over rtmp and recorded by Flvstreamer), but which is actually a FLV file (Flvsteamer repacks the video and audio streams in a FLV container).  In practice file extension often matters if you don't use software like MPlayer and VLC (which come with their own decoders and splitters).