PDA

View Full Version : AVInaptic. Free utility which analyzes multimedia files (Linux and Windows)


fsinapsi
6th March 2007, 11:47
Hi.
I am not sure this is the right spot to announce this, so please excuse me if I'm wrong.
I'd like to present you my program AVInaptic, a free utility which reports many technical informations about multimedia files.
Where can you download the program?
Here: http://fsinapsi.altervista.org
The page is written in Italian but the program can display messages in English, too. I hope you can understand what I mean, my English is so bad...
For Windows users: all you need to download is the file avinaptic-yyyymmdd-full.zip
(note the suffix "-full")
For Linux users: dowload the file avinaptic.tar.gz and check for missing libraries.
My program is not aesthetically pleasing, but can extract many informations from AVI, MP4, MKV, and can do a "DRF analysis" of ASP and AVC streams.
Please feel free to send me suggestions and bug reports.

buzzqw
6th March 2007, 12:25
here is some image from parsing an X264+AAC+MP3 into MKV

http://img338.imageshack.us/img338/949/avinaptic1nq3.png (http://imageshack.us)

http://img170.imageshack.us/img170/6213/avinaptic2xa3.png (http://imageshack.us)

http://img218.imageshack.us/img218/7125/avinaptic3ux2.png (http://imageshack.us)

http://img208.imageshack.us/img208/3139/avinaptic4zj3.png (http://imageshack.us)

BHH

P.S mirror link http://www.64k.it/andres/data/a/avinaptic-20070306-full.zip

buzzqw
6th March 2007, 13:16
some other analysis and nifty tools

http://img241.imageshack.us/img241/7943/avinaptic5vg1.png (http://imageshack.us)


http://img291.imageshack.us/img291/5705/avinaptic6cc7.png (http://imageshack.us)

http://img100.imageshack.us/img100/4663/avinaptic7ms1.png (http://imageshack.us)

http://img139.imageshack.us/img139/1369/avinaptic8ya3.png (http://imageshack.us)

http://img90.imageshack.us/img90/5000/avinaptic9pb2.png (http://imageshack.us)

http://img530.imageshack.us/img530/373/avinaptic10ez8.png (http://imageshack.us)

http://img86.imageshack.us/img86/5964/avinaptic11xl8.png (http://imageshack.us)

http://img152.imageshack.us/img152/1253/avinaptic12ui4.png (http://imageshack.us)

BHH

gekan
6th March 2007, 13:25
Thanks. Very useful! :)

Eee... what does DRF mean?

HeadBangeR77
6th March 2007, 13:30
Looks very promising :) - gonna download and check today.
cheers,
HDBR77

Update:
It's working, and it's working like charm (so far at least :p)! I really like the amount of information it provides - as if the most important info from G-Spot, MPEG Modifier and MediaInfo (debugging mode) was put together in just one application. Many, many thanks!

Example:

[ About file ]

Name: Full-2pass-D6of9-VHQ4.avi
Date: 3/03/2007 17:24:20
Size: 185,117,426 bytes

[ Generic info ]

Play duration: 00:04:51 (291.332708 s)
Container type: AVI OpenDML
Number of streams: 1
Type of stream nr. 0: video
Audio streams: 0
JUNK: VirtualDub build 27021/release

[ About quality ]

Resolution: VERY HIGH (1024 x 432)
Width: multiple of 16 (GOOD)
Height: multiple of 16 (GOOD)
Average DRF quality: MEDIUM (3.342734)
Standard deviation quality: HIGH (0.670846)
Std. dev. weighted mean: HIGH (0.317105)

[ Video track ]

FourCC: xvid/XVID
Resolution: 1024 x 432 (*)
Frame aspect ratio: 64:27 = 2.370370 (~2.35:1)
Pixel aspect ratio: 1:1 = 1
Display aspect ratio: 64:27 = 2.370370 (~2.35:1)
Framerate: 23.976023 fps
Number of frames: 6985
Stream size: 184,811,809 bytes
Bitrate: 5074.934704 kbps
Qf: 0.478486
Key frames: 188 (0; 104; 259; 379; 425; ... 6850)
Null frames: 0
Min key int: 1
Max key int: 240
Avg key int: 37.154255
Delay: 0 ms

[ About MPEG4 encoding ]

User data: DivX503b1393p
User data: XviD0046
Packed bitstream: Yes (*)
QPel: Yes (*)
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: MPEG custom (*)
Custom intra quant matrix:
8 10 11 12 12 13 14 15
10 11 12 13 13 15 15 16
11 12 12 14 15 15 16 17
12 13 14 15 15 16 17 18
12 13 15 15 16 17 18 19
13 15 15 16 17 18 19 19
14 15 16 17 18 19 19 20
15 16 17 18 19 19 20 20
Custom inter quant matrix:
10 10 11 12 12 13 14 15
10 11 12 13 14 14 15 16
11 12 12 14 14 15 16 17
12 13 14 14 15 16 17 18
12 14 14 15 16 17 18 19
13 14 15 16 17 18 19 20
14 15 16 17 18 19 20 20
15 16 17 18 19 20 20 20
Number of frames: 6985
Drop/delay frames: 0
Corrupted frames: 0

I-VOPs: 188 ( 2.691 %) #
P-VOPs: 3485 ( 49.893 %) ############
B-VOPs: 3312 ( 47.416 %) ############
S-VOPs: 0 ( 0.000 %)
N-VOPs: 0 ( 0.000 %)

Max consecutive B-VOPs: 2
1 consec: 2034 ( 76.094 %) ###################
2 consec: 639 ( 23.906 %) ######

[ DRF analysis ]

Average DRF: 3.342734
Standard deviation: 0.670846
Max DRF: 5

DRF<2: 0 ( 0.000 %)
DRF=2: 777 ( 11.124 %) ###
DRF=3: 3045 ( 43.593 %) ###########
DRF=4: 3155 ( 45.168 %) ###########
DRF=5: 8 ( 0.115 %)
DRF>5: 0 ( 0.000 %)

I-VOPs average DRF: 2.792553
I-VOPs std. deviation: 0.405478
I-VOPs max DRF: 3

P-VOPs average DRF: 2.788809
P-VOPs std. deviation: 0.409557
P-VOPs max DRF: 4

B-VOPs average DRF: 3.956823
B-VOPs std. deviation: 0.214809
B-VOPs max DRF: 5

This report was created by AVInaptic (06-03-2007) on 6 mar 2007, h 13:42:56

@ buzzqw:
I really appreciate your enthusiasm for your fellow's application, but could you just copy and paste the information using code tags? Taking several snapshots of on window isn't the most efficient way of posting results. ;) ;) ;)

fsinapsi
6th March 2007, 13:54
Eee... what does DRF mean?

DRF=Detail Removal Factor

buzzqw
6th March 2007, 14:04
@HeadBangeR77

an image is worth thousand words :)
i would like to show the program and varius options, i have followed the development of this software from its start and Frank had done a marvelous work !

No program so for can analyze the drf of avc stream, expecially inside mp4 or mkv container

@gekan

drf is usually a "measure of quality", the lower the better (take with a grain salt)

BHH

HeadBangeR77
6th March 2007, 14:13
an image is worth thousand words :)
i would like to show the program and varius options, i have followed the development of this software from its start and Frank had done a marvelous work !

No program so for can analyze the drf of avc stream, expecially inside mp4 or mkv container.
True enough. ;) For my limited uses the possibility of analysing streams inside matroska container is the greatest of virtues of this application (btw. I didn't know AVC command line options are stored in the stream! :eek:). I don't know the guy, I haven't followed the development of this tool, but I think I'm starting to share your enthusiasm. :)

drf is usually a "measure of quality", the lower the better (take with a grain salt)
Large grain of salt, since it depends on a matrix and source's characteristics. Yet if we analyse our own encodes it is very useful imo. :)

Example:
Average DRF quality: MEDIUM (3.342734) from my sample above is in fact a very high quality considering the matrix used. ;)

foxyshadis
6th March 2007, 14:46
I was just asking mean if he could include just some of this in avidemux, but this is the one to give anyone looking for raw statistics in the future. =D It even works with mkv, which is pretty rare, although per-track bitrate isn't supported, like most tools. Probably a lavf limitation. Great work, fsinapsi.

Minor design issue, the histograms are sized by dividing by the total number of frames, not the peak, so they're always very small with lots of dead space. (Avidemux has the same problem.)

The only real issues I have are in how much of a pain GTK usability can be, but that's just puff.

It'd be possible to include the matrix in the DRF quality calculation, probably, though for all the effort you can put into having a computer tell you what your eyes are going to see, you might as well just watch ten seconds of it. :p

LoRd_MuldeR
6th March 2007, 15:07
Great work fsinapsi, thanx for posting your tool :)

fsinapsi
6th March 2007, 15:27
It even works with mkv, which is pretty rare, although per-track bitrate isn't supported, like most tools.

this is a part of a report, before DRF analysis:

[ Video track ]

Codec ID: V_MS/VFW/FOURCC
Resolution: 640 x 360
Frame aspect ratio: 16:9 = 1.777777
Pixel aspect ratio: 1:1 = 1
Display aspect ratio: 16:9 = 1.777777
Framerate: 23.976000 fps

[ Audio track ]

Codec ID: A_MPEG/L3
Channels: 2
Sample rate: 48000 Hz


and this is the same part, after analysis:

[ Video track ]

Codec ID: V_MS/VFW/FOURCC
Resolution: 640 x 360
Frame aspect ratio: 16:9 = 1.777777
Pixel aspect ratio: 1:1 = 1
Display aspect ratio: 16:9 = 1.777777
Framerate: 23.976000 fps
Stream size: 180,222,645 bytes
Bitrate: 1017.877805 kbps
Qf: 0.184262

[ Audio track ]

Codec ID: A_MPEG/L3
Channels: 2
Sample rate: 48000 Hz
Stream size: 28,327,680 bytes
Bitrate: 159.991641 kbps

foxyshadis
6th March 2007, 16:25
Ah! I see now. In that case, you might enable bitrate graph for mkv, once you have the statistics. ;)

Theliel
6th March 2007, 16:48
wow, very good work!! gspot work fine with avi and mpg, but for mp4,mov... dont work fine.

i was waiting time ago for a good alayzer for mp4/mov :)

ty.

fsinapsi
6th March 2007, 16:56
Ah! I see now. In that case, you might enable bitrate graph for mkv, once you have the statistics. ;)

ok, I'll do it

HeadBangeR77
6th March 2007, 19:32
It'd be possible to include the matrix in the DRF quality calculation, probably, though for all the effort you can put into having a computer tell you what your eyes are going to see, you might as well just watch ten seconds of it. :p
For XviD encodes there's a matrix present in the statistics (see my sample above) - I don't know however, how much effort would it cost to implement this for AVC.

Btw. imho values like
Standard deviation quality: HIGH (0.670846)
Std. dev. weighted mean: HIGH (0.317105)
are much more interesting for me than an average DRF /quantizer. ;)

@ fsinapsi:
Being old-fashioned guy, who still uses old Win2k theme under WinXP and doesn't like all those graphical bells & whistles, I really love the simple, compact look of your GUI! :D

Kurtnoise
6th March 2007, 20:29
Nice tool....:)

This kind of tool is really missing especially in Linux world. I'll test it as soon as possible.


No program so for can analyze the drf of avc stream, expecially inside mp4 or mkv container
probably because it's useless...

Sharro
6th March 2007, 20:48
:thanks: :thanks: :thanks:

Also to HeadBangeR77 that brought to my knowledge this wonderful software!

buzzqw
6th March 2007, 22:07
probably because it's useless...

are you sure ???

how many times you have seen the drf analyzer log ?
personally some thousand times...

BHH

elguaxo
8th March 2007, 01:38
Great tool!!! And works with MKV/H264. Thanks!!!

Pure
8th March 2007, 02:19
Thanks, checking it out!

BigDid
8th March 2007, 02:46
Nice tool, working fine.

Instead of firing DrfAnalyser than Mpeg4 modifier (or reverse) I can get the same infos and more with Avinaptic :)

The name is strange though ;) Keep the good work.

:thanks:

Did

Solo_Senshi
8th March 2007, 02:57
Awesome program you made there.:thanks:

I just love all the info it gives you.:D

elguaxo
8th March 2007, 12:56
fsinapsi, I don't know if this is a bug. I run AVInaptic on one of my MKV/x264 encodes. Under About H.264 encoding deblocking is reported as -2:-2, but I know I used -2:-4. Any hints?

Thanks again for this great app.

fsinapsi
8th March 2007, 15:06
fsinapsi, I don't know if this is a bug. I run AVInaptic on one of my MKV/x264 encodes. Under About H.264 encoding deblocking is reported as -2:-2, but I know I used -2:-4. Any hints?

in the present version, my program reports only the following informations from the bitstream:
- the number of SPSs (sequence parameter sets);
- the number of PPSs (picture parameter sets);
- for every SPS: num ref frames;
- for every PPS: entropy coding flag (CAVLC/CABAC), weighted prediction flag (yes/no)

Any other information is copied from the "Unregistered user data".
User data are just comments the codec can leave inside a bitstream...

elguaxo
8th March 2007, 15:15
Thanks fsinapsi. I tried it with other encodes and the 'unregistered user data' is ok.

That particular encode, where the reported deblocking by the user data is wrong, was done with MeGUI/x264 rev.593. Perhaps it was a bug of that revision of x264. Other encodes that I did with newer revisions of x264 are ok.

fsinapsi
9th March 2007, 21:43
Minor design issue, the histograms are sized by dividing by the total number of frames, not the peak, so they're always very small with lots of dead space.

you can raise the value Misc->Preferences->Length_of_percent_line

fsinapsi
9th March 2007, 21:49
For XviD encodes there's a matrix present in the statistics (see my sample above) - I don't know however, how much effort would it cost to implement this for AVC.

added


Name vid-4g.mp4
[...]
User data eavc 1.2.0.14
User data MPEG-4 AVC / H.264 encoder
User data Copyright (c) 2004-2005 ATEME
User data http://www.ateme.fr/
User data v54am2LwWeWBRxLp0vJwFA
SPS id 0
Num ref frames 1
Custom intra4X4 luma
13 14 15 16
14 15 16 17
15 16 17 18
16 17 18 19
Custom inter4X4 luma
13 14 15 16
14 15 16 17
15 16 17 18
16 17 18 19
Custom intra8X8 luma
9 10 11 12 13 14 15 16
10 11 12 13 14 15 16 17
11 12 13 14 15 16 17 18
12 13 14 15 16 17 18 19
13 14 15 16 17 18 19 20
14 15 16 17 18 19 20 21
15 16 17 18 19 20 21 22
16 17 18 19 20 21 22 23
Custom inter8X8 luma
9 10 11 12 13 14 15 16
10 11 12 13 14 15 16 17
11 12 13 14 15 16 17 18
12 13 14 15 16 17 18 19
13 14 15 16 17 18 19 20
14 15 16 17 18 19 20 21
15 16 17 18 19 20 21 22
16 17 18 19 20 21 22 23
PPS id 0
Entropy coding type CAVLC
Weighted prediction No


I found this file (vid-4g.mp4) in the "divxtest cd" (www.divxtest.com). The name of this test is just "Custom Matrix Compatiiblity Test"...

akupenguin
9th March 2007, 22:27
That particular encode, where the reported deblocking by the user data is wrong, was done with MeGUI/x264 rev.593. Perhaps it was a bug of that revision of x264. Other encodes that I did with newer revisions of x264 are ok.

The userdata SEI is correct.
r597 | pengvado | 2006-10-29 17:09:21 -0700 | 2 lines
fix parsing of --deblock %d,%d (beta was ignored)

Brother John
10th March 2007, 01:15
Though I loathe GTK with all my heart, this is exactly what I need to find out the exakt codec version used in all of my older Matroska backups. Great work, fsinapsi!

bob0r
11th April 2007, 11:27
http://fsinapsi.altervista.org/

Ultima release di AVInaptic (10 apr 2007)

:cool:

DarkZell666
11th April 2007, 22:04
Ehm ... I just opened the magic.mgc file that's included with a text/hex editor, and there are some wierd things listed inside.

Here are some examples :

Quake I save: ddm4 East side
Hewlett-Packard
the_Dismal_Oubliett
Mathematica notebook


So ... what does this have to do with avinaptic ? :D
Did it get there by mistake or what ? Windows tells me it's a "Media Catalog File". Dude what's up ? XD

buzzqw
11th April 2007, 22:33
avinaptic will try to analyze everithing... but when failing will tray to use magic.mgc to extract some informatio (try opening a .pdf or doc..)

avinaptic use its own parser and routines but only for video and audio (and srt...) the unknow file are handled by magic.mgc

BHH

survivant
17th July 2007, 16:41
I'm not able to run the application in my Windows 2000 at the office. I run the application from a command prompt and nothing appear, no window, no error.. nothing.

The process is not running in the taskmanager too.

buzzqw
17th July 2007, 17:43
have you downloaded the full package ? http://www.64k.it/andres/data/a/avinaptic-20070410-full.zip

BHH

survivant
17th July 2007, 20:27
yep. Even try the version of March. do the same thing. and try of the mirrors.. do the same thing

buzzqw
17th July 2007, 20:51
if not launched from command line is fuctioning?

BHH

survivant
18th July 2007, 01:50
On windows 2000, I can't get it to work. If not even creating the avinaptic.db file.

At home on Windows XP, it's work.. but the program close when I try to open the movie generated from automkv (4.08gigs), but when I open smaller file it's work.

buzzqw
18th July 2007, 09:08
i tested avinaptic on over 12gb files (but was dv avi file...)

i will report to fsinapsi (the authort of AviNaptic)


BHH

smok3
18th July 2007, 19:30
possible bug:
when run from command line


example:
avinaptic file.mp4


it will bug me with questions everytime i run it from different path (and it will also make a *.db file in that new path).

buzzqw
18th July 2007, 22:28
tested with full path ?

like c:\avinaptic\avinaptic.exe c:\test\test.mp4 ?


BHH

smok3
18th July 2007, 22:35
buzzqw: tnx, that did the trick :)

p.s. also, whats up with PAR display for avi files? (i thought avi doesn't have such info..?)

SealTooGreat
19th July 2007, 09:38
p.s. also, whats up with PAR display for avi files? (i thought avi doesn't have such info..?)
There is no DAR signalling in mpeg-4, only PAR. So, for example, XviD in AVI has PAR. Take a look at this thread Aspect Ratio(s) in MPEG4 (http://forum.doom9.org/showthread.php?p=562048#post562048).

fsinapsi
19th July 2007, 12:43
p.s. also, whats up with PAR display for avi files? (i thought avi doesn't have such info..?)

in avinaptic DAR = FAR * PAR.
AVI Open DML specifications introduced a chunk called "Video Property" (VPRP) or "Video Property List", which has two fields called "aspect.x" and "aspect.y". DAR = aspect.x / aspect.y. So, if such info is present, PAR will be derived as DAR/FAR.
Otherwise, PAR will be eventually extracted from the bitstream, and DAR derived as above.
Informations which are present at container level come before informations extracted from bitstreams.
So, if an audio stream is stored as VBR, it will be reported as VBR (note: a CBR audio stream can be stored in an AVI as VBR).

audyovydeo
19th July 2007, 13:37
ciao fsinapsi & grazie per questo utilissimo tool.

I would like to know how "partial" is the "partial average bitrage graph", ie : how many frames does it analyse ?

Obviously I'd like to have the graph of the total number of frames, but if I know how many frames it uses right now I can tailor my test clips accordingly.

grazie
audyovydeo

fsinapsi
19th July 2007, 14:49
I would like to know how "partial" is the "partial average bitrage graph", ie : how many frames does it analyse ?
the meaning of "partial" in "partial bitrate" is like in partial sums (http://en.wikipedia.org/wiki/Series_(mathematics)):
Sn = a0 + a1 + ... + an.

I tried to reply your email, but i received the following error:
Remote MTA xmxatip.excite.com: SMTP diagnostic: 554 5.7.1 Service unavailable; Client host [212.216.176.118] blocked using blackholes.excite.com;
Your message could not be delivered due to complaints we received regarding the IP address you're using or your ISP. See http://blackholes.excite.com/ Error: WS-04
Please send me another address, and I'll send you a more detailed answer (in Italian).

GimmeAreason
8th August 2007, 02:59
Thanks a lot for this great tool. I can stop with Gspot now as this is better for me.
Cheers!

buzzqw
10th August 2007, 11:37
update ! 30/07/2007

http://www.fsinapsi.altervista.org/code/avinaptic/index.html

mirror (windows) : http://www.64k.it/andres/data/a/avinaptic-20070730-full.zip

mirror (linux) http://www.64k.it/andres/data/a/avinaptic.tar.gz

changelog

- better export of bbcode tags
- fixed some errors

thanks Frank!

BHH

fsinapsi
16th September 2007, 13:16
update 16-09-2007

http://fsinapsi.altervista.org/code/avinaptic/index.html


fixed some bugs (e.g. the number of channels of AAC audio streams);
added more infos about MP3 (and MP2) audio tracks in AVI.


Here is an example of a report created by the last version:

[ About file ]

Name: basic-instinct-2.avi
Date: 10/09/2007 14:18:56
Size: 10,018,018 bytes (9.554 MB)

[ Generic info ]

Play duration: 00:02:11 (131.3 s)
Container type: AVI OpenDML
Number of streams: 2
Type of stream nr. 0: video
Type of stream nr. 1: audio
Audio streams: 1
ISFT: MEncoder Sherpya-MinGW-20060312-4.1.0
JUNK: [= MPlayer junk data! =]

[ Relevant data ]

Resolution: VERY LOW (224 x 176)
Width: multiple of 32 (GOOD)
Height: multiple of 16 (GOOD)
Average DRF quality: HIGH (2.214785)
Standard deviation quality: HIGH (0.505009)
Std. dev. weighted mean: HIGH (0.504816)

[ Video track ]

FourCC: XVID/XVID
Resolution: 224 x 176
Frame aspect ratio: 14:11 = 1.272727
Pixel aspect ratio: 1:1 = 1
Display aspect ratio: 14:11 = 1.272727
Vprp aspect ratio: 4096:2395 = 1.710229
Framerate: 20 fps
Number of frames: 2626
Stream size: 7,722,336 bytes
Bitrate: 470.515521 kbps
Qf: 0.596737
Key frames: 131 (0; 59; 83; 100; 111; ... 2569)
Null frames: 55 (1; 2; 3; 4; 5...)
Min key int: 1
Max key int: 136
Avg key int: 20.045801
Delay: 0 ms

[ Audio track ]

Audio tag: 0x50 (MPEG (MP1/MP2))
Bitrate (container): 128.016 kbps VBR
Channels (container): 2
Sample rate (container): 44100 Hz
Chunks: 5039
Stream size: 2,106,300 bytes
Preload: 496 ms
Max A/V diff: 526 ms
MPEG frames: 5039
Play duration: 00:02:12 (131.631 s)
Bitrate (bitstream): 128 kbps CBR
Chunk-aligned: No
Emphasis: none
Mode: stereo
Delay: 0 ms

[ About MPEG4 encoding ]

User data: XviD0041
Packed bitstream: No
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: H.263
Number of frames: 2626
Drop/delay frames: 55
Corrupted frames: 0

I-VOPs: 131 ( 4.989 %)
P-VOPs: 2439 ( 92.879 %)
B-VOPs: 0 ( 0.000 %)
S-VOPs: 0 ( 0.000 %)
N-VOPs: 1 ( 0.038 %)

[ DRF analysis ]

Average DRF: 2.214785
Standard deviation: 0.505009
Max DRF: 5

DRF<2: 0 ( 0.000 %)
DRF=2: 2120 ( 82.490 %)
DRF=3: 357 ( 13.891 %)
DRF=4: 84 ( 3.268 %)
DRF=5: 9 ( 0.350 %)
DRF>5: 0 ( 0.000 %)

I-VOPs average DRF: 2.274809
I-VOPs std. deviation: 0.510252
I-VOPs max DRF: 4

P-VOPs average DRF: 2.211562
P-VOPs std. deviation: 0.504523
P-VOPs max DRF: 5

This report was created by AVInaptic (http://fsinapsi.altervista.org) (16-09-2007) on 16 set 2007, h 13:05:54

Note: In order to obtain a more accurate and complete report, you have to request the "DRF Analysis".
As you can see, the audio track is MP2 128 kbps CBR, but it was muxed as 128.016 kbps VBR.

Schrade
16th September 2007, 14:09
What is the definition of DRF? Is there somewhere you can point me to some info on it so I can read about it? My searching wasn't very fruitful.

fsinapsi
16th September 2007, 14:14
What is the definition of DRF?
DRF = "Detail Removal Factor" or "quantizer".

buzzqw
16th September 2007, 14:23
update the mirror http://www.64k.it/andres/a/avinaptic-20070916-full.zip

thanks Frank!

BHH

Schrade
18th September 2007, 02:38
DRF = "Detail Removal Factor" or "quantizer".
Thanks. When I googled it, I noticed one of the links is right back to this thread earlier on in it. I suck :(

Thanks for answering though. It was just an abbreviation I had not seen in other programs before.

So the higher the DRF the more compression/blurriness the video has?

fsinapsi
18th September 2007, 09:30
So the higher the DRF the more compression/blurriness the video has?
yes. The quantizer is involved in the quantization of "DCT coefficients".
A typical effect of an excessive quantization is blockiness.

microcosmos
20th September 2007, 22:56
I think i found a little error:

[ Audio track ]

Codec ID: A_AAC (AAC Low complexity)
Channels: 1
Sample rate: 24000 Hz
Output sample rate: 48000 Hz

this should be HE-AAC with parametric stereo not "Low complexity"

foxyshadis
20th September 2007, 23:33
HE, PS, and PNS are all part of LC, technically, but they aren't signaled - the only way to detect them is to decode the beginning of the stream, so it's pretty tricky without doing that.

fsinapsi
21st September 2007, 07:34
I think i found a little error:

[ Audio track ]

Codec ID: A_AAC (AAC Low complexity)
Channels: 1
Sample rate: 24000 Hz
Output sample rate: 48000 Hz

this should be HE-AAC with parametric stereo not "Low complexity"

I used the definition of object type I found in the following page:
http://wiki.multimedia.cx/index.php?title=Understanding_AAC


There is a variety of methods for packaging AAC data from transport. 2 methods used in packaging raw streams are to use ADTS and ADIF headers. The libfaad knowledge base also makes reference to LATM and LOAS packaging.

Much AAC data is encapsulated in MPEG-4 files which is an extension of the QuickTime container format. the MPEG-4 file will have an audio 'trak' atom which will contain a 'stsd' description atom which will contain an 'mp4a' atom which will contain an 'esds' atom. Part of the esds atom contains the setup data for associated AAC stream. (TODO: need to document the precise format and method for obtaining the setup data.) This setup data is generally 2 bytes. This setup data has the following layout:
5 bits: object type
4 bits: frequency index
if (frequency index == 15) 24 bits: frequency
4 bits: channel configuration
1 bit: frame length flag
1 bit: dependsOnCoreCoder
1 bit: extensionFlag

These are the possible object types:
0: NULL
1: AAC Main
2: AAC Low complexity
3: AAC SSR
4: AAC Long term prediction
5: AAC High efficiency
6: Scalable
7: TwinVQ
8: CELP
9: HVXC
10: Reserved
11: Reserved
12: TTSI
13: Main synthetic
14: Wavetable synthesis
15: General MIDI
16: Algorithmic Synthesis and Audio FX
17: AAC Low complexity with error recovery
18: Reserved
19: AAC Long term prediction with error recovery
20: AAC scalable with error recovery
21: TwinVQ with error recovery
22: BSAC with error recovery
23: AAC LD with error recovery
24: CELP with error recovery
25: HXVC with error recovery
26: HILN with error recovery
27: Parametric with error recovery
28: Reserved
29: Reserved
30: Reserved
31: Reserved


So, if the value of the field object type is 2, then avinaptic reports the stream as "AAC Low complexity"; if that value is 5, then avinaptic reports the stream as "AAC High efficiency".

If my source of information is wrong, please tell me where can I find the right infos.

P.S.
Maybe your track should be reported as "LC/SBR" (Spectral Band Replication)... ?

Codec ID: A_AAC (AAC Low complexity)
Channels: 1
Sample rate: 24000 Hz
Output sample rate: 48000 Hz

wata
22nd September 2007, 04:39
can't run the program
it popup this
http://img245.imageshack.us/img245/5122/snap1rt8.jpg
don't know what it mean

salehin
22nd September 2007, 07:42
Great tool...thanks a lot :)

fsinapsi
22nd September 2007, 08:27
can't run the program
[...]
don't know what it mean
the program can't create the file ".../avinaptic.db": (sqlite3-open path)
where path (in the Windows version) is defined by (change-extension (argv 0) path "db")...
(argv 0) is the first argument the program receives (it should be the path of the program, i.e. something like C:/avinaptic/avinaptic.exe), so path should be something like C:/avinaptic/avinaptic.db

wata
23rd September 2007, 12:12
so how to run the program?
i download avinaptic-20070916-full.zip (there is no avinaptic.db inside the zip)
unpack it into directory c:\avinaptic
doubleclick avinaptic.exe
and get this dialog everytime
http://img245.imageshack.us/img245/5122/snap1rt8.jpg

fsinapsi
23rd September 2007, 12:52
so how to run the program?
i download avinaptic-20070916-full.zip (there is no avinaptic.db inside the zip)
unpack it into directory c:\avinaptic
doubleclick avinaptic.exe
and get this dialog everytime
I'm sorry but I'm not a Windows user and I have never used Windows. I hope some Windows user can tell you how he/she succeeded in running the program

Brother John
23rd September 2007, 13:09
@wata
Which version of Windows are you running? Make sure you have write permission for the avinaptic folder.

nicco
23rd September 2007, 19:08
wow really nice tool!!

Ty!

talen9
23rd September 2007, 21:33
@wata:

Download sqlite3-dll.zip (http://fsinapsi.altervista.org/code/dll/sqlite3-dll.zip) from fsinapsi's web site, then unzip the DLL into your "windows\system32" path, it should do the trick :)


@fsinapsi: nice job :thanks:

wata
24th September 2007, 06:41
sqlite3.dll is include in avinaptic-20070916-full.zip i put it in system32 same problem
i am running WinXP SP2 32-bits

fsinapsi
24th September 2007, 08:29
i am running WinXP SP2 32-bits
please donwload this file (http://rapidshare.com/files/57854372/argv0.zip.html), unpack it into avinaptic directory and double click on it.
You should see a little window like this:
http://img521.imageshack.us/img521/7675/argv0pz8.png
I'd like to know the message in your window

wata
25th September 2007, 05:15
sorry can't download the file from rapidshare, my isp using transparent proxy

buzzqw
25th September 2007, 08:06
@wata
mirrored here http://www.64k.it/andres/data/a/argv0.zip

BHH

wata
26th September 2007, 07:46
thanks
got same dialog window
http://img219.imageshack.us/img219/3/snap1aji1.jpg

fsinapsi
26th September 2007, 08:20
thanks
got same dialog window
http://img219.imageshack.us/img219/3/snap1aji1.jpg
this is very strange...
Please create the following directories:
C:\cygwin
C:\cygwin\Tmp

Then doubleclick on avinaptic, and tell me if you get the same dialog window

bkman
26th September 2007, 15:31
Hi. I'd like to see a full bitrate distribution graph (not just partial average).

Any plans for this?

Very nice work so far. Thanks.

Mtz
26th September 2007, 16:19
I see that your program can extract DMF subtitles in a raw stream. Can this raw be converted to anything? If not, why is the option to demux them?

Will be nice a drag and drop possibility.

enjoy,
Mtz

fsinapsi
26th September 2007, 17:29
Hi. I'd like to see a full bitrate distribution graph (not just partial average).
do you mean a graph like DRF Analyzer "DRF & Frame Size Graphic" (http://www.geocities.com/analyzerdrf/index.html)?

http://www.geocities.com/analyzerdrf/DRFAnalyserGRAF090.png

What is its usefulness?

The "partial average bitrate" graph allows to easily say if a movie is CBR (i.e. it was coded in a single pass - target bitrate).
For example, here is a typical graph of a VBR encoding:

http://img213.imageshack.us/img213/2354/graphvbrau0.png

and here is a typical CBR (1-pass) encoding:

http://img213.imageshack.us/img213/466/graphcbrwa1.png

Any plans for this?

Maybe... but I am not sure...
Rather, I'd like to implement a "video buffering verifier" (VBV is an algorithm for checking a bitstream with its delivery rate function to verify that the amount of rate buffer memory required in a decoder is less than the stated buffer size, see ISO/IEC 14496-2 Annex D).
I'm reading this paper (http://researchweb.watson.ibm.com/journal/rd/434/westerink.pdf): in section 2 - "Two-pass encoding principle" a simple decoder buffer model for VBR is described...

fsinapsi
26th September 2007, 17:33
I see that your program can extract DMF subtitles in a raw stream. Can this raw be converted to anything? If not, why is the option to demux them?
I haven't the specification of that format (I'm afraid it's not an open format, but if I'm wrong please tell me where can I find the needed infos), so the program can only extract the raw block, like any other stream. I was just curious about that...
Will be nice a drag and drop possibility.
This is not possible: I don't use Windows.

akupenguin
26th September 2007, 17:41
say if a movie is CBR (i.e. it was coded in a single pass - target bitrate).
Not the same. I'd bet that x264's single pass target bitrate registers as VBR on your scale.

fsinapsi
26th September 2007, 17:47
Not the same. I'd bet that x264's single pass target bitrate registers as VBR on your scale.
If so, then x264's single pass target bitrate is not CBR, but VBR :)
Other codecs, like DivX and XviD, single pass target bitrate generate CBR streams...

bkman
26th September 2007, 19:17
do you mean a graph like DRF Analyzer "DRF & Frame Size Graphic" (http://www.geocities.com/analyzerdrf/index.html)?

http://www.geocities.com/analyzerdrf/DRFAnalyserGRAF090.png

What is its usefulness?

Yes the frame size graph is basically what I had in mind. The usefulness would that the user could see which parts of the movie take up larger parts of the bit distribution; ie. which parts are more and less complex.

D-Skott
26th September 2007, 19:18
Great program, thank you!

foxyshadis
26th September 2007, 19:43
Generally CBR is used to refer to rate controls with averaging periods of a second or less (.6s is common, since it's the buffer period for dvd/hddvd/bluray), but your graph can't show anything that small. Divx uses, what, a minute or more? It can fluctuate quite a bit in that time and still appear smooth to within a pixel or two shortly into the graph. A running average hides a lot of interesting information.

An instantaneous graph would show you how much it actually fluctuates, true CBR would still be flat, constrained ABR would oscillate around the average, unconstrained and VBR would just go off and do their thing (the former usually with a sharp up or down spike near the end). Most importantly, it gives you a view into peak bitrate areas, which are at least as important for playback and streaming than average bitrate.

fsinapsi
26th September 2007, 20:37
A running average hides a lot of interesting information.
[...]
An instantaneous graph would show you how much it actually fluctuates, true CBR would still be flat, constrained ABR would oscillate around the average, unconstrained and VBR would just go off and do their thing (the former usually with a sharp up or down spike near the end). Most importantly, it gives you a view into peak bitrate areas, which are at least as important for playback and streaming than average bitrate.
clearly, the goal of the "partial average bitrate" is not that

fsinapsi
27th September 2007, 16:42
Yes the frame size graph is basically what I had in mind. The usefulness would that the user could see which parts of the movie take up larger parts of the bit distribution; ie. which parts are more and less complex.
I have added a "frame size graph", and here is a screenshot:

http://img232.imageshack.us/img232/8097/newgraphop0.png

The dashed red line is the max frame size (59954); the green line is the average frame size (4832).
The difference is high... any hints?
I have not finished yet. I'll release a new version as soon as I have time to get it working again...

olnima
28th September 2007, 22:27
Just want to admit: This is really a very nice tool !!!

Keep up that great work,
Olnima

bkman
29th September 2007, 00:17
I have added a "frame size graph", and here is a screenshot:

The dashed red line is the max frame size (116000); the yellow line is the average frame size (8597).
The difference is high... any hints?
I have not finished yet. I'll release a new version as soon as I have time to get it working again...

Wow, nice work. As for the difference.. maybe allow the user to set the averaging resolution of the graph. As in each point will be the average of N frames around it.

fsinapsi
29th September 2007, 12:53
maybe allow the user to set the averaging resolution of the graph. As in each point will be the average of N frames around it.
good idea... thanks :) .
I'll do so...
I'll add a new "spin button" to the window, near the "Goto frame" (default value = min value = 1, max = ??? 100?)

P.S.
In the next version, frames will be displayed in "coding order"...

SeeMoreDigital
29th September 2007, 13:21
good idea... thanks :)P.S.
In the next version, frames will be displayed in "coding order"...A nice touch :)

fsinapsi
29th September 2007, 15:14
maybe allow the user to set the averaging resolution of the graph. As in each point will be the average of N frames around it.
There are two options (at least):
size(i) is replaced with (size(i)+size(i+1)+...+size(i+n-1))/n;
size(i) is replaced with (size(i-n+1)+...+size(i-1)+size(i)+size(i+1)+...+size(i+n-1))/(2*n-1)
where n = value of "spin button avg int" (see the picture), n >= 1.
Which option do you prefer?

bkman
29th September 2007, 16:51
I think the second method would be better, but probably harder to implement. It's up to you.

fsinapsi
29th September 2007, 21:40
I think the second method would be better, but probably harder to implement. It's up to you.
I have chosen the second one:
size(i) is replaced with (size(i-n)+...+size(i-1)+size(i)+size(i+1)+...+size(i+n))/(2*n+1)
where n = value of "spin button avg int" (see the picture), n >= 0.

fsinapsi
29th September 2007, 21:45
update 29/09/2007

http://fsinapsi.altervista.org/code/avinaptic/index.html


"ID3 tags";
DRF and frame size graphs

If there is a bug (it's possible), I'll fix it in the next version...

Hint: click over the graphs (both left and right buttons)

buzzqw
29th September 2007, 22:38
update mirrot http://www.64k.it/andres/data/a/avinaptic-20070929-full.zip

Thank Frank!

BHH

wata
30th September 2007, 06:08
this is very strange...
Please create the following directories:
C:\cygwin
C:\cygwin\Tmp

Then doubleclick on avinaptic, and tell me if you get the same dialog window

i do that, it still the same dialog

fsinapsi
1st October 2007, 17:18
i do that, it still the same dialog

I'll try to fix this problem in the next version

CruNcher
3rd October 2007, 04:47
clicking on DRF Graph in the menu but nothing happens ?
in the bitrate graph also the numbers of time and bitrate seem to be missing ?

fsinapsi
3rd October 2007, 08:37
clicking on DRF Graph in the menu but nothing happens ?
click on "DRF Analysis", then "DRF Graph".

foxyshadis
3rd October 2007, 09:32
Thanks, that makes it very quick and easy to see bitrate spikes now!

CruNcher
3rd October 2007, 13:20
click on "DRF Analysis", then "DRF Graph".

i tried with x264 and Apple created files for those it's working but it doesn't work for .mp4 created with Nero Recode for those after the analyzing the drf graph doesn't show up.

fsinapsi
3rd October 2007, 13:58
it doesn't work for .mp4 created with Nero Recode for those after the analyzing the drf graph doesn't show up.
please upload a short .mp4 created with nero recode, and I'll try to fix the problem

LoRd_MuldeR
3rd October 2007, 15:05
fsinapsi, would it be possible to update to a recent version of the GTK+ lib? I don't care much about the archaic look, but the file open dialog can be horrible. Especially when you have a folder with 1000+ video files ;)

http://img103.imageshack.us/img103/4559/fileavinapticopennn9.th.png (http://img103.imageshack.us/my.php?image=fileavinapticopennn9.png) http://img521.imageshack.us/img521/4149/fileavinapticopen2xa0.th.png (http://img521.imageshack.us/my.php?image=fileavinapticopen2xa0.png)

fsinapsi
3rd October 2007, 17:19
fsinapsi, would it be possible to update to a recent version of the GTK+ lib?
I'll take into account your request. However Gtk2 is huge (I think Gtk1 is huge, too).
Do you like fltk (http://www.fltk.org)?
Do you know other open source toolkits?
Here you can see the "File chooser" of fltk :)
http://www.fltk.org/doc-1.1/Fl_File_Chooser.html

LoRd_MuldeR
3rd October 2007, 17:29
I'll take into account your request. However Gtk2 is huge (I think Gtk1 is huge, too).
Nice :)

If the size is the problem, you could offer the GTK+ runtime libs as a separate download:
http://gimp-win.sourceforge.net/stable.html

Nevertheless I think ~4 MB (uncompressed) is not too big in times of 500 MB HDD's and Broadband internet....
Do you know other open source toolkits?
QT4 :cool:
http://en.wikipedia.org/wiki/Qt_(toolkit)

And there also is WxWdigets:
http://en.wikipedia.org/wiki/WxWidgets
Do you like fltk (http://www.fltk.org)?
Here you can see the "File chooser" of fltk :)
http://www.fltk.org/doc-1.1/Fl_File_Chooser.html
Never heard about FLTK so far, but could be worth a try.

Schrade
4th October 2007, 03:36
I love GTK+'s file chooser. The ability to assign favorites and also have a sort of breadcrumb path at the top consisting of buttons is pretty damn awesome.

It's one feature of Avidemux I've really come to love.

Brother John
4th October 2007, 12:02
QT4 or wxWidgets would be brilliant because both use the native OS look and feel. Then also goodies like drag&drop might not be a huge problem. Anyway it works great for MKVMerge GUI (wxWidgets) which feels and acts exactly like a native Windows app.

LoRd_MuldeR
4th October 2007, 14:27
I love GTK+'s file chooser. The ability to assign favorites and also have a sort of breadcrumb path at the top consisting of buttons is pretty damn awesome.

It's one feature of Avidemux I've really come to love.

dito :)

ash925
4th October 2007, 15:52
shows data on mov clips.

Thanks

ACrowley
4th October 2007, 20:39
Mh.. on short Samples of my x264 encodes i get no User Data Information under About H264 encoding ? Full Files are with all Informations

LoRd_MuldeR
5th October 2007, 01:04
Mh.. on short Samples of my x264 encodes i get no User Data Information under About H264 encoding ? Full Files are with all Informations

Did you check your "short" files with a Hex Editor, to see if those information are actually in the file?
If the information are not present in the file, Avinaptic won't be able to show them for obvious reasons...

fsinapsi
5th October 2007, 08:34
Did you check your "short" files with a Hex Editor, to see if those information are actually in the file?

@ACrowley: check your files with a Hex Editor or use a command like "strings -60 <path>".
For example:

$ strings -60 travaux.mp4
x264 - core 50 svn-566 - H.264/MPEG-4 AVC codec - Copyleft 2005 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=5 brdo=0 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 chroma_qp_offset=0 slices=1 nr=0 decimate=1 bframes=0 keyint=250 keyint_min=25 scenecut=40 rc=cqp qp=26 ip_ratio=1.40

fsinapsi
5th October 2007, 08:36
shows data on mov clips.
where can I download a sample?

Theliel
5th October 2007, 23:51
frank, i have a error:

gdk-warning: gdk_font_load: font name -*-Lucida Console-*--*-*-95*-*--- ilegal
...

Exception: STATUS_ACCESS_VIOLATION at eip=67FA76FD
eax=00D33928 ebx=00000000 ecx=00000000 edx=00000000 esi=02284660 edi=004D0C70
ebp=0022EFB8 esp=0022EF40 program=C:\Program Files\avinaptic\avinaptic.exe, pid 5136, thread main
cs=001B ds=0023 es=0023 fs=003B gs=0000 ss=0023
Stack trace:
Frame Function Args
0022EFB8 67FA76FD (004D0C70, 0022F004, 00000064, 0040DBE1)
0022EFF8 004D0D2B (00000001, 10090978, 100900A8, 00000001)
0022F078 61005F34 (0022F090, FFFFFFFF, 0000007A, 00000216)
0022FF58 6100614B (00000000, 00000000, 00000000, 00000000)
End of stack trace

fsinapsi
6th October 2007, 09:37
frank, i have a error:

gdk-warning: gdk_font_load: font name -*-Lucida Console-*--*-*-95*-*--- ilegal
...
Exception: STATUS_ACCESS_VIOLATION at eip=67FA76FD

ok, I'll fix it.
In the meanwhile, you could try to install that font (lucon.ttf)
http://www.anthrowiki.info/zip/LUCON.TTF.zip

fsinapsi
6th October 2007, 09:47
i tried with x264 and Apple created files for those it's working but it doesn't work for .mp4 created with Nero Recode for those after the analyzing the drf graph doesn't show up.
is the frame rate reported?
I'd like to see the tree structure of those MP4 (you can use the toggle button "View structure on/off"), maybe I should extend my mp4 parser...

fsinapsi
6th October 2007, 10:08
Thanks, that makes it very quick and easy to see bitrate spikes now!

in the last released version, the search function doesn't consider the value of the field "Avg int", maybe it should...

Anyway, I think it's not so easy to discover "buffer underflows" by looking at the "frame size graph".

For example, let's consider this situation:

http://img266.imageshack.us/img266/4695/vbv0jh0.png

the sizes of these frames are smaller than the maximum size.
And here is the "buffer fill level" (in this example: buffer size=384*1024*8 bits, max rate=4854000 bits/s):

http://img266.imageshack.us/img266/2523/vbv1ha4.png

we have two buffer underflows...

Theliel
6th October 2007, 13:07
ok, I'll fix it.
In the meanwhile, you could try to install that font (lucon.ttf)
http://www.anthrowiki.info/zip/LUCON.TTF.zip

hi frank. This is the problems, i have got installed lucida console font. I first instance i thought a font problems and i eliminated him and reinstalled again, but dont work.

anyway, good work :)

fsinapsi
15th October 2007, 11:42
I first instance i thought a font problems and i eliminated him and reinstalled again, but dont work.
did you check if you have more files with the same name? (cygwin1.dll and the other libraries...)

Theliel
15th October 2007, 20:34
no. I have downloaded full package and file to file. Nothing. I dont know what its the problems.

olnima
20th October 2007, 13:47
Is it possible to show the interleave-value in msec. too?
Saying this, I'm not quite shure if this isn't implemented allready ;-)

Thanks again for this really great tool

Olnima

fsinapsi
21st October 2007, 08:56
Is it possible to show the interleave-value in msec. too?
if (audio chunks) >= (video frames), then interleave=(framerate^-1);
if (audio chunks) < (video frames), then interleave=((video frames)/(audio chunks))*(framerate^-1).
I think this information is useless :) .
"Max A/V diff" is a more useful information

fsinapsi
18th November 2007, 10:52
update 18-11-2007 (http://fsinapsi.altervista.org)

http://fsinapsi.altervista.org/code/avinaptic/index.html

fixed some errors;
added some infos to the H.264 section.

example:

[...]
SPS id 0
Profile High@L5.1
Num ref frames 1
Aspect ratio 10:11 (4:3 NTSC pixel shape)
Chroma format idc YUV 4:2:0
PPS id 0 (SPS: 0)
Codifica entropica CABAC
Weighted prediction No
Weighted bipred idc No
8x8dct No
Custom intra4X4 luma
6 9 13 19
9 14 20 27
13 20 28 35
19 27 35 42
Custom intra4X4 chromau
6 10 15 20
10 16 21 27
15 21 28 33
20 27 33 42
Custom inter4X4 luma
8 11 15 20
11 16 21 27
15 21 28 35
20 27 35 42
Custom inter4X4 chromau
8 11 16 21
11 17 22 27
16 22 28 35
21 27 35 42
[...]


please tell me if you need more infos about H.264 streams

audyovydeo
18th November 2007, 11:02
Grazie Frank !

audyovydeo

Theliel
18th November 2007, 12:31
no more fonts problems Frank, work fine again for me :)

bkman
18th November 2007, 16:33
Would be nice to have "common" matrices embedded in the app, and then matched against the matrix used in the video stream.

So the program can just report "Matrix: Prestige" for instance.

Thanks :)

SeeMoreDigital
20th November 2007, 22:12
Hi Fsinapsi,

Just a thought... How about placing the name of your application, ie: AVInaptic in your thread title?

Also, I have to ask, why the reference to "AVI" in your applications name. Especially as it can read MPEG-4 streams placed within: .MP4, .MOV, .MKV and .AVI?


Cheers

ultratoto14
21st November 2007, 16:50
The "no x264 user data" error is due to files > 4Gb i think, must be verified.

fsinapsi
21st November 2007, 19:13
@bkman: I don't know the names of "common" matrices...

@SeeMoreDigital: why the reference to "AVI" in "avidemux", "AVI-Mux GUI", ecc? :) The answer is the same...
How can I change the title of the thread?

@ultratoto14: please, can you send me the avinaptic report of a such file (> 4 Gb)?
Also, I'd like to receive the first part of the file, let's say the first 500 kbytes.
You can obtain that by a command like this:
dd if=inpath of=outpath bs=1k count=500
(you can use an equivalent utility; 'dd' is available for various platform...)
inpath = file MP4 larger than 4 MB
outpath = file to send to me (size of outpath = 512000 bytes).
You can also check the existence of "x264 user data" by a command like this:
strings -50 path.mp4
(you can use an equivalent utility)

SeeMoreDigital
21st November 2007, 20:02
@SeeMoreDigital: why the reference to "AVI" in "avidemux", "AVI-Mux GUI", ecc? :) The answer is the same...From what I understand both of those applications started off supporting the AVI container only. Unlike your application which, is too useful to be primarily associated with the (outdated) AVI container.

How can I change the title of the thread?Go to your first post in the thread, select the "Edit" button, then select the "Go Advanced" button and within the "Edit Post" window you'll see the current title of your thread - which you can change ;)


Cheers

salehin
22nd November 2007, 09:53
Thanks a lot for this very useful tool, fsinapsi. I was wondering if you can introduce the ability to copy text from results manually. That way I don't have to create a report to get some specific info (, not everything)

Regards :)

ultratoto14
25th November 2007, 10:17
7.94 Gb file
Avinaptic report under vista :

[ About file ]

Name: ------------------------.mkv
Date: 11/11/2007 16:02:38
Size: #undef# bytes (#undef# MB)

[ Generic infos ]

File type: Matroska data

[ Hex dump ]

00000000: 1a 45 df a3 93 42 82 88 6d 61 74 72 6f 73 6b 61 |.Eߣ.B..matroska|

This report was created by AVInaptic (18-11-2007) on 25 nov 2007, h 10:15:44

Strings -50 file.mkv :
mkvmerge v2.1.0 ('Another Place To Fall') built on Aug 19 2007 13:40:07D
x264 - core 56 svn-680 - H.264/MPEG-4 AVC codec - Copyleft 2005 - http://www.videolan.org/x264.html - options: cabac=1 ref=6 deblock=1:-3:-3 analyse=0x3:0x133 me=umh subme=7 brdo=1 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=2 deadzone=21,11 chroma_qp_offset=0 threads=3 nr=0 decimate=0 mbaff=0 bframes=3 b_pyramid=1 b_adapt=1 b_bias=0 direct=3 wpredb=1 bime=1 keyint=250 keyint_min=25 scenecut=40(pre) rc=2pass bitrate=7285 ratetol=1.0 rceq='blurCplx^(1-qComp)' qcomp=0.60 qpmin=10 qpmax=51 qpstep=4 cplxblur=20.0 qblur=0.5 ip_ratio=1.40 pb_ratio=1.30 aq=1:0.3:15.0

fsinapsi
25th November 2007, 20:09
7.94 Gb file
Avinaptic report under vista :
[...]
Size: #undef# bytes (#undef# MB)

here is the problem.
That means the following C functions don't work:

#include <stdio.h>

int fseeko(FILE *stream, off_t offset, int whence);

off_t ftello(FILE *stream);

The functions work well under Linux with files of any sizes.
I think they work well under Windows XP too, but I'm not sure...

You may try to replace the file "cygwin1.dll" in the avinaptic folder with a newer version ( http://www.cygwin.com/ ).
Unfortunately I haven't Windows so debugging the windows version it's not easy...

ultratoto14
26th November 2007, 13:06
Got the latest Cycgwin1.dll and it works !! Thanks.

bkman
27th November 2007, 12:13
@bkman: I don't know the names of "common" matrices...

Many of them can be found on this very forum ;)

http://forum.doom9.org/showthread.php?t=117041

for instance. And Sharktooth's and the Prestige is around here too.

rco133
6th December 2007, 16:42
Hi.

You probably think that the above two things should have nothing to do with each other.

In fact so did I until I installed my new PC.

The very second I ask avinaptic to check for updates, my ethernet just dies instantly. And the only way to get it to work again is to reboot the PC.

It worked fine on my old PC which used some 3COM onboard NIC.

My new PC uses an Attansic L1 onboard NIC, and it is an ASUS P5KR board. I have of course installed the most recent drivers.

I have no clue why or how avinaptic manages to bring down the ethernet completely. It is as if the device gets totally invisible to the system until I reboot it.

All other functions in avinaptic is working just fine, so it isn't really a big problem. But was just wondering how an online check for updates can totally bring an ethernet device into its knees.

Maybe I have missed to install some DLL for the program or something like that. I have downloaded the -full file and am using that.

Have anyone experienced anything like this ?

I hope it can be fixed in some way, as I would like to be able to check for updates from inside the program, instead of visiting the homepage to check.

rco133

fsinapsi
6th December 2007, 17:30
I have no clue why or how avinaptic manages to bring down the ethernet completely.
avinaptic is not aware of the existence of things like "ethernet"; it's not an operating system, it's an application.
It calls functions like "socket", "connect" and similar...

You may try to replace the run time support of those functions...
For example, you may try to replace the file "cygwin1.dll" in the avinaptic folder with this more recent version:

http://rapidshare.com/files/73976842/cygwin1.rar.html

If this doesn't work, then I'll try to replace the way to check for updates (I'll try to use a library called "libcurl")...

rco133
12th December 2007, 19:59
avinaptic is not aware of the existence of things like "ethernet"; it's not an operating system, it's an application.
It calls functions like "socket", "connect" and similar...

You may try to replace the run time support of those functions...
For example, you may try to replace the file "cygwin1.dll" in the avinaptic folder with this more recent version:

http://rapidshare.com/files/73976842/cygwin1.rar.html

If this doesn't work, then I'll try to replace the way to check for updates (I'll try to use a library called "libcurl")...


Thanks for the quick answer. I have downloaded the file and replaced the old one. But the result is still the same. As soon as I choose check for updates, my network dies and avinaptic seems to go into "this program does not respond" mode.

Guess I will just stay away from that menu, and check online for updates :-)

Thanks for a great program.

rco133

bokonon
23rd January 2008, 12:58
First off: Many thanks for this awesome program! It really is so much more useful than gspot/media info etc. I reallly love the fact that you can see the "level" at which an mkv is encoded at (be it 5.1, 4.1 etc).

One thing I would love to see in the future would be a nicer interface ( :helpful: ) . Sorry to ask, but for me 'drag and drop' is a bad habit to have i suppose, but saves quite a bit of time.

Also, it would be nice if you could run a batch report generatrion. For example, i could run it on a folder of files, in order to quickly compare the results.

:thanks:

audyovydeo
23rd January 2008, 13:55
... but for me 'drag and drop' is a bad habit ...

No worry, there are cures for that ;-)
Create a dos batch file with this :


@echo off
echo.
mp4box -info %1 | grep -E "Video" | cut -d "-" -f 3
echo.
pause



Also, it would be nice if you could run a batch report generatrion. For example, i could run it on a folder of files, in order to quickly compare the results.


try :

for %%f in (*.mp4) do ( mp4box -info %%~f | grep -E "Video" | cut -d "-" -f 3 )


required : mp4box, cygwin

cheers
audyovydeo

talen9
23rd January 2008, 16:08
Well, I'm sure that audyovydeo's advice is working; anyway, AVInaptic is already able to be run from the command line, and on a batch of files too :)


avinaptic -cl "filename.[avi][mp4][etc....]" > report.txt

generates the report (without the DRF analysis) on the standard output, which is redirected on file "report.txt".


avinaptic -cldrf "filename.[avi][mp4][etc....]" > report.txt

generates the report (with the DRF analysis) on the standard output, which is redirected on file "report.txt".


So, you can write down a batch file which executes avinaptic on multiple files, like in the second example by audyovideo above; OR you can use the GUI: the option "Save report recursively" from the File menu will run on all files in all subfolders starting from the current one (included) :)

Nikos
16th March 2008, 18:41
This report is from x264 ver. 748 with VAQ:

1-pass:
x264 [info]: slice I:1230 ........... Avg QP:15.94 size:117789
x264 [info]: slice P:108327 ........ Avg QP:17.77 size: 28319
x264 [info]: slice B:119210 ........ Avg QP:20.22 size: 4690

x264 [info]: final ratefactor: 19.23

2-pass:
x264 [info]: slice I:1230 ............ Avg QP:16.31 size:113350
x264 [info]: slice P:108327 ......... Avg QP:17.79 size: 28950
x264 [info]: slice B:119210 ......... Avg QP:20.39 size: 5237


This report is from Avinaptic (18 Noe. 2007):

P-slices average DRF: 19.858336
B-slices average DRF: 21.942739
I-slices average DRF: 18.091869

Why so big difference?
With normal x264 i take similar results.

KoD
17th March 2008, 16:48
What i like in Avinaptic is that after a DRF analysis of a mkv file with h264 video, it gives a graph that shows the type of each frame. What I'd like to see is the mkv timecode for the frame, not only its number. Shouldn't be too hard to do, but it would help a lot to know the timecode of an I frame when splitting the mkv in mkvmerge.

wirawan84
19th March 2008, 20:13
* how to see the x264 cli command in avinaptic ?

buzzqw
19th March 2008, 20:30
* how to see the x264 cli command in avinaptic ?

you don't see it, BUT you see what values got the options.. like how many bframes, how many ref..

BHH

LoRd_MuldeR
19th March 2008, 22:44
* how to see the x264 cli command in avinaptic ?
Have a look at all those "User data" entries below "About H.264 encoding" :p

steve77
31st March 2008, 05:01
I encoded a file into raw h264 format and muxed it with an AAC-LC audio file in an *.mp4 container. I open the file and it shows the details, but when I go for DRF analysis, it says midway through "File Format is Unknown".... which seems strange.

Any ideas?

bkman
10th April 2008, 18:27
Seems like avinaptic needs to be updated for new-version MKV files. It won't give any information for them anymore.

SeeMoreDigital
10th April 2008, 19:05
Seems like avinaptic needs to be updated for new-version MKV files. It won't give any information for them anymore.What exactly are these "new version" MKV files?

steve77
10th April 2008, 19:26
What exactly are these "new version" MKV files?

What exactly does any of this have to do with my Mp4s?

SeeMoreDigital
10th April 2008, 21:34
What exactly does any of this have to do with my Mp4s?Hi Steve,

I'm not responding to your AVInaptic issue, I'm trying to understand bkman's...


Cheers

steve77
10th April 2008, 22:40
Hi Steve,

I'm not responding to your AVInaptic issue, I'm trying to understand bkman's...


Cheers


My mistake, cheers.

bkman
12th April 2008, 04:58
Ah, my bad. One of my encodes can't be read properly by avinaptic, even after being muxed by a new version of mkmerge, so I assumed that it was some incompatibility with new mkv revision. But in fact it can still read smaller samples from this encode, so it may rather be an issue related to the size. Its about DVD5 size/720p.

I'll post what avinaptic has on it.


[ About file ]

Name: Recall.mkv
Date: 8/04/2008 02:31:19
Size: #undef# bytes (#undef# MB)

[ Generic infos ]

File type: Matroska data

[ Hex dump ]

00000000: 1a 45 df a3 93 42 82 88 6d 61 74 72 6f 73 6b 61 |.Eߣ.B..matroska|

pcordes
15th April 2008, 23:21
For Linux users: dowload the file avinaptic.tar.gz and check for missing libraries.
My program is not aesthetically pleasing, but can extract many informations from AVI, MP4, MKV, and can do a "DRF analysis" of ASP and AVC streams.
Please feel free to send me suggestions and bug reports.

I'd love to try this, but I'd prefer to compile it from source on my AMD64 Ubuntu system, instead of installing all the 32bit libs.

What language is the source code in? I've never seen .trp and .tin files, but the code in them looks like lisp. Googling for the compiler, treepc, didn't turn up anything.

I'm a veteran Unix geek, so just point me at a web site for the compiler and I'll figure out if there are Ubuntu packages, or whatever.

Thanks,

nm
15th April 2008, 23:36
What language is the source code in? I've never seen .trp and .tin files, but the code in them looks like lisp. Googling for the compiler, treepc, didn't turn up anything.
It's apparently his own compiler:
http://fsinapsi.altervista.org/code/treep/index.html

Seems that it can't be used for compiling 64-bit binaries though, and looks like the compiler is closed-source.

rberger
10th May 2008, 16:55
It's apparently his own compiler

Kind of unfortunate. Obviously, this little tool is very useful, but as the whole application logic code base depends on that compiler, which itself implements all the relevant external bindings, there's likeliness this will turn into a maintenance nightmare and eventually die.

E.g. for the switch to GTK2, he has to revamp that very compiler code and - very understandably - already shown some reluctance. It'll be interesting to see if this keeps going anyway.

QUEENFAN
2nd June 2008, 14:38
Hello,

great Tool.
I just began to encode some DVD-Rip with AutoMKV and now have two samples, one XVID-AVI and another x264-MKV.
Now I wanted to discover via AVInaptic which encode has better quality.

On DRF you say: So the higher the DRF the more compression/blurriness the video has? The quantizer is involved in the quantization of "DCT coefficients". A typical effect of an excessive quantization is blockiness.

To my surprise the DRF-analysis of the XVid-File gives me an averadge DRF of 3.24 while the x264 has 21.39 ???
I thought x264 would bring much better quality than xvid, the encode took about 3 times of the xvid-encoding-time.

LoRd_MuldeR
2nd June 2008, 14:42
@QUEENFAN

1. Neither Quantizers (that's what DRF refers to) nor PSNR or SSIM can give you information about the actual subjective quality!
2. H.264 and MPEG-4 ASP use completely different Quantizer scales, that's why the values from x264 cannot be compared with Xvid or DivX.

I think you can say: The higher the quantizer (DRF value), the more information was removed from the frame. But this says absolutely nothing about how "visible" that information was. So judging the quality only from quantizer values is pure nonsense. Metrics like "PSNR" and "SSIM" should give some more hint, but they still don't match the human perception. For example: The latest psycho-visual improvements in x264 can improve the subjective quality drastically, although the metrics actually show "worse" values...

QUEENFAN
2nd June 2008, 15:13
@LoRd_MuldeR

Thanks for your quick reply.

I'm just trying to find out the best solution for me for encoding DVD/HD-/BR-DVD in the future regarding settings/profiles for AutoMKV which seems very promissing to me being able to encode XVID as well as x264.
I want to keep my originals in a safe place thus watching the encoded files in the near future optimized for LCD-HD-Ready over HDMI and a HTPC with HD-DVD/BR-Playback.

So to follow your suggestion I can't use a tool like AVInapotic but have to take a look at the destination myself?

LoRd_MuldeR
2nd June 2008, 15:40
So to follow your suggestion I can't use a tool like AVInapotic but have to take a look at the destination myself?
AVInaptic is a really useful tool, which can give a lot of information. But expressing a subjective thing like "Quality" in numbers simply is not possible :p
You will have to do a few encoding tests and decide what looks best for your eyes...

Nevertheless x264 should give much better quality at a given bitrate, compared to Xvid. That's because H.264 is much more efficient than MPEG-4 ASP.

telmoMRC
3rd June 2008, 22:30
yei have made one report whit the AVInaptic i select drf analys and is missing the [ About quality ] !!

i whant to make one report like this one but how ???

[ About file ]

Name: xxxxxxxxxx
Date: 31/05/2008 21:01:47
Size: 2,341,105,664 bytes (2232.652 MB)

[ Generic info ]

Play duration: 01:37:14 (5833.625291 s)
Container type: AVI OpenDML indexes multi-chunks (*)
Number of streams: 2
Type of stream nr. 0: video
Type of stream nr. 1: audio
Audio streams: 1
ISFT: VirtualDubMod 1.5.10.2 (build 2540/release)
JUNK: VirtualDubMod build 2540/release

[ About quality ]

Resolution: HIGH (704 x 384)
Width: multiple of 16 (GOOD)
Height: multiple of 16 (GOOD)
Average DRF quality: HIGH (2.873419)
Standard deviation quality: HIGH (0.682232)
Std. dev. weighted mean: HIGH (0.451463)

[ Video track ]

FourCC: xvid/XVID
Resolution: 704 x 384
Frame aspect ratio: 11:6 = 1.833333 (~1.85:1)
Pixel aspect ratio: 1:1 = 1
Display aspect ratio: 11:6 = 1.833333 (~1.85:1)
Framerate: 23.976 fps
Number of frames: 139867 (126206)
Stream size: 2,008,658,415 bytes
Bitrate: 2754.593673 kbps
Qf: 0.424988
Key frames: 2535 (0; 240; 480; 697; 937; ... 139825)
Null frames: 0
Min key int: 1
Max key int: 240
Avg key int: 55.174358
Delay: 0 ms

[ Audio track ]

Audio tag: 0x2000 (AC3)
Bitrate: 448 kbps CBR
Channels: 6
Sample rate: 48000 Hz
Chunks: 60688
Stream size: 326,258,688 bytes
Delay: 0 ms

[ About MPEG4 encoding ]

User data: XviD0047
Packed bitstream: No
QPel: No
GMC: No
Interlaced: No
Aspect ratio: Square pixels
Quant type: MPEG custom (*)
Custom intra quant matrix:
8 8 10 12 14 16 18 20
8 10 12 14 16 18 20 22
10 12 14 16 18 20 22 24
12 14 16 18 20 22 24 26
14 16 18 20 22 24 26 28
16 18 20 22 24 26 28 30
18 20 22 24 26 28 30 32
20 22 24 26 28 30 32 32
Custom inter quant matrix:
16 16 16 16 16 16 16 16
16 16 16 16 16 16 16 16
16 16 16 16 16 16 16 16
16 16 16 16 16 16 16 16
16 16 16 16 16 16 16 16
16 16 16 16 16 16 16 16
16 16 16 16 16 16 16 16
16 16 16 16 16 16 16 16
Number of frames: 139867
Drop/delay frames: 0
Corrupted frames: 0

I-VOPs: 2535 ( 1.812 %)
P-VOPs: 56556 ( 40.436 %) ##########
B-VOPs: 80741 ( 57.727 %) ##############
S-VOPs: 0 ( 0.000 %)
N-VOPs: 35 ( 0.025 %)

Max consecutive B-VOPs: 2
1 consec: 18117 ( 36.653 %) #########
2 consec: 31312 ( 63.347 %) ################

[ DRF analysis ]

Average DRF: 2.873419
Standard deviation: 0.682232
Max DRF: 4

DRF<2: 0 ( 0.000 %)
DRF=2: 42512 ( 30.402 %) ########
DRF=3: 72508 ( 51.854 %) #############
DRF=4: 24812 ( 17.744 %) ####
DRF>4: 0 ( 0.000 %)

I-VOPs average DRF: 2.001972
I-VOPs std. deviation: 0.044367
I-VOPs max DRF: 3

P-VOPs average DRF: 2.293231
P-VOPs std. deviation: 0.455631
P-VOPs max DRF: 4

B-VOPs average DRF: 3.307179
B-VOPs std. deviation: 0.461324
B-VOPs max DRF: 4

elguaxo
3rd June 2008, 22:56
Misc -> Preferences -> Judgments about quality -> enabled

but you should trust your own eyes more than any program. ;)

telmoMRC
3rd June 2008, 23:14
Misc -> Preferences -> Judgments about quality -> enabled

but you should trust your own eyes more than any program. ;)

thx gx :thanks::thanks::thanks:

telmoMRC
3rd June 2008, 23:41
i try to do that and doesn´t work

i give up

one morre time thx for the help

rkalwaitis
5th June 2008, 12:24
Hello all,

I hope a savy person can help me to understand some of the user entries in my report on a mkv file. Let me tell you quickly what I did. I noticed a film that had been compressed to a really small file size, but still had good quality. It was encoded with megui and used x264. I thought I could use AVInaptic to see what the settings were and if a custom matrix was used. Any ways here is where is stuck.

User data: x264
User data: core 54 svn-654
User data: H.264/MPEG-4 AVC codec
User data: Copyleft 2005
User data: http://www.videolan.org/x264.html
User data: cabac=1 I assume 1 is activated in megui's case
User data: ref=16
User data: deblock=1:-2:-1
User data: analyse=0x3:0x133
User data: me=umh
User data: subme=7
User data: brdo=1
User data: mixed_ref=1
User data: me_range=16
User data: chroma_me=1
User data: trellis=2
User data: 8x8dct=1
User data: cqm=0
User data: deadzone=21,11 (I do not understand how to change this or what it is)
User data: chroma_qp_offset=0 (I do not understand how to change this or what it is)
User data: threads=3
User data: nr=0
User data: decimate=1(I do not understand how to change this or what it is)
User data: mbaff=0(I do not understand how to change this or what it is)
User data: bframes=3
User data: b_pyramid=1
User data: b_adapt=1(I do not understand how to change this or what it is)
User data: b_bias=0(I do not understand how to change this or what it is)
User data: direct=3
User data: wpredb=1(I do not understand how to change this or what it is)
User data: bime=1(I do not understand how to change this or what it is)
User data: keyint=250
User data: keyint_min=25
User data: scenecut=40(pre)
User data: rc=2pass
User data: bitrate=450
User data: ratetol=1.0(I do not understand how to change this or what it is)
User data: rceq='blurCplx^(1-qComp)'(I do not understand how to change this or what it is)
User data: qcomp=0.60
User data: qpmin=10
User data: qpmax=51
User data: qpstep=4(I do not understand how to change this or what it is)
User data: cplxblur=20.0
User data: qblur=0.5
User data: ip_ratio=1.40
User data: pb_ratio=1.30

I think I found all of the other things, maybe quess ill see. But if someone can help me figure out what the red items are and how to change them or how they or changed I will be forever greatful.

Brother John
5th June 2008, 14:55
Most of the red items have a more or less identically named CLI option for x264.exe. And most of them were left at their defaults anyway.

cabac=1 --> CABAC is used (it’s on by default)
deadzone=21,11 --> Refers to --deadzone-inter and --deadzone-intra respectively (default settings).
chroma_qp_offset=0 --> --chroma-qp-offset 0 (default setting)
decimate=1 --> --no-dct-decimate was not used (default setting)
mbaff=0 --> MBAFF is a type of interlacing. 0 means source was not MBAFF interlaced.
b_adapt=1 --> --no-b-adapt was not used (default setting)
b_bias=0 --> --b-bias 0 (default setting)
wpred=1 --> --weightb was used.
bime=1 --> --bime was used.
ratetol=1.0 --> --ratetol 1.0 (default setting)
rceq='blurCplx^(1-qComp)' --> default setting for --rceq
qpstep=4 --> --qpstep 4 (default setting)

rkalwaitis
5th June 2008, 15:42
Brother John,

I guess that is why I am unable to change them or find some of them to change. Thanks for helping me out, I really appreciate it.

:thanks:

foxyshadis
5th June 2008, 17:30
That's HQ-Insane, btw.

rkalwaitis
5th June 2008, 18:35
You could tell that just from looking at what I posted! I'm amazed. When I did the avinaptic on the file it did not have a custom matrix, but the bitrate was really low and the film looked great. I was trying to see how it was made. Is there a standard for what they call "HC", Im assuming that is "Heavy Compression". I would of thought that superlow bitrates would have used one.

Thanks Foxyshadis :thanks:

nm
5th June 2008, 21:39
When I did the avinaptic on the file it did not have a custom matrix, but the bitrate was really low and the film looked great. I was trying to see how it was made.
Clean, not too complex source video and good preprocessing (denoising, for example) are probably more significant than the x264 encoding parameters.

rkalwaitis
6th June 2008, 15:34
NM
I learning that simple usually gets the best results.

Jorge_O
28th August 2008, 02:56
Hello,
I've installed AVInaptic (Dl from the author's site) but...

I cannot change directories!
I click/double click in a directory name in the left side window, in the small upper square with a drive letter in it - but files in the right window won't change.
Uninstall/reinstall didn't help.

Otherwise the program seems ok - an AVI file at the driver's root gives lots of data, graphics, etc.

Win XP SP3.

Thanks for your help!

LoRd_MuldeR
28th August 2008, 03:15
I cannot change directories!
I click/double click in a directory name in the left side window, in the small upper square with a drive letter in it - but files in the right window won't change.
Uninstall/reinstall didn't help.

Yes, the tool is great, but the "open" dialog sucks!

However it does work here. Double-click on directory names in the left view, will change the directory and show files in the right view...

(WindowsXP x64 Edition, SP-2)

buzzqw
28th August 2008, 08:31
i added to SendTo ... very easy! (but more easy on konqueror)

BHH

OrionZodiac
31st August 2008, 22:33
How do you get this thing to work? I have spent over an hour figuring this out. I downloaded avinaptic-20071118-full-fixed and extracted it. There is no gui in there. There is only magic and avinaptic.exe along with about 14 .dll files. Am I missing something? I have never had any program give me as much trouble as this. Any help would be nice at this point in time.

Thank You

LoRd_MuldeR
31st August 2008, 22:35
Uhm, avinaptic.exe is an GUI application :confused:

OrionZodiac
1st September 2008, 00:25
Whenever I try to open it or run it nothing happens. Whenever I drag and drop a video onto the .exe nothing happens whenever I do anything with the .exe nothing happens. Maybe my computer is being a piece of crap?

LoRd_MuldeR
1st September 2008, 00:39
Whenever I try to open it or run it nothing happens. Whenever I drag and drop a video onto the .exe nothing happens whenever I do anything with the .exe nothing happens. Maybe my computer is being a piece of crap?

When I run "avinaptic.exe" on my system (Windows XP) then I see this:

http://img294.imageshack.us/img294/5117/avinapticcmdkr9.png


Sure your download is okay?

OrionZodiac
1st September 2008, 00:57
Well it looks like it is my computer. I am unable to get this running. And yes, I have downloaded the correct file from the authors website. I have tried all download links, but none of then yield a working program. However, when I run the aspect ratio calculator which itself is just a .exe I get a working gui. Ill use something else. Thanks for your help.

LoRd_MuldeR
1st September 2008, 01:05
Well it looks like it is my computer. I am unable to get this running. And yes, I have downloaded the correct file from the authors website. I have tried all download links, but none of then yield a working program. Ill use something else. Thanks for your help.

Either something on your system is seriously borked or you download is broken. Even when you downloaded the correct file, the download itself might have failed...

talen9
1st September 2008, 14:08
Be sure that you downloaded the right package ... this (http://fsinapsi.altervista.org/code/avinaptic/avinaptic-20071118-full-fixed.zip), for a clean install.

Drag&Drop, as far as i recall, doesn't work (it's a limitation of the graphic library - GTK 1.2 - not of AVInaptic itself); you have to double-click on avinaptic.exe and then you open the file you want to get the info from.

Quark.Fusion
13th September 2008, 07:46
>4GB mkv in avinaptic:
Size: #undef# bytes (#undef# MB)

[ Generic infos ]

File type: Matroska data

[ Hex dump ]

00000000: 1a 45 df a3 93 42 82 88 6d 61 74 72 6f 73 6b 61 |.E▀г.B..matroska|

littleD
13th September 2008, 09:26
Funny thing but actually drag&drop feature works well on my xp sp3 :) But only when drop on shortcut. I've got avinaptic-20071118-full-fixed.zip. No cmd messages.
One thing. Do u have directory "C:\Program Files\Common Files\GTK\2.0\..... " with some gtk libraries? I forgot when/with what this came along.:confused: Looks like Gimp.
Avidemux is based on gtk, but it seems installing gtk lib in its own folder.

talen9
13th September 2008, 12:17
@Quark.Fusion: I did succeed in analyzing >4GB MKV files with AVInaptic, it *is* supported. Make sure you have the latest version of AVInaptic (marked 18Nov2007). The MKV file could be corrupted, too.

@littleD: IIRC, the parts of GTK libs needed by AVInaptic are statically linked into avinaptic.exe, so to ease the distribution/installation of the product. BTW, AVInaptic is based on GTK1.2, so it's definitely not the responsible for your installation of GTK2.0, The Gimp may be though.

Quark.Fusion
14th September 2008, 04:14
I doubt that mkv is corrupt as it plays just fine and I tried 2 files >4GB, all files <2GB opens without problems. I don't have more big mkv files now — will try mux something.

SquallMX
15th September 2008, 04:20
>4GB mkv in avinaptic:
Size: #undef# bytes (#undef# MB)

[ Generic infos ]

File type: Matroska data

[ Hex dump ]

00000000: 1a 45 df a3 93 42 82 88 6d 61 74 72 6f 73 6b 61 |.E▀г.B..matroska|


If you´re using Vista use "XP Service Pack 2" compatibility mode, that fixed the problem for me.

Quark.Fusion
15th September 2008, 05:36
confirm, thanks.

Quark.Fusion
18th September 2008, 09:17
Can I request addition to Avinaptic following analysis?
1) consecutive b-frames number
2) average size of diffirent slices
3) number of b-pyramids, separate b-pyramid analysis (like total number of b-frames, number of non-pyramids, number of pyramids, same for avg QP and others)
4) macroblocks analysis as in x264 output
5) DPB usage.

doragasu
18th August 2009, 12:43
Anyone tried to compile this program in 64bit Linux?

I downloaded the sources, but they are in treepc, a language implemented by the creator of avinaptic. I downloaded the souces of the treepc compiler an runtime support and was able to compile and install them. Then I tried again to compile avinaptic and the compiler thrown an error:

doragasu@doragasu-C2D:~/Escritorio/avinaptic$ make
treepc -O2 avinaptic.trp
treepc: pass 1 (syntax analysis)...
undeclared
in /home/doragasu/Escritorio/avinaptic/init.tin
line 18
make: *** [avinaptic] Error 255

Line 18 in init.tin is:
(set _nl (if (cygwin) crlf nl))

It looks like this line is cygwin related and maybe it's only needed to generate the windows binary, so I tried commenting it and launched make again, to face a new 'undeclared' error:

doragasu@doragasu-C2D:~/Escritorio/avinaptic$ make
treepc -O2 avinaptic.trp
treepc: pass 1 (syntax analysis)...
undeclared
in /home/doragasu/Escritorio/avinaptic/init.tin
line 40
make: *** [avinaptic] Error 255

Line 40 in init.tin is:
(if (not gtk-connected)

There I stopped trying things. GTK libraries are installed and also are the dev headers...

I was able to run the windows version using Wine, but it would be great if I could run a native binary.

Any suggestion?

Also is there other program similar to avinaptic (better if it runs in Linux)?

buzzqw
18th August 2009, 13:18
Hi doragasu

i know the developer of Avinaptic

i will ping to your post

BHH

nm
18th August 2009, 13:33
Also is there other program similar to avinaptic (better if it runs in Linux)?
Depends on what you need. There's MediaInfo, and for retrieving basic information, mplayer -identify (see midentify script for usage). If you need a DRF analysis feature, I'm not sure if there are better alternatives.

doragasu
18th August 2009, 13:59
Thanks a lot for the replies.

@buzzqw: I sent an email to the author just before writing to these thread. If he replies me, I'll post here his suggestions.

@nm: I don't need DRF analysin (I don't even know what DRF analysis is :p). I only need data of the h264 stream like ref frames, b frames, if b_pyramid is used, etc... I'll have a look to MediaInfo.

EDIT: Tried MediaInfo, and this is exactly what I need, but I'll try to compile avinaptic anyway. Maybe someday I'll learn what DRF is and what the extra parameters provided by avinaptic are for.

talen9
19th August 2009, 17:06
avinaptic gives a deep analysis of the audio streams and of the way they're muxed in the AVI/MKV container, too.

Regarding using it in a 64bit linux o.s. a viable way, as of now, is using the 32bit binary, having installed on the system the 32bit libraries it needs ...

doragasu
19th August 2009, 20:22
Regarding using it in a 64bit linux o.s. a viable way, as of now, is using the 32bit binary, having installed on the system the 32bit libraries it needs ...

Yes, I know that option, but I tend to avoid doing that kind of things (and having duplicate libraries).

stanjr
5th October 2009, 18:50
I'd love to try this, but I'd prefer to compile it from source on my AMD64 Ubuntu system, instead of installing all the 32bit libs.

What language is the source code in? I've never seen .trp and .tin files, but the code in them looks like lisp. Googling for the compiler, treepc, didn't turn up anything.

I'm a veteran Unix geek, so just point me at a web site for the compiler and I'll figure out if there are Ubuntu packages, or whatever.

Thanks,How I got it to work on my 64 bit Ubuntu system (Jaunty), I pretty much followed the instructions I originally found here (http://whynotwiki.com/How_I_installed_N_on_64-bit_Linux). I went through several .so files that needed to be in the /usr/lib32/ directory, starting with libgtk-1.2.so.0, then libgmp.so.3, then libgmodule-1.2.so.0, and libmagic.so.1. All packaged all the files into one easy download here (http://www.sendspace.com/file/nt7q3s) that you should copy into your /usr/lib32/ directory. Put those in and you should be fine running avinaptic. I have still come across, when running the program through commandline anyway (when not using a menu item to do it for me) that pops up the message "Gtk-WARNING **: Failed to load module "libcanberra-gtk-module.so": libcanberra-gtk-module.so: cannot open shared object file: No such file or directory" that I haven't been able to figure out since that is already on my system (I thought correctly, but if I put libcanberra-gtk-module.so into my /usr/lib32/ directory, I get a segmentation fault, so I just took it out. Everything seems to work fine, though, and if you run it through a created menu item, you don't even see that warning pop up.

EDIT: I don't know if you use all the dev versions of these things (and probably put them in the /usr/lib32/ directory), if that would get it to compile from scratch or not. That treepie custom compiler is not something that I've gotten used to, especially working on a 64 bit ubutntu distro.

popper
29th May 2010, 17:39
it would seem there's a new effort to update AVInaptic looking at the translated page
http://fsinapsi.altervista.org/code/avinaptic/index.html

"....
avinaptic2.tar.bz2 Updated on February 3, 2010. The new version of AVInaptic (rewritten in the new language). Note: it is still incomplete. To compile it you need to compile and install TreeP.
..."

anyone managed to make a win32 binary of this avinaptic2 yet?

talen9
29th May 2010, 20:29
There's actually nothing new, as far as I know ... I followed fsinapsi in his work of rewriting TreeP (the programming language which AVInaptic is written into) and AVInaptic itself is being rewritten, some months ago it was still missing many of the features which were in the 2007 version.

Of the silent update of February 3rd, I know nothing about, I suppose it was just due to some minor bugfix of which fsinapsi has become aware while working on the rewrite .... so, nothing to write home about, I think ;)

Biggiesized
31st May 2010, 07:48
Very cool program.

Anacletus
19th June 2011, 16:17
updated version

http://fsinapsi.altervista.org/ :)

b66pak
19th June 2011, 21:12
thanks a lot
_

HoP
23rd November 2011, 08:06
new version released...

http://fsinapsi.altervista.org/code/avinaptic/index.html

vrpatilisl
3rd December 2011, 09:13
what are the advantages of the avinaptic over mediainfo.

nm
3rd December 2011, 13:16
what are the advantages of the avinaptic over mediainfo.

Avinaptic can draw bitrate graphs.

movmasty
18th January 2012, 23:10
what are the advantages of the avinaptic over mediainfo.
Does mediainfo gives you any clue on which quantizer is used on every frame?

poisondeathray
18th January 2012, 23:16
Does mediainfo gives you any clue on which quantizer is used on every frame?

No , mediainfo doesn't . You can use ffdshow's OSD, for the mean frame quantizer, and print out a .csv text file (you can also specify other things like frame number, frametype etc...)

movmasty
19th January 2012, 03:55
Two little things,

Am I wrong or AVInaptic isnt able to open its own reports?
Shows them like any other text not showing the movie's analysys

Since it shows the max DRF, would be useful to know also the min.



(still a little thing, the opened filename in the app bar, useful when multiple istances are opened for comparative purpose)