Stock AVI Splitter (Directshow) questions - Windows Mobile Development and Hacking General

Can someone confirm for me that the stock AVI Splitter that windows mobile comes with is sub-standard? By sub-standard, I mean that it cannot split AVI files that contain XVID video and MP3 audio? (I'm assuming that special AVI splitters were written for normal windows for this same reason.)
The reason I ask is that I think I've managed to compile an XVID directshow filter. I can hook it up manually with viewgraph... using:
Code:
File Async source -> AVI splitter ->XVID codec -> HTC DDR (renderer)
\->MPEG-1 Layer 3 Decoder DMO -> Audio Renderer
It WILL play, just upside down (due to HTC renderer), and it stutters quite a bit. It will stutter if I have the video or audio portion disconnected... which makes me think that it's the AVI splitter.
Maybe I have to write an AVI splitter filter (or borrow code from GABEST)

MODS
Sorry, you can delete this thread. I posted it under the Windows software specific forum...

Related

mp4 plays but no audio

Now I've read a lot here and I've tried Quicktime 6, mpegable ds decoder and 3ivx directshow filters.
They all work more or less (i like 3ivx best), but NONE of them plays the audio.
However the camera application on the ppc can playback video and audio.
What the hell is this? And I dont like Motion JPEG avi cause it's too big.
Converting also seems to be no option: I tried Riverpast Video Cleaner and a heavily upgraded virtual dub mod, but they can't even read the video. Quicktime Pro 6 can at least import the video, but no audio again.
Any ideas?
If someone wants to do more research, here are two good sites concerning mp4 players:
http://www.audiocoding.com/wiki/index.php?page=Software+Audio+Players+for+Windows
http://www.rarewares.org/
I've now tried WinMPG Video Convert and the Philips Platform4 Player - only video, as always.
I suppose the audio codec used is not the mp4 AAC LC (low complexity) codec because that's the most common one which can be played back by any mp4 player.
btw, mp4UI shows me a video and a audio stream (like most othre applications), but I can only export the video file and there is no information on the audio codec used, seems to be unknow to any program.
I tried several recorded mp4 files, always the same, and they DO playback video+audio on the ppc.
I'm sticking with MJPEG Avi
That's about 100 kB/s so I can hardly record more than 5 min. But hey who needs to? At least it can be converted by quicktime uncompressed avi export in no time, and then encoded to whatever you want.
More annoying is the fact that I need to remember getting the file off the pocket pc pretty soon because otherwise I will run out of space. I'd prefer taking a series of snapshots and carrying them around with me.
Well copying the file via USB will take almost as long as the video duration is, and a storage card can't be used because it decreases the recording frame rate significantly.
Motion MJPEG also seems to catch more redundant frames (the same picture in two frames) than mp4, but it's still okay.
cant you just record to your device and then copy the recording to your sd card manualy ?
Yes I thought of that, it would approximately take the same time as the video duration is. If you really need to do another recording while on the go, you can do that to free your memory.
btw, I chose divx5 250 kbit CBR + mp3 in virtual dub, only took a few seconds to encode a minute and now I've got a file that can be played back equally well on both machines. I'm using beta player for pocketpc, and it plays fine in fullscreen using the ati imageon chipset. File size is comparable to choosing the mp4 format in the first place.
It works now
mp4 video+audio works with quicktime!! hooray!!
Quicktime always told me it couldn't find the software needed on the server.
But when I opened the mp4 file today, the automatic download of the audio codec succeded.
Even with disabled firewall qt couldn't download the software before. Strange.
And I can export it to uncompressed avi if I need to edit the file with other programs.

mp4 video play back on PC

Hi Folks,
I just took for the first time a video clip with my Magician today, and had the Camera settings to
Capture Mode: Video
Capture Format: MPEG-4
Capture Size: Large
it produced a nice video clip file with in the .mp4 format (lets not talk about the quality)
I copied this file over to my SD card, and from there to my PC to play here.
It played by default using Apple Quick Time (7.0.3), no probs.
I tried to open it with WMP10 on my PC, and only got the sound, not video.
I was assuming, that a video clip taken with a Microsoft product (Magician WM2003) would play by default using the Microsoft pendant on the PC (WMP10), and MS does not rely on a 3rd party software (QT).
Any ideas what I'm doing wrong, or if I'm just missing the right codec on my PC to play back the file ?
Thanks
torklemm said:
Hi Folks,
I just took for the first time a video clip with my Magician today, and had the Camera settings to
Capture Mode: Video
Capture Format: MPEG-4
Capture Size: Large
it produced a nice video clip file with in the .mp4 format (lets not talk about the quality)
I copied this file over to my SD card, and from there to my PC to play here.
It played by default using Apple Quick Time (7.0.3), no probs.
I tried to open it with WMP10 on my PC, and only got the sound, not video.
I was assuming, that a video clip taken with a Microsoft product (Magician WM2003) would play by default using the Microsoft pendant on the PC (WMP10), and MS does not rely on a 3rd party software (QT).
Any ideas what I'm doing wrong, or if I'm just missing the right codec on my PC to play back the file ?
Thanks
Click to expand...
Click to collapse
Correct me if i'm wrong but i do believe the camera program on modern HTC devices (like the Magician) is made by HTC itself and not by MS. So it's possible it uses different kind of codecs.
MS isn't allowed to ship a lot of codec with WMP. Only some basic and MS-made codecs. So you have to rely on third party apps/codecs to play the .mp4 files.
Hello Torklemm
You can use the VLC Player to Play almost any type of media including the mp4 , 3gp etc etc .
here is the link to download it - h**p://www.download.com/VLC-Media-Player/3000-2194_4-10267151.html
You can also install the Nero Digital MPEG 4 AVC h.264 dshow decoder , after i installed this , my wmp ver 10 was able to play the Mp4 video files.
Cheers.
Sean_Dillon said:
Hello Torklemm
You can use the VLC Player to Play almost any type of media including the mp4 , 3gp etc etc .
here is the link to download it - h**p://www.download.com/VLC-Media-Player/3000-2194_4-10267151.html
You can also install the Nero Digital MPEG 4 AVC h.264 dshow decoder , after i installed this , my wmp ver 10 was able to play the Mp4 video files.
Cheers.
Click to expand...
Click to collapse
very useful decoder!
but only motion decoding not audio track.
i see only motion without sound.
Hmmm , That is Strange Vigor_ , I thought the audio recorded in the video format of Magician was either mp3 , wma or wav . . . all 3 being suported by wmp. Will have to check this Thanx.
It's none of those. The audio is AMR Narrowband, whatever the blazes that is! I've been having the same problem converting it. AMR doesn't seem to be supported by much.
mp4 format
You should use a plugin or converter program. For plugin Ulead video suite v9.0 is the best solution.For convert purpose I offer IMTOO program.Another way is using avi format instead of mp4
Where do you get that Nero Digital dshow decoder? A Link would be nice.
Re: mp4 format
bucat said:
You should use a plugin or converter program. For plugin Ulead video suite v9.0 is the best solution.For convert purpose I offer IMTOO program.Another way is using avi format instead of mp4
Click to expand...
Click to collapse
The same with me. I use ImTOO 3GP Video Converter 2.1.55.1107b, good stuff.
Where do you get that Nero Digital dshow decoder?
The File Is Attached To The Post , Please Log-in To View and Download it.
How to do it for free, though it's a ton of work
Okay, I've successfully done it now. My biggest problem was that imTOO 3gpp costs money, and I just couldn't justify spending the money on it.
There's probably a few different ways to do this, but here's how I've done it:
1) Separate the Video stream from the audio stream
I used Microsoft Graphedit for this. It comes in a Microsoft SDK, but if you google it, you can find it.
When you open graphedit and select render the file, you'll get a message saying that part of the stream isn't recognised. That's the AMR audio. That's step 2, so ignore. Assuming you've got an xvid mpeg 4 codec on your machine already (and I suspect also a 3ivx codec), a graph will show up starting with your video file and ending with a video renderer. Click on the video renderer, delete it, and click on the xvid decoder and delete it. Then add a filter called file writer to the video stream coming out of the 3ivx media splitter.
Run that and you have an xvid mpeg-4 video stream with no audio.
2) Separate the amr audio stream
I used Miksoft 3gp decoder for this. For some reason I couldn't do video with this tool, so I just clicked the "convert audio only" option. It gave me a PCM .avi file.
3) Mix the two together
I have used two programs for this, both locatable through google and both freeware. Virtualdub and TMPGENC.
Virtualdub is handy if you have to rotate the video stream. I don't think you can use virtualdub to finalize the video because the .avi sound file kicks up an error for me. But the video I wanted to convert was filmed on my JAM with it held lengthwise (aka 320x240), so when the file is normally viewed, you see it 240x320 and have to tilt your head.
I prefer to use TMPGENC and end up with an MPEG-1 file. Here's why...
You input the xvid video file as the video source, the .avi pcm audio as the audio source, under advanced, select "Full screen (keep aspect ratio)" instead of the "full screen" that is presented there, and then let her run. You end up with a video in mpeg-1 that is formated to 352x240 (NTSC vcr resolution), but with black stripes above and below so that the image isn't stretched or distorted, like it would be if you just went with "full screen". You can then convert that into an avi file with whatever software you want.
It's a ton of work to do, but for me, it was a better solution than spending another $30US on something I'd use minimally. I also do a fair bit of video work, so I had all the other tools and codecs handy.
Good luck!
Hi
I use apples Quicktime - pro can also convert to AVI's.
BR
Daniel
The way I did it was to get the K-lite codec pack. Google it and don't download any versions from places that try to charge you for it, it's free. Also be aware of dodgy sites that may include spyware/malware with it. I've been stung a couple of times.
Then nearly any freeware converter will work. You can also play them in WMP.
Errrr...yes, that would seem to be a "faster" way of doing it...
screen capture
hmmm, need help...can't seem to capture images (using the screen capture button) when playing mp4 files on the vlc player...i've imported the image on adobe photoshop but it was distorted...help?
this is for info in relation to the original post
I too could not play my mp4 videos on my PC with sound and tried all the various players and plugins but this link from last year worked
http://forum.xda-developers.com/viewtopic.php?t=12308&highlight=mp4

Trinity video format

I've seen some information spreaded in the forums about video recording on Trinity, and had some troubles watching them on a desktop computers, so here is the results of my research, and the doubts i Still have:
Videos recorded on trinity with maximum quality CIF:
resolution:352x288
Framerate:15fps
container: MP4 (3GPP)
Video codec: MPEG4 (ASP)
Audio codec: AMR - NB (Narrowband)
To properly play videos on your desktop computer you need to install a directshow filter called MP4splitter.
-It is possible to convert video to AVI format (lossless) using mp4cam2avi, but it doesn't work with audio.
-The AMR format is not easy to edit or to transcode to other formats, and it's not possible to use as audio stream on a AVI container (not sure).
Questions
Is there a program to merge several mp4 together lossless (no re-encoding)?
Is it possible to set up another resolution to be used on the video (i.e. 640*480) as this is not a hardware limitation?
Is it possible to use another codec for the audio stream?
Is it possible to use another framerate?
- By editting registry I'm able to change framerate (HKLM\Software\HTC\Camera\Recparam)
Mediacoder
I use Mediacoder to convert many format of video (recorded on a dvd from TV...) on my htc : choose MP4 and use TCPMP to read it.
Video Conversion
Hi n0t,
Have a look at NCH Software - www.nch.com - and find a program called Prism Video Converter. It can be downloaded as a trial and expires after a while but long enough to try out. It works perfectly and is very simple to use. NCH has a wide selection of software, especially conversion from one format to another. Some programs are free but all are downloaded as trial versions.
Hope this helps
Adam
n0t said:
Questions
Is there a program to merge several mp4 together lossless (no re-encoding)?
Is it possible to set up another resolution to be used on the video (i.e. 640*480) as this is not a hardware limitation?
Is it possible to use another codec for the audio stream?
Is it possible to use another framerate?
- By editting registry I'm able to change framerate (HKLM\Software\HTC\Camera\Recparam)
Click to expand...
Click to collapse
Is there a program to merge several mp4 together lossless (no re-encoding)?
- MP4Box is a command line that does it, YAMB is a GUI that works fine with it (and it's free). It can split, join and extract streams from MP4 or 3GP container. This way it is possible to edit lossless the video streams.
-I want to be able to edit and apply some filters to the clips with virtualdub. To transcode the video stream to an avi container (lossless) I can use MP4Cam2Avi, Mediacoder, or Super. But I have to convert audio to PCM WAV to use it in virtualdub, as AMR can't be used in an AVI.
Stream Video
Is it possible to make a live video broadcast from trinity (not using videocall)?
This way with an internet connection, it would be possible to send a stream to a computer anywhere...

[Question] Coverting MKV files to playable format....

I have certain MKV files which can be played and ones which cannot be played on my SGS, after a little searching i found it can be due to certain codecs not being supported by the sgs natively.
does anyone know a decent quick converting windows application?
example the MKV file i have is 6 channel audio, which i believe is not supported. i need to convert the audio codec of this.
You need three separate applications to convert your DTS audio to AC3 format that SGS can read. Note that 1080p is not supported so i can't help you there.
The applications you need are:
1. MKV Extract GUI - to extract the dts audio
2. DTS2AC3 - To convert the DTS audio to AC3 audio
3. MKV Merge GUI - to merge the newly created AC3 audio with your mkv file
You can do a good search to find these apps and instruction on how to use
Hope this helps.
dipac said:
You need three separate applications to convert your DTS audio to AC3 format that SGS can read. Note that 1080p is not supported so i can't help you there.
The applications you need are:
1. MKV Extract GUI - to extract the dts audio
2. DTS2AC3 - To convert the DTS audio to AC3 audio
3. MKV Merge GUI - to merge the newly created AC3 audio with your mkv file
You can do a good search to find these apps and instruction on how to use
Hope this helps.
Click to expand...
Click to collapse
check 'popcorn mkv audio converter' - it does all by itself using the tools mentioned by dipac. No hazzle for us, it takes less than a minute to convert a video song without modifying the video quality.
Suggest me an app to do the same for mp4s please.
Dont know if it helps with 6 channel audio, but i could play all mkv files after upgrading to JM2 firmware. Some files didnt play on the old firmware, JF3.

[TIP] Converting video files with unsupported audio encodings

Hi all,
I came across this question on androidforums on how to convert video files with audio encodings which the Galaxy S doesn't (yet) support.
The answer: there is a Windows tool out there called VID2EVA (link to website), originally meant for transcoding Blu-ray and DVD rips for Netgear media streamers
This tool will also convert the audio in individual video files without touching the video (e.g. NO video transcoding) whenever possible, so they can be played back on the Galaxy S. (This is needed mainly to convert DTS and multichannel AAC encodings to AC3 encoding.)
The end result will be MKV format.
Original thread (credit where credit is due!): here
Link to latest stable version: here
Any comments are very welcome.

Categories

Resources