Anyone trying to add MP4 trancoding support to PS3MS? I think it'll be very useful for alternate media renderers like smartphones or tabltes (iPhones, iPads, androids etc) for a couple of reasons:
- better bandwidth utilization (these devices mostly wireless and mpeg2 with reasonable quality has very high bitrate)
- most of these devices have some sort of hardware acceleration for "native" formats, usually MP4 AVC/AAC. On the other hand decoding for mpeg-2 usually software only, requires additional apps and very power consuming. For example ipad 1 is not fast enough to play mpeg-2 720p without stuttering.
I'm using modified AirPlayer.conf for testing purposes with AirAV (free) and AirPlayer ipad apps. There are some other DLNA players in AppStore but they are all almost identical: native playback for MP4s/MOVs and ffmpeg software decoding for anything else.
As you can see TranscodeVideo=MP4AVCAAC is new option used for mp4 transcoding with mencoder. And it works in the sense that resulting mencoder commandline, for ex.
- Code: Select all
mencoder -ss 0 ~/test.mkv -oac lavc -of lavf -lavfopts format=mp4 -ovc x264 -channels 2 -lavdopts debug=0:threads=2 -lavcopts autoaspect=1:vcodec=libx264:acodec=aac:abitrate=224:threads=2 -x264encopts preset=superfast:profile=baseline:bframes=0:nocabac:global_header:partitions=all:level=31 -subfont /usr/share/fonts/truetype/msttcorefonts/Arial.ttf -subfont-text-scale 3 -subfont-outline 1 -subfont-blur 1 -subpos 98 -subdelay 20000 -ofps 24000/1001 -lavdopts fast -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o ~/mencoder-test.mp4
- Code: Select all
[New I/O server worker #1-3] DEBUG Setting InputStream new position to: 9,223,372,036,854,773,760
