AVItoPMP (1.2.0): advanced tool for pmp video

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Alcahest
Posts: 135
Joined: Fri Mar 25, 2005 2:08 am

Post by Alcahest »

I didn't find a queue.bat, but i copied from the DOS window directly :

MEncoder Sherpya-MinGW-20060131-4.0.2 (C) 2000-2006 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

success: format: 0 data: 0x0 - 0xf3524
ASF file format detected.
VIDEO: [WMV3] 320x240 24bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:6 fourcc:0x33564D57 size:320x240 fps:1000.00 ftime:=0.0010
xvid: using library version 1.1.0 (build xvid-1.1.0)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=480 h=272]
Opening video filter: [unsharp=l3x3:1:c3x3:1]
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
GetOutput r=0x0 size:230400 align:1
StreamCount r=0x0 1 1
Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565 R
GB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 320 x 240 (preferred colorspace: Packed YUY2)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
unsharp: 3x3:1.00 (sharpen luma)
unsharp: 3x3:1.00 (sharpen chroma)

SwScaler: Lanczos scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: XviD (480x272 fourcc=44495658 [XVID])
xvid: par=0/0 (vga11), displayed=480x360, sampled=480x272
xvid: 2Pass Rate Control -- 1st pass
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
==========================================================================
Writing header...
ODML: vprp aspect is 4:3.
Writing header...
ODML: vprp aspect is 4:3.
Pos: 15.7s 472f (100%) 31.01fps Trem: 0min 0mb A-V:0.000 [2778:0]
Flushing video frames
Writing index...
Writing header...
ODML: vprp aspect is 4:3.

Video stream: 2778.185 kbit/s (347273 B/s) size: 5468509 bytes 15.747 secs 4
72 frames
MEncoder Sherpya-MinGW-20060131-4.0.2 (C) 2000-2006 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

success: format: 0 data: 0x0 - 0xf3524
ASF file format detected.
VIDEO: [WMV3] 320x240 24bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:6 fourcc:0x33564D57 size:320x240 fps:1000.00 ftime:=0.0010
xvid: using library version 1.1.0 (build xvid-1.1.0)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=480 h=272]
Opening video filter: [unsharp=l3x3:1:c3x3:1]
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
GetOutput r=0x0 size:230400 align:1
StreamCount r=0x0 1 1
Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565 R
GB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 320 x 240 (preferred colorspace: Packed YUY2)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
unsharp: 3x3:1.00 (sharpen luma)
unsharp: 3x3:1.00 (sharpen chroma)

SwScaler: Lanczos scaler, from Planar YV12 to Planar YV12 using MMX2
videocodec: XviD (480x272 fourcc=44495658 [XVID])
xvid: par=0/0 (vga11), displayed=480x360, sampled=480x272
xvid: 2Pass Rate Control -- 2nd pass -- bitrate=768kbit/s
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
==========================================================================
Writing header...
ODML: vprp aspect is 4:3.
Writing header...
ODML: vprp aspect is 4:3.
Pos: 15.7s 472f (100%) 24.15fps Trem: 0min 0mb A-V:0.000 [181:0]
Flushing video frames
Writing index...
Writing header...
ODML: vprp aspect is 4:3.

Video stream: 181.896 kbit/s (22737 B/s) size: 358040 bytes 15.747 secs 472
frames
MEncoder Sherpya-MinGW-20060131-4.0.2 (C) 2000-2006 MPlayer Team
CPU: Intel Celeron 2/Pentium III Tualatin (Family: 6, Stepping: 1)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 SSE

success: format: 0 data: 0x0 - 0xf3524
ASF file format detected.
VIDEO: [WMV3] 320x240 24bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:6 fourcc:0x33564D57 size:320x240 fps:1000.00 ftime:=0.0010
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 48.0 kbit/3.40% (ratio: 6003->176400)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
videocodec: framecopy (320x240 24bpp fourcc=33564d57)
Pos: 15.7s 472f (100%) 206.75fps Trem: 0min 0mb A-V:-0.005 [443:119]
Video stream: 443.306 kbit/s (55413 B/s) size: 871318 bytes 15.724 secs 472
frames

Audio stream: 119.057 kbit/s (14882 B/s) size: 230145 bytes 15.464 secs
PMP Muxer v2.00 by jonny

Copyright (C) 2006 jonny

Homepage: http://jonny.leffe.dnsalias.com
E-mail: jonny@leffe.dnsalias.com

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


C:\Unzipped\cm_ff12_h_tmp.avi:
Processing video ...
15747 / 15747


C:\Unzipped\cm_ff12_h_tmp.mp3:
Processing audio ...
592
resync_count = 0
unused_bytes = 0 / 230145
first frame at 0


Interleaving ...
15747 / 15747


Status: [framerate is too high]
All done
Appuyez sur une touche pour continuer...

----------------------------------------------------------
STOPS HERE

Well, i hope you can find what is going wrong ;)
Later,

Alcahest
uNn99
Posts: 64
Joined: Thu Jan 19, 2006 7:27 am

Post by uNn99 »

pmp_muxer gives an error. What framerate does your video have? (you can see it in "change fps" editbox). If it is more then 30 - set it to 25 for example.
XperienZe
Posts: 3
Joined: Sat Apr 15, 2006 1:19 am

Post by XperienZe »

uNn99, thanks for helping me out... got it all working now! Though i have some thing i would love to see in the future:
- Be able to set a directory where every movie is created and not need to set it every time!
- Then it looks better if the encoding was done without viewing the cmd.exe window, instead you could use a progressbar in the main program (if this is possible of course)
- An directory where every "temp" files go while encoding. The divx2pass and other!

The last and most important for me at the time is:
- Support for other languages than english in subtitles... becouse I live in Sweden and we use the characters: "å, ä, ö" in our alphabet, hope you understand this and will add this in the near future (please ?)... every one of my subtitle uses this characters...

Thanks man for this beatiful app!
csuper
Posts: 103
Joined: Tue Jan 03, 2006 6:19 pm

Post by csuper »

XperienZe wrote:
The last and most important for me at the time is:
- Support for other languages than english in subtitles... becouse I live in Sweden and we use the characters: "å, ä, ö" in our alphabet, hope you understand this and will add this in the near future (please ?)... every one of my subtitle uses this characters...
You can change it already... you need to go to the advance TAB...

UPDATED :
Change the Code Page value "cp1251" by "cp1257"
Hope that works...

csuper.


UPDATED : sorry for the tipo :( , XperienZe ...
Last edited by csuper on Sat Apr 15, 2006 4:59 pm, edited 1 time in total.
XperienZe
Posts: 3
Joined: Sat Apr 15, 2006 1:19 am

Post by XperienZe »

csuper thanks but mine says "cp1251", not "cp1521" as you say? What should i change it to? Will the characters: "å, ä, ö" now show up?
uNn99
Posts: 64
Joined: Thu Jan 19, 2006 7:27 am

Post by uNn99 »

Alcahest wrote:It is awesome, thanks uNn99!
And if you have time, my principal request for this superb prog would still be "manual cropping with preview". ;)
Hm, but why cant you do it now? Edit "CropX" and "CropY" values and click Preview.
Alcahest
Posts: 135
Joined: Fri Mar 25, 2005 2:08 am

Post by Alcahest »

Hi uNn,
Yes, i can do this of course, but I was more thinking of a realtime croping feature (like Virtualdub "null filter"), as can be seen on this picture.
This would allow to set the correct croping directly.
Image
I don't know how much work it would require though, maybe a lot ^^;;
See you,

Alcahest
uNn99
Posts: 64
Joined: Thu Jan 19, 2006 7:27 am

Post by uNn99 »

New version v0.9.6:
- File Info page
- Codepage Info
- small fixes

Download link in the 1st post. Mencoder is included in archive now =)
Alcahest
Posts: 135
Joined: Fri Mar 25, 2005 2:08 am

Post by Alcahest »

Hi uNn, thanks for the new version, it's great to have detailed file infos.
I tried my problematic file and get the "framerate too high" too, even with the enclosed "memcoder". (i'm using the P3 build).
Here's the file in question, maybe you can find out why it's not working if you have a little time.
http://videoff7.free.fr/battle_500k.wmv
See you,

Alcahest
uNn99
Posts: 64
Joined: Thu Jan 19, 2006 7:27 am

Post by uNn99 »

Alcahest wrote:Hi uNn, thanks for the new version, it's great to have detailed file infos.
I tried my problematic file and get the "framerate too high" too, even with the enclosed "memcoder". (i'm using the P3 build).
Here's the file in question, maybe you can find out why it's not working if you have a little time.
http://videoff7.free.fr/battle_500k.wmv
See you,

Alcahest
Check "Change FPS" and choose 25, for example - and that's it! :)
Alcahest
Posts: 135
Joined: Fri Mar 25, 2005 2:08 am

Post by Alcahest »

Oh i think i understand the problem, MediaInfo can't determine the FPS of WMV files, is that it?
Later,

Alcahest
uNn99
Posts: 64
Joined: Thu Jan 19, 2006 7:27 am

Post by uNn99 »

Yes, sometimes MediaInfo can't determine the FPS of WMV files, but it's not a problem. I think this file is very strange, because there are so maany errors while mencoder encodes it. But if fps are forced to 25, there is no problem...
Alcahest
Posts: 135
Joined: Fri Mar 25, 2005 2:08 am

Post by Alcahest »

I see, thanks for confirming.
I checked; the real FPS of this file in WMP, it's 15FPS and it works fine indeed when AviToPmp is set to 15fps, so all is good now ;)
Later,

Alcahest
zshadow
Posts: 42
Joined: Mon Dec 26, 2005 5:36 am

Post by zshadow »

nice program, works great:)
lopoz
Posts: 8
Joined: Mon Aug 15, 2005 11:24 pm

Post by lopoz »

Best front-end EVER! I love the auto-AR feature!
I was wondering if multithreading will be supported (for us X2 users ;) )?

Also, what language did you write it in?
Alucard77
Posts: 6
Joined: Tue Apr 04, 2006 12:10 pm

Post by Alucard77 »

Hi There,

I apologize for asking what may seem like some dumb questions, but I am new to this program as I have been using VirtuaDub up to this point and I wanted to test this out. So I just have a couple of questions:

1) When you turn on "use sharp", how much sharper does it make it. I mean in VD I usually use a 3. Is this set at one, I don't quite understand the string. Can I change it to 3, or does this work completely differently then VirtuaDub.

2) I am assuming that when I use target quantizer that I can manully change it to 2.0 or 3.0. At the moment, I see it defaults to 4.0. If I click on the down arrow, it resorts back to bitrate figures even though the quantizer option is still displayed. Is that correct? Does it except manual type ins. Will it except it for BitRates if I chose to type something in over 850 which is your default max.

3) Can someone quickly give a layman explation of VHQ. Is 1 better then 4 or vice versa, what will it really do (ie. less pixelation, clearer picture, etc.)

4) If I rip a vob, will I have to rip out the subtitles from that vob, or will this program recognize the subtitles in the vob?

Thanks for the help, it is very appreicated.
User avatar
Itaintrite
Posts: 54
Joined: Fri Jul 15, 2005 12:32 pm

Post by Itaintrite »

If you click on Advanced settings, you can configure the sharpening command to your liking.
Alucard77
Posts: 6
Joined: Tue Apr 04, 2006 12:10 pm

Post by Alucard77 »

If I wanted to change the sharpness level to 3, is this the code I would use?

unsharp=l3x3:3:c3x3:3

The default is:

unsharp=l3x3:1:c3x3:1.

In addition, anyone notice that if you crop blackbars then resize the image, the image looks crappy. You can definately see blocks around figures and such. I notice that comes out much nicer in VDub. Any idea why that is?
toker#
Posts: 27
Joined: Sat Jan 21, 2006 1:48 am

Post by toker# »

@uNn99

Great work best PMP encoder!!

@everyone

Has anyone use the audio delay function. I have tried it and it doesnt do anything for me.
Example my DVD ifo file tells me that the audio is on a -80ms delay. I type in -80ms and the final results are out of sync. I have tried leaving the input on 0 and the video / audio is out of sync.

Can anyone help?
Mondy
Posts: 9
Joined: Thu Jan 05, 2006 1:43 pm

Post by Mondy »

Sorry toker# i cant help with the delay issues as i havent ran into such a problem myself.Secondly im just wondering if anoyone know a quick way to extract sub files from an mkv file for re-encoding into a pmp file.

Currently i am using mkvextractgui to extract the text i want manually and then re-encode the file. I have also tried editing the batch file to get it to extract the text for me and then encode the file which also works.

uNn99
Firstly would it be possible for you to support the .mkv file extension as these video files can be converted without any problems?
Secondly could you possible add an mkvextract option to your application?
If its too much work too add mkvextract to avitopmp dont worrie about it.

For thoses interested in getting the sub files out of mkv files and creating pmp files.
mkvextract can be found below. You will require either the installer or the MKVToolNix download and the runtime download.
http://www.bunkus.org/videotools/mkvtoo ... ml#windows
The mkvextract Gui can be found below which is useful if your new to mkvextract.
http://forum.doom9.org/showthread.php?s=&threadid=73819

Sorry about the mess in the post i know its not the cleanest post in the world. I also apologise for bringing up this old post again but i thought it would be better to bring it back, then to create a new thread.
uNn99
Posts: 64
Joined: Thu Jan 19, 2006 7:27 am

Post by uNn99 »

New version 0.9.7:
- PMP Muxer 2.01
- New feature to convert video without re-encoding (limit is 720x512)
Last edited by uNn99 on Wed May 31, 2006 9:55 pm, edited 1 time in total.
csuper
Posts: 103
Joined: Tue Jan 03, 2006 6:19 pm

Post by csuper »

GREAT job thank you.... !

Your converter is one of the best ! :)
-----------
Now using PMP Mod 1.02 with some nice FPS gain with my slow SONY MS...
Thanx Jonny ! & Malloc ! & Raphael !
leicesterfan
Posts: 2
Joined: Thu May 04, 2006 4:35 am

Post by leicesterfan »

Thanks for the new version - I love this program, it's awesome. The picture quality is superb.

Great job!
psp
Posts: 43
Joined: Thu Jun 01, 2006 3:15 am

Post by psp »

please add support for desc fonts
you just need to add this line to the bat file
-font "location_of_file\font.desc"
in order to this to work we also need to remove this line:
-unicode -subcp cp1255
and for same unknown reason to move the path of video file to the end

example:

orginal:
"C:\psp\AVItoPMP_P4\apps\mencoder\mencoder.exe" "C:\divx.avi" -unicode -subcp cp1255 -vf unsharp=l3x3:1:c3x3:1,scale=480:272 -sub "C:\psp\s01e10.hebrew fixed.srt" -ovc xvid -xvidencopts bitrate=768:vhq=1:max_bframes=0:chroma_me:chroma_opt -nosound -o "C:\psp\AVItoPMP_P4\AVItoPMP_P4\divx_tmp.avi"

work with desc font:

"C:\psp\AVItoPMP_P4\apps\mencoder\mencoder.exe" -font "c:\psp\AVItoPMP_P4\font.desc" -vf unsharp=l3x3:1:c3x3:1,scale=480:272 -sub "C:\psp\s01e10.hebrew fixed.srt" -ovc xvid -xvidencopts bitrate=768:vhq=1:max_bframes=0:chroma_me:chroma_opt -nosound "C:\divx.avi" -o "C:\psp\AVItoPMP_P4\AVItoPMP_P4\divx_tmp.avi"

this support will be very useful i love avitopmp but the subtitle doest work well with regular font (need hebrew support)
i think desc font will also be useful with other language .
pietrotc
Posts: 3
Joined: Tue May 30, 2006 7:45 pm

Post by pietrotc »

You are genius!
Your program is magnificent, but I allow myself of give you of the suggestions :

- ability to configure the priority of mencoder.exe
- ability to cionfigure the program used to see the preview

thansk !

PS.: Sorry for my bad english
pietrotc
Posts: 3
Joined: Tue May 30, 2006 7:45 pm

Post by pietrotc »

Can you add support for PMP AVC Mod ?

Thanks!
DocMAX
Posts: 35
Joined: Tue Jun 13, 2006 10:04 am

Post by DocMAX »

which version is the best for intel core duo processors? P3 or P4 ???
Alcahest
Posts: 135
Joined: Fri Mar 25, 2005 2:08 am

Post by Alcahest »

P4 is guess, since i suppose core duo supports SSE2.
Later,

Alcahest
DocMAX
Posts: 35
Joined: Tue Jun 13, 2006 10:04 am

Post by DocMAX »

it reports SSE and SSE2 = 0 :-(
TestType
Posts: 23
Joined: Tue Dec 13, 2005 4:04 am
Location: Iceland

Post by TestType »

Then it is an enhanced version of P3, just like the Pentium M processors (in Centrino laptops). I've got a Dothan processor and have been using the P3 build.

Here's hoping uNn99 brings out an AVC version of his great program soon, keep up the good work :)
PSP: Japanese Firmware 1.0 :: 1gb SanDisk Memory Stick
Post Reply