RESOLVED: DirecTV HRxx and Hxx Thread

Discuss media renderers like Xbox 360, TVs, smartphones, etc.
Post Reply
User avatar
DeFlanko
Posts: 724
Joined: Thu Jun 21, 2012 3:43 am
Location: San Pedro, CA
Contact:

Re: DirecTV HRxx and Hxx Thread

Post by DeFlanko »

:!: :!: :!: :!: :!: :!: :!:
So can anyone figure out why "other" media renderer's that use FFMpeg.exe:

Code: Select all

<location of ffmpeg.exe>\ffmpeg.exe -threads auto -i <Video to be played> -y -c:v mpeg2video -b:v 8192k -maxrate:v 8192k -bufsize:v 8192k -r 24000/1001 -g 15 -c:a mp2 -b:a 192k -ac 2 -map 0:0 -map 0:1 -sn -f vob <Some temp folder>\transcoding-temp-4-6-ORIGINAL.stf
I had to use Process Explorer to find this...

this works PERFECTLY for the Directv Media Share...

How.. can we incorporate this into UMS!?
:!: :!: :!: :!: :!: :!: :!:
Kilmer
Posts: 6
Joined: Wed May 22, 2013 8:03 am

Re: DirecTV HRxx and Hxx Thread

Post by Kilmer »

Still getting video with no audio on my end streaming through the Genie. Tried multiple configurations as posted above, but can't seem to get audio out of any of them.
User avatar
DeFlanko
Posts: 724
Joined: Thu Jun 21, 2012 3:43 am
Location: San Pedro, CA
Contact:

Re: DirecTV HRxx and Hxx Thread

Post by DeFlanko »

Kilmer wrote:Still getting video with no audio on my end streaming through the Genie. Tried multiple configurations as posted above, but can't seem to get audio out of any of them.
Im in the same boat...

still plugging away at it...
Spad
Posts: 1
Joined: Mon Jul 29, 2013 10:35 pm

Re: DirecTV HRxx and Hxx Thread

Post by Spad »

This may not pertain to the discussion here, but it solved a problem I had concerning DTV Genie and playable media. I found this forum looking for info on how to encode files, and found some useful data here. This may help others with the issue I had.

I have a Direct TV HR-34 with C-31 clients. I don't use the Universal Media Server software, but I do have a NAS drive that the Direct-TV hardware can "see", but I was unable to come up with a conversion program that would allow videos to be played . . . either the audio would be absent, or both audio and video. I finally found a shareware program (which I have since purchased) called MediaCoder vs 0.8.24.5540 that solved this problem for me. I was able to convert my video files to a format that the Direct TV hardware was able to play.

Used the following settings:

VIDEO: Container - MPEG TS. Video - MPEG2, using the FFmpeg Encoder, bitrate of 1000 Kbps, resolution 480 X 360, Auto De-interlace.

AUDIO: MP2, FFmpeg Encoder, Bitrate of 128 kbps, Sample Rate 48000 HZ

I have yet to find a media type this nifty program can't convert. The conversion is very fast, and the resulting video is of good quality. Again, this may have nothing to do with the discussion in this thread (which as I understand it concerns streaming video from a server through the Genie), but I thought I would post it anyway on the outside chance that someone else, as I did, may stumble upon this forum in search of answers. Like I said, I found some very useful data here.

Thanks
User avatar
DeFlanko
Posts: 724
Joined: Thu Jun 21, 2012 3:43 am
Location: San Pedro, CA
Contact:

Re: DirecTV HRxx and Hxx Thread

Post by DeFlanko »

Spad wrote:This may not pertain to the discussion here, but it solved a problem I had concerning DTV Genie and playable media. I found this forum looking for info on how to encode files, and found some useful data here. This may help others with the issue I had.

I have a Direct TV HR-34 with C-31 clients. I don't use the Universal Media Server software, but I do have a NAS drive that the Direct-TV hardware can "see", but I was unable to come up with a conversion program that would allow videos to be played . . . either the audio would be absent, or both audio and video. I finally found a shareware program (which I have since purchased) called MediaCoder vs 0.8.24.5540 that solved this problem for me. I was able to convert my video files to a format that the Direct TV hardware was able to play.

Used the following settings:

VIDEO: Container - MPEG TS. Video - MPEG2, using the FFmpeg Encoder, bitrate of 1000 Kbps, resolution 480 X 360, Auto De-interlace.

AUDIO: MP2, FFmpeg Encoder, Bitrate of 128 kbps, Sample Rate 48000 HZ

I have yet to find a media type this nifty program can't convert. The conversion is very fast, and the resulting video is of good quality. Again, this may have nothing to do with the discussion in this thread (which as I understand it concerns streaming video from a server through the Genie), but I thought I would post it anyway on the outside chance that someone else, as I did, may stumble upon this forum in search of answers. Like I said, I found some very useful data here.

Thanks

Spad I thank you for your contribution here.

I just wish I knew how to Incorporate the audio portion into a conf file.

I cant get MediaInfo=True to work to save my life...
User avatar
DeFlanko
Posts: 724
Joined: Thu Jun 21, 2012 3:43 am
Location: San Pedro, CA
Contact:

Re: DirecTV HRxx and Hxx Thread

Post by DeFlanko »

Ok so a few things...

First the DirectvHR.Conf file that comes packaged with the install is not the same I made:

Mine below [it has video working again... no audio yet]

Code: Select all

#----------------------------------------------------------------------------
# Profile for DirecTV HR-xx Series Boxes.
# See PS3.conf for a description of all possible configuration options.
#
# This profile is still in an experimental stage.
# You are encouraged to experiment and report back the results on the forums
# at http://www.universalmediaserver.com/forum/
#
#----------------------------------------------------------------------------
# General informations / detection

RendererName=DirecTV HR
RendererIcon=directvhr.png

# UserAgentSearch: regular expression to detect the connected renderer.
# DirecTV has been observed using the following user agents:
#
# User-Agent: Linux/2.6.18-lttng-0.6.41, UPnP/1.0 DIRECTV JHUPnP/1.0 DLNADOC/1.00 DIRECTV VIIV devices INTEL_NMPR/2.1
# User-Agent: Linux/2.6.18.5, UPnP/1.0 DIRECTV JHUPnP/1.0 DLNADOC/1.00 DIRECTV VIIV devices INTEL_NMPR/2.1
# User-Agent: Linux/2.6.31-2.6, UPnP/1.0 DIRECTV JHUPnP/1.0 DLNADOC/1.00 DIRECTV VIIV devices INTEL_NMPR/2.1
# User-Agent: Linux/2.6.31-2.6, UPnP/1.0 DIRECTV JHUPnP/1.0

# Combined regular expression of working user agents
UserAgentSearch=DIRECTV

# UserAgentAdditionalHeaders: additional HTTP header for better detection
UserAgentAdditionalHeader=DLNADOC/1.00 DIRECTV VIIV devices INTEL_NMPR/2.1
UserAgentAdditionalHeaderSearch=

#Basic capabilities
Video=true
Audio=true
Image=true

#----------------------------------------------------------------------------
# DLNA settings

# Use the DLNA feature seek by time and not by range
SeekByTime=true

# Serve different flavors of localization in the DLNA parameters (PAL/NTSC, NA/EU/JP)
# to allow every worldwide renderer to see the files.
DLNALocalizationRequired=true

#----------------------------------------------------------------------------
# Transcoding/Muxing capabilities
#

# Transcode profiles for video and audio engines
# currently supported: MPEGPSAC3, MPEGTSAC3 or WMV for video, LPCM, WAV or MP3 for audio
TranscodeVideo=MPEGPSAC3
#??????
TranscodeAudio=MP3

# Use default DVD buffer size: false = greater bitrate and faster encoding,
# but can generate incompatible videos, depends of your media renderer
DefaultVBVBufSize=true

# Does the media renderer supports DTS wrapped into LPCM in a mpeg file ?
WrapDTSIntoPCM=false

# Does the Device need Muxing? (false by default)
MuxH264ToMpegTS=true
MuxDTSToMpeg=true
MuxLPCMToMpeg=true

# MIME Changes? (oldmime=newmime|olemime2=newmime2|...)
#MimeTypesChanges=video/mpeg=video/mpeg2

# Maximum bit rate supported by the media renderer (0=unlimited)
MaxVideoBitrateMbps=8

# Max Width and Height supported by the media renderer (0=unlimited)
MaxVideoWidth=0
MaxVideoHeight=0

# Does the media renderer supports only H264 L4.1 at most?
H264Level41Limited=false

# Does music files need to be resampled at 44.1kHz?
TranscodeAudioTo441kHz=true

# Does the client need to receive transcoded video with minimal delay ?
# (Useful when the client has a small timeout delay)
TranscodeFastStart=true

# Size of the transcoded file (unknown length) sent to the renderer (could
# determine browsing failure/success) Possible values:
# 
#           -1: Specific value working with the PS3, means perfect transcoding
#               and copying support (it is against the DLNA spec though)
#            0: size attribute is NOT sent to the renderer (default value if
#               this parameter isn't used)
# 100000000000: 100Gb, if you want to be sure that the media file is not cut
#               before the end
TranscodedVideoFileSize=-1

#----------------------------------------------------------------------------
# Misc Settings

# Rotate JPEG files based on EXIF information
AutoExifRotate=false

# Disable these once MediaInfo=True works.
# What extensions are forcefully transcoded
# Don't use this if MediaInfo=true, prefer codec configurations

#TranscodeExtensions=mpeg2,lpcm,mp3,wav,jpg,mpegps,mpegts,wmv,avi,mp4,mov,flv,rm,mkv,wavpac,aac,ac3,mpa,ogg,wma,dts,dtshd,truehd,eac3,atrac,flac,ape,ra,mpc,aiff,alac,dv,mpeg1,divx,h264,mjpeg,vc1,png,gif,tiff,bmp,und

# What extensions are forcefully streamed as is (and not transcoded)
# Don't use this if MediaInfo=true, prefer codec configurations

#StreamExtensions=

#----------------------------------------------------------------------------
MediaInfo=false

# All supported media formats of this renderer (the rest will be transcoded)
# First steps towards a faster/proper file/codec/mimetype management system (false by default)
# 1- Parse files with mediainfo on Windows/OSX (Linux too if libmediainfo and libzen installed)
# 2- Deprecate following parameters: MuxH264ToMpegTS,MuxDTSToMpeg,MuxLPCMToMpeg,MimeTypesChanges
# 3- The server will skip badly parsed, corrupted files or wrong coding, preventing potential playback errors
# 4- Faster browsing, due to the launch of ffmpeg/mplayer first thumbnailer process with each http client request, rather than in the browse DLNA request
# Use MediaInfo for faster and proper file, codec and mime type management
# system (false by default).
#
# The media parser and this configuration file will recognize the following
# formats and codecs (lower case only, regular expressions are supported).
# Chosen from the most common used and supported formats and codecs.
#
#        mpegps	    (mpeg presentation stream, used in DVD Videos, VCDs, etc.)
#        mpegts     (mpeg transport stream, used in sat tv, blu rays, etc.)
#        wmv        (Windows Media Video, tag also used for asf files)
#        avi        (AVI container)
#        mp4        (ISOM/MPEG4 container, or MPEG4 codec)
#        mov        (Quicktime container, Apple)
#        flv        (Flash Video)
#        rm         (Real Media, RMVB)
#        mkv        (Matroska)
#        wav        (WAVE file)
#        wavpac     (WavPack)
#        lpcm       (Linear PCM)
#        aac        (Advanced Audio Codec)
#        ac3        (Audio Coding 3)
#        mp3        (Mpeg Audio Layer 3)
#        mpa        (Mpeg Audio)
#        ogg        (Ogg Vorbis)
#        wma        (Windows Media Audio)
#        dts        (Digital Theater Systems)
#        dtshd      (Digital Theater Systems)
#        truehd     (TrueHD)
#        eac3       (Extended AC3)
#        atrac      (Atrac)
#        flac       (Free Lossless Audio Codec)
#        ape        (Monkey's Audio)
#        ra         (Real Audio)
#        mpc        (MusePack)
#        aiff       (AIFF)
#        alac       (Apple Lossless)
#        dv         (Digital Video)
#        mpeg1      (Codec used in VCD)
#        mpeg2      (Codec used in DVD Videos and HDTV)
#        divx       (DivX Video)
#        h264       (H264)
#        mjpeg      (M-JPEG)
#        vc1        (VC-1)
#        jpg        (Jpeg)
#        png        (PNG)
#        gif        (GIF)
#        tiff       (TIFF)
#        bmp        (Bitmap)
#        und        (Undetermined, if the parser did not recognize one of above)
# Usage [IN ORDER TOO]:
#    f: format, MANDATORY (the only conf for a 'eat everything' renderer would be f:.+)
#    v: video codec
#    a: audio codec
#    n: max nb of audio channels (2 or 6)
#    s: max audio sample frequency in Hz
#    b: max audio bitrate in bps
#    w: max width in pixels
#    h: max height in pixels
#    m: mimetype, STRONGLY RECOMMENDED (if not declared, an estimated value is assigned)
#    other flags: right now, only qpel and gmc (see avi)
#
# In case of multiple matches, the first mime type of the list is the used one.
# Be careful with regexps such as .+ : You should not use these except when you
# are sure your renderer is quite versatile.
# [Supported video formats]: 
#Supported = f:mpegts      v:mpeg2	a:mp2	n:2		s:48000		b:10000		m:video/mpeg

# [Supported audio formats]:
#Supported = f:mp3	n:2	s:44100	m:audio/mpeg

# [Supported image formats]:
#Supported = f:jpg	m:image/jpeg

# Use faster method to create DLNA tree with MediaInfo. Not supported by some renderers,
# false by default (upnp specification violation).
CreateDLNATreeFaster = true

#----------------------------------------------------------------------------

Secondly my debug file:

Code: Select all

INFO  2013-07-30 19:09:43.619 [New I/O worker #3] Starting transcode/remux of Avatar.2009.mp4
DEBUG 2013-07-30 19:09:43.634 [New I/O worker #3] Creating pipe \\.\pipe\mencoder1375236583634
DEBUG 2013-07-30 19:09:43.712 [Thread-217] Waiting for pipe connection \\.\pipe\mencoder1375236583634
DEBUG 2013-07-30 19:09:43.775 [mencoder.exe-50] Starting "E:\Program Files (x86)\Universal Media Server\win32\mencoder.exe" -ss 0 E:\Media\Movies\!Blu-Ray\Avatar.2009.mp4 -msglevel statusline=2 -oac lavc -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavdopts debug=0:threads=4 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=640:threads=8:keyint=25:vqmax=5:vqmin=2:vrc_maxrate=3000:vrc_buf_size=1835 -nosub -noautosub -ofps 24000/1001 -lavdopts fast -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o \\.\pipe\mencoder1375236583634
DEBUG 2013-07-30 19:09:43.775 [mencoder.exe-50] Reading pipe: \\.\pipe\mencoder1375236583634
DEBUG 2013-07-30 19:09:43.775 [mencoder.exe-50] Attaching thread: mencoder.exe-50
DEBUG 2013-07-30 19:09:43.791 [Thread-221] MEncoder SB52 (C) 2000-2013 MPlayer Team
DEBUG 2013-07-30 19:09:43.791 [Thread-221] Custom build by SubJunk, http://www.spirton.com
DEBUG 2013-07-30 19:09:43.791 [Thread-221] 
DEBUG 2013-07-30 19:09:43.791 [Thread-221] success: format: 0  data: 0x0 - 0x6354d105
DEBUG 2013-07-30 19:09:43.791 [Thread-221] libavformat version 54.61.101 (internal)
DEBUG 2013-07-30 19:09:43.791 [Thread-221] libavformat file format detected.
INFO  2013-07-30 19:09:43.846 [StartPlaying Event] Started playing Avatar.2009.mp4 on your DirecTV HR
DEBUG 2013-07-30 19:09:43.847 [StartPlaying Event] The full filename of which is: E:\Media\Movies\!Blu-Ray\Avatar.2009.mp4 and the address of the renderer is: 172.10.1.92
DEBUG 2013-07-30 19:09:43.863 [Thread-220] [mov,mp4,m4a,3gp,3g2,mj2 @ 01dc0560]stream 0, timescale not set
DEBUG 2013-07-30 19:09:43.931 [Thread-220] [mov,mp4,m4a,3gp,3g2,mj2 @ 01dc0560]Stream #4: not enough frames to estimate rate; consider increasing probesize
DEBUG 2013-07-30 19:09:43.931 [Thread-220] [mov,mp4,m4a,3gp,3g2,mj2 @ 01dc0560]Stream #5: not enough frames to estimate rate; consider increasing probesize
DEBUG 2013-07-30 19:09:43.931 [Thread-220] [mov,mp4,m4a,3gp,3g2,mj2 @ 01dc0560]Stream #6: not enough frames to estimate rate; consider increasing probesize
DEBUG 2013-07-30 19:09:43.932 [Thread-221] [lavf] stream 0: video (h264), -vid 0
DEBUG 2013-07-30 19:09:43.932 [Thread-221] [lavf] stream 1: audio (aac), -aid 0, -alang eng
DEBUG 2013-07-30 19:09:43.932 [Thread-221] [lavf] stream 2: audio (aac), -aid 1, -alang eng
DEBUG 2013-07-30 19:09:43.932 [Thread-221] [lavf] stream 3: audio (aac), -aid 2, -alang eng
DEBUG 2013-07-30 19:09:43.932 [Thread-221] [lavf] stream 4: subtitle (dvdsub), -sid 0, -slang eng
DEBUG 2013-07-30 19:09:43.932 [Thread-221] [lavf] stream 5: subtitle (mov_text), -sid 1, -slang und
DEBUG 2013-07-30 19:09:43.932 [Thread-221] [lavf] stream 6: video (mjpeg), -vid 1
DEBUG 2013-07-30 19:09:43.932 [Thread-221] VIDEO:  [H264]  1916x1078  24bpp  23.976 fps  7379.4 kbps (900.8 kbyte/s)
DEBUG 2013-07-30 19:09:43.932 [Thread-221] [V] filefmt:44  fourcc:0x34363248  size:1916x1078  fps:23.976  ftime:=0.0417
DEBUG 2013-07-30 19:09:43.932 [Thread-221] ==========================================================================
DEBUG 2013-07-30 19:09:43.933 [Thread-221] Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
DEBUG 2013-07-30 19:09:43.933 [Thread-221] libavcodec version 54.89.100 (internal)
DEBUG 2013-07-30 19:09:43.935 [Thread-221] AUDIO: 48000 Hz, 6 ch, floatle, 447.3 kbit/4.85% (ratio: 55907->1152000)
DEBUG 2013-07-30 19:09:43.935 [Thread-221] Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
DEBUG 2013-07-30 19:09:43.935 [Thread-221] ==========================================================================
DEBUG 2013-07-30 19:09:43.935 [Thread-217] Result of \\.\pipe\mencoder1375236583634 : true
DEBUG 2013-07-30 19:09:43.936 [Thread-221] PACKET SIZE: 2048 bytes, deltascr: 884
DEBUG 2013-07-30 19:09:43.936 [Thread-221] Opening video filter: [expand osd=1]
DEBUG 2013-07-30 19:09:43.936 [Thread-221] Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
DEBUG 2013-07-30 19:09:43.936 [Thread-221] ==========================================================================
DEBUG 2013-07-30 19:09:43.936 [Thread-221] Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
DEBUG 2013-07-30 19:09:43.938 [Thread-221] Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
DEBUG 2013-07-30 19:09:43.938 [Thread-221] ==========================================================================
DEBUG 2013-07-30 19:09:43.938 [Thread-220] [ac3 @ 01de9fa0]Channel layout not specified
DEBUG 2013-07-30 19:09:43.938 [Thread-220] [ac3 @ 01de9fa0]No channel layout specified. The encoder will guess the layout, but it might be incorrect.
DEBUG 2013-07-30 19:09:43.938 [Thread-220] Limiting audio preload to 0.4s.
DEBUG 2013-07-30 19:09:43.938 [Thread-220] Increasing audio density to 4.
DEBUG 2013-07-30 19:09:43.951 [Thread-221] Movie-Aspect is undefined - no prescaling applied.
DEBUG 2013-07-30 19:09:43.951 [Thread-221] videocodec: libavcodec (1916x1078 fourcc=3267706d [mpg2])
DEBUG 2013-07-30 19:09:44.023 [Thread-221] Writing header...
DEBUG 2013-07-30 19:09:44.023 [Thread-221] INITV: 0.200, 0.158, fps: 23.976
DEBUG 2013-07-30 19:09:44.023 [Thread-221] 
DEBUG 2013-07-30 19:09:44.506 [Thread-220] [mpeg2video @ 01de9fa0]rc buffer underflow
DEBUG 2013-07-30 19:09:44.528 [Thread-220] [mpeg2video @ 01de9fa0]rc buffer underflow
DEBUG 2013-07-30 19:09:44.550 [Thread-220] [mpeg2video @ 01de9fa0]rc buffer underflow
DEBUG 2013-07-30 19:09:44.566 [Thread-220] [mpeg2video @ 01de9fa0]rc buffer underflow
DEBUG 2013-07-30 19:09:44.582 [Thread-220] [mpeg2video @ 01de9fa0]rc buffer underflow
DEBUG 2013-07-30 19:09:44.598 [Thread-220] [mpeg2video @ 01de9fa0]rc buffer underflow
DEBUG 2013-07-30 19:09:44.614 [Thread-220] [mpeg2video @ 01de9fa0]rc buffer underflow
DEBUG 2013-07-30 19:09:44.629 [Thread-220] [mpeg2video @ 01de9fa0]rc buffer underflow
DEBUG 2013-07-30 19:09:44.649 [Thread-220] [mpeg2video @ 01de9fa0]rc buffer underflow
DEBUG 2013-07-30 19:09:44.664 [Thread-220] [mpeg2video @ 01de9fa0]rc buffer underflow
does anyone know how to edit the "Expert settings: Codec Specific parameters" I think something might have to be added there.
User avatar
DeFlanko
Posts: 724
Joined: Thu Jun 21, 2012 3:43 am
Location: San Pedro, CA
Contact:

Re: DirecTV HRxx and Hxx Thread

Post by DeFlanko »

:!: :!: :!: :!: Final for Release :!: :!: :!: :!:

Code: Select all

#----------------------------------------------------------------------------
# Profile for DirecTV 
# Boxes Tested: H23-600, H25-500, HR34-700 (Genie), HR24-500 (DVR)
# See PS3.conf for a description of all possible configuration options.
#
# This profile is still in an experimental stage.
# You are encouraged to experiment and report back the results on the forums
# at http://www.universalmediaserver.com/forum/
#
# Know Issues: if three or more boxes are trying to watch the same movie at the same time, 
# the third box will jump into someones stream; not intrupting the origional streamer.
# 
#---------------------General informations / detection-----------------------

RendererName=DirecTV HR
RendererIcon=directvhr.png

# UserAgentSearch: regular expression to detect the connected renderer.
# DirecTV has been observed using the following user agents:
#
# User-Agent: Linux/2.6.18-lttng-0.6.41, UPnP/1.0 DIRECTV JHUPnP/1.0 DLNADOC/1.00 DIRECTV VIIV devices INTEL_NMPR/2.1
# User-Agent: Linux/2.6.18.5, UPnP/1.0 DIRECTV JHUPnP/1.0 DLNADOC/1.00 DIRECTV VIIV devices INTEL_NMPR/2.1
# User-Agent: Linux/2.6.31-2.6, UPnP/1.0 DIRECTV JHUPnP/1.0 DLNADOC/1.00 DIRECTV VIIV devices INTEL_NMPR/2.1
# User-Agent: Linux/2.6.31-2.6, UPnP/1.0 DIRECTV JHUPnP/1.0

# Combined regular expression of working user agents
UserAgentSearch=DIRECTV

# UserAgentAdditionalHeaders: additional HTTP header for better detection
UserAgentAdditionalHeader=DLNADOC/1.00 DIRECTV VIIV devices INTEL_NMPR/2.1
UserAgentAdditionalHeaderSearch=

#Basic capabilities
Video=true
Audio=true
Image=true

#--------------------DLNA settings-------------------------------------------


# Use the DLNA feature seek by time and not by range
SeekByTime=true

# Serve different flavors of localization in the DLNA parameters (PAL/NTSC, NA/EU/JP)
# to allow every worldwide renderer to see the files.
DLNALocalizationRequired=true

#--------------------Transcoding/Muxing capabilities-------------------------

# Transcode profiles for video and audio engines
# currently supported: MPEGPSAC3, MPEGTSAC3 or WMV for video, LPCM, WAV or MP3 for audio
TranscodeVideo=MPEGPSAC3
#??????
TranscodeAudio=MP3

# Use default DVD buffer size: false = greater bitrate and faster encoding,
# but can generate incompatible videos, depends of your media renderer
DefaultVBVBufSize=true

# Does the media renderer supports DTS wrapped into LPCM in a mpeg file ?
WrapDTSIntoPCM=false

# Does the Device need Muxing? (false by default)
MuxH264ToMpegTS=true
MuxDTSToMpeg=true
MuxLPCMToMpeg=true

# MIME Changes? (oldmime=newmime|olemime2=newmime2|...)
#MimeTypesChanges=

# Maximum bit rate supported by the media renderer (0=unlimited)
MaxVideoBitrateMbps=8

# Max Width and Height supported by the media renderer (0=unlimited)
MaxVideoWidth=0
MaxVideoHeight=0

# Does the media renderer supports only H264 L4.1 at most?
H264Level41Limited=false

# Does music files need to be resampled at 44.1kHz?
TranscodeAudioTo441kHz=true

# Does the client need to receive transcoded video with minimal delay ?
# (Useful when the client has a small timeout delay)
TranscodeFastStart=true

# Size of the transcoded file (unknown length) sent to the renderer (could
# determine browsing failure/success) Possible values:
# 
#           -1: Specific value working with the PS3, means perfect transcoding
#               and copying support (it is against the DLNA spec though)
#            0: size attribute is NOT sent to the renderer (default value if
#               this parameter isn't used)
# 100000000000: 100Gb, if you want to be sure that the media file is not cut
#               before the end
TranscodedVideoFileSize=-1

#--------------------Misc Settings--------------------------------------------

# Rotate JPEG files based on EXIF information
AutoExifRotate=false

# Disable these once MediaInfo=True works.
# What extensions are forcefully transcoded
# Don't use this if MediaInfo=true, prefer codec configurations

#TranscodeExtensions=mpeg2,lpcm,mp3,wav,jpg,mpegps,mpegts,wmv,avi,mp4,mov,flv,rm,mkv,wavpac,aac,ac3,mpa,ogg,wma,dts,dtshd,truehd,eac3,atrac,flac,ape,ra,mpc,a

iff,alac,dv,mpeg1,divx,h264,mjpeg,vc1,png,gif,tiff,bmp,und

# What extensions are forcefully streamed as is (and not transcoded)
# Don't use this if MediaInfo=true, prefer codec configurations

#StreamExtensions=

#--------------------Meat and Potatos----------------------------------------

# CustomMencoderOptions: Overrides the MEncoder custom options in UMS for
# this renderer. The below has been Tweeked for DirecTV MediaShare!

CustomMencoderOptions = -channels 2 -lavdopts debug=0:threads=4 -lavcopts 

autoaspect=1:vcodec=mpeg2video:acodec=mp2:abitrate=192:threads=8:keyint=25:vqmax=8:vqmin=3:vrc_maxrate=3000:vrc_buf_size=1835 -aid 0 -nosub -noautosub -ofps 

24000/1001 -vf scale=1280:720 -lavdopts fast -mc 0.1  -af lavcresample=44100 -srate 44100 -o

#hold
# -vf expand=-0:-2,softskip
#----------------------------------------------------------------------------
MediaInfo=false

# All supported media formats of this renderer (the rest will be transcoded)
# First steps towards a faster/proper file/codec/mimetype management system (false by default)
# 1- Parse files with mediainfo on Windows/OSX (Linux too if libmediainfo and libzen installed)
# 2- Deprecate following parameters: MuxH264ToMpegTS,MuxDTSToMpeg,MuxLPCMToMpeg,MimeTypesChanges
# 3- The server will skip badly parsed, corrupted files or wrong coding, preventing potential playback errors
# 4- Faster browsing, due to the launch of ffmpeg/mplayer first thumbnailer process with each http client request, rather than in the browse DLNA request
# Use MediaInfo for faster and proper file, codec and mime type management
# system (false by default).
#
# The media parser and this configuration file will recognize the following
# formats and codecs (lower case only, regular expressions are supported).
# Chosen from the most common used and supported formats and codecs.
#
#        mpegps	    (mpeg presentation stream, used in DVD Videos, VCDs, etc.)
#        mpegts     (mpeg transport stream, used in sat tv, blu rays, etc.)
#        wmv        (Windows Media Video, tag also used for asf files)
#        avi        (AVI container)
#        mp4        (ISOM/MPEG4 container, or MPEG4 codec)
#        mov        (Quicktime container, Apple)
#        flv        (Flash Video)
#        rm         (Real Media, RMVB)
#        mkv        (Matroska)
#        wav        (WAVE file)
#        wavpac     (WavPack)
#        lpcm       (Linear PCM)
#        aac        (Advanced Audio Codec)
#        ac3        (Audio Coding 3)
#        mp3        (Mpeg Audio Layer 3)
#        mpa        (Mpeg Audio)
#        ogg        (Ogg Vorbis)
#        wma        (Windows Media Audio)
#        dts        (Digital Theater Systems)
#        dtshd      (Digital Theater Systems)
#        truehd     (TrueHD)
#        eac3       (Extended AC3)
#        atrac      (Atrac)
#        flac       (Free Lossless Audio Codec)
#        ape        (Monkey's Audio)
#        ra         (Real Audio)
#        mpc        (MusePack)
#        aiff       (AIFF)
#        alac       (Apple Lossless)
#        dv         (Digital Video)
#        mpeg1      (Codec used in VCD)
#        mpeg2      (Codec used in DVD Videos and HDTV)
#        divx       (DivX Video)
#        h264       (H264)
#        mjpeg      (M-JPEG)
#        vc1        (VC-1)
#        jpg        (Jpeg)
#        png        (PNG)
#        gif        (GIF)
#        tiff       (TIFF)
#        bmp        (Bitmap)
#        und        (Undetermined, if the parser did not recognize one of above)
# Usage [IN ORDER TOO]:
#    f: format, MANDATORY (the only conf for a 'eat everything' renderer would be f:.+)
#    v: video codec
#    a: audio codec
#    n: max nb of audio channels (2 or 6)
#    s: max audio sample frequency in Hz
#    b: max audio bitrate in bps
#    w: max width in pixels
#    h: max height in pixels
#    m: mimetype, STRONGLY RECOMMENDED (if not declared, an estimated value is assigned)
#    other flags: right now, only qpel and gmc (see avi)
#
# In case of multiple matches, the first mime type of the list is the used one.
# Be careful with regexps such as .+ : You should not use these except when you
# are sure your renderer is quite versatile.
# [Supported video formats]: 
#Supported = f:mpegts      v:mpeg2	a:mp2	n:2		s:44100		b:192000		m:video/mpeg

# [Supported audio formats]:
#Supported = f:mp3	n:2	s:44100	m:audio/mpeg

# [Supported image formats]:
#Supported = f:jpg	m:image/jpeg

# Use faster method to create DLNA tree with MediaInfo. Not supported by some renderers,
# false by default (upnp specification violation).
CreateDLNATreeFaster = true

#----------------------------------------------------------------------------
Ladies and Gentlemen,
I present to you the working Conf for Directv Boxes. I have tested this on 4 Directv boxes all at the same time. All on a Gigabit LAN. Audio is working!

Please note: I limited the Video scale to 1280x720 (-vf scale=1280:720) for the single reason I have one box in my house that can only view 720p...

I will update the First page with this info for easier reading.
fullmetal172
Posts: 1
Joined: Tue Sep 03, 2013 3:05 am

Re: RESOLVED: DirecTV HRxx and Hxx Thread

Post by fullmetal172 »

I'm having some problems with this, when I add this code to the folder and then try to stream I get "The stream has been interrupted and could not continue" any advice?
User avatar
DeFlanko
Posts: 724
Joined: Thu Jun 21, 2012 3:43 am
Location: San Pedro, CA
Contact:

Re: RESOLVED: DirecTV HRxx and Hxx Thread

Post by DeFlanko »

Thats a new one... Can you replicate it with logging on Trace?
mmayo01
Posts: 2
Joined: Wed Sep 04, 2013 7:26 am

Re: RESOLVED: DirecTV HRxx and Hxx Thread

Post by mmayo01 »

I am also having the same issue.

My log is:

It seems something is going wrong with mencoder. whatever error code 1 is.
Post Reply