Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: on the FLY AAC to DD AC3 re-encode

  1. #1

    Default on the FLY AAC to DD AC3 re-encode

    i would love an option (that could be selected on a per device basis) to enable on the fly re-encoding off just the audio if it is in AAC and re-encode it to DD AC3 5.1 . the reason, pretty much all samsung TV's will do DD AC3 5.1 over optical to an AV receiver / amp but not AAC. otherwise i will have to trans-code a lot of existing files.



    personally i think that would be a pretty cool advantage over other DLNA servers.

    cheers

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

    Default

    Mezzmo already does that (remuxing), if the video stream is deemed compatible with the device (as per the device profile). This is much quicker and less CPU-intensive than a full transcode.

    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. #3

    Default

    more info on it?how to enable etc? i have AAC that doesn't seem to be changed to AAC

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

    Default

    It depends on the device profile and your file. Please send in FFmpeg information on the file (in Mezzmo right-click on the file and use the "Get FFmpeg Information" command) and also the device profile that's used and we'll see how it matches up.

    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. #5

    Default

    Code:
    ffmpeg version N-32348-g6dbac85, Copyright (c) 2000-2011 the FFmpeg developers
      built on Sep  6 2011 16:03:56 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-ffplay --prefix=/media/windows/ffmpeg --enable-libmp3lame --enable-libx264 --enable-gpl --extra-libs='-lx264 -lpthread' --enable-runtime-cpudetect --pkg-config=pkg-config
      libavutil    51. 16. 0 / 51. 16. 0
      libavcodec   53. 13. 0 / 53. 13. 0
      libavformat  53. 11. 0 / 53. 11. 0
      libavdevice  53.  3. 0 / 53.  3. 0
      libavfilter   2. 37. 0 /  2. 37. 0
      libswscale    2.  1. 0 /  2.  1. 0
      libpostproc  51.  2. 0 / 51.  2. 0
    [matroska,webm @ 003f8c60] max_analyze_duration 5000000 reached at 5019000
    [matroska,webm @ 003f8c60] Estimating duration from bitrate, this may be inaccurate
    Input #0, matroska,webm, from 'D:\TV shows\ghost in the shell\S.A.C. 2nd GIG \ Ghost in the Shell S.A.C. 2nd GIG E01.mkv':
      Duration: 00:24:32.37, start: 0.000000, bitrate: N/A
        Chapter #0.0: start 0.000000, end 92.019000
        Metadata:
          title           : Opening
        Chapter #0.1: start 92.019000, end 749.092000
        Metadata:
          title           : Part 1
        Chapter #0.2: start 749.092000, end 1382.099000
        Metadata:
          title           : Part 2
        Chapter #0.3: start 1382.099000, end 1472.370000
        Metadata:
          title           : Ending
        Stream #0.0(jpn): Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
        Metadata:
          title           : Episode 01 - Reembody
        Stream #0.1(eng): Audio: aac, 48000 Hz, 5.1, s16 (default)
        Metadata:
          title           : English Dolby Digital 5.1ch AAC
        Stream #0.2(jpn): Audio: aac, 48000 Hz, 5.1, s16
        Metadata:
          title           : Japanese Dolby Digital 5.1ch AAC
        Stream #0.3(eng): Subtitle: ssa (default)
        Metadata:
          title           : English Lyrics/Signs
        Stream #0.4(eng): Subtitle: ssa
        Metadata:
          title           : English Subtitles
        Stream #0.5: Attachment: ttf
        Metadata:
          filename        : Androgyne_TB.otf
        Stream #0.6: Attachment: ttf
        Metadata:
          filename        : BellGothicStd-Black.otf
        Stream #0.7: Attachment: ttf
        Metadata:
          filename        : BellGothicStd-Bold.otf
        Stream #0.8: Attachment: ttf
        Metadata:
          filename        : Brianne_s_hand.ttf
        Stream #0.9: Attachment: ttf
        Metadata:
          filename        : ITCKabelStd-Medium.otf
        Stream #0.10: Attachment: ttf
        Metadata:
          filename        : kkberktp.ttf
        Stream #0.11: Attachment: ttf
        Metadata:
          filename        : POORICH.TTF
        Stream #0.12: Attachment: ttf
        Metadata:
          filename        : Sony_Sketch_EF.ttf
        Stream #0.13: Attachment: ttf
        Metadata:
          filename        : X-SCALE.TTF
        Stream #0.14: Attachment: ttf
        Metadata:
          filename        : YOUTHAN_.ttf
        Stream #0.15: Attachment: ttf
        Metadata:
          filename        : YOUTHANI.ttf
        Stream #0.16: Attachment: ttf
        Metadata:
          filename        : YOUTTX__.ttf
    At least one output file must be specified
    
    
    ---> DB Level Info: 41, 100
    ---> Frame rate: 23.98
    ---> Aspect ratio: 16:9
    using Samsung C on a PS50C6500 on mezzmo 2.4.3, on the TV i can only set PCM for audio out

    one like this with AC3 as the encode, i can select DD

    Code:
    ffmpeg version N-32348-g6dbac85, Copyright (c) 2000-2011 the FFmpeg developers
      built on Sep  6 2011 16:03:56 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-ffplay --prefix=/media/windows/ffmpeg --enable-libmp3lame --enable-libx264 --enable-gpl --extra-libs='-lx264 -lpthread' --enable-runtime-cpudetect --pkg-config=pkg-config
      libavutil    51. 16. 0 / 51. 16. 0
      libavcodec   53. 13. 0 / 53. 13. 0
      libavformat  53. 11. 0 / 53. 11. 0
      libavdevice  53.  3. 0 / 53.  3. 0
      libavfilter   2. 37. 0 /  2. 37. 0
      libswscale    2.  1. 0 /  2.  1. 0
      libpostproc  51.  2. 0 / 51.  2. 0
    [matroska,webm @ 003f8c60] Estimating duration from bitrate, this may be inaccurate
    Input #0, matroska,webm, from 'D:\TV shows\stargate Universe\Stargate.Universe.S02E18.720p.HDTV.X264-DIMENSION.mkv':
      Duration: 00:42:40.09, start: 0.000000, bitrate: 384 kb/s
        Stream #0.0(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc
        Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s (default)
    At least one output file must be specified
    
    
    ---> DB Level Info: 41, 100
    ---> Frame rate: 23.98
    ---> Aspect ratio: 16:9
    cheers


    edit: im about to test by re-encoding the first file as the second one is only 2.0

  6. #6

    Default

    ok, i have re-encoded as 5.1 AC3 and tested and it works fine, ie i can choose DD as the optical output

    Code:
    ffmpeg version N-32348-g6dbac85, Copyright (c) 2000-2011 the FFmpeg developers
      built on Sep  6 2011 16:03:56 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-ffplay --prefix=/media/windows/ffmpeg --enable-libmp3lame --enable-libx264 --enable-gpl --extra-libs='-lx264 -lpthread' --enable-runtime-cpudetect --pkg-config=pkg-config
      libavutil    51. 16. 0 / 51. 16. 0
      libavcodec   53. 13. 0 / 53. 13. 0
      libavformat  53. 11. 0 / 53. 11. 0
      libavdevice  53.  3. 0 / 53.  3. 0
      libavfilter   2. 37. 0 /  2. 37. 0
      libswscale    2.  1. 0 /  2.  1. 0
      libpostproc  51.  2. 0 / 51.  2. 0
    [matroska,webm @ 003f8c80] Estimating duration from bitrate, this may be inaccurate
    
    Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5000000/104271) -> 23.98 (24000/1001)
    Input #0, matroska,webm, from 'D:\TV shows\ghost in the shell\Ghost in the Shell S.A.C. 2nd GIG E01.mkv':
      Duration: 00:24:32.22, start: 0.000000, bitrate: 384 kb/s
        Stream #0.0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
        Stream #0.1: Audio: ac3, 44100 Hz, 5.1(side), s16, 384 kb/s (default)
    At least one output file must be specified
    
    
    ---> DB Level Info: 41, 100
    ---> Frame rate: 23.98
    ---> Aspect ratio: 16:9

  7. #7

    Default

    Quote Originally Posted by itsmydamnation View Post
    ok, i have re-encoded as 5.1 AC3 and tested and it works fine, ie i can choose DD as the optical output

    Code:
    ffmpeg version N-32348-g6dbac85, Copyright (c) 2000-2011 the FFmpeg developers
      built on Sep  6 2011 16:03:56 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-ffplay --prefix=/media/windows/ffmpeg --enable-libmp3lame --enable-libx264 --enable-gpl --extra-libs='-lx264 -lpthread' --enable-runtime-cpudetect --pkg-config=pkg-config
      libavutil    51. 16. 0 / 51. 16. 0
      libavcodec   53. 13. 0 / 53. 13. 0
      libavformat  53. 11. 0 / 53. 11. 0
      libavdevice  53.  3. 0 / 53.  3. 0
      libavfilter   2. 37. 0 /  2. 37. 0
      libswscale    2.  1. 0 /  2.  1. 0
      libpostproc  51.  2. 0 / 51.  2. 0
    [matroska,webm @ 003f8c80] Estimating duration from bitrate, this may be inaccurate
    
    Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5000000/104271) -> 23.98 (24000/1001)
    Input #0, matroska,webm, from 'D:\TV shows\ghost in the shell\Ghost in the Shell S.A.C. 2nd GIG E01.mkv':
      Duration: 00:24:32.22, start: 0.000000, bitrate: 384 kb/s
        Stream #0.0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
        Stream #0.1: Audio: ac3, 44100 Hz, 5.1(side), s16, 384 kb/s (default)
    At least one output file must be specified
    
    
    ---> DB Level Info: 41, 100
    ---> Frame rate: 23.98
    ---> Aspect ratio: 16:9

    i know this is now in the wrong section and its also the weekend :P , but any word? ( if you guys work mon to fri, i'll just wait till tomorrow afternoon before bugging or anything )

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

    Default

    Yes, we only work Monday to Friday

    That file will be passed through natively using the "Samsung C" device profile. That same profile will remux 5.1 AAC in an MP4 container to AC3, so perhaps if the TV cannot play 5.1 AAC (it should play stereo AAC in MKV though), then we can recode 5.1 AAC to 5.1 AC3, while leaving 2-channel AAC untouched. Do you have any MKVs with stereo AAC to test?

    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

  9. #9

    Default

    Quote Originally Posted by Dennis View Post
    Yes, we only work Monday to Friday

    That file will be passed through natively using the "Samsung C" device profile. That same profile will remux 5.1 AAC in an MP4 container to AC3, so perhaps if the TV cannot play 5.1 AAC (it should play stereo AAC in MKV though), then we can recode 5.1 AAC to 5.1 AC3, while leaving 2-channel AAC untouched. Do you have any MKVs with stereo AAC to test?

    i will have to check when i get home, if i dont i will just hack up a two channel AAC video by re-encoding DD5.1/DTS/AAC5.1 down to 2 channel AAC. so long as its in an mkv container its very quick to put it all back together thanks to mkvtools. i think 2 channel AAC will play fine as the audio in the 5.1 channel AAC itself plays fine on the TV but will only output in 2 channel PCM over the TOSLINK.

  10. #10

    Default

    Code:
    ffmpeg version N-32348-g6dbac85, Copyright (c) 2000-2011 the FFmpeg developers
      built on Sep  6 2011 16:03:56 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-ffplay --prefix=/media/windows/ffmpeg --enable-libmp3lame --enable-libx264 --enable-gpl --extra-libs='-lx264 -lpthread' --enable-runtime-cpudetect --pkg-config=pkg-config
      libavutil    51. 16. 0 / 51. 16. 0
      libavcodec   53. 13. 0 / 53. 13. 0
      libavformat  53. 11. 0 / 53. 11. 0
      libavdevice  53.  3. 0 / 53.  3. 0
      libavfilter   2. 37. 0 /  2. 37. 0
      libswscale    2.  1. 0 /  2.  1. 0
      libpostproc  51.  2. 0 / 51.  2. 0
    [matroska,webm @ 003f8c60] Estimating duration from bitrate, this may be inaccurate
    Input #0, matroska,webm, from 'F:\videos\music\metallica-magnetic_tour_2009_live_at_arenes_de_nimes-x264-2009-pmv.mkv':
      Duration: 01:34:55.28, start: 0.000000, bitrate: 384 kb/s
        Stream #0.0(eng): Video: h264 (Main), yuv420p, 688x368 [SAR 203:211 DAR 8729:4853], SAR 184:191 DAR 344:191, 25 fps, 25 tbr, 1k tbn, 50 tbc (default)
        Stream #0.1: Audio: ac3, 48000 Hz, stereo, s16, 384 kb/s (default)
    At least one output file must be specified
    
    
    ---> DB Level Info: 30, 77
    ---> Frame rate: 25.00
    ---> Aspect ratio: 344:191
    this gets converted to DD????

    whoops, my mistake.....lol... left me find something thats AAC not DD/ac3...lol


    edit:
    i had to create this myself, it plays as PCM only out the TOSLINK

    Code:
    ffmpeg version N-32348-g6dbac85, Copyright (c) 2000-2011 the FFmpeg developers
      built on Sep  6 2011 16:03:56 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-ffplay --prefix=/media/windows/ffmpeg --enable-libmp3lame --enable-libx264 --enable-gpl --extra-libs='-lx264 -lpthread' --enable-runtime-cpudetect --pkg-config=pkg-config
      libavutil    51. 16. 0 / 51. 16. 0
      libavcodec   53. 13. 0 / 53. 13. 0
      libavformat  53. 11. 0 / 53. 11. 0
      libavdevice  53.  3. 0 / 53.  3. 0
      libavfilter   2. 37. 0 /  2. 37. 0
      libswscale    2.  1. 0 /  2.  1. 0
      libpostproc  51.  2. 0 / 51.  2. 0
    [matroska,webm @ 003f8c60] max_analyze_duration 5000000 reached at 5040000
    [matroska,webm @ 003f8c60] Estimating duration from bitrate, this may be inaccurate
    Input #0, matroska,webm, from 'D:\TV shows\[OZC] Ghost in the Shell S.A.C. 2nd GIG E11 _Affection_ [Blu-Ray 1080p] (1).mkv':
      Duration: 00:24:31.27, start: 0.000000, bitrate: N/A
        Stream #0.0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
        Metadata:
          title           : Episode 11 - Affection
        Stream #0.1: Audio: aac, 48000 Hz, stereo, s16 (default)
        Stream #0.2: Attachment: ttf
        Metadata:
          filename        : Androgyne_TB.otf
        Stream #0.3: Attachment: ttf
        Metadata:
          filename        : BellGothicStd-Black.otf
        Stream #0.4: Attachment: ttf
        Metadata:
          filename        : BellGothicStd-Bold.otf
        Stream #0.5: Attachment: ttf
        Metadata:
          filename        : Brianne_s_hand.ttf
        Stream #0.6: Attachment: ttf
        Metadata:
          filename        : ITCKabelStd-Medium.otf
        Stream #0.7: Attachment: ttf
        Metadata:
          filename        : kkberktp.ttf
        Stream #0.8: Attachment: ttf
        Metadata:
          filename        : POORICH.TTF
        Stream #0.9: Attachment: ttf
        Metadata:
          filename        : Sony_Sketch_EF.ttf
        Stream #0.10: Attachment: ttf
        Metadata:
          filename        : X-SCALE.TTF
        Stream #0.11: Attachment: ttf
        Metadata:
          filename        : YOUTHAN_.ttf
        Stream #0.12: Attachment: ttf
        Metadata:
          filename        : YOUTHANI.ttf
        Stream #0.13: Attachment: ttf
        Metadata:
          filename        : YOUTTX__.ttf
    At least one output file must be specified
    
    
    ---> DB Level Info: 41, 100
    ---> Frame rate: 23.98
    ---> Aspect ratio: 16:9
    Last edited by itsmydamnation; 09-12-2011 at 08:32 PM.

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
  •