Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 45

Thread: mp4 with 5.1 AAC audio not playing on xbox 360

  1. #21
    Join Date
    Jan 2011
    Posts
    33

    Default

    Looks like it is trying to output AAC in 5.1. Here is the message that stands out in RED when I ran that command from the command prompt:

    [mpeg4 @ 017cf010] me_method is only allowed to be set to zero and epzs; for hex
    ,umh,full and others see dia_size

    video transcoding failed

  2. #22
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    11,642

    Default

    In the command change "-me_method hex" to "-me_method epzs" - see if that helps.

    Mezzmo Android: Install it on your tablet, smartphone, Android TV or Amazon Fire to browse and stream files from your Mezzmo library to all your devices. Full details at http://www.conceiva.com/products/mez...mo_android.asp
    Mezzmo for Kodi Add-on: Install it into Kodi to stream files from your Mezzmo library directly in Kodi. Full details at http://www.mezzmo.com/wiki/doku.php?...odi_user_guide
    Mezzmo for Roku App: Install it onto your Roku to stream files from your Mezzmo library. Full details at http://www.mezzmo.com/wiki/doku.php?...oku_user_guide
    Wiki: User Guides & Reference Manual at http://www.mezzmo.com/wiki
    Facebook: http://www.facebook.com/Mezzmo.DLNA.Server
    Twitter: https://twitter.com/conceiva_mezzmo
    Web: http://www.mezzmo.com

  3. #23
    Join Date
    Jan 2011
    Posts
    33

    Default

    ok that works, I pressed q to stop it.

  4. #24
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    11,642

    Default

    Ok, good Try this one:

    Code:
            <avcontainer id="mov,mp4,m4a,3gp,3g2,mj2" name="h264aac" encode="1" mimetype="video/mp4" format="mp4" supportschunked="0" preferredtranscoded="1">
            		<video>
            			<format id="mpeg4" encode="1" format="mpeg4" preferredtranscoded="1">
                            	<maxbitrate>2000000</maxbitrate>
                                	<copyts>0</copyts>
                                	<samequality>0</samequality>
    	                        <framerate>30</framerate>
                                	<bitrate>1500000</bitrate>
            			</format>
            		</video>
                    <video>
                            <format id="h264" encode="0">
                            </format>
                    </video>
                    <audio>
                            <format id="aac" encode="1" codec="aac" preferredtranscoded="1">
                            	<channels>2</channels>
                            	<channels>6</channels>
    				<maxbitrate>160000</maxbitrate>
    				<bitrate>128000</bitrate>
    				<maxsamplingrate>44100</maxsamplingrate>
    				<minsamplingrate>22050</minsamplingrate>
                            </format>
                    </audio>
                    <ffmpegadditional>-threads 4 -coder 0 -flags +loop -cmp +chroma -me_method epzs -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -qcomp 0.6 -qmin 10 -qmax 51 -qdiff 4 -bf 0 -refs 4 -directpred 1 -trellis 0 -flags2 +bpyramid+mixed_refs-wpred+dct8x8+fastpskip -wpredp 2 -strict experimental</ffmpegadditional>
            </avcontainer>

    Mezzmo Android: Install it on your tablet, smartphone, Android TV or Amazon Fire to browse and stream files from your Mezzmo library to all your devices. Full details at http://www.conceiva.com/products/mez...mo_android.asp
    Mezzmo for Kodi Add-on: Install it into Kodi to stream files from your Mezzmo library directly in Kodi. Full details at http://www.mezzmo.com/wiki/doku.php?...odi_user_guide
    Mezzmo for Roku App: Install it onto your Roku to stream files from your Mezzmo library. Full details at http://www.mezzmo.com/wiki/doku.php?...oku_user_guide
    Wiki: User Guides & Reference Manual at http://www.mezzmo.com/wiki
    Facebook: http://www.facebook.com/Mezzmo.DLNA.Server
    Twitter: https://twitter.com/conceiva_mezzmo
    Web: http://www.mezzmo.com

  5. #25
    Join Date
    Jan 2011
    Posts
    33

    Default

    Same "unsupported format" error on the xbox, transcoder log is empty (did it not even run?)

  6. #26
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    11,642

    Default

    Ok, I guess that proves that the XBox360 cannot play AAC with 5.1 sound *and* FFmpeg cannot transcode AAC 5.1 sound to AAC 2-channel sound (at least not at the moment, maybe they'll implement it later).

    I would say that the original (default) device profile should then work - it'll pass through files with 2-channel AAC and will transcode 5.1 AAC to 2-channel WMA.

    Mezzmo Android: Install it on your tablet, smartphone, Android TV or Amazon Fire to browse and stream files from your Mezzmo library to all your devices. Full details at http://www.conceiva.com/products/mez...mo_android.asp
    Mezzmo for Kodi Add-on: Install it into Kodi to stream files from your Mezzmo library directly in Kodi. Full details at http://www.mezzmo.com/wiki/doku.php?...odi_user_guide
    Mezzmo for Roku App: Install it onto your Roku to stream files from your Mezzmo library. Full details at http://www.mezzmo.com/wiki/doku.php?...oku_user_guide
    Wiki: User Guides & Reference Manual at http://www.mezzmo.com/wiki
    Facebook: http://www.facebook.com/Mezzmo.DLNA.Server
    Twitter: https://twitter.com/conceiva_mezzmo
    Web: http://www.mezzmo.com

  7. #27
    Join Date
    Jan 2011
    Posts
    33

    Default

    Yep, it seems nobody has a solution for this using ffmpeg. I only found someone who makes patches that might get it to work (http://muzso.hu/2009/02/25/downsampl...ls-with-ffmpeg), but hopefullly the ffmpeg guys get it together and support it at some point.

    I've reverted back to the default xbox device profile but it doesnt transcode the 5.1 AAC to WMA; I get the "unsupported format" error on the xbox and it doesnt look like the transcoder is used at all. Do we need to tweak the profile to "force" mezzmo to transcode 5.1 AAC (but maybe not transcode it if the file is 2.0 AAC)?

  8. #28
    Join Date
    Jan 2011
    Posts
    33

    Default

    Wait, I take that back, the transcoder IS starting with the default profile, but look, its still complaining about resampling 6 channel audio to 2 channel:

    Code:
       1 - Jan 13 23:58:52.328 - TRANS> Input file: D:\Media\Video\Movies\Cars.h264.aac.mp4
       2 - Jan 13 23:58:52.328 -      > Transcoder: Executing: C:\Program Files\Conceiva\Mezzmo\ffmpeg.exe -i "D:\Media\Video\Movies\CARSH2~1.MP4" -y -vcodec wmv2 -b 15000000 -sameq  -copyts  -vf "scale=640:478"  -acodec wmav2 -ac 2  -ar 48000  -sn  -f asf  -copyinkf -fflags +genpts+ignidx+igndts -cmp 1 -subcmp 1 -mbd bits -trellis 0 -intra -aspect 16:9 -pix_fmt yuv420p -s 720x576  "C:\Documents and Settings\Administrator\Local Settings\Application Data\Conceiva\Mezzmo\TranscodingFiles\73DBA4DC-58B6-4754-857D-D35FA5E058D4\Video\308-asf-wmv2-wmav2.mzt" 
       3 - Jan 13 23:58:52.328 -      > Ffmpeg --------------------------------------------------------------------
       4 - Jan 13 23:58:52.546 -      > Looks like transcoding started ok, let's wait for the actual file a bit...
       5 - Jan 13 23:58:52.546 -      > Waiting for transcoding to appear on disk...
       6 - Jan 13 23:58:52.703 - FFmpeg version SVN-r26071, Copyright (c) 2000-2010 the FFmpeg developers
      built on Dec 22 2010 10:30:32 with gcc 4.4.2
      configuration: --enable-memalign-hack --arch=x86 --target-os=mingw32 --cross-prefix=i686-mingw32- --enable-static --disable-shared --enable-zlib --disable-ffprobe --disable-ffplay --prefix=/media/windows-share/ffmpeg --extra-cflags=-U__STRICT_ANSI__ --enable-libmp3lame --enable-libx264 --enable-gpl --extra-libs='-lx264 -lpthread' --enable-runtime-cpudetect
      libavutil     50.35. 0 / 50.35. 0
      libavcore      0.16. 0 /  0.16. 0
      libavcodec    52.100. 0 / 52.100. 0
      libavformat   52.88. 0 / 52.88. 0
      libavdevice   52. 2. 2 / 52. 2. 2
      libavfilter    1.69. 0 /  1.69. 0
      libswscale     0.12. 0 /  0.12. 0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\Media\Video\Movies\CARSH2~1.MP4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        creation_time   : 
        title           : Cars
        album           : CRZ0NNF1
        encoder         : Lavf52.78.4
      Duration: 01:56:30.77, start: 0.000000, bitrate: 1552 kb/s
        Stream #0.0(und): Video: h264, yuv420p, 640x478, 1099 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
        Metadata:
          creation_time   : ÿÿÿ
        Stream #0.1(und): Audio: aac, 48000 Hz, 5.1, s16, 447 kb/s
        Metadata:
          creation_time   : ÿÿÿ
    [buffer @ 01526d80] w:640 h:478 pixfmt:yuv420p
    [scale @ 0174b7c0] w:640 h:478 fmt:yuv420p -> w:720 h:576 fmt:yuv420p flags:0x4
    [scale @ 0154f0d0] w:720 h:576 fmt:yuv420p -> w:640 h:478 fmt:yuv420p flags:0x4
    Output #0, asf, to 'C:\Documents and Settings\Administrator\Local Settings\Application Data\Conceiva\Mezzmo\TranscodingFiles\73DBA4DC-58B6-4754-857D-D35FA5E058D4\Video\308-asf-wmv2-wmav2.mzt':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        creation_time   : 
        title           : Cars
        WM/AlbumTitle   : CRZ0NNF1
        WM/EncodingSettings: Lavf52.88.0
        Stream #0.0(und): Video: wmv2 (hq), yuv420p, 640x478 [PAR 64:45 DAR 4096:2151], q=2-31, 15000 kb/s, 1k tbn, 23.98 tbc
        Metadata:
          creation_time   : ÿÿÿ
        Stream #0.1(und): Audio: wmav2, 48000 Hz, 2 channels, s16, 64 kb/s
        Metadata:
          creation_time   : ÿÿÿ
    Stream mapping:
      Stream #0.0 -> #0.0
      Stream #0.1 -> #0.1
    Press [q] to stop encoding
    Resampling with input channels greater than 2 unsupported.
    Can not resample 6 channels @ 48000 Hz to 2 channels @ 48000 Hz
       9 - Jan 13 23:58:52.703 - 
    <MEZZMO>: Child process ended
      10 - Jan 13 23:58:52.750 -      > Transcoded file is ok, size is 1013 bytes

  9. #29
    Join Date
    Nov 2007
    Location
    Melbourne, Australia
    Posts
    11,642

    Default

    That's what I thought Yes, we can't do much about this problem, unfortunately, since we just proved that we cannot transcode to MP4 with 6-channel AAC and WMA does not support 6-channel sound, so needs to be resampled to stereo, but FFmpeg cannot do that. So, either we need to try a different format (e.g. AVI) or those files need to be manually converted outside of Mezzmo for the time being.

    Mezzmo Android: Install it on your tablet, smartphone, Android TV or Amazon Fire to browse and stream files from your Mezzmo library to all your devices. Full details at http://www.conceiva.com/products/mez...mo_android.asp
    Mezzmo for Kodi Add-on: Install it into Kodi to stream files from your Mezzmo library directly in Kodi. Full details at http://www.mezzmo.com/wiki/doku.php?...odi_user_guide
    Mezzmo for Roku App: Install it onto your Roku to stream files from your Mezzmo library. Full details at http://www.mezzmo.com/wiki/doku.php?...oku_user_guide
    Wiki: User Guides & Reference Manual at http://www.mezzmo.com/wiki
    Facebook: http://www.facebook.com/Mezzmo.DLNA.Server
    Twitter: https://twitter.com/conceiva_mezzmo
    Web: http://www.mezzmo.com

  10. #30
    Join Date
    Jan 2011
    Posts
    33

    Default

    Can we force ffmpeg to transcode to an ASF container with WMV3 for video and wmapro for audio? I think wmapro is 5.1 channel, and xbox supports it


    The Xbox 360 console supports the following for WMV:

    * File extensions: .wmv
    * Containers: ASF
    * Video profiles: WMV7 (WMV1), WMV8 (WMV2), WMV9 (WMV3), VC-1 (WVC1 or WMVA) in simple, main, and advanced up to level 3
    * Video bit rate: 15 Mbps with resolutions of 1920 × 1080 at 30 fps.
    * Audio profiles: WMA7/8, WMA9 Pro (stereo and 5.1), WMA Lossless
    * Audio max bit rate: No restrictions.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •