Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: DivX5 encoding for PDA/PocketMVP (Read 4829 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

DivX5 encoding for PDA/PocketMVP

I have been trying, but no success.

I have a test file, obtained from a website, a movie trailer, that uses DivX 5 and Vorbis as sound. It works perfectly, so it must be possible.

However, when I try to create the same using the latest VirtualDubMod, and DivX 5.1, I can see the image if I use an AVI container. When I create an OGM container, without the audio, I get a screen with garbled green squares. If the OGM container also has the sound stream, then PocketMVP simply crashes.

Now, I have deactivated all the Pro functions, no B frames, no Psychovisual, nothing.
I am doing 2 or 3 passes for my tests, aiming for a bitrate of 150. The resolution is 132 x 320. I have rotated the image, to make better use of the screen of the PDA, without wasting power on rotating during playback, and I have also applied a light smoothing filter, to help in the compression.

Any ideas? Any tool that could give me more detailed information on the settings that were used in the file I have that works? Anyone has tried something similar?

I have heard XviD would also be a possible choice, but I have been even less successful with it than with DivX5.

Edit: I wasn't sure in which section to put this, since the problem has to do with container formats, Mpeg4 encoding, and who knows what else...

DivX5 encoding for PDA/PocketMVP

Reply #1
PocketMVP can do matroska container also. Open the file that works in VdubMod and save as MKV for testing, to see if your version does that too. Once you have that, the matroska shell extension can tell you everything about the file that works, including resolution, codec, etc. ......

DivX5 encoding for PDA/PocketMVP

Reply #2
Well, sorry to disappoint you, but PocketMVP .8.100203, currently the last available version for PocketPC that I can find, does not work with the .mkv file I just created. Says "File is in an unknown format".

Needless to say, the .mkv file works perfectly in my PC, and I have seen that Matroska seems a lot more stable than what it was (for me at least) when I last tested it a couple of months ago (I think, I am not sure when I tested it). So I am happy to see that things are improving, given that the .ogm container development is quite unexisting...

In any case, my problem was solved, I created my .ogm file using OggMux, that is, the DirectShow multiplexer filter, and it plays perfectly fine in my PDA now.

So it seems there is a problem in PocketMVP when opening .ogm files created by VirtualDubMod, or VirtualDubMod creates not fully correct .ogm files...

I also tried with the command line OGMTools by Cyrius, and the result was the same as with VirtualDubMod. Not surprising, given that he also did that part of VirtualDubMod.

Now, I am not sure where should I head to report this, hoping that it can be solved...
My guess is that the problem lies in PocketMVP, given that the .ogm files created by VirtualDubMod work perfectly with every player on PC that I have tried...

Any ideas? Anybody wants some test files to play with?

DivX5 encoding for PDA/PocketMVP

Reply #3
Chris is right but the version supporting it has not been released. Marc had not  included it with the last release as we just spoke a few minutes ago.

As a matter of fact he added that to fully support Matroska he would have to make some API changes and was looking for some input from the Matroska DEVS on this front.

As a FYI...there are some very exciting things coming for PocketMVP that will prove that you can get high bitrate quailty in a small handheld device without sacraficing battery life or quailty.

More info we can tell everyone...
Dan "BetaBoy" Marlin
Founder CoreCodec
The Future of Audio/Video Development and Technology

DivX5 encoding for PDA/PocketMVP

Reply #4
Well, I am already happy, so if it gets even better, then great!

Good to hear that there are new things coming, keep up the good work!


DivX5 encoding for PDA/PocketMVP

Reply #6
Ok, here it goes:

Output of OGMInfo for the file testOggMux.ogm:
(this is the file that works perfectly, video and audio)

Code: [Select]
Process finished!


2 Streams : 1 Vorbis, 0 Audio, 1 Video, 0 Text, 0 Old, 0 Unknown, 0 Invalid

=== STREAM     0 (VIDEO   1) ===
Stream Header :
 Type : video
 SubType : DX50
 Size : 56
 Time Unit : 400000 (in reference time)
 Samples per Unit : 1
 Sample Rate : 25.000
 Default Len : 1 (in media unit)
 Buffer Size : 9830
 Bits per Sample : 24
 Width : 132
 Height : 320
--=== COMMENTS ===--
Vendor     : [Xiph.Org libVorbis I 20020717]
--=== COMMENTS ===--
End Of Stream reached : yes
Number of Pages : 559 (0 skipped)
Number of Packets : 3137 announced / 3137 found (0 skipped), 3135 containing data (not header nor comments)
Number of Samples : 3135 announced / 3135 found
Samples per Packet : 1.0
Packets per Page : 5.6
Bytes : 25875 (headers) + 2350216 (bodies) = 2376091 (2.27MB)
Percentages : 1.089% for headers + 98.911% for data
Packet bytes : 2350216
Bytes per Page : 46 (header) + 4204 (body) = 4250
Bytes per Packet : 749
Duration : 00:02:05.400
Estimated BitRate : 149.9 kbps
Frames per Second : 25.000 fps

=== STREAM     1 (VORBIS   1) ===
Stream Header :
 Type :
 SubType :
 Size : 56
 Time Unit : 10000000 (in reference time)
 Samples per Unit : 22050
 Sample Rate : 22050.000
 Default Len : 1 (in media unit)
 Buffer Size : -1
 Bits per Sample : 1
 Number of Channels : 2
 BlockAlign : 0
 Average Bytes per Second : 3750 (30.0 kbps)
--=== COMMENTS ===--
Vendor     : [Xiph.Org libVorbis I 20020717]
Comment  1 : [LANGUAGE=English]
--=== COMMENTS ===--
End Of Stream reached : no
Number of Pages : 110 (0 skipped)
Number of Packets : 5364 announced / 5364 found (0 skipped), 5361 containing data (not header nor comments)
Number of Samples : 2744320 announced / 2744576 found
Samples per Packet : 512.0
Packets per Page : 48.8
Bytes : 8345 (headers) + 445991 (bodies) = 454336 (0.43MB)
Percentages : 1.837% for headers + 98.163% for data
Packet bytes : 445991
Bytes per Page : 75 (header) + 4054 (body) = 4130
Bytes per Packet : 83
Duration : 00:02:04.458
Estimated BitRate : 28.7 kbps


Total bytes : 34220 (page headers) + 2796207 (page bodies) = 2830427 (2.70MB)
Percentages : 1.209% for headers + 98.791% for data


Output of OGMInfo for the file testVDubMod.ogm:
(this file has been created by opening the previous file with VDubMod 1.5.4.1, and saving as .ogm, Direct Stream Copy. When opening the file with PocketMVP, it simply crashes out of the player. This file has video and audio. If you want, I can try only with the video, and then I should get the scrambled green squares.)

Code: [Select]
Process finished!


2 Streams : 1 Vorbis, 0 Audio, 1 Video, 0 Text, 0 Old, 0 Unknown, 0 Invalid

=== STREAM     0 (VIDEO   1) ===
Stream Header :
 Type : video
 SubType : DX50
 Size : 56
 Time Unit : 400000 (in reference time)
 Samples per Unit : 1
 Sample Rate : 25.000
 Default Len : 1 (in media unit)
 Buffer Size : 9830
 Bits per Sample : 24
 Width : 132
 Height : 320
End Of Stream reached : yes
Number of Pages : 558 (0 skipped)
Number of Packets : 3136 announced / 3136 found (0 skipped), 3135 containing data (not header nor comments)
Number of Samples : 3135 announced / 3135 found
Samples per Packet : 1.0
Packets per Page : 5.6
Bytes : 25847 (headers) + 2350171 (bodies) = 2376018 (2.27MB)
Percentages : 1.088% for headers + 98.912% for data
Packet bytes : 2350171
Bytes per Page : 46 (header) + 4211 (body) = 4258
Bytes per Packet : 749
Duration : 00:02:05.400
Estimated BitRate : 149.9 kbps
Frames per Second : 25.000 fps

=== STREAM     1 (VORBIS   1) ===
Stream Header :
 Type :
 SubType :
 Size : 56
 Time Unit : 10000000 (in reference time)
 Samples per Unit : 22050
 Sample Rate : 22050.000
 Default Len : 1 (in media unit)
 Buffer Size : -1
 Bits per Sample : 1
 Number of Channels : 2
 BlockAlign : 0
 Average Bytes per Second : 3750 (30.0 kbps)
--=== COMMENTS ===--
Vendor     : [Xiph.Org libVorbis I 20020717]
Comment  1 : [LANGUAGE=English[eng]]
--=== COMMENTS ===--
End Of Stream reached : yes
Number of Pages : 109 (0 skipped)
Number of Packets : 5364 announced / 5364 found (0 skipped), 5361 containing data (not header nor comments)
Number of Samples : 2744576 announced / 2744576 found
Samples per Packet : 512.0
Packets per Page : 49.2
Bytes : 8318 (headers) + 445996 (bodies) = 454314 (0.43MB)
Percentages : 1.831% for headers + 98.169% for data
Packet bytes : 445996
Bytes per Page : 76 (header) + 4091 (body) = 4168
Bytes per Packet : 83
Duration : 00:02:04.470
Estimated BitRate : 28.7 kbps


Total bytes : 34165 (page headers) + 2796167 (page bodies) = 2830332 (2.70MB)
Percentages : 1.207% for headers + 98.793% for data


Let me know if you need more.

DivX5 encoding for PDA/PocketMVP

Reply #7
Here is the answer from Cyrius  in direct from irc.corecodec.com

I could only see 2 differences between a file made with OggMux and a file made with VirtualDubMod (or OGMuxer).
1. OggMux always put a comment packet even if there are no comments. e.g. in your file the video stream has a comment packet that contains nothing (the vendor name is set by libogg when formatting the comments).
2. OggMux write each vorbis header packet (the 3 first packets in the stream) in its own Page. VirtualDubMod pack the 2 last headers in the same Page (as does XipH tools for Vorbis).
If 1. was the problem then even a video-only file would crash in the player, but adding a video comment when making the file in VirtualDubMod (Streams -> Video comments) would fix the crash.
If 2. was the problem then playing an Ogg vorbis file (e.g. with the commandline encoder provided on the official Vorbis page; but not using OggMux nor OggDS) in the player will make it crash too.
In any case the OGM specs (well, there are no real specs ;p) don't say that a comment packet is necessary, and the Ogg Vorbis specs doesn't say that each header (except maybe the first one, which is btw enforced by libogg) has to be in its own Page.
That's why your file will play fine under Windows using OggDS.

DivX5 encoding for PDA/PocketMVP

Reply #8
Well, it seems then that the main problem would be number 2. And that's not possible to work around. So I'll be using OggMux until:

a- PocketMVP is updated regarding OGM files, which should happen, because in any case, it's a bit distressing that opening a media file can simply crash your media player... An error message would be a better outcome.

b- PocketMVP is updated to support Matroska, and then I might be able to use VDubMod in pretty much the same way I was doing until now, but with a different container.

In any case, I have found an acceptable workaround, so the enjoyment has started, and I already have encoded a movie to a tiny 160 Mb, that has acceptable quality to be seen in the PDA screen. Sweet 

 
SimplePortal 1.0.0 RC1 © 2008-2021