[mythtv-users] pdatranscode volume for PSP
David Fishburn
fishburn at ianywhere.com
Tue Jul 24 14:39:23 UTC 2007
> -----Original Message-----
> From: mythtv-users-bounces at mythtv.org
> [mailto:mythtv-users-bounces at mythtv.org] On Behalf Of MythTV
> Sent: Sunday, July 22, 2007 11:20 PM
> To: mythtv-users at mythtv.org
> Subject: tv: pdatranscode volume for PSP
>
> >> From: mythtv-users-bounces[at]mythtv.org
> >> [mailto:mythtv-users-bounces[at]mythtv.org] On Behalf Of MythTV
> >> Sent: Monday, June 18, 2007 8:16 PM
> >> To: mythtv-users[at]mythtv.org
> >> Subject: tv: pdatranscode volume for PSP
> >>
> >> I've been using pdatranscode to the PSP and it works great!
> >> Just the automation I was looking for.
> >>
> >> My one problem is increasing the volume. I'm using the
> stock command
> >> from pdatranscode.pl:
> >> 'psp' => 'mencoder -aid 0 -oac lavc -ovc lavc -of lavf -lavcopts
> >> aglobal=1:vglobal=1:vcodec=mpeg4:vbitrate=300:acodec=aac -af
> >> lavcresample=24000:volume=10.1:0 -vf harddup -lavfopts
> >> format=psp:i_certify_that_my_video_stream_does_not_use_b_frame
> >> s -vf scale={scale} -o {outfile} {infile} -quiet', );
> >>
> >> and I've played with the "volume=10.1:0" option. If I
> understand it
> >> correctly then changing from 10.1 to 40 should be max volume, but
> >> since no changes have an impact I'm wrong somewhere along the way,
> >>
> >> volume[=v:sc]
> >> Select the output volume level. This filter is not
> reentrant and can
> >> therefore only be enabled once for every audio stream.
> >> v: desired gain in dB for all channels in the stream. The
> gain can be
> >> set from -200dB to +40dB (where -200dB mutes the sound
> completely and
> >> +40dB equals a gain of 1000).
> >> sc: enable soft clipping.
> >
> >I just solved this same issue. The recording were always too
> low and I
> >could hardly hear them on the airplanes.
> >
> >I updated my command line to:
> >mencoder -aid 0 -oac lavc -ovc lavc -of lavf -lavcopts aglobal=1:vgl
> >obal=1:vcodec=mpeg4:vbitrate=280:acodec=aac -af
> >lavcresample=24000:volume=20 -vf harddup -lavfopts
> >format=psp:i_certify_that_my_video_stream_does_not_use_b_frames - vf
> >scale=368:208 -o {outfile} {infile} -quiet
> >
> >This is working for me, since I was originally at 30, but
> had to tone
> >it down a bit, too much distortion. I am still playing with
> the setting.
> >
> >HTH,
> >Dave
>
> I've played with a several volume settings, but none seem to
> have any impact. Does anyone have other ideas where I should
> look? Here is my command line:
> 'psp' => 'mencoder -aid 0 -oac lavc -ovc lavc -of lavf
> -lavcopts
> aglobal=1:vglobal=1:vcodec=mpeg4:vbitrate=300:acodec=aac -af
> lavcresample=24000:volume=20 -vf harddup -lavfopts
> format=psp:i_certify_that_my_video_stream_does_not_use_b_frame
> s -vf scale={scale} -o {outfile} {infile} -quiet',
Todd,
I now have 2 I use which effectively does this. I have converted from
mencoder to ffmpeg since:
- I can use h264
- With the PSP firmware > 3.20 I can use a scale of 480x272
With both I can adjust the volume.
Here are my 2 command lines:
# Mencoder allows me to increase the volume.
# The filesizes are nearly identical.
mencoder -aid 0 -oac lavc -ovc lavc -of lavf -lavcopts
aglobal=1:vglobal=1:vcodec=mpeg4:vbitrate=280:acodec=aac -af volume=25.1:0
-vf harddup -lavfopts
format=psp:i_certify_that_my_video_stream_does_not_use_b_frames -vf
scale=368:208 -o "${OUTFILENAME}" "$VIDEODIR/$FILENAME.tmp" -quiet
# PSP firmware > 3.20 supports a scale of 480x272
# Increase the volume from default of 256 to 480
ffmpeg -i "$VIDEODIR/$FILENAME.tmp" -y -acodec aac -ab 96 -vcodec h264 -b
280kb -ar 48000 -mbd 2 -coder 1 -cmp 2 -subcmp 2 -s 480x272 -r 30000/1001 -f
psp -flags loop -trellis 2 -partitions
parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -level 13 -vol 500
"${OUTFILENAME}"
It took me a bit of messing around to get the syntax right for the mencoder
volume. I have also played around with a setting that works well for me for
most of my recordings. YMMV.
HTH,
Dave
More information about the mythtv-users
mailing list