Jump to content


Photo
firetv

FireTV App: acc -> acc transcoding?

linux

  • Please log in to reply
3 replies to this topic

#1 asnguy01 OFFLINE  

asnguy01

    Advanced Member

  • Members
  • 34 posts
  • Local time: 11:11 AM

Posted 10 October 2016 - 08:17 PM

TITLE CORRECTION: aac -> aac transcoding

 

I have a FireTV 2nd gen, version 1.2.31a. Running Emby server version 3.0.7300.0 on Linux Ubuntu 15.04 server  I've transcoding all my media from mkv -> mp4 with aac with the intention of not requiring transcoding. However, when I play it on the FireTV app it looks like it's transcoding aac -> aac (and mp4 -> mkv). On the "Dashboard" it says Direct Streaming. The FireTV 2nd gen should handle mp4/aac files. When I play it on my Chrome browser it's Direct Playing.

 

Here's the server log:

http://***.***.***.***:8096/emby/videos/4129393f38220e9aea7c42a0838bb8a3/stream.mkv?DeviceId=7570f81cad992fd2&MediaSourceId=4129393f38220e9aea7c42a0838bb8a3&VideoCodec=h264&AudioCodec=aac,mp3&AudioStreamIndex=1&VideoBitrate=21158031&AudioBitrate=128000&PlaySessionId=99b36fc39e1543d2a62cb4e59f6b96bf&api_key=b4cd07bc148d432e80e12b080bb162c2&CopyTimestamps=true&ForceLiveStream=false

{"Protocol":"File","Id":"4129393f38220e9aea7c42a0838bb8a3","Path":"/mnt/media/tv/Game of Thrones/Season 06/Game.of.Thrones.S06E02.1080p.WEB.DL-NTB.mp4","Type":"Default","Container":"mp4","Name":"1080P/H264/AAC","ETag":"9f9193282f2039bbfe7b53087518f457","RunTimeTicks":32207790000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","CodecTag":"avc1","Language":"eng","TimeBase":"1/16000","CodecTimeBase":"42120147/2019745754","NalLengthSize":"4","IsInterlaced":false,"IsAVC":true,"BitRate":4806307,"BitDepth":8,"RefFrames":1,"IsDefault":true,"IsForced":false,"Height":1072,"Width":1912,"AverageFrameRate":23.97601,"RealFrameRate":23.97602,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":40,"IsAnamorphic":false},{"Codec":"aac","CodecTag":"mp4a","Language":"eng","TimeBase":"1/48000","CodecTimeBase":"1/48000","DisplayTitle":"Eng AAC stereo Default","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":160000,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Profile":"LC","Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"ac3","CodecTag":"ac-3","Language":"eng","TimeBase":"1/48000","CodecTimeBase":"1/48000","DisplayTitle":"Eng Dolby Digital 5.1","IsInterlaced":false,"ChannelLayout":"5.1","BitRate":384000,"Channels":6,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":2,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0},{"Codec":"srt","Language":"eng","DisplayTitle":"Eng","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":3,"IsExternal":true,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"/mnt/media/tv/Game of Thrones/Season 06/Game.of.Thrones.S06E02.1080p.WEB.DL-NTB.en.srt"},{"Codec":"srt","Language":"kor","DisplayTitle":"Kor","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":4,"IsExternal":true,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"/mnt/media/tv/Game of Thrones/Season 06/Game.of.Thrones.S06E02.1080p.WEB.DL-NTB.ko.srt"},{"Codec":"srt","Language":"vie","DisplayTitle":"Vie","IsInterlaced":false,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":5,"IsExternal":true,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"/mnt/media/tv/Game of Thrones/Season 06/Game.of.Thrones.S06E02.1080p.WEB.DL-NTB.vi.srt"}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":5359333,"RequiredHttpHeaders":{}}

/opt/ffmpeg/ffmpeg -fflags +genpts -i file:"/mnt/media/tv/Game of Thrones/Season 06/Game.of.Thrones.S06E02.1080p.WEB.DL-NTB.mp4" -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -copyts -avoid_negative_ts disabled -start_at_zero -map_metadata -1 -threads 0 -codec:a:0 aac -strict experimental -ab 128000 -af "aresample=async=1" -y "/tmp/transcoding-temp/24079d1a2b2cb07395e75087672a3d4c.mkv"


ffmpeg version 2.8.7 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
  configuration: --enable-static --disable-shared --enable-gpl --enable-nonfree --enable-zlib --enable-bzlib --enable-libfreetype --enable-fontconfig --enable-libass --enable-libfaac --enable-libfdk_aac --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libxvid --enable-libx264 --enable-libx265 --enable-libvpx --enable-libbluray --enable-runtime-cpudetect --disable-debug --extra-libs=' -lxml2 -ldl -L/usr/local/lib -lx265 -lstdc++ -lm -lrt' --extra-cflags=-static --extra-ldflags=-static
  libavutil      54. 31.100 / 54. 31.100
  libavcodec     56. 60.100 / 56. 60.100
  libavformat    56. 40.101 / 56. 40.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 40.101 /  5. 40.101
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  2.101 /  1.  2.101
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'file:/mnt/media/tv/Game of Thrones/Season 06/Game.of.Thrones.S06E02.1080p.WEB.DL-NTB.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    title           : Home
    album           : Game of Thrones, Season 6
    genre           : Adventure
    track           : 2/10
    disc            : 6
    date            : 2016-05-01
    encoder         : MDH:I6Zg9yO3HsIujDqF6apeVhytkJBqyh1X.mp4
    iTunEXTC        : us-tv|TV-MA|600
    iTunMOVI        : <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict>
                    : <key>cast</key><array>
                    : <dict><key>name</key><string>Emilia Clarke</string></dict>
                    : <dict><key>name</key><string>Peter Dinklage</string></dict>
                    : <dict><key>name</key><string>Kit Harington</string></dict>
                    : <dict><key>name</key><string>Nikolaj Coster-Waldau</string></dict>
                    : <dict><key>name</key><string>Isaac Hempstead-Wright</string></dict>
                    : </array>
                    : <key>screenwriters</key><array>
                    : <dict><key>name</key><string>Dave Hill</string></dict>
                    : </array>
                    : <key>directors</key><array>
                    : <dict><key>name</key><string>Jeremy Podeswa</string></dict>
                    : </array>
                    : </dict></plist>
                    : 
    media_type      : 10
    show            : Game of Thrones
    episode_id      : Home
    season_number   : 6
    episode_sort    : 2
    network         : HBO
    hd_video        : 2
    description     : Bran trains with the Three-Eyed Raven  In King’s Landing, Jaime advises Tommen  Tyrion demands good news, but has to make his own  At Castle Black, the Night’s Watch stands behind Thorne.
    synopsis        : Bran trains with the Three-Eyed Raven. In King’s Landing, Jaime advises Tommen. Tyrion demands good news, but has to make his own. At Castle Black, the Night’s Watch stands behind Thorne. Ramsay Bolton  proposes a plan, and Balon Greyjoy entertains ot
  Duration: 00:53:40.78, start: 0.042667, bitrate: 5359 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1912x1072 [SAR 1:1 DAR 239:134], 4806 kb/s, 23.98 fps, 23.98 tbr, 16k tbn, 32k tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Stream #0:2(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 384 kb/s
    Metadata:
      handler_name    : SoundHandler
    Side data:
      audio service type: main
[matroska @ 0x35e1f00] Codec for stream 0 does not use global headers but container format requires global headers
Output #0, matroska, to '/tmp/transcoding-temp/24079d1a2b2cb07395e75087672a3d4c.mkv':
  Metadata:
    encoder         : Lavf56.40.101
    Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p, 1912x1072 [SAR 1:1 DAR 239:134], q=2-31, 4806 kb/s, 23.98 fps, 23.98 tbr, 1k tbn, 16k tbc (default)
    Stream #0:1: Audio: aac ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      encoder         : Lavc56.60.100 aac
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
frame=   66 fps=0.0 q=-1.0 size=    2429kB time=00:00:02.71 bitrate=7338.6kbits/s    
frame=  106 fps= 99 q=-1.0 size=    4918kB time=00:00:04.39 bitrate=9169.0kbits/s    
frame=  175 fps=110 q=-1.0 size=    7361kB time=00:00:07.25 bitrate=8306.6kbits/s    
frame=  195 fps= 82 q=-1.0 size=    8351kB time=00:00:08.09 bitrate=8452.9kbits/s    

Edited by asnguy01, 10 October 2016 - 08:19 PM.


#2 asnguy01 OFFLINE  

asnguy01

    Advanced Member

  • Members
  • 34 posts
  • Local time: 11:11 AM

Posted 13 October 2016 - 03:17 PM

Any comment by developers?

I'm still having transcoding running the Beta server. However, now it's transcoding from MP4/aac to MKV/ac3. These MP4/aac files all direct play with Plex on the FireTV. Is there anything to fix this issue???


Sent from my iPhone using Tapatalk

#3 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 138076 posts
  • Local time: 12:11 PM

Posted 13 October 2016 - 03:18 PM

We are looking into this, thanks.



#4 asnguy01 OFFLINE  

asnguy01

    Advanced Member

  • Members
  • 34 posts
  • Local time: 11:11 AM

Posted 14 October 2016 - 12:06 PM

We are looking into this, thanks.

Great. Let me know if you need a video sample.







Also tagged with one or more of these keywords: firetv, linux

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users