View Full Version : Demuxing/muxing h264 AVI into VOB or MP4 (For PS3)
db2450
16th February 2008, 17:45
I am using the Windows Media Center built into videos to record TV shows and Movies off the air (via Antenna). I am also using a program called MCEBuddy (http://mcebuddy.com/) to convert the *.dvr-ms files into h264 in AVIs. I would use WMV for this conversion now, because the PS3 now supports WMV files, but the software I am using to remove ads from the movies and shows, requires AVI files.
I am wondering if there is a way to automate a program to demux the AVI, convert the audio and then remux to MP4 or VOB files?
LoRd_MuldeR
16th February 2008, 19:06
You can extract the H.264 stream from the AVI container and mux it into MP4 container with MP4Box/YAMB.
db2450
16th February 2008, 19:26
Ok, thanks! What would you recomend for converting the audio?
LoRd_MuldeR
16th February 2008, 19:54
I'd use the Nero Digital CLI-Encoder to encode AAC audio:
http://www.nero.com/eng/down-ndaudio.php
db2450
16th February 2008, 21:31
I tried extracting the files, I got the h264 correctly, but the audio is a .raw file and no programs will accept it. I ran the original .AVI in Gspot, it says I don't have the codec installed and it said the codec is "0x706d (FAAD AAC)". I couldn't find this codec anywhere, I am using ffdshow for all my codec needs right now and AAC is enabled.
I then tried to run the *.raw file through FAAD to convert to WAV, with the following input line:
C:\Users\User1\Desktop>faad.exe -f 1 "C:\Users\Public\Videos\Manual Recording
_KTVI-DT_16_02_2008_13_26_03_audio.raw"
but it gave me the following error:
C:\Users\Public\Videos\Manual Recording_KTVI-DT_16_02_2008_13_26_03_audio.raw fi
le info:
RAW
---------------------
| Config: 2 Ch |
---------------------
| Ch | Position |
---------------------
| 00 | Center front |
| 01 | Unknown |
---------------------
0% decoding C:\Users\Public\Videos\Manual Recording_KTVI-DT_16_02_2008_13_26_03_
Error: Gain control not yet implemented
I have no idea what to do now :(.
LoRd_MuldeR
16th February 2008, 21:38
Put your source AVI file through AVInaptic (http://fsinapsi.altervista.org/code/avinaptic/index.html) and post the result here...
db2450
16th February 2008, 22:09
Here is the result:
[ About file ]
Name: Manual Recording_KTVI-DT_16_02_2008_13_26_03.avi
Date: 16/02/2008 13:55:49
Size: 20,681,032 bytes (19.723 MB)
[ Generic infos ]
Play duration: 00:01:55 (115.498502 s)
Container type: AVI OpenDML
Number of streams: 2
Type of stream nr. 0: video
Type of stream nr. 1: audio
Audio streams: 1
ISFT: MEncoder dev-SVN-rUNKNOWN-4.2.1-sjlj
JUNK: [= MPlayer junk data! =]
[ Relevant data ]
Resolution: 1280 x 720
Width: multiple of 32
Height: multiple of 16
[ Video track ]
FourCC: h264/h264
Resolution: 1280 x 720
Frame aspect ratio: 16:9 = 1.777777
Pixel aspect ratio: 1:1 = 1
Display aspect ratio: 16:9 = 1.777777
Vprp aspect ratio: 16:9 = 1.777777
Framerate: 59.940170 fps (59.941257)
Number of frames: 6923
Stream size: 17,612,087 bytes
Bitrate: 1219.900627 kbps
Qf: 0.022083
Key frames: 28 (1; 251; 501; 751; 1001; ... 6751)
Null frames: 1 (0)
Min key int: 2
Max key int: 250
Avg key int: 247.25
Delay: 0 ms
[ Audio track ]
Audio tag: 0x706d (???)
Bitrate (container): 192.016 kbps VBR
Channels (container): 2
Sample rate (container): 48000 Hz
Chunks: 5396
Stream size: 2,763,018 bytes
Delay: 42.666666 ms
[ About H.264 encoding ]
User data: x264
User data: core 56
User data: H.264/MPEG-4 AVC codec
User data: Copyleft 2005
User data: http://www.videolan.org/x264.html
User data: cabac=1
User data: ref=6
User data: deblock=1:0:0
User data: analyse=0x3:0x133
User data: me=umh
User data: subme=6
User data: brdo=0
User data: mixed_ref=0
User data: me_range=16
User data: chroma_me=1
User data: trellis=1
User data: 8x8dct=1
User data: cqm=0
User data: deadzone=21,11
User data: chroma_qp_offset=0
User data: threads=3
User data: nr=0
User data: decimate=1
User data: mbaff=0
User data: bframes=3
User data: b_pyramid=1
User data: b_adapt=1
User data: b_bias=0
User data: direct=1
User data: wpredb=1
User data: bime=0
User data: keyint=250
User data: keyint_min=25
User data: scenecut=40(pre)
User data: rc=abr
User data: bitrate=1200
User data: ratetol=1.0
User data: rceq='blurCplx^(1-qComp)'
User data: qcomp=0.80
User data: qpmin=10
User data: qpmax=51
User data: qpstep=4
User data: ip_ratio=1.40
User data: pb_ratio=1.30
SPS id: 0
Profile: High@L5.1
Num ref frames: 9
Aspect ratio: Square pixels
Chroma format idc: YUV 4:2:0
PPS id: 0 (SPS: 0)
Entropy coding type: CABAC
Weighted prediction: No
Weighted bipred idc: B slices - implicit weighted prediction
8x8dct: Yes
[ Profile compliancy ]
Profile to check: MTK PAL 6000
Resolution: 1280 x 720 > 720 x 576
Framerate: Ok
Warning: If you need a more complete report, then click on "DRF analysis"
This report was created by AVInaptic (18-11-2007) on 16 feb 2008, h 15:09:00
LoRd_MuldeR
16th February 2008, 22:28
Hmmm, looks like the audio format cannot be determined.
Does that file play okay in a player, e.g. in MPlayer? If so, what audio format does the player detect?
db2450
17th February 2008, 00:51
MPlayer played the file correctly. I was not sure how to find the audio codec, so I just used what was under "MPlayer Output" and here is what is said for the codec:
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
BTW, MPlayer is pretty much the only thing that can play the file.
Edit: If there is a way to remove ads in WMV videos, I could use that instead of going through this whole process. The problem I have with using MCEBuddy to remove ads is that ComSkip doesn't work correctly for the ads in my Videos. Most of the ads aren't removed and much of the movie I was recording/converting was deleted.
Southstorm
17th February 2008, 01:54
When you extract the streams with Yamb, extract the audio as MP4 rather than RAW and you'll have more playability.
db2450
17th February 2008, 02:00
When you extract the streams with Yamb, extract the audio as MP4 rather than RAW and you'll have more playability.
I have tried that, should have said this, but it still comes out as a *.raw file.
Southstorm
17th February 2008, 02:24
Are you using the most current versions of both Yamb & MP4Box?
Also, what version of MCEBuddy are you using?
The site said that some versions of MCEBuddy were using MP3 audio, and some were using AAC.
db2450
17th February 2008, 02:49
Yamb-2.0.0.8 with installer (comes with MP4Box)
MCEBuddy 1.0.8
I am pretty sure the version I am using has AAC audio, because GSpot says it is "0x706d (FAAD AAC)" and MPlayer says it is "Selected audio codec: [faad]" and "afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)"
If ComSkip was working right, I would'nt have even posted here in the first place :(.
I have a 3 hour recording on my computer that is 20GB, and I don't want to reconvert it yet because I want to see if I can find an ad remover that works and supports WMV.
I am hopefully going to use the CMD program cbreak to remove the ads from the AVI.
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.