User User name Password  
   
Monday 29.9.2025 / 01:18
Search AfterDawn Forums:        In English   Suomeksi   På svenska
afterdawn.com > forums > archived forums > divx / xvid > how to extract/convert v_mpeg4/iso/avc (h264) to avi?
Show topics
 
Forums
Forums
how to extract/convert v_mpeg4/iso/avc (h264) to avi?
  Jump to:
 
Posted Message
trungn
Newbie
_
20. December 2005 @ 17:27 _ Link to this message    Send private message to this user   
I've tried searching the forums for an answer but couldn't find a solution to my problem.

I've got a matroska .mkv file with video (v_mpeg4/iso/avc), multiple audio tracks and subtitles. I am trying to convert the h264 video to divx/xvid. My only problem is trying to get access to the video stream to do the conversion. I am able to extract audio and subs from the .mkv file using mkvextract, but gives me this error when trying to extract the video stream:
Quote:
Warning: The extraction of video tracks is only supported for RealVideo (CodecID: V_REAL/RVxx) and AVI compatibility tracks (CodecID: V_MS/VFW/FOURCC). The track 1 will be skipped.
Opening the mkv file in VirtualDubMod gives me this error:
Quote:
Only handle [S_TEXT/] subs for the moment
Can anyone give me some pointers as to what I need to do?
Advertisement
_
__
celtic_d
AfterDawn Addict
_
20. December 2005 @ 18:59 _ Link to this message    Send private message to this user   
Your mkvextract I think is out of date since it now supports native AVC extraction. Once you extract though, you get a raw AVC stream. Can't see what use that would be. If you want to convert, I would just convert the mkv directly.

VirtualDubMod's (as the popup points out when you first run it) matroska support is out of date. It doesn't support VOBSub's or nativce AVC. There is also the possibility that your video is VFR.
trungn
Newbie
_
21. December 2005 @ 05:46 _ Link to this message    Send private message to this user   
Ok, I've got the latest mkvextract and managed to extract the video stream. Is there anyway to convert the raw avc to divx/xvid?
celtic_d
AfterDawn Addict
_
21. December 2005 @ 06:12 _ Link to this message    Send private message to this user   
There are some directshow filters that can handle raw avc streams. Can't see any advantage of converting a raw avc stream over an mkv though.
trungn
Newbie
_
21. December 2005 @ 06:19 _ Link to this message    Send private message to this user   
My problem is that my computer is not powerful enough to play the h264 mkv video without major stuttering. I don't have problems with Divx/Xvid so that's why I want to convert it. I'm currently trying to find avc2avi tool to put the avc in avi container so I am open it in Vdub.

EDIT: I've managed to find avc2avi and have now got an avi file of the h264 video stream. I've installed the X264VFW but when I open in vdub I get the following error message:
Quote:
Couldn't locate decompressor for format 'h264' (unknown)

VirtualDub requires a Video for Windows (VFW) compatible codec to decompress video. DirectShow codecs, such as those used by Windows Media Player, are not suitable
I can see x264 codec in compression settings...

What should I do?

This message has been edited since posting. Last time this message was edited on 21. December 2005 @ 08:16

celtic_d
AfterDawn Addict
_
21. December 2005 @ 16:51 _ Link to this message    Send private message to this user   
x264 is an encoder only. No decoder (decoder is in libavcodec). I'd still convert the mkv directly. You can frameserve with AVISynth to VDub.
trungn
Newbie
_
21. December 2005 @ 17:54 _ Link to this message    Send private message to this user   
Quote:
x264 is an encoder only. No decoder (decoder is in libavcodec). I'd still convert the mkv directly. You can frameserve with AVISynth to VDub.
How do I go about doing that?
Matador
Member
_
22. December 2005 @ 12:41 _ Link to this message    Send private message to this user   
Try to encode it with TMPGEnc Plus 2.5.It worked for me.I tryed this after VDM gave me the same error.But Im using ffdshow witch is using libavcodec as a decoder.
IF you want to open it with CCE without errors In TMPGEnc save it as project then use VFAPIConv to frameserve it to avi then load it to CCE for MPEG-2.

Intel D875PBZ - P4 w/HT 3.0GHz 800MHz FSB 512KB Cache - 2GB DDR PC3200 - 760GBs [1x500GB - 1x160GB -1 x60GB +x40GB] - GeForce FX 5700 Ultra 128MB - Sony Dru-510a

This message has been edited since posting. Last time this message was edited on 22. December 2005 @ 12:48

celtic_d
AfterDawn Addict
_
22. December 2005 @ 17:00 _ Link to this message    Send private message to this user   
VFAPI means converting to RGB24. With AVISynth you can keep it YV12, although I think CCE only properly handles YUY2 input anyway.
wierdling
Suspended due to non-functional email address
_
7. February 2006 @ 04:49 _ Link to this message    Send private message to this user   
After extracting the avc from mkv using mkvextract and subsequently coverting it to AVI using avc2avi, I've noticed that the framerate changes from 23.976fps (mkv) to 25.000fpx (avi). I've tried to change the framerate using VirtualDub and got a video that is out-of-sync (i.e. lagging) for the last 2 mins. How can I correct this?
celtic_d
AfterDawn Addict
_
7. February 2006 @ 06:46 _ Link to this message    Send private message to this user   
The default value for avc2avi is 25fps. So if you don't sepecify anything, that is what you get.

As for the sync, could be that the mkv was VFR (Variable FrameRate). When you change to CFR like that the video isn't supposed to sync with the audio.
wierdling
Suspended due to non-functional email address
_
7. February 2006 @ 23:16 _ Link to this message    Send private message to this user   
Manage to overcome the fps problem with the -f 23.976 command, but it seems now that the mkv is truly VFR. Anyway to convert it into an AVI container (preferably XviD as my PC cannot handle H264 quick enough) without the de-sync problem. Source audio is CBR so it should not pose a problem...Thanks!
celtic_d
AfterDawn Addict
_
8. February 2006 @ 01:27 _ Link to this message    Send private message to this user   
Have you tried using CoreAVC to decode? It is quicker than any other decoder.

If you just need XviD for the lower CPU usage, then I would suggest that you keep it as mkv. That way you can just reuse the original time codes when remuxing the XviD.

Otherwise I'd suggest that you forget about extracting and just try AVISynth to open the mkv with directshowsource(convertfps=true, fps=119.88).

119.88fps is used because generally such a source is a mixture of 23.976 and 29.97fps.
wierdling
Suspended due to non-functional email address
_
16. February 2006 @ 03:37 _ Link to this message    Send private message to this user   
Tried using CoreAVC and works...thanks.
By the way, I've noticed that you you have mentioned that it is possible to directly convert the mkv(v_mpeg4/iso/avc) to avi(XviD). How do I go about that?
Also, is it possible to edit files (mainly cutting out the mkv with the avc stream at certain portions)?
celtic_d
AfterDawn Addict
_
16. February 2006 @ 04:19 _ Link to this message    Send private message to this user   
You can only really cut at IDR frames. MPEG codecs really weren't designed for editing. Best to edit, then encode. If you are re-encoding, then that is a different matter.
rick5446
Suspended due to non-functional email address
_
18. February 2006 @ 05:16 _ Link to this message    Send private message to this user   
I've got some old series[Monk]that are RMVP,all around 182 meg.Cucosoft will convert them to VOB's,but very large about 4.2gig per 2episodes [good quality though]. I'm looking for something that will convert them to AVI,DivX,Xvid[around 350meg].I've tried everything that does'nt work...Any help would be appreciated.
I'm not real sure what they are!I'm asuming they are H264.
celtic_d
AfterDawn Addict
_
18. February 2006 @ 19:54 _ Link to this message    Send private message to this user   
rmvb means that they are RV9/RV9EHQ which is not AVC. Similar advice though, you can use AVISynth with directshowsource, then just encode with VirtualDubMod or whatever. mencoder would also work. mencoder.exe -ovc XviD -xvidencopts pass=1 -oac mp3lame input.rmvb -o output.AVI, etc.
Advertisement
_
__
 
_
rick5446
Suspended due to non-functional email address
_
19. February 2006 @ 02:18 _ Link to this message    Send private message to this user   
celtic_d..THANKS..is there any directions [instructions]as to how to go about setting this up,as Im not real familiar with all these conversions.
afterdawn.com > forums > archived forums > divx / xvid > how to extract/convert v_mpeg4/iso/avc (h264) to avi?
 

Digital video: AfterDawn.com | AfterDawn Forums
Music: MP3Lizard.com
Gaming: Blasteroids.com | Blasteroids Forums | Compare game prices
Software: Software downloads
Blogs: User profile pages
RSS feeds: AfterDawn.com News | Software updates | AfterDawn Forums
International: AfterDawn in Finnish | AfterDawn in Swedish | AfterDawn in Norwegian | download.fi
Navigate: Search | Site map
About us: About AfterDawn Ltd | Advertise on our sites | Rules, Restrictions, Legal disclaimer & Privacy policy
Contact us: Send feedback | Contact our media sales team
 
  © 1999-2025 by AfterDawn Ltd.

  IDG TechNetwork