This project has moved. For the latest updates, please go here.

AAC LATM Conversion failure

Apr 13, 2015 at 9:07 PM
I'm sorry if this is already covered.

I've just donated and installed 2.4.1

All I want to do is to do a straight remux of my hd wtv files to mp4.

I've used the mp4 unprocessed (indeed I've also tried the mkv unprocessed). I've also edited the profiles to add the mp4 unprocessed AAC LATM. But each time the conversion fails and I get no output.

To make sure that I can make the program work I tried the wtv unprocessed and did indeed get a new file at the end of the process.

I'm obviously doing something wrong and should be grateful for your advice.

I've copied in one of the logs below (I trust that's ok).

Best wishes
Malcolm Clark

--> Starting conversion - DEBUG MESSAGES
INFORMATION> --> Windows OS Version -> Microsoft Windows NT 6.3.9600.0 (WIN_8_1_2013_SERVER_R2, Professional)
INFORMATION> --> Windows Platform -> 64 Bit
INFORMATION> --> MCEBuddy Build Platform -> 64 Bit
INFORMATION> --> MCEBuddy Build Version : 2.4.1.1
INFORMATION> --> MCEBuddy Build Date : 12/25/2014 09:30:26
INFORMATION> --> MCEBuddy Running as Service : True
--> Domain Name ->
User Name -> Guest
Password ->
Wake Hour -> -1
Wake Minute -> -1
Start Hour -> -1
Start Minute -> -1
Stop Hour -> -1
Stop Minute -> -1
Days of Week -> Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday
Minimum Age -> 0
Max Concurrent Jobs -> 1
Enable Job Logs -> True
Log Level -> 3
Log Keep Days -> 15
Use Recycle Bin -> False
Delete Original -> False
Archive Original -> False
Sync Converted -> False
Allow Sleep During Conversions -> True
Pause Conversion on Battery Power -> False
Send eMails -> False
eMail settings -> Send eMail Settings -> SMTP Server ->
Port -> 25
SSL -> False
User Name ->
Password ->
From ->
To ->
Bcc ->

eMail On Success -> True
eMail On Failure -> True
eMail On Cancellation -> True
eMail On Start -> True
eMail On Download Failure -> True
eMail On Queueing -> True
Custom subject for Successful conversion ->
Custom subject for Failed conversion ->
Custom subject for Cancelled conversion ->
Custom subject for Start of conversion ->
Custom subject for Download Failure ->
Custom subject for Queueing conversion ->
Skip eMail Body for notifications -> False

Locale -> en-GB
Temp Working Path ->
Archive Folder ->
Failed Folder ->
Space Check -> True
Custom Comskip Path ->
Custom profiles.conf ->
App Hang Timeout -> 300
Scan New Files Poll Period -> 300
Process Priority -> Normal
CPU Affinity -> 0
Engine Running -> True
Subtitle Cut Segment Incremental Offset -> 0
Local Server Port -> 23332
UPnP Enabled -> False
Firewall Exception Enabled -> False

--> Task -> WTV to MP4 remux
Profile -> MP4 Unprocessed AAC LATM
Source File -> E:\Recorded TV\Italy Unpacked_BBC Two HD_2015_04_13_07_12_00.wtv
Destination Path -> C:\Users\Malcolm\Documents
Working Path -> C:\Program Files\MCEBuddy2x\working0
Fallback Destination -> False
Skip ReProcessing -> False
Check Reprocessing History -> False
Auto Increment Filename -> False
Add to iTunes Library -> False
Add to WMP Library -> False
Max Width -> 720
Quality Multipltier -> 1
FPS ->
Auto DeInterlacing -> True
Prefer Hardware Encoding -> True
Volume Multipltier -> 0
DRC -> True
Force Stereo -> True
Encoder Select Best Audio Track -> True
Profile Audio Language ->
Audio Offset -> 0
Start Trim -> 0
End Trim -> 0
Closed Captions ->
Closed Captions Offset -> 2.5
Embed Subtitles and Chapters -> False
Commercial Removal -> None
Custom Comskip INI Path ->
Download Series Details -> True
Prioritize matching by Original Broadcast Date -> False
Force Show Type -> Default
Write Metadata -> True
Rename by Series -> True
Alt Rename by Series -> True
Custom Rename by Series ->
Rename Only -> False
File Selection Pattern ->
Show Selection Pattern ->
Channel Selection Pattern ->
Show Type Selection -> Default
DRM Type Selection -> All
Monitor Tasks Selection ->
Insert at Top of Queue -> False
Extract XML -> False
Disable Cropping -> False
Task Commercial Skip Cut -> False
Skip Copying Original File for Backup -> False
Skip Remuxing Original File to TS -> False
Ignore Copy Protection -> False
TiVO MAK Key ->
Domain Name ->
User Name ->
Password ->
Task Enabled -> True

--> Max Concurrent Jobs -> 1
--> Commercial Skip Cut (profile (CommercialSkipCut) + task) -> False
--> Auto DeInterlacing (profile (AutoDeinterlace) + task) -> True
--> Pre-Conversion Commercial Remover (PreConversionCommercialRemover) -> False
--> Copy LOG File (CopyLogFile) -> False
--> Copy PROPERTIES file (CopyPropertiesFile) -> False
--> Free Space Check -> True
--> Subtitle Cut Segment Incremental Offset -> 0
--> Locale Language -> ENG
--> .NET Framework Version -> 4.0, Service Pack -> 0
INFORMATION> 2015-04-13T20:48:08 MCEBuddy.Engine.ConversionJob --> Current System language is English (United Kingdom) (eng)
INFORMATION> 2015-04-13T20:48:08 MCEBuddy.Engine.ConversionJob --> Converting file -> E:\Recorded TV\Italy Unpacked_BBC Two HD_2015_04_13_07_12_00.wtv
--> Dumping complete information about the file E:\Recorded TV\Italy Unpacked_BBC Two HD_2015_04_13_07_12_00.wtv
2015-04-13T20:48:08 MCEBuddy.AppWrapper.Base --> Launching process C:\Program Files\MCEBuddy2x\ffmpeg\ffprobe.exe
2015-04-13T20:48:08 MCEBuddy.AppWrapper.Base --> Process arguments -probesize 100M -analyzeduration 300M -i "E:\Recorded TV\Italy Unpacked_BBC Two HD_2015_04_13_07_12_00.wtv"
2015-04-13T20:48:08 MCEBuddy.AppWrapper.Base --> UI Session Admin Process : False
2015-04-13T20:48:08 MCEBuddy.AppWrapper.Base --> Setting process priority to Normal
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> ffprobe version N-66779-gcb530dd Copyright (c) 2007-2014 the FFmpeg developers
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> built on Oct 10 2014 19:57:31 with gcc 4.8.2 (GCC)
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> configuration: --arch=x86_64 --target-os=mingw32 --cross-prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-x86_64/bin/x86_64-w64-mingw32- --pkg-config=pkg-config --enable-gpl --enable-libx264 --enable-avisynth --enable-libxvid --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --disable-w32threads --enable-frei0r --enable-filter=frei0r --enable-libvo-aacenc --enable-bzlib --enable-libxavs --extra-cflags=-DPTW32_STATIC_LIB --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --prefix=/home/mcebuddy/Software/ffmpeg/sandbox/mingw-w64-x86_64/x86_64-w64-mingw32 --enable-static --disable-shared --enable-libsoxr --enable-fontconfig --enable-libass --enable-libutvideo --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-libvidstab --enable-libx265 --extra-cflags= --extra-cflags= --enable-nonfree --enable-libfdk-aac --enable-libfaac --enable-runtime-cpudetect
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> libavutil 54. 10.100 / 54. 10.100
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> libavcodec 56. 4.101 / 56. 4.101
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> libavformat 56. 9.100 / 56. 9.100
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> libavdevice 56. 1.100 / 56. 1.100
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> libavfilter 5. 1.103 / 5. 1.103
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> libswscale 3. 1.100 / 3. 1.100
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> libswresample 1. 1.100 / 1. 1.100
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> libpostproc 53. 1.100 / 53. 1.100
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> [h264 @ 000000000311f860] mmco: unref short failure
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> Last message repeated 1 times
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> [wtv @ 00000000030bf6a0] Could not find codec parameters for stream 2 (Audio: aac_latm ([2][22][0][0] / 0x1602), 0 channels, fltp): unspecified sample rate
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> Consider increasing the value for the 'analyzeduration' and 'probesize' options
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> Input #0, wtv, from 'E:\Recorded TV\Italy Unpacked_BBC Two HD_2015_04_13_07_12_00.wtv':
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> Metadata:
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> WM/MediaClassPrimaryID: db9830bd-3ab3-4fab-8a371a995f7ff74
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> WM/MediaClassSecondaryID: ba7f258a-62f7-47a9-b21f4651c42a000
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> Title : Italy Unpacked
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> WM/SubTitle : In the Footsteps of the Poets
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> WM/SubTitleDescription: Andrew Graham-Dixon and Giorgio Locatelli journey along the west coast of Italy, stopping off at Genoa, the Cinque Terre, Pistoia, Pisa and Livorno.
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> genre : Interests;Travel
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> WM/OriginalReleaseTime: 2013
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> WM/MediaCredits : ;Cassie Farrell;Andrew Graham-Dixon/Giorgio Locatelli;
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> service_provider: BBC Two HD
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> service_name : BBC Two HD
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> WM/MediaOriginalChannel: 102
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> WM/MediaOriginalChannelSubNumber: 0
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> WM/MediaOriginalBroadcastDateTime: 2014-01-10T00:00:00Z
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base --> WM/MediaOriginalRunTime: 39538920812
2015-04-13T20:48:10 MCEBuddy.AppWrapper.Base -->
Coordinator
Apr 13, 2015 at 9:13 PM
please don't copy paste the log file (hope you're gone through the read me before posting thread).

Zip and upload the log file to the mcebuddy server.

BTW, AFAIK ffmpeg doesn't support AAC LATM in MP4 which is why it may be failing but upload your log file.

Apr 13, 2015 at 9:37 PM

OK, sorry that I did it wrong.

I’ve just uploaded the log file – it’s called Italy Unpacked_BBC Two …

I hope that helps

Best wishes

Malcolm

Coordinator
Apr 13, 2015 at 9:55 PM
Just as I thought, ffmpeg doesn't support aac_latm in MP4 containers.

2015-04-13T20:50:19 MCEBuddy.AppWrapper.FFmpeg --> Could not write header for output file #0 (incorrect codec parameters ?): Error number -22 occurred

You should use TS or MKV instead of MP4 and it'll work fine.

Apr 13, 2015 at 10:07 PM

Thank you for taking the time to investigate & reply.

I did use mkv and that failed also.

I’m sorry if I’m missing something here, but if you look at your discussions:

http://mcebuddy2x.codeplex.com/discussions/431449

it specifically mentions a profile for AAC LATM Audio – ‘Use the following profiles if you have AAC LATM audio in your WTV files (it will convert them to AC3 since aac latm are not supported by mp4 and mkv) …’

And I did try that profile (but it also failed)

Nevertheless, I’ll try TS and see how that goes.

Thank you

Coordinator
Apr 13, 2015 at 10:10 PM
that AAC profile (converting to mp3) should work. Please upload the log of the failed conversion so we can analyze it

Coordinator
Apr 13, 2015 at 10:11 PM
So:
MP4 format -> aac_latm -> NO (need to be converted to ac3)
MKV format -> aac_latm -> NO (need to be converted to ac3)
TS format -> aac_latm -> YES

Apr 13, 2015 at 10:14 PM

Will do, but I think it might be tomorrow – it’s getting late here!

Best wishes

Malcolm

Coordinator
Apr 13, 2015 at 11:02 PM
Edited Apr 13, 2015 at 11:02 PM
Sure, and try this, in your MP4 Unprocessed profile add the following to your ffmpeg-audio and ffmpeg-audioac3 lines
-absf aac_adtstoasc
this will strip the LATM headers and extract the raw AAC which should work.
Apr 14, 2015 at 8:02 PM
Thank you for your help.

I tried the unprocessed ts profile and that worked (although of course I got the AAC LATM audio which I can't hear) - but at least the profile worked.

I tried the MP4 unprocessed AAC LATM profile and also the MP4 unprocessed profile with the two audio lines edited as per your previous advice. Both of these failed.

I have uploaded the logs and a description - zipped folder called 'Italy unpacked'. I hope this helps.

Best wishes
Malcolm Clark