[mdlug] mpeg files from MythTV play w/o audio in PS3
R. Kannan
rkannan at peoplepc.com
Tue Sep 16 18:45:47 EDT 2008
-----Original Message-----
>From: "Ingles, Raymond" <Raymond.Ingles at compuware.com>
>Sent: Sep 16, 2008 9:37 AM
>To: "R. Kannan" <rkannan at peoplepc.com>, "Mdlug (E-mail)" <mdlug at mdlug.org>
>Subject: RE: [mdlug] mpeg files from MythTV play w/o audio in PS3
>
>> From: R. Kannan [mailto:rkannan at peoplepc.com]
>
>> 1) PS3 does not recognize my flash drive. That is whole
>> different issue which I have not resolved. I am burning the
>> files on a DVD-RW and trying to play the files on PS3.
>
> The PS3 only recognizes the FAT filesystem on usb drives. No NTFS or any
>Linux filesystem. That might be the problem there.
The thumbdrive has a FAT32 file system which can be read in another Windows box. I am not sure why I can't read it in PS3.
>
>> 2) I had to install mplayer/mencoder on my machine and try
>> it. PS3 did not like the AVI files from mencoder (using the
>> options you had suggested)
>>
>> mencoder <input_file> -ovc copy -oac mp3lame -lameopts
>> cbr:br=128 -o <outfile.avi>
>
> It's very important to know what *exactly* the format of the original files
>is. Ideally the console output from mplayer when playing the files will tell
>us (the lines starting with "VIDEO:" and "AUDIO:"), but if that's not easily
>available can you at least run the command 'file' on the originals? For
>example, when I run 'file' on some media files I have handy, it says:
>
>$file *
>GetYourOwn.avi: RIFF (little-endian) data, AVI, 320 x 214, ~30 fps, video: DivX 4, audio: MPEG-1 Layer 3 (stereo, 44100 Hz)
>GetYourOwn.mpg: MPEG sequence, v2, program multiplex
>GetYourOwn2.mpg: RIFF (little-endian) data, AVI, 320 x 214, ~30 fps, video:, audio: MPEG-1 Layer 3 (stereo, 44100 Hz)
>
>Running mplayer on the first one yields (with a little cruft removed):
>$mplayer GetYourOwn.avi
>VIDEO: [divx] 320x214 24bpp 29.970 fps 213.6 kbps (26.1 kbyte/s)
>AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8000->176400)
>
Original file:
VIDEO MPEG2(pid=49) AUDIO A52(pid=52) NO SUBS (yet)! PROGRAM N. 1
VIDEO: AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
MPEG2 1280x720 (aspect 3) 59.940 fps 90000.0 kbps (11250.0 kbyte/s)
Translated file:
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [] 1280x720 24bpp 59.940 fps 12405.4 kbps (1514.3 kbyte/s)
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
I will look into the options below:
Thanks
>Here is a script I use to convert random video files (usually *.flv files
>from YouTube) to media files I can play elsewhere, including the PS3. Note
>that although it's titled 'flv2avi', the format of the input file(s) doesn't
>matter as long as mplayer can play them.
>
>----- flv2avi.sh -----
>#!/bin/sh
>
># Converts FLVs to AVI files suitable for viewing outside of web browsers.
># Run as 'flv2avi.sh [new file name] [list of one or more movie files]
>
># If you're skipping frames, increase FPS. If duplicating, decrease FPS.
># Usual values are 24000/1001 (23.976), 24, 25 (PAL), 30000/1001 (29.97), 30.
>#OFPS=24000/1001
>#OFPS="-ofps 30000/1001"
>OFPS="-ofps 30"
>
># If mencoder misdentifes the FPS of the input file, set it here.
>#IFPS="-fps 30000/1001"
>#IFPS="-fps 30"
>
># If your system has more than one cpu/core, multithreading may help. Set this
># value to the number of cores you have available.
>#THREADS=":threads=2"
>
># Set audio mode - these are arranged in decreasing order of likelyhood
># to sync properly
># Most FLVs already have MP3 audio, no need to mess with it.
>AUDIO=copy
># Constant bit rate MP3, the 'br' field sets the bit rate
>#AUDIO="mp3lame -lameopts cbr:br=128"
># Average bit rate MP3, the 'br' field sets the bit rate
>#AUDIO="mp3lame -lameopts abr:br=128"
># Variable bit rate MP3, sometimes has sync problems
>#AUDIO="mp3lame -lameopts vbr=3"
>
># Set crop, if needed
># Get these numbers by running the command: mplayer -ss 60 -vf scale=320:-2,cropdetect [file]
>#CROP=",crop=320:160:0:28"
>
># For mixed progressive/telecined content
>#PULLUP=",pullup,softskip"
>
># Set video bit rate, feel free to experiment here to see what fits
>#VBITRATE=224
>#VBITRATE=336
>#VBITRATE=448
>#VBITRATE=512
>VBITRATE=1024
>
># Use DIVX
>DIVX="-ffourcc divx"
>
># These are the key parameters we gotta have from the user.
># Spaces in the output file name are probably not a good idea.
>NEWNAME=$1.avi
>shift
>MOVIE=$*
>
># Just in case one's left over from a previous encoding run.
>rm -rf divx2pass.log
>
># Two-pass encoding, takes longer but produces best quality for a given bitrate
>mencoder ${MOVIE} ${IFPS} -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:turbo:vbitrate=${VBITRATE}${THREADS} ${OFPS} ${DIVX} -oac ${AUDIO} -af volnorm -o /dev/null
>
>mencoder ${MOVIE} ${IFPS} -ovc lavc -lavcopts vcodec=mpeg4:vpass=2:vbitrate=${VBITRATE}${THREADS} ${OFPS} ${DIVX} -oac ${AUDIO} -af volnorm -o ${NEWNAME}
>
># Clean up after ourselves.
>rm -rf divx2pass.log
>----------------------
>
> Sincerely,
>
> Ray Ingles (313) 227-2317
>
> Trying to associate Microsoft with "fun" is like trying to
> associate Satan with aromatherapy. - Tycho Brahe
>The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it.
________________________________________
PeoplePC Online
A better way to Internet
http://www.peoplepc.com
More information about the mdlug
mailing list