add MPEG1-PS as media type, fix MP2 audio

Bug report and feature request
Post Reply
jmichae3
Amateur
Amateur
Posts: 80
Joined: Sun Nov 30, 2008 9:11 am
Location: Vancouver, WA
Contact:

add MPEG1-PS as media type, fix MP2 audio

Post by jmichae3 » Sun Mar 14, 2010 9:29 pm

4606 mediacoder needs to be able to read and encode to MPEG1-PS format.
this is pretty much the ONLY Mpeg1 format that Microsoft Windows Media Player recognizes without buying a codec pack (and who's going to do that and who would know how? joe user isn't going to...).


and I need some way of converting from mono to stereo, otherwise WMP11 will not accept it. all I get is "testing failed". I think this is why:
[mp2 @ 0x17c67b0]Sampling rate 11025 is not allowed in mp2
Output #0, mp2, to 'C:\DOCUME~1\Jim\LOCALS~1\Temp\mctemp6564.mpa':
Stream #0.0: Audio: mp2, 11025 Hz, 2 channels, s16, 240 kb/s

it doesn't like sample rate 8000 either. that's the sample rate of my audio source. so what am I supposed to do?
MP2 audio seems to be off-limits to me.


Microsoft has graciously provided several example MPEG1 files on their site which I could analyze: see below for info:
--------------------------------------------------


General
Complete name : C:\Documents

and Settings\Jim\My Documents\My Videos\multnomah

falls horsetail falls\wmp11\mediaexample.mpg
Format : MPEG-PS
File size : 515 KiB
Duration : 3s 169ms
Overall bit rate : 1 332 Kbps

Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 1
Format settings, Matrix : Default
Duration : 3s 169ms
Bit rate mode : Variable
Bit rate : 1 150 Kbps
Width : 320 pixels
Height : 240 pixels
Display aspect ratio : 1.422
Frame rate : 29.970 fps
Scan type : Progressive
Bits/(Pixel*Frame) : 0.500
Stream size : 445 KiB (86%)

Audio
ID : 192 (0xC0)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Duration : 3s 144ms
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 49.1 KiB (10%)


----------------------------------------------
General
Complete name : C:\Documents

and Settings\Jim\My Documents\My Videos\multnomah

falls horsetail falls\wmp11\mediaexample.m1v
Format : MPEG-PS
File size : 515 KiB
Duration : 3s 169ms
Overall bit rate : 1 332 Kbps

Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 1
Format settings, Matrix : Default
Duration : 3s 169ms
Bit rate mode : Variable
Bit rate : 1 150 Kbps
Width : 320 pixels
Height : 240 pixels
Display aspect ratio : 1.422
Frame rate : 29.970 fps
Scan type : Progressive
Bits/(Pixel*Frame) : 0.500
Stream size : 445 KiB (86%)

Audio
ID : 192 (0xC0)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Duration : 3s 144ms
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 49.1 KiB (10%)


----------------------------------------------
General
Complete name : C:\Documents

and Settings\Jim\My Documents\My Videos\multnomah

falls horsetail falls\wmp11\mediaexample.mpe
Format : MPEG-PS
File size : 515 KiB
Duration : 3s 169ms
Overall bit rate : 1 332 Kbps

Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 1
Format settings, Matrix : Default
Duration : 3s 169ms
Bit rate mode : Variable
Bit rate : 1 150 Kbps
Width : 320 pixels
Height : 240 pixels
Display aspect ratio : 1.422
Frame rate : 29.970 fps
Scan type : Progressive
Bits/(Pixel*Frame) : 0.500
Stream size : 445 KiB (86%)

Audio
ID : 192 (0xC0)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Duration : 3s 144ms
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 49.1 KiB (10%)


----------------------------------------------
General
Complete name : C:\Documents

and Settings\Jim\My Documents\My Videos\multnomah

falls horsetail falls\wmp11\mediaexample.mpeg
Format : MPEG-PS
File size : 515 KiB
Duration : 3s 169ms
Overall bit rate : 1 332 Kbps

Video
ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 1
Format settings, Matrix : Default
Duration : 3s 169ms
Bit rate mode : Variable
Bit rate : 1 150 Kbps
Width : 320 pixels
Height : 240 pixels
Display aspect ratio : 1.422
Frame rate : 29.970 fps
Scan type : Progressive
Bits/(Pixel*Frame) : 0.500
Stream size : 445 KiB (86%)

Audio
ID : 192 (0xC0)
Format : MPEG Audio
Format version : Version 1
Format profile : Layer 2
Duration : 3s 144ms
Bit rate mode : Constant
Bit rate : 128 Kbps
Channel(s) : 2 channels
Sampling rate : 48.0 KHz
Resolution : 16 bits
Stream size : 49.1 KiB (10%)
----------------------------------------
Jim Michaels

Post Reply