1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

mp4 transcoding appears to be eliminated

Discussion in 'TiVo Home Media Features & TiVoToGo' started by larry99, Feb 18, 2009.

  1. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Yes, I have. BTW, if you have a version with Keary's qt-faststart patch, it no longer matters if the moov atom is at the start.

    debug=True hasn't created a debug.txt file for a long time -- that was outdated documentation. (I've just corrected it.) Instead, it just adds more output, which still goes to the console, unless you redirect it or use the logging options.

    It might be that your audio is being reported as libfaad instead of mpeg4aac. I've added that to the pass-through list this morning.
     
  2. euckersw

    euckersw New Member

    23
    0
    Jan 30, 2004
    So what if we were to use a program like mkv2vob to remux a mkv file with h264 to a mp4 file?:

    http://www.videohelp.com/tools/mkv2vob

    Would that be able to trick Tivo into accepting the remuxed mkv without transcoding?
     
  3. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Sure. I wouldn't call that a trick, either.
     
  4. NA9D

    NA9D New Member

    196
    0
    May 26, 2008
    Algonquin, IL
    Thanks for the info. The latest release still isn't working for me. Just VPN'd into home and tried sending a show. Here's what my log file says:
    Code:
    DEBUG:pyTivo.video.transcode:(False, 'TRANSCODE=YES, vCodec h264 not compatible.'), /mnt/disk1/Media/Video/iTivoDownloads/My Friends Tigger & Pooh/My Friends Tigger & Pooh - Darby Goes Woozle Sluethin'; How the Tigger Lost His.mp4
    
    So I guess I'll have to run MediaInfo or whatever on this and report it back to ya'll because something isn't right...
     
  5. txporter

    txporter One sec, almost done

    666
    0
    Sep 17, 2006
    Austin, TX
    Yes, my audio is being reported as libfaad. Will try with your newest version and report back.

    Jason

    update: push seems to be working now with new build. Thanks! Also, can i queue more than one show to push to Tivo, or do I need to do one at a time as they finish?
     
  6. NA9D

    NA9D New Member

    196
    0
    May 26, 2008
    Algonquin, IL
    OK. Here is the info on one of my files....Perhaps someone can tell me why it's trying to transcode?

     
  7. NA9D

    NA9D New Member

    196
    0
    May 26, 2008
    Algonquin, IL
    And here's one more that wouldn't transfer right:

     
  8. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Thanks, I hadn't seen libfaad before, so I just added it to streambaby's list of recognized AAC codecs. Streambaby also has the additional id's listed for AAC audio. (All from various versions/configurations of ffmpeg):

    mp4a
    aac

    I think mp4a is what my stock Ubuntu 8.04 ffmpeg reported (i've since upgraded). The aac came from a user running a recent Mac version of ffmpeg.
     
  9. CuriousMark

    CuriousMark Forum Denizen

    2,606
    0
    Jan 13, 2005
    SoCal
    I don't know if this matters or not, but TiVo Desktop allows only one instance to be connected to mind at a time. So if users who are having trouble are also using TiVo Desktop Plus, perhaps the connection of pyTivo is being ignored. Just a thought from out in left field. I can't participate in any of this as a series 2 owner, so feel free to ignore this if it doesn't make sense.
     
  10. jasonrn

    jasonrn New Member

    16
    0
    Feb 3, 2007
    Does this work for Series 2?
     
  11. moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    NA9D, what is really needed is the output of:

    ffmpeg -i "/Volumes/Media-1/Video/iTivoDownloads/My Friends Tigger & Pooh/My Friends Tigger & Pooh - Darby Goes Woozle Sluethin'; How the Tigger Lost His.mp4"

    ffmpeg -i "/Volumes/Media-1/Video/MPEG4-H.264/Battlestar Galactica - 405 - The Road Less Traveled.mp4"

    The MediaInfo information seems to indicate these should work but perhaps the codec names don't match what is currently being checked in pyTivo.
     
  12. moyekj

    moyekj Well-Known Member

    11,141
    31
    Jan 23, 2006
    Mission...
    S2 machines don't have mpeg4 decoding capabilities so native mpeg4 pushes are not possible.
     
  13. NA9D

    NA9D New Member

    196
    0
    May 26, 2008
    Algonquin, IL
    Now you've opened a can of worms! :) There's something screwy with my FFMPEG install but I don't know what. I was hoping that these pushes wouldn't involve FFMPEG. I'll post some logs and maybe we can figure some of this out...

    FYI: I'm running pyTivo in this instance on a Buffalo Linkstation Live. I don't expect it to do well for heavy on the fly transcoding but it serves up MPEG-2s to the Tivo just fine. There is something funky though that I've not been able to figure out as it won't even get to transcoding an MPEG-4 file but errors out. So I'm not even able to get to the point where transcoding starts but the NAS is swamped...
     
  14. NA9D

    NA9D New Member

    196
    0
    May 26, 2008
    Algonquin, IL
    Here you go. I just included basically all the output. It goes through this over and over and over again.

    I was able to get one show yesterday to appear to push to the Tivo but FFMPEG got hung up and wouldn't transcode. Now it doesn't even get that far. Nothing ever shows up on the Tivo...

     
  15. wmcbrine

    wmcbrine Ziphead

    10,364
    22
    Aug 2, 2003
    Everything involves ffmpeg. Even when it's not used for transcoding, it's used to find out about the file -- codecs, bitrates, etc. The only exception is for .TiVo files.

    Edit: In the log you just posted, the audio track is identified as "mp4a / 0x6134706D". That's why it doesn't want to pass it without transcoding. I just now added "mp4a" to the list of recognized IDs, but it still won't work for that, because of the extra bit at the end.

    If you add that full string to the list in tivo_compatible_mp4() in plugins/video/transcode.py, it might work. Or you could upgrade your ffmpeg.
     
  16. NA9D

    NA9D New Member

    196
    0
    May 26, 2008
    Algonquin, IL
    This is what I'd like to do - upgrade my FFMPEG. Problem is, I'm not sure where to get a compiled version from. The version I am using is being supplied through iPKG but it does not seem to work well. So I'm not sure where to get another version compiled for the ARM processor. I'll admit I haven't looked real hard yet either...
     
  17. NA9D

    NA9D New Member

    196
    0
    May 26, 2008
    Algonquin, IL
    OK, looking at transcode.py, I see:

    Code:
      if vInfo['vCodec'] != 'h264':
            message = (False, 'TRANSCODE=YES, vCodec %s not compatible.' %
                              vInfo['vCodec'])
        elif vInfo['aCodec'] not in ('mpeg4aac', 'libfaad', 'ac3', 'liba52'):
            message = (False, 'TRANSCODE=YES, aCodec %s not compatible.' %
                              vInfo['aCodec'])
        else:
            message = (True, 'TRANSCODE=NO, passing through mp4.')
    
        logger.debug('%s, %s' % (message, inFile))
        return message
    
    I've never programmed in Python, but I do know a little and I see something that jumps out at me here - the first line...In English, I translate that to:

    If the Video Codec is H.264 then force transcoding because it's not compatible...or am I reading that wrong?

    I've got feeling I'm not because I changed the audio format and while that first appeared compatible, I'm still getting:

    DEBUG:pyTivo.video.transcode:aFreq=48000; vFps=59.94; kbps=1641; mapAudio=[('0.1', '(und)')]; vWidth=640; vCodec=h264; Supported=True; millisecs=1497600; par=None; aKbps=None; par2=None; par1=None; dar2=None; mapVideo=0.0; vHeight=368; dar1=None; aCodec=mp4a / 0x6134706D
    DEBUG:root:CACHE HIT! /mnt/disk1/Media/Video/iTivoDownloads/My Friends Tigger & Pooh/My Friends Tigger & Pooh - Darby Goes Woozle Sluethin'; How the Tigger Lost His.mp4
    DEBUG:pyTivo.video.transcode:(True, 'TRANSCODE=NO, passing through mp4.'), /mnt/disk1/Media/Video/iTivoDownloads/My Friends Tigger & Pooh/My Friends Tigger & Pooh - Darby Goes Woozle Sluethin'; How the Tigger Lost His.mp4

    .....


    DEBUG:pyTivo.video.transcode:(False, 'TRANSCODE=YES, vCodec h264 not compatible.'), /mnt/disk1/Media/Video/iTivoDownloads/My Friends Tigger & Pooh/My Friends Tigger & Pooh - Darby Goes Woozle Sluethin'; How the Tigger Lost His.mp4

    So it is failing on the H264 codec not compatible thing...
     
  18. kearygriffin

    kearygriffin New Member

    346
    0
    Jan 31, 2008
    Edit: I've removed this message because it was completely and utterly incorrect.
     
  19. NA9D

    NA9D New Member

    196
    0
    May 26, 2008
    Algonquin, IL
    Damn! I was going to try that.
     
  20. Yoav

    Yoav New Member

    1,048
    0
    Jan 12, 2007
    Not gonna comment about the rest, but
    '!' is standard (from C) terminology for NOT.

    So saying something like
    if (A != B) is a test for A NOT equal to B.

    So your whole interpretation of the rest is backwards.
     

Share This Page