home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 2
Plugin Development
Featured Plugins
MP2Extended
Plugin: MP2Extended
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="FreakyJ" data-source="post: 1158892" data-attributes="member: 106003"><p>That is strange <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /> does it also work with ffprobe? Just curious^^</p><p></p><p></p><p>According from the callstack it comes from here: AddTargetVideoFormatAndOutputFileParameters to InitTranscodingParameters and finally to AddInputOptions.</p><p></p><p>I don't know if data.InputResourceAccessor.ParentProvider.Metadata.NetworkResource is also true for files on a network share.</p><p>But maybe you could use save casts:</p><p>var someName = data.InputResourceAccessor as INetworkResourceAccessor;</p><p>if (someName != null) {</p><p>if ((someName .URL.StartsWith("rtsp://", StringComparison.InvariantCultureIgnoreCase))</p><p> {</p><p> data.GlobalArguments.Add("-rtsp_transport +tcp+udp");</p><p> data.GlobalArguments.Add("-analyzeduration 10000000");</p><p> }</p><p>}else{</p><p>// some debug logging to figure out whats wrong</p><p>}</p></blockquote><p></p>
[QUOTE="FreakyJ, post: 1158892, member: 106003"] That is strange :D does it also work with ffprobe? Just curious^^ According from the callstack it comes from here: AddTargetVideoFormatAndOutputFileParameters to InitTranscodingParameters and finally to AddInputOptions. I don't know if data.InputResourceAccessor.ParentProvider.Metadata.NetworkResource is also true for files on a network share. But maybe you could use save casts: var someName = data.InputResourceAccessor as INetworkResourceAccessor; if (someName != null) { if ((someName .URL.StartsWith("rtsp://", StringComparison.InvariantCultureIgnoreCase)) { data.GlobalArguments.Add("-rtsp_transport +tcp+udp"); data.GlobalArguments.Add("-analyzeduration 10000000"); } }else{ // some debug logging to figure out whats wrong } [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 2
Plugin Development
Featured Plugins
MP2Extended
Plugin: MP2Extended
Contact us
RSS
Top
Bottom