PMP Mod v2.02 & PMP Mod AVC v1.02

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

Moderators: cheriff, TyRaNiD

Post Reply
miemt11
Posts: 89
Joined: Sun Nov 20, 2005 5:29 pm

Re: PMP Simple Converter 0.02 for memcoder and pmp_muxer

Post by miemt11 »

artik wrote:
miemt11 wrote:PMP Simple Converter 0.02 for memcoder and pmp_muxer
Thx miemt11 for the support.

Here is when i'm trying to encode a .mov :



See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ComponentModel.Win32Exception: Le fichier spécifié est introuvable
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at PMP_Simple.Form1.EncodePMPbutton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
PMP Simple
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/artik/Bureau/PMP_simple_0.01/PMP%20Simple.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

Thank for the feedbacks

Probably because I didnt include the .exe extension in the code.

Hope my next release can resolve
n4k
Posts: 7
Joined: Tue Jan 10, 2006 2:31 pm

My PMP icon and bg

Post by n4k »

I decided to make my own PMP icon and background image after I saw the other good ones hope you guys like it.
Image
Download Here

edit: Thanks for the comments Itaintrite I took your advice heres the updated one.
Last edited by n4k on Tue Jan 10, 2006 7:15 pm, edited 1 time in total.
User avatar
Itaintrite
Posts: 54
Joined: Fri Jul 15, 2005 12:32 pm

Post by Itaintrite »

Very nicely done n4k. But those oval outlines on the left don't look right. Leaving them out would be better.
imutau
Posts: 15
Joined: Thu Dec 15, 2005 4:37 am

Post by imutau »

artik wrote:
fAi_ wrote:WinMenc 0.5x beta with pmp_muxer
http://z12.zupload.com/file.php?filepath=1758

enjoy :)
It rocks, but how create a .pmp ??
it only make .avi lol
You need to load the profile by clicking the "Load Profile" button and choosing the "PMP mod 1.0.ini" file and it should have all the settings you need.

Also if you want to edit a profile just open the profile folder and modify the .ini file of your choice. It's alot more straight foward then creating or editing a .bat file. Then just save the .ini to the name of your choosing.

This is by far the easiest of the encoders I've seen so far to make .pmp files and it still has a lot of features like batch mode, encoding hardsubs and changing the audio and video sttings.

It's clean and well laid out.

It's funny I have had the opposite problem. I can't use it to to encode DVD's to .avi's lol.

But it only will take time then I'll figure it out eventually.
miemt11
Posts: 89
Joined: Sun Nov 20, 2005 5:29 pm

PMP Simple Converter 0.03 for memcoder and pmp_muxer

Post by miemt11 »

PMP Simple Converter 0.03 for memcoder and pmp_muxer
----------------------------------------------------
_______________
What can it do?
_______________


Convert any video (rmvb, rm, avi, mpg, wmv, asf) to PSP PMP format



===================================================================================

Download here
http://rapidshare.de/files/10765833/PMP ... 3.rar.html

or

http://s11.yousendit.com/d.aspx?id=3VNJ ... ARYLOZ5XEM


Change from version 0.02

1: should fix the pmp_muxer.exe error (I hope)
2: Add video scaler option (from 0-fast bilinear to 9-lanczos and 10-natural bicubic spline)
3: A default button to reset everything to the initial status
4: minor fix .....

Change from version 0.01

1: Fix the pmp_muxer.exe (if pmp_muxer.exe is not available, encoding will not continue
)

2: add 160x120, 368X208
and 400x192 resolution
3: Add high quality encoding option
4: minor fix .....


Component Requirement:

1: Get all the memcoder component from here
http://www.mplayerhq.hu/homepage/design7/dload.html
and intall all any directory you like. e.g. C:\Memcoder

for real media and windows media video format you need the codec from here
http://www1.mplayerhq.hu/homepage/design7/codecs.html


2: Put pmp_muxer.exe to the intall directory e.g. C:\Memcoder

3: Now extract my PMP Simple to the intall directory e.g. C:\Memcoder

4: .Net Framework Runtime 2.00 from here
http://download.microsoft.com/download/ ... tnetfx.exe


Develop by miemt11 Date 11 Jan 2006
mraeburn
Posts: 5
Joined: Fri Jan 06, 2006 11:50 pm

Post by mraeburn »

Hi all,

I ran some more tests last night with regards to the crashes that I have been experiencing. I tried the original PMP player(rather than mallocs version) and the PSP screen freeze and shut off still happens. I tried running a couple of movies that I had encoded with 3GP and all crashed. Then ran a TV ep which also crashed, however managerd to run the full TV show (but diff ep.) without crashing. To test that it wasn't the 3gp converter I tried using the Videotara (?) converter made by the PSP Video 9 people (fyi it takes about 3 1/2 hours to encode a movie with this!). tried the movie this morning and freezes in the same places. The main thing to note here is that I have tried files from 200m - 950meg and all by the one ep of the show, and one movie that I ran through at the weekend (and am currently running through now to see if it still works) have crashed. Can someone please confirm if they have been able to run their movies in full without crashing and if so what method of encoding did you use.

Finally what method of encoding have you used to get you DVD's to avi's. Presumably you have converted the VOB's to XVID's, anyone think this may make a difference.

Would be really grateful for you help, as I love the product but just cant get it to work!
dbl
Posts: 13
Joined: Thu Jan 05, 2006 5:04 am

Re: Mencoder Optimized Setting

Post by dbl »

saltydog4791 wrote: I would love to see your batch file. I am sure it's better than my kludgy mess.
salty
Ok, here it is. You just need to tweak the top section to your needs and you're away.
External programs required are mencoder, mp3gain and pmp_muxer.

It takes between 1 and 9 arguments, each argument being a source video file. (9 is a windows limitation)

The easiest way to use it is dragging video files on top of the batch file in windows explorer.

Feel free to expand on this, it could be a lot more advanced. My own next version will probably go back to using besweet for the audio to get some dynamic range compression included. Even with normalisation many dvd-sources are just too quiet for listening to in noisy environments.

Code: Select all

@echo off 
rem PMP creator script by dbl v0.1
rem &#40;supports up to 9 files at a time&#41;
rem To use, simply drag source video files onto this batch file.

&#58;&#58; --user configurable section starts--

&#58;&#58; audio
&#58;&#58;set desired bit rate
SET brate=128

&#58;&#58;video
&#58;&#58;set desired bit rate
SET vrate=768

&#58;&#58;aspect ratio
&#58;&#58;set desired aspect ration &#40;square or wide&#41;
SET aratio=wide

&#58;&#58;command-lines
&#58;&#58;full paths to mencoder, mp3gain, and pmp_muxer
set me="C&#58;\programs\mencoder.exe"
set mg="C&#58;\programs\mp3gain.exe"
set pm="C&#58;\programs\pmp_muxer.exe"

&#58;&#58; --user configurable section ends--


if %aratio% == square SET width=360
if %aratio% == wide SET width=480

&#58;getfile
if "%1"=="" goto end
%me% %1 -sws 9 -vf harddup,scale=%width%&#58;272 -ovc xvid -xvidencopts pass=1&#58;vhq=4&#58;turbo&#58;max_bframes=0 -af resample=44100&#58;0&#58;2 -oac mp3lame -lameopts cbr&#58;br=%brate% -of rawaudio -o %~dp1%~n1_PMP.mp3
if NOT %ERRORLEVEL% == 0 goto err

%me% %1 -sws 9 -vf harddup,scale=%width%&#58;272 -ovc xvid -xvidencopts pass=2&#58;vhq=4&#58;bitrate=%vrate%&#58;max_bframes=0 -nosound -o %~dp1%~n1_PMP.avi
if NOT %ERRORLEVEL% == 0 goto err

%mg% /c /r /s s %~dp1%~n1_PMP.mp3
if NOT %ERRORLEVEL% == 0 goto err

%pm% %~dp1%~n1_PMP.avi %~dp1%~n1_PMP.mp3 %~dp1%~n1.pmp
del /q *_PMP.*

shift
goto getfile
&#58;err
echo Something went wrong during encoding of %1
echo press ctrl+C to quit or any key to continue
pause
shift
goto getfile
&#58;end
echo All done
pause
Rajjjaa
Posts: 5
Joined: Tue Jan 10, 2006 7:28 pm

Post by Rajjjaa »

Hi All,

First up, congratulations on making an AWESOME xvid/divx app and modifications - these pmp files look just like UMD videos!

Again, excellent work on the encoding programs/batch files! I just have a small query for us Dual-core users out there, when I use the encoders I notice that it's only using one of my cpus, is it possible to get dual threaded versions of the various encoders?

cheers!
artik
Posts: 37
Joined: Thu Dec 01, 2005 2:04 am

Re: PMP Simple Converter 0.03 for memcoder and pmp_muxer

Post by artik »

miemt11 wrote:PMP Simple Converter 0.03 for memcoder and pmp_muxer
----------------------------------------------------
_______________
What can it do?
_______________


Convert any video (rmvb, rm, avi, mpg, wmv, asf) to PSP PMP format



===================================================================================

Download here
http://rapidshare.de/files/10765833/PMP ... 3.rar.html

or

http://s11.yousendit.com/d.aspx?id=3VNJ ... ARYLOZ5XEM


Change from version 0.02

1: should fix the pmp_muxer.exe error (I hope)
2: Add video scaler option (from 0-fast bilinear to 9-lanczos and 10-natural bicubic spline)
3: A default button to reset everything to the initial status
4: minor fix .....

Change from version 0.01

1: Fix the pmp_muxer.exe (if pmp_muxer.exe is not available, encoding will not continue
)

2: add 160x120, 368X208
and 400x192 resolution
3: Add high quality encoding option
4: minor fix .....


Component Requirement:

1: Get all the memcoder component from here
http://www.mplayerhq.hu/homepage/design7/dload.html
and intall all any directory you like. e.g. C:\Memcoder

for real media and windows media video format you need the codec from here
http://www1.mplayerhq.hu/homepage/design7/codecs.html


2: Put pmp_muxer.exe to the intall directory e.g. C:\Memcoder

3: Now extract my PMP Simple to the intall directory e.g. C:\Memcoder

4: .Net Framework Runtime 2.00 from here
http://download.microsoft.com/download/ ... tnetfx.exe


Develop by miemt11 Date 11 Jan 2006
AMAZING miemt11 !!
it encoded perfectly my video. BUT I still get an error at the end (but my video as been created, and it work !!:)

here is what i get :
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ComponentModel.Win32Exception: Le fichier spécifié est introuvable
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at PMP_Simple.Form1.EncodePMPbutton_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
PMP Simple
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/artik/Bureau/winme/PMP%20Simple.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

another thing .... could you includ an auto aspect ratio resize calculator (lol) ? like made PSPMPVerter.0.2.exe ? (i prefer to use pmp simple converter, but this option in PSPMPVerter.0.2 is fantastic.)


Many thx again :)
Phuncz
Posts: 16
Joined: Fri Jan 06, 2006 9:50 pm

Re: PMP Simple Converter 0.03 for memcoder and pmp_muxer

Post by Phuncz »

miemt11 wrote:PMP Simple Converter 0.03 for memcoder and pmp_muxer
Yeah lookin' good !
Rajjjaa
Posts: 5
Joined: Tue Jan 10, 2006 7:28 pm

Post by Rajjjaa »

Nevermind my dual-core question, if you add the following to that batchfile that was kindly posted above it will use both cores and significantly improve performance:

:threads=2

This is added into the string that starts "-ovc"
fAi_
Posts: 11
Joined: Thu Jan 05, 2006 10:45 am

Post by fAi_ »

I have just found links to some more HD trailers,great stuff for you guys
ftp://dvdcenter.hu/HDTV/
So Solid Jedi
Posts: 8
Joined: Thu Jan 05, 2006 11:57 am

Post by So Solid Jedi »

Cause 1900 is some serious bitrate!
i've told this at the time of the demo, i was pushing 1800-2000 kbps with no problems
in some recent tests i was getting stuttering only with scenes with a much higher bitrate



sp2 is encoded using this simple avisynth script:

directshowsource("Spider-Man 2 - Trailer.avi")
lanczosresize(480,272)


the original avi is 608x336 and is not perfect (little blocking present in the pmp, was also present in the source)
the avi gets decoded via ffdshow, with no postprocessing (iirc)

all is encoded with vdub, latest xvid, default options (so quant=4) but no bframes


maybe many of you are using clips that gets decoded with divx with film effect enabled (this waste compressibility of the movie)
sorry if this is obvious johny but when you say the avi gets decoded via ffdshow. with no postprocessing (iirc) what is ffdshow? is it a setting in VDub? I'm still a novice when it comes to VDub, sorry.

Also what codecs should i have installed for VDub....the latest XVid Codec? ...which is.....? Any answers would be most helpful.

Up till now i have been too lazy and was using 3GP convertor, i found the Videon one to be a bit on the slow side.
So Solid Jedi
Posts: 8
Joined: Thu Jan 05, 2006 11:57 am

Post by So Solid Jedi »

ahh, i figured it out now....just downloaded the latest Xvid Codec :P

johny did you use 1 or 2 pass for the SP2 Trailer?
dbl
Posts: 13
Joined: Thu Jan 05, 2006 5:04 am

Post by dbl »

Rajjjaa wrote:Nevermind my dual-core question, if you add the following to that batchfile that was kindly posted above it will use both cores and significantly improve performance:

:threads=2

This is added into the string that starts "-ovc"
Rajjjaa, can you clarify where you are putting this option? I can't get it to work. It certainly doesn't appear to be an -ovc option??

Thanks!
jonny
Posts: 351
Joined: Thu Sep 22, 2005 5:46 pm
Contact:

Post by jonny »

So Solid Jedi: the answer is on the message you quoted :) (fixed quantizer encode)

n4k: thanks!

Eingang: not had the time to see what happen :( (a bit filled with many reports, i'm trying to taking care of every report, a bit of patience is needed :)
fAi_
Posts: 11
Joined: Thu Jan 05, 2006 10:45 am

Post by fAi_ »

I Robot Trailer
Original Source : 1080i
Profile @ Level : Home theatre PAL
Encoding type : single pass
Target bitrate : 1500kbps
Lame 44100 Hz. 192kbps CBR,Stereo

download: http://rapidshare.de/files/10777417/I_R ... _.pmp.html
screenshot
Image
csuper
Posts: 103
Joined: Tue Jan 03, 2006 6:19 pm

Post by csuper »

jonny wrote: a bit filled with many reports, i'm trying to taking care of every report, a bit of patience is needed :)
Yep :) ! I agree & learn patience ! ;)

Csuper.
------------------------------------------
Another happy day with my Full Res PSP videos...
sti3
Posts: 9
Joined: Sat Jul 09, 2005 5:16 am

Post by sti3 »

i guess i'm more of a noob than i thuoght, but i don't get why everyone's using the memcoder stuff. Is it better than virtualdub? If virtualdub/pmpmux are working for me should i just ignore? The videora tool has worked for me so far as well, though the bitrate restrictions are a bit annoying.
Mr.Modem
Posts: 28
Joined: Wed Sep 21, 2005 4:43 am

Post by Mr.Modem »

I think people (me too btw) use mencoder cause it's a lot easier to automate the conversion process and it's therefor faster than VirtualDub. But maybe that's just me :P
So Solid Jedi
Posts: 8
Joined: Thu Jan 05, 2006 11:57 am

Post by So Solid Jedi »

jonny wrote:So Solid Jedi: the answer is on the message you quoted :) (fixed quantizer encode)

n4k: thanks!

Eingang: not had the time to see what happen :( (a bit filled with many reports, i'm trying to taking care of every report, a bit of patience is needed :)
Ok thanks, i ripped my DVD Vob files to a single Vob files using DVD Decrypter, i then converted my dvd vob file to avi using VDub and the settings you posted, i turned off audio stream processing. Then once that had completed i opened up Be Light 0.21 and chose the original Vob file to convert to MP3.

Then once that had done, i opened both the converted mp3 file and avi file in the PMP Muxer. It all went well, but then once i played the PMP file back on the PSP, the picture was great but the audio was out of sync....why could this be?

Any help would be appreciated.

Edit: If you have the time to encode you video files it certainly pays off, the size of the files are relatively low and i was amazed at the quality, i never knew it would be that much of a difference. The video i'm having problems with though is the SpiderMan DVD i converted using the method's above.
Could it be the Audio Stream on the DVD that's the problem? There are more than one ie. 5.1 and i think there was 2 different commentary streams.
jonny
Posts: 351
Joined: Thu Sep 22, 2005 5:46 pm
Contact:

Post by jonny »

sometime there is a delay between audio and video if you use vob files.
you should take care of this.
usually i demux audio with http://neuron2.net/dgmpgdec/dgmpgdec.html
this app will also tell you how much is the delay
(after you can correct it with belight)
or maybe there is a bug of one of the programs you have used in the conversion chain

doom9.org is the place to learn how things can be done and what are the best tools for this kind of job (this is imho :)
So Solid Jedi
Posts: 8
Joined: Thu Jan 05, 2006 11:57 am

Post by So Solid Jedi »

Ok, thanks for your help johny, i think i have found where the problem lies...i tried the Vob file in 3GP convertor and it read like 1700 MB's, i think the problem was when i ripped the vob file using DVD Decryptor. I may have not picked the right audio setting.
Rajjjaa
Posts: 5
Joined: Tue Jan 10, 2006 7:28 pm

Post by Rajjjaa »

dbl wrote:
Rajjjaa wrote:Nevermind my dual-core question, if you add the following to that batchfile that was kindly posted above it will use both cores and significantly improve performance:

:threads=2

This is added into the string that starts "-ovc"
Rajjjaa, can you clarify where you are putting this option? I can't get it to work. It certainly doesn't appear to be an -ovc option??

Thanks!
Sorry m8 I've not been home yet to try, just some info i found at the mencoder site. If I'm right, replacing the lines that begin like "%me% %1 -sws 9" with:

%me% %1 -sws 9 -vf harddup,scale=%width%:272 -ovc xvid -xvidencopts pass=1:vhq=4:turbo:max_bframes=0:threads=2 -af resample=44100:0:2 -oac mp3lame -lameopts cbr:br=%brate% -of rawaudio -o %~dp1%~n1_PMP.mp3
if NOT %ERRORLEVEL% == 0 goto err

%me% %1 -sws 9 -vf harddup,scale=%width%:272 -ovc xvid -xvidencopts pass=2:vhq=4:bitrate=%vrate%:max_bframes=0:threads=2 -nosound -o %~dp1%~n1_PMP.avi
if NOT %ERRORLEVEL% == 0 goto err



Hope this makes sense? Msg back if it works or not - cheers
Dnim
Posts: 12
Joined: Fri Jan 06, 2006 6:29 am

"invalid dwTotalFrames"

Post by Dnim »

"invalid dwTotalFrames" gets triggered when you have...
EDIT: absolute indexing is used?

This may happen when you use other than the usual encoders (mencoder/VDub)

The solution:
(how to fix AVI that gives "invalid dwTotalFrames" error when muixing)

Open your ready for muxing AVI in VirtualDub,
select Audio - No Audio (you should have your mp3 already done)
select Video - DirectStream Copy
Save as AVI - some new filename

now you should be able to mux the new file without problems
:)
Last edited by Dnim on Wed Jan 11, 2006 7:02 am, edited 2 times in total.
LVX
jonny
Posts: 351
Joined: Thu Sep 22, 2005 5:46 pm
Contact:

Post by jonny »

with the next version of the muxer, i should get rid of many problems (both audio and video)

Dnim: i've identified some problems and i'm successfully parsing your sample now, ix## is not a real problem, the real problem is the "00db" and the fact that the index point to absolute positions instead positions relative to "movi" (like it should), an interesting lecture is here: http://www.virtualdub.org/blog/pivot/en ... id=25#body
dbl
Posts: 13
Joined: Thu Jan 05, 2006 5:04 am

Post by dbl »

Rajjjaa wrote: Sorry m8 I've not been home yet to try, just some info i found at the mencoder site. If I'm right, replacing the lines that begin like "%me% %1 -sws 9" with:

%me% %1 -sws 9 -vf harddup,scale=%width%:272 -ovc xvid -xvidencopts pass=1:vhq=4:turbo:max_bframes=0:threads=2 -af resample=44100:0:2 -oac mp3lame -lameopts cbr:br=%brate% -of rawaudio -o %~dp1%~n1_PMP.mp3
if NOT %ERRORLEVEL% == 0 goto err

%me% %1 -sws 9 -vf harddup,scale=%width%:272 -ovc xvid -xvidencopts pass=2:vhq=4:bitrate=%vrate%:max_bframes=0:threads=2 -nosound -o %~dp1%~n1_PMP.avi
if NOT %ERRORLEVEL% == 0 goto err

Hope this makes sense? Msg back if it works or not - cheers
Unfortunatley I tried this earlier and it didn't work.

It turns out the threads option only works if x264 or libavc is used as the codec, it doesn't work with xvid.
However, I see no reason not to move to using libavc instead of xvid, it supports mpeg4, and by all accounts is the faster encoder (even without multi-threading enabled). I might look into this tomorrow.
Dnim
Posts: 12
Joined: Fri Jan 06, 2006 6:29 am

Post by Dnim »

Jonny, I did try simple flag change (from 00db to 00dc) and it did not work, when I did direct stream copy the VD simply set the correct flag for the first video chunk, so I assumed the problem was related to the extra data chunks that preceed the streams. This type of indexing myabe related to the extra data chunks?
in any case using the VD with direct stream compy takes care of the data chunks and re-indexes? the video chunks so the muxer works...
anyway, glad to hear the next muxer will work directly with those files :)
thanx
jonny wrote:with the next version of the muxer, i should get rid of many problems (both audio and video)

Dnim: i've identified some problems and i'm successfully parsing your sample now, ix## is not a real problem, the real problem is the "00db" and the fact that the index point to absolute positions instead positions relative to "movi" (like it should), an interesting lecture is here: http://www.virtualdub.org/blog/pivot/en ... id=25#body

Code: Select all

Absolute vs. relative index&#58; The 'idx1' chunk is supposed to point to data chunks using relative offsets within the LIST 'movi' chunk; however, some AVI files have absolute file offsets here instead. VirtualDub's parser, like that of many players, will detect and accept either. Actually, VirtualDub used to write absolute file offsets too, but I fixed that a long time ago. 
isn't this issue only related to non-AVI2? I think I had the same problem if I used AVI2 indexing...
(ie wasn't idx1 only present in avi - type1?)

anyway I'll read up on this more, and make some more testing with other encoders... :)

update:

Code: Select all

OpenDML AVI M-JPEG File Format Subcommittee devised a semi-backwards-compatible way to extend this limit, by appending additional structure to a standard AVI file. The result is that legacy applications still can't read beyond 2GB, but the rest of the data is appended after the standard AVI and pointed to by a new type of two-level index. VirtualDub calls this the AVI2 format; by default it writes standard AVI files until it hits 2GB, at which point it switches to the new format.
ok... some things clear up
the "data chunks" that were marked as unidentified were actually the AVI2 Indexing, and the idx1 is there as legacy support.

Jonny, I did test another encoder and even though the first chunk was marked correctly this time, apperantly the indexing was absolute (with AVI2+legacy and AVI1 encoding), just as with the other encoder. (so it's probably not so isolated use)
LVX
jonny
Posts: 351
Joined: Thu Sep 22, 2005 5:46 pm
Contact:

Post by jonny »

Absolute vs. relative index: The 'idx1' chunk is supposed to point to data chunks using relative offsets within the LIST 'movi' chunk; however, some AVI files have absolute file offsets here instead. VirtualDub's parser, like that of many players, will detect and accept either. Actually, VirtualDub used to write absolute file offsets too, but I fixed that a long time ago.
that's the reason why changing from 00db to 00dc still not work with the current code. (a read goes out of the file due to incorrect pointers)
it's a bit boring to support those "bugged features"
vdub rewrite everything and the pointers are correctly relative to movi, so everything is fine after vdubbing

in the new code i'm no more using pointers in the indexes, so the problem is gone.
i'm also adding support for another type of indexes, "indx" (this should not be strictly necessary for files < 1-2GB, but some muxers - for example avimux - require this in order to parse the file correctly)
Rajjjaa
Posts: 5
Joined: Tue Jan 10, 2006 7:28 pm

Post by Rajjjaa »

Unfortunatley I tried this earlier and it didn't work.

It turns out the threads option only works if x264 or libavc is used as the codec, it doesn't work with xvid.
However, I see no reason not to move to using libavc instead of xvid, it supports mpeg4, and by all accounts is the faster encoder (even without multi-threading enabled). I might look into this tomorrow.
Ahhh nuts, just got back now - not to worry, good luck with x264/libavc test!
Post Reply