There's a set of AVIs I would like to eventually convert to MP4 format for watching on small-display devices. But for now I am getting to grips with the different codecs and formats, and have simply been providing the video with a new container using ffmpeg or my new best 'friend' Xmedia Recode'.
I have three pretty similar AVI files from ripped DVD (say A, B and C) that I would like re-container (i.e. copy acodec and vcodec). It works for one format (file C), but not the other two, in the sense that mediaplayer such as MPC-HC only plays the audio and not the video of file A.mp4 or B.mp4. I am trying to better understand link between content and container. What is the reason behind the video A and B not being compatible with their new MP4 container?
Many thanks for any feedback.
A.avi:
B.avi:Code:Format : AVI Format/Info : Audio Video Interleave File size : 174 MiB Duration : 23mn 45s Overall bit rate mode : Variable Overall bit rate : 1 026 Kbps Writing application : Nandub v1.0rc2 Writing library : Nandub build 1852/release Video ID : 0 Format : MPEG-4 Visual Format settings, BVOP : No Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (MPEG) Codec ID : XVID Codec ID/Hint : XviD Duration : 23mn 45s Bit rate : 898 Kbps Width : 512 pixels Height : 384 pixels Display aspect ratio : 4:3 Frame rate : 23.976 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 0.190 Stream size : 153 MiB (88%)
C.avi:Code:Format : AVI Format/Info : Audio Video Interleave File size : 233 MiB Duration : 22mn 45s Overall bit rate mode : Variable Overall bit rate : 1 431 Kbps Writing application : Nandub v1.0rc2 Writing library : Nandub build 1853/release Video ID : 0 Format : MPEG-4 Visual Format profile : Simple@L3 Format settings, BVOP : No Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Default (H.263) Codec ID : XVID Codec ID/Hint : XviD Duration : 22mn 45s Bit rate : 1 289 Kbps Width : 576 pixels Height : 432 pixels Display aspect ratio : 4:3 Frame rate : 23.976 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 0.216 Stream size : 210 MiB (90%) Writing library : XviD 0.0.12 (UTC 2003-06-11)
A.mp4:Code:Format : AVI Format/Info : Audio Video Interleave File size : 233 MiB Duration : 22mn 58s Overall bit rate mode : Variable Overall bit rate : 1 417 Kbps Writing application : VirtualDubMod 1.5.4.1 (build 2178/release) Writing library : VirtualDubMod build 2178/release Video ID : 0 Format : MPEG-4 Visual Format profile : Advanced Simple@L5 Format settings, BVOP : 1 Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Custom Codec ID : XVID Codec ID/Hint : XviD Duration : 22mn 58s Bit rate : 1 271 Kbps Width : 576 pixels Height : 432 pixels Display aspect ratio : 4:3 Frame rate : 23.976 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 0.213 Stream size : 209 MiB (90%) Writing library : XviD 1.0.2 (UTC 2004-08-29)
C.mp4:Code:Format : MPEG-4 Format profile : Base Media Codec ID : isom File size : 173 MiB Duration : 23mn 45s Overall bit rate mode : Variable Overall bit rate : 1 018 Kbps Encoded date : UTC 2014-09-03 20:55:47 Tagged date : UTC 2014-09-03 20:55:47 Writing application : Lavf55.55.100 Video ID : 1 Format : MPEG-4 Visual Codec ID : 20 Duration : 23mn 45s Bit rate mode : Constant Bit rate : 898 Kbps Width : 512 pixels Height : 384 pixels Display aspect ratio : 4:3 Frame rate mode : Constant Frame rate : 23.976 fps Compression mode : Lossy Bits/(Pixel*Frame) : 0.190 Stream size : 153 MiB (88%) Encoded date : UTC 2014-09-03 20:55:47 Tagged date : UTC 2014-09-03 20:55:47
Code:Format : MPEG-4 Format profile : Base Media Codec ID : isom File size : 230 MiB Duration : 22mn 58s Overall bit rate mode : Constant Overall bit rate : 1 403 Kbps Encoded date : UTC 2014-09-03 20:55:47 Tagged date : UTC 2014-09-03 20:55:47 Writing application : Lavf55.55.100 Video ID : 1 Format : MPEG-4 Visual Format profile : Advanced Simple@L5 Format settings, BVOP : Yes Format settings, QPel : No Format settings, GMC : No warppoints Format settings, Matrix : Custom Codec ID : 20 Duration : 22mn 58s Bit rate mode : Constant Bit rate : 1 271 Kbps Width : 576 pixels Height : 432 pixels Display aspect ratio : 4:3 Frame rate mode : Constant Frame rate : 23.976 fps Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits/(Pixel*Frame) : 0.213 Stream size : 209 MiB (91%) Writing library : XviD 1.0.2 (UTC 2004-08-29) Encoded date : UTC 2014-09-03 20:55:47 Tagged date : UTC 2014-09-03 20:55:47
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 11 of 11
Thread
-
-
...and file B.mp4:
Code:Format : MPEG-4 Format profile : Base Media Codec ID : isom File size : 231 MiB Duration : 22mn 45s Overall bit rate mode : Constant Overall bit rate : 1 421 Kbps Encoded date : UTC 2014-09-03 20:55:47 Tagged date : UTC 2014-09-03 20:55:47 Writing application : Lavf55.55.100 Video ID : 1 Format : MPEG-4 Visual Codec ID : 20 Duration : 22mn 45s Bit rate mode : Constant Bit rate : 1 289 Kbps Width : 576 pixels Height : 432 pixels Display aspect ratio : 4:3 Frame rate mode : Constant Frame rate : 23.976 fps Compression mode : Lossy Bits/(Pixel*Frame) : 0.216 Stream size : 210 MiB (91%) Encoded date : UTC 2014-09-03 20:55:47 Tagged date : UTC 2014-09-03 20:55:47
-
I don't see anything in the video that looks problematic. What about audio codecs?
Last edited by jagabo; 4th Sep 2014 at 16:19.
-
I can copy acodec or convert mp3 to aac, but this does not affect playback or solve the problem with A and B.mp4. Thanks Jagabo.
-
No packed bitstream for all files, I'm afraid...
A.avi:
Code:Packed bitstream: No QPel: No GMC: No Interlaced: No Aspect ratio: Square pixels Quant type: MPEG FourCC: XVID I-VOPs: 484 (1.42%) P-VOPs: 33692 (98.58%) B-VOPs: 0 (0.00%) S-VOPs: 0 (0.00%) N-VOPs: 0 (0.00%)
Code:Packed bitstream: No QPel: No GMC: No Interlaced: No Aspect ratio: Square pixels Quant type: H.263 FourCC: XVID User data: XviD0012 I-VOPs: 254 (0.78%) P-VOPs: 32495 (99.22%) B-VOPs: 0 (0.00%) S-VOPs: 0 (0.00%) N-VOPs: 0 (0.00%)
Code:Packed bitstream: No QPel: No GMC: No Interlaced: No Aspect ratio: Square pixels Quant type: MPEG Custom FourCC: XVID User data: XviD0036 Custom intra matrix: 8 16 20 23 27 30 32 34 16 16 23 24 29 31 34 38 20 23 27 28 30 35 38 40 23 24 28 29 35 39 40 44 27 29 30 35 39 42 45 50 30 31 35 39 42 46 54 59 32 34 38 40 45 54 62 72 34 38 40 44 50 59 72 84 Custom inter matrix: 17 19 21 23 25 27 29 31 19 21 23 25 27 28 29 33 21 23 25 27 29 30 32 37 23 25 27 30 31 34 40 45 25 27 29 31 38 46 54 60 27 28 30 34 46 58 72 74 29 29 32 40 54 72 90 100 31 33 37 45 60 74 100 124 I-VOPs: 321 (0.97%) P-VOPs: 16491 (49.91%) B-VOPs: 16228 (49.12%) S-VOPs: 0 (0.00%) N-VOPs: 0 (0.00%) Max consecutive B-VOPs: 1
-
If you told me one file didn't play after muxing into MP4 I would have guessed C. Some old devices didn't support B frames and custom matrices. And C is the highest Profile But that's the file that does play. The other two are simpler and shouldn't have problems. All I can suggest is you try reencoding with and without the different settings until you find what's causing the problem for your device.
-
All I can suggest is trying a different program.
MyMP4BoxGUI should do it.
If you open an AVI to remux it, it'll only display the video stream in the GUI which gives the impression the audio needs to be added separately, but that's not the case. You should just be able to add an AVI and re-mux.
MP4Box can be a bit finicky sometimes. It doesn't seem to like AVIs where the audio stream contains junk data (some AVI muxing programs add it) and it'll start muxing and then quit for no apparent reason. It's still be worth a shot though.
I use Video To Video Converter for "odd job" remuxing quite a bit. When you add a file for conversion, it'll open a window and ask you to pick a conversion preset. "Direct Stream Copy" (the last on the video profiles list) would be the one to try. All you need to do is select it, then choose your desired output container on the right. It adds the job to the conversion list, but it just copies the video and audio, despite the need to click on "convert".
You can open a bunch of files or a folder of them for batch conversion. It's managed to remux files for me quite a few times the usual methods have failed. It probably uses ffmpeg for a lot of the work, but you never know..... -
Many thanks for the suggestions jagabo & hello_hello.
Yes, it's peculiar it's both the A and B MP4 that do not play whilst C is fine. I was not able to find the exact cause.
So what worked?
MyMP4BoxGUI was able to generate a new MP4 container that played in MPC-HC but not in WMP. To play an MP4 in a range of mediaplayers I needed to transcode.
Also thanks for the Video2video converter suggestion. A great new tool for my box! -
It still seems odd, having to transcode.
Did you try any of MyMp4BoxGUI's options? There's a couple for making MP4s "apple friendly" and a few others under options/advanced. Maybe you could try one of these?
-isma: converts file to ISMA 1.0 specification. This is extremely useful since most MPEG-4 players only understand ISMA-like content. All systems information and tracks numbering are rewritten to comply to the specification.
WARNING: some media tracks may be removed.
-3gp : converts to 3GPP specification. This will remove all MPEG-4 Systems information, leaving only the audio/video/text media tracks supported by 3GPP. This option is always turned on when the file extension is ’3gp’ or ’3g2′.
WARNING: some media tracks may be removed.
MeGUI has an MP4 muxer under it's Tools menu. I didn't mention it as it also uses MP4Box for the work, but it offers the ability to select device compatibility. For example if you select "iphone" it adds the following to the commandline: -ipod -brand M4VP:1
I couldn't seem to find it in MyMP4Box's command line options.
I don't use MP4 but I remuxed a few AVIs and couldn't output one MPC-HC or WMP wouldn't play, but I didn't try any other devices. The version of WMP I have is the one which comes with XP. I never use it, but it's so old it doesn't even recognise the MP4 file type and asks if you want to open an "unknown file extension". It still plays the AVIs I remuxed though (with the Haali media splitter's help).