avi to asf format....

Discuss about generic usage of MediaCoder.

Moderator: HuggiL

Post Reply
guest
Guest
Posts: 971
Joined: Tue May 16, 2006 3:33 pm

avi to asf format....

Post by guest » Thu Mar 08, 2007 4:09 am

Hi!

First, can any of the moderators help me activate the account i registered a few days ago? My registered username is whazzup.


2nd, i recently bought a china-brand mp4 player, beautiful 3inch screen, but could only play .asf videos. A software is included to convert the video files into the readable .asf format.

There were 2 problems w/ the software. It couldnt convert rmvb files directly. Thankfully, google led me to Mediacoder, and although i had to do the conversion twice (rmvb -> avi, avi -> asf), it's still a pretty easy procedure.

However, the bigger problem was that the program could only convert 1 file at a time. No option to set up a list of files to encode and let it run its course while i do other things.

That's where this thread comes in:
http://forum.videohelp.com/viewtopic.php?t=322458


I know asking for an extension is really frowned upon. But I was hoping that at least those who are good at coding n stuffs can help me take a look and see whether it's possible to use Mediacoder to encode straight to .asf format.

So far, only SUPER V2007 and Arcsoft Mediaconverter 2 were able to produce viewable files, but the former has major artifacts, and Arcsoft had great video but stuttering audio.

Those tat did not work:
ImTOO MPEG Encoder 3.1.7
WinAVI Video Converter 7.7
Windows Media Encoder
Canopus Procoder 2.0
YASA Video Converter 3.2
BlazeVideoMagic 2.0
RiverPast Video Cleaner Pro
MediaCoder


The software provided w/ the player:
http://www.mympxplayer.org/sunplus-pmp- ... df359.html



Using MEDIAINFO, i scanned through a video converted using the Sunplus encoder, and tis was wat i came up with:

General #0
Complete name : G:\HC03.asf
Format : Windows Media
File size : 147 MiB
PlayTime : 22mn 39s
Bit rate : 908 Kbps

Video #0
Codec : DivX 4
Codec/Family : MPEG-4
Codec/Info : Project Mayo DivX 4
Bit rate : 511 Kbps
Width : 352 pixels
Height : 240 pixels
Aspect ratio : 1.467

Audio #0
Codec : ADPCM
Codec/Family : ADPCM
Codec/Info : Intel ADPCM
Bit rate : 384 Kbps
Channel(s) : 2 channels
Sampling rate : 48 KHz


I also tried Mediacoder to replicate this format, but i realised their options of 'MPEG4/MS-MPEG4-V2' is different from the DIVX4 codec found in Sunplus, and i'm guessing tis is the reason why our attempts all failed.

So it seems to me, tat we nid to have a file tat's encoded using DIVX4 (and not the newer divx versions), adpcm audio, in an ASF container.



Due to the cheap prices of china-branded MP4 players, i believe more n more pple will be hunting for ways 2 encode to .asf, so if Mediacoder can do that, wow, that'll really be a godsend.

Hope someone can help shred light on how i can proceed further.

B!ink
Expert
Expert
Posts: 1275
Joined: Sun Nov 26, 2006 9:08 am

Post by B!ink » Thu Mar 08, 2007 11:16 am

This partially works.

Audio Tab
Source: Check Auto Select Box
Encoder: FFMPEG
Resample: Original
Downmix: Disable
Gain: 0 dB

FFMPEG Tab
Audio Format: IMA Adaptive PCM
Bitrate: 384

Video Tab
Source: Check Auto Select Box
Backend: Check Auto Select Box
Format: MPEG4
Container: ASF
Bitrate-Based at 512 kbps

Picture Tab
Resize: 352x240 (Box needs to be checked in order to input value)
Frame Rate: Uncheck box (Keeps original frame rate)
Crop: Disable

When all those settings are applied, go to File Menu --> Settings. Go to Video Encoders --> FFMPEG Folder --> Extra Options. In the box below, put -vtag DIVX. Click the apply button and close the window out. Encode video.

Everything goes fine other then the error message that pops up once it's done encoding, "Multiplexer failed to work" and "No file is outputted". I know deep down this should work. Here's a copy of what was being displayed in the console window right after the error message appeared. The ones marked in bold, are suspicious.
MediaCoder Console Window wrote:Audio stream: 1411.200 kbit/s (176400 B/s) size: 48185856 bytes 273.162 secs
[mp3 @ 0091BC24]Could not find codec parameters (Audio: mp1, 32 kb/s)
pipe:: could not find codec parameters

frame= 6834 q=1.6 Lsize= 16999kB time=273.4 bitrate= 509.4kbits/s
video:16999kB audio:0kB global headers:0kB muxing overhead 0.000000%
File C:\DOCUME~1\Jeff\LOCALS~1\Temp\Cor_2048_hi.flv.raw added into container as
type 2.

# ".\tools\mp4box.exe" -add "C:\DOCUME~1\Jeff\LOCALS~1\Temp\Cor_2048_hi.flv.asf
" -fps 25.000000 -add "C:\DOCUME~1\Jeff\LOCALS~1\Temp\Cor_2048_hi.flv.raw" "C:\D
ocuments and Settings\Jeff\Desktop\Cor_2048_hi.mp4"


Error importing C:\DOCUME~1\Jeff\LOCALS~1\Temp\Cor_2048_hi.flv.asf: Feature Not
Supported
Not sure why MP4Box is being used when I didn't select that multiplexer. The version I'm using is MediaCoder 0.6.0 build 3438.

On a sidenote. Stanley can activate your account.

User avatar
Placio74
Advanced
Advanced
Posts: 455
Joined: Sun Sep 17, 2006 11:02 pm
Location: Poland
Contact:

Post by Placio74 » Thu Mar 08, 2007 7:50 pm

BlinkN wrote:Not sure why MP4Box is being used when I didn't select that multiplexer. The version I'm using is MediaCoder 0.6.0 build 3438.
I'm confirmed - it's in b.3438 (0.6.0-pre5), when select format MPEG4.

But in b.3386 (0.6.0-pre4a) - OK - MP4Box not used.

guest
Guest
Posts: 971
Joined: Tue May 16, 2006 3:33 pm

Post by guest » Fri Mar 09, 2007 2:35 am

I was able to complete the encoding of a clip using BlinkN's settings in b.3386 (0.6.0-pre4a), but not in pre5.

However, video playback on the mp4 player was garbled up, audio is there but stuttering. Guess just changing the tag wasn't enough.

Just a thought: What's so special about Sunplus/Arcsoft's encoders that they can produce playable video? Do they use older codecs or something?

B!ink
Expert
Expert
Posts: 1275
Joined: Sun Nov 26, 2006 9:08 am

Post by B!ink » Fri Mar 09, 2007 7:16 am

I was playing around with MediaCoder and wasn't able to get anything to work with the format you desire. You can do me a favor, give me the make and model number of the MP4 player so I can do some research.

guest
Guest
Posts: 971
Joined: Tue May 16, 2006 3:33 pm

Post by guest » Fri Mar 09, 2007 3:23 pm

problem is, my player doesn't seem to have a website, this is info from someone selling the same player I have:

http://sg.auctions.yahoo.com/sg/i:Lates ... rd:6116267


And as far as I noe, a lot of china-branded mp4 players that only play .asf files, they use the same Sunplus Transcoder software mentioned above.

stanley
Site Admin
Site Admin
Posts: 4135
Joined: Mon May 15, 2006 7:43 pm
Location: Sydney

Post by stanley » Fri Mar 09, 2007 8:45 pm

BlinkN wrote:Not sure why MP4Box is being used when I didn't select that multiplexer. The version I'm using is MediaCoder 0.6.0 build 3438.
Sorry for this problem. I was trying to add auto selecting muxer feature and leave a bug there. I'll fix it soon.
When things work together, things work.

guest
Guest
Posts: 971
Joined: Tue May 16, 2006 3:33 pm

Post by guest » Tue Mar 13, 2007 1:24 pm

is there a way to encode using older DIVX4 codec into a .asf container?

B!ink
Expert
Expert
Posts: 1275
Joined: Sun Nov 26, 2006 9:08 am

Post by B!ink » Tue Mar 13, 2007 4:22 pm

Try this as a test, but this time with a different backend and without sound.

Audio Tab
Untick Enable Audio Box

Video Tab
Source: Default (Tick Auto Select Box)
Backend: MEncoder (Untick Auto Select Box)
Format: MPEG4
Container: ASF

Bitrate-Based at 512 kbps

Muxer Tab
Disable

Picture Tab
Resize: 352x240
Frame Rate: 24 (Film), 25 (PAL), 30 (NTSC) or Untick Box
Crop: Disable
Aspect Ratio: Untick Box
Rotation: Untick Box

Go to File Menu --> Settings. Video Encoders --> Extra MEncoder Options. Put in the value -ffourcc DIVX in the box below. Click apply button and encode video.

guest
Guest
Posts: 971
Joined: Tue May 16, 2006 3:33 pm

Post by guest » Sun Mar 18, 2007 12:24 am

Hi BlinkN, i've tried your settings, the resultant file still had loads of colourful artifacts, so no go.

But I've had success with Arcsoft MediaConverter 2:

http://forum.videohelp.com/viewtopic.ph ... 63#1675163

so thanks for the help rendered thus far!

Post Reply