[mythtv-users] Mythexport choosing wrong audio stream
Stephen Robertson
stephengrobertson at gmail.com
Thu Dec 6 21:31:04 UTC 2012
On Tue, Dec 4, 2012 at 10:53 PM, HP-mini <blm-ubunet at slingshot.co.nz> wrote:
>
>> It looks as if I may have been mistaken here; in my experience a 256kb/s
>> track would be the primary one, but now you find the 192 kb/s ac3 has
>> precedence. I'm surprised, but you have the evidence :-)
>
> Can use the stream IDs to selectively map or re-encode (inc copy)
>
> For example these are stream IDs for..
> aac_latm="0x190"
> dvb_sub="0x3fc"
> ttx_sub="0x3e9"
>
> ffmpeg -i $INFILE -c:a:p:$aac_latm libfaac [SNIP]..
>
> a similar form for: -map -0:a:$aac_latm
>
> AFAIK There is no expected order..
> I have some old recordings with mheg5 [DATA] first..
Thanks for that, I seem to be getting somwhere
avconv -i /media/500G/8940_20121027202800.mpg -y -vcodec libx264
-preset medium -pre:v libx264-ipod640 -b 1500k -bt 1000k -threads 0 -s
800x480 -ab 192k -ar 48000 -ac 2 -aspect 16:9 -f ipod -map 0:v -map
0:a -map -0:a:$aac_latm /var/lib/mythtv/a
-map 0:v to map all video streams
-map 0:a to map all audio streams
-map -0:a:$aac_latm to remove the audio stream I don't want.
seems to get what I need
Output #0, ipod, to '/var/lib/mythtv/a':
Metadata:
encoder : Lavf53.21.0
Stream #0.0: Video: libx264, yuv420p, 800x480 [PAR 16:15 DAR
16:9], q=-1--1, 1500 kb/s, 25 tbn, 25 tbc
Stream #0.1(eng): Audio: libfaac, 48000 Hz, stereo, s16, 192 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (h264 -> libx264)
Stream #0:7 -> #0:1 (ac3 -> libfaac)
I have hunted to try and find where $aac_latm are defined so that I
could change this to select the one I want(ac3) rather than reject the
one I don't(mp2) but I can't find that anywhere
Any suggestions?
Thanks
Stephen
More information about the mythtv-users
mailing list