lol 6 Posted February 11, 2016 Posted February 11, 2016 Evening all, I'm basically looking for an answer to the title - Direct play XviD and transcode DivX. Possible? It seems I'm only allowed to specify "mpeg4" in the DLNA profiles so my server has to unnecessarily transcode Xvid videos. If this isn't possible, could I request that this be something to consider in a future release? I'm running version 3.0.5821.0 on Windows. Thanks very much!
Luke 38844 Posted February 11, 2016 Posted February 11, 2016 in the beta server there is now the CodecTag field which will have that info, although it will require refreshing the videos.
lol 6 Posted February 14, 2016 Author Posted February 14, 2016 That's awesome I think I'll give that a go! :-)
lol 6 Posted February 17, 2016 Author Posted February 17, 2016 Evening folks, So I'm running the latest beta server (Version 3.0.5880.0). I've refreshed my videos and can see Codec tag in the media info. How do I tell Emby that I want to direct play XviD and transcode DivX? Many thanks!
Happy2Play 9142 Posted February 18, 2016 Posted February 18, 2016 Don't have any in my library so what does the Media Info show for your media in those codecs?
lol 6 Posted February 18, 2016 Author Posted February 18, 2016 I have a few versions of DivX codec. I'll list a few and XviD is at the bottom... Media Info Video CodecMPEG4Codec tagDIVXProfileSimple ProfileLevel1Resolution720x576Aspect ratio5:4AnamorphicNoInterlacedNoFramerate29.97Bitrate773 kbpsPixel formatyuv420pRef frames1 Audio CodecMP3LayoutstereoChannels2 chBitrate187 kbpsSample rate44100 khzDefaultNo Containeravi Media Info Video CodecMPEG4Codec tagDX50Level-99Resolution720x400Aspect ratio16:9AnamorphicNoInterlacedNoFramerate29.97003Bitrate756 kbpsPixel formatyuv420pRef frames1 Audio CodecMP3LayoutstereoChannels2 chBitrate125 kbpsSample rate44100 khzDefaultNo Containeravi Media Info Video CodecMSMPEG4Codec tagDIV3Level-99Resolution608x336AnamorphicNoInterlacedNoFramerate23.976Bitrate854 kbpsPixel formatyuv420pRef frames1 Audio CodecMP3LayoutstereoChannels2 chBitrate123 kbpsSample rate48000 khzDefaultNo Containeravi Media Info Video CodecMPEG4Codec tagXVIDProfileAdvanced Simple ProfileLevel5Resolution640x480Aspect ratio4:3AnamorphicNoInterlacedNoFramerate29.97003Bitrate864 kbpsPixel formatyuv420pRef frames1 Audio CodecMP3LayoutstereoChannels2 chBitrate125 kbpsSample rate48000 khzDefaultNo Containeravi Many thanks!
Happy2Play 9142 Posted February 18, 2016 Posted February 18, 2016 (edited) What device/profile will this be for? The only way I can think of doing this would be creating a container conditions or codec conditions. Not sure the conditions can be together like this or if they need separated. <ContainerProfiles> <ContainerProfile type="Video" container="avi"> <Conditions> <ProfileCondition condition="Equals" property="VideoLevel" value="1" isRequired="true" /> <ProfileCondition condition="Equals" property="VideoLevel" value="-99" isRequired="true" /> </Conditions> </ContainerProfile> </ContainerProfiles> or <ContainerProfiles> <ContainerProfile type="Video" container="avi"> <Conditions> <ProfileCondition condition="Equals" property="VideoLevel" value="1" isRequired="true" /> </Conditions> </ContainerProfile> <ContainerProfile type="Video" container="avi"> <Conditions> <ProfileCondition condition="Equals" property="VideoLevel" value="-99" isRequired="true" /> </Conditions> </ContainerProfile> </ContainerProfiles> Maybe codec profile <CodecProfiles> <CodecProfile type="Video" codec="mpeg4"> <Conditions> <ProfileCondition condition="NotEquals" property="VideoProfile" value="Advanced Simple Profile" isRequired="true" /> </Conditions> </CodecProfile> <CodecProfiles> <CodecProfile type="Video" codec="mpeg4"> <Conditions> <ProfileCondition condition="NotEquals" property="VideoLevel" value="5" isRequired="true" /> </Conditions> </CodecProfile> Any of these should theoretically transcode your divx and still allow direct play of xvid. But still dependent on what will be playing them. @@Luke, are profiles going to use "codec tags"? If so do you have an example since none of the current profiles do. Edited February 18, 2016 by Happy2Play
lol 6 Posted February 18, 2016 Author Posted February 18, 2016 I'm using a slightly tweaked version of the Sony Bravia 2014 profile. My 2014 Bravia will quite happily play XviD encoded videos, yet wont play DivX, so distinguishing between these codecs would help cut down on needlessly transcoding XviD videos. I've tried setting the profile to direct play "xvid" but it seems to only accept "mpeg4", which to my understanding is more of a standard than a codec. Many thanks.
Happy2Play 9142 Posted February 18, 2016 Posted February 18, 2016 It will be trial and error but I believe the bottom one is probably the best option, it will transcode all mpeg4 files that aren't level 5.
lol 6 Posted February 18, 2016 Author Posted February 18, 2016 I'm just looking through my library and I'm seeing a few XviD's that are level 3 too. If someone was to implement this new code, I'd be more than happy to test! Many thanks.
Happy2Play 9142 Posted February 18, 2016 Posted February 18, 2016 Are all your xvid file "Advanced Simple Profile" for profile? If not then container conditions will have to be the testing route. Are you wanting me to post a full profile with these changes? You know you can add this code directly to the appropriate sections of the xml file. I would make a backup of your custom profile first. %appdata%\Emby-Server\config\dlna\user
lol 6 Posted February 19, 2016 Author Posted February 19, 2016 Most are advanced simple profile. There's a few simple profile level 3s. I didn't know I was able to edit the profile like that. Will give it a go tomorrow and let you know how I get on.
Happy2Play 9142 Posted February 19, 2016 Posted February 19, 2016 It isn't that hard, just open your modified Sony (2014) profile in the %appdata%\Emby-Server\config\dlna\user folder and just insert the conditions you want to add into the proper section. Each example I gave shows there sections, so all you need to insert is the <conditions>.
Flymy 3 Posted February 19, 2016 Posted February 19, 2016 Maybe you just have to activate in your TV divx!? You can find this for normal in the settings
lol 6 Posted February 22, 2016 Author Posted February 22, 2016 Not having much luck with this. I'll have a look through the DLNA logging. Flymy, no divx support whatsoever. Here's the codec list for my Bravia http://pdf.crse.com/manuals/14HE304111/EN/codeclist.html#section03
Redshirt 1487 Posted February 22, 2016 Posted February 22, 2016 When constructing your device profile, you can specify VideoCodecTag in your codec profiles. <CodecProfile type="Video" codec="mpeg4"> <Conditions> <ProfileCondition condition="NotEquals" property="VideoCodecTag" value="DIV3" isRequired="true" /> </Conditions> </CodecProfile> 1
lol 6 Posted February 22, 2016 Author Posted February 22, 2016 (edited) Redshirt, that works perfect! Thank you sir Edited February 22, 2016 by lol
Redshirt 1487 Posted February 22, 2016 Posted February 22, 2016 (edited) That error looks more like a structural error in the XML... The 'CodecProfiles' start tag on line 79 position 4 does not match the end tag of 'Profile'. Line 108, position 3. That says to me that the xml was missing a closing tag, or had too many. Or they were missmatched ie: <CodecProfile></Profile> Nevermind. You snuck in while I was tying to say it's fixed. Edited February 22, 2016 by Redshirt
lol 6 Posted February 22, 2016 Author Posted February 22, 2016 That error looks more like a structural error in the XML... The 'CodecProfiles' start tag on line 79 position 4 does not match the end tag of 'Profile'. Line 108, position 3. That says to me that the xml was missing a closing tag, or had too many. Or they were missmatched ie: <CodecProfile></Profile> Yep, it was missing a closing tag. My fault for being lazy with the copy and pasting!
Happy2Play 9142 Posted February 22, 2016 Posted February 22, 2016 So codectags can be used. Would this be better by container and not codec since this should only affect avi files instead of all mpeg4. <ContainerProfile type="Video" container="avi"> <Conditions> <ProfileCondition condition="NotEquals" property="VideoLevel" value="xvid" isRequired="true" /> </Conditions> </ContainerProfile> Should transcode all avi files that are not xvid.
lol 6 Posted February 23, 2016 Author Posted February 23, 2016 Evening folks. So after extensive testing and trial and error I have further tweaked the 2014 Bravia profile to Direct play what it's capable of and transcode the rest. Here's what I've done: Replaced the mpeg4 direct play profile with xvid... DirectPlayProfile container="avi" audioCodec="ac3,eac3,mp3,mp2" VideoCodecTag="xvid" type="Video" /> Added some codec profiles so it always transcodes these... <CodecProfiles> <CodecProfile type="Video" codec="mpeg4"> <Conditions> <ProfileCondition condition="NotEquals" property="VideoCodecTag" value="DX50" isRequired="true" /> <ProfileCondition condition="NotEquals" property="VideoCodecTag" value="DIVX" isRequired="true" /> </Conditions> </CodecProfile> <CodecProfile type="Video" codec="msmpeg4"> <Conditions> <ProfileCondition condition="NotEquals" property="VideoCodecTag" value="DIV3" isRequired="true" /> </Conditions> </CodecProfile> </CodecProfiles> I'm not sure if it's been pointed out before, but now I've added the VideoCodecTag property, the front end website doesn't work when I try to change my custom DLNA profile. All changes have to be made through editing the xml file. Thanks for all the help
Redshirt 1487 Posted February 23, 2016 Posted February 23, 2016 Well done lol. Luke (or anyone else), can you just verify for my own knowledge. The isRequired property... when set to false it only affects transcoding profiles, when set to true it affects both direct play/stream and transcoding?
Happy2Play 9142 Posted February 23, 2016 Posted February 23, 2016 I would think "NotEquals" would have given the opposite affect, transcoding everything not "DX50, DIVX, DIV3".
Redshirt 1487 Posted February 23, 2016 Posted February 23, 2016 Nah, I think that just re-enforces my question above. When direct playing "mpeg4" the "VideoCodecTag" must "NotEquals" "DX50" or "DIVX". Chances are when it transcodes, it's transcoding to AAC or MP3.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now