Jump to content

Optimize media


alekdavis

Recommended Posts

alekdavis

It would be nice if there were an option to optimize media with a single click (or select an option to optimize a library or a folder). Optimization would transcode the existing media into the most efficient format (whatever Emby considers most efficient, such as H.264 or H.265) keeping the original settings (size, subtitles, languages). Plex kind of does it, but it's a pain to replace the original video with the optimized one (unless you want to keep additional copies, which wastes space). (Before anyone suggests using Handrake for this, yes, it's possible to do it outside of Emby, but it would be so much easier if this option were available.)

  • Like 1
Link to comment
Share on other sites

  • 8 months later...
  • 5 months later...
darkside486

Hello,

at first let me say I am really psyched about the possibilities with emby. Love it, so I got premium member. :) One slight addition to this feature, would be really awesome, and time saving for me and maybe others. :D

Let me first explain, what situation I have got here. My Player doesn’t like my chosen audio-transcoding. Veryfied by downloading to my Device, trying to watch. Video is just fine, but no audio.

Here comes my kicking idea: I would love to have my server convert my audio from my mkv to the correct audio and leave my videostream as it is. Hope you are considering it.

Link to comment
Share on other sites

Hello,

at first let me say I am really psyched about the possibilities with emby. Love it, so I got premium member. :) One slight addition to this feature, would be really awesome, and time saving for me and maybe others. :D

Let me first explain, what situation I have got here. My Player doesn’t like my chosen audio-transcoding. Veryfied by downloading to my Device, trying to watch. Video is just fine, but no audio.

Here comes my kicking idea: I would love to have my server convert my audio from my mkv to the correct audio and leave my videostream as it is. Hope you are considering it.

 

Hi.  We already do this when we know the audio is not compatible with the device.

 

If you are having an issue, please create a new post with details so we can investigate.  Thanks.

 

How to Report a Problem

Link to comment
Share on other sites

  • 5 months later...
kalon33

Hi.  This exists now in 3.5.2.  It is called "Convert".

Hi, I cannot find it in 4.2.1.0 version. Where may I find it?

 

I've a lot of .m2ts files and my library would greatly benefit from this and free some space. Thanks!

Link to comment
Share on other sites

kalon33

Hi.  Click the '...' menu on any video item.

Oh ok, thanks! so there's no way to batch the process to the whole library and delete original files for now? Or to choose formats more suitable for high quality (h.265, VP9...)?

Link to comment
Share on other sites

kalon33

Yes you can do it on a parent folder.

Oh OK nice! So there's only the possibility to choose a better quality format that is currently missing.

 

Last question for now, which parameter is best suited to not lose quality and be usable on all devices, when saving some space? I would choose TV with Original bitrate but I'm not sure of my choice.

 

Thanks for making such a great software. If some things are missing for me (ability to retrieve data from Google Music for example, to send it on my UPnP devices, or to automatically start some media playing on some device at a given hour, to wake up for example, or to be able to select all media for an element to another in the list), I don't regret my lifetime premiere license :)

Link to comment
Share on other sites

Oh OK nice! So there's only the possibility to choose a better quality format that is currently missing.

 

Last question for now, which parameter is best suited to not lose quality and be usable on all devices, when saving some space? I would choose TV with Original bitrate but I'm not sure of my choice.

 

Thanks for making such a great software. If some things are missing for me (ability to retrieve data from Google Music for example, to send it on my UPnP devices, or to automatically start some media playing on some device at a given hour, to wake up for example, or to be able to select all media for an element to another in the list), I don't regret my lifetime premiere license :)

Thanks for the feedback. Why aren't you sure of that choice?

Link to comment
Share on other sites

kalon33

Thanks for the feedback. Why aren't you sure of that choice?

Because description associated with "Mobile" preset says its for all devices, and "TV" preset lists more precise devices. Furthermore, I don't know if "Original" bitrate is a good idea, or if a smaller one is great enough.

 

 

I just had a look at converting a file using TV and Original, and it seems not to use hardware decoding/encoding when it should use it (my intel graphics p630 supports it):

/opt/emby-server/bin/ffmpeg -re  -f mpegts -i file:"/srv/videos/TF1 - Salt - 04-11-2018 22h50 02h15 (316).m2ts" -map 0:0 -map 0:1 -map 0:2 -map 0:3 -sn -c:v:0 copy -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 aac -metadata:s:a:0 language=fre -disposition:a:0 default -ac:a:0 2 -ab:a:0 128000  -codec:a:1 aac -disposition:a:1 none -ac:a:1 2 -ab:a:1 128000  -codec:a:2 aac -metadata:s:a:2 language=fre -disposition:a:2 none -ac:a:2 2 -ab:a:2 128000  -y "/var/lib/emby/sync/4/4/ed581aad-3c4b-4874-9b9d-f6103c23a8b2.mp4"
[...]
Input #0, mpegts, from 'file:/srv/videos/TF1 - Salt - 04-11-2018 22h50 02h15 (316).m2ts':
  Duration: 02:12:58.82, start: 17897.571811, bitrate: 8963 kb/s
  Program 1537 
    Stream #0:0[0x78]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], Level 40, 25 fps, 25 tbr, 90k tbn, 50 tbc, Start-Time 17897.792s
    Stream #0:1[0x82](fra): Audio: eac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 128 kb/s, Start-Time 17897.604s
    Stream #0:2[0x83](qaa): Audio: eac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 128 kb/s, Start-Time 17897.604s
    Stream #0:3[0x84](fra): Audio: eac3 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, fltp, 96 kb/s, Start-Time 17897.572s (visual impaired)
    Stream #0:4[0x96](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006), Start-Time 17897.572s (hearing impaired)
    Stream #0:5[0x97](fra): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006), Start-Time 17897.572s
    Stream #0:6[0xaa]: Unknown: none ([5][0][0][0] / 0x0005), Start-Time 17897.572s
T=0.220s
T=0.221s
    Last message repeated 1 times
T=0.222s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (eac3 (native) -> aac (native))
  Stream #0:2 -> #0:2 (eac3 (native) -> aac (native))
  Stream #0:3 -> #0:3 (eac3 (native) -> aac (native))
T=0.222s
Press [q] to stop, [?] for help
elapsed=00:00:00.50 frame=    0 fps=0.0 q=-1.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbits/s throttle=off speed=N/A    
Output #0, mp4, to '/var/lib/emby/sync/4/4/ed581aad-3c4b-4874-9b9d-f6103c23a8b2.mp4':
  Metadata:
    encoder         : Lavf58.12.100
    Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, Level 40, 25 fps, 25 tbr, 90k tbn, 90k tbc
    Stream #0:1(fre): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      encoder         : Lavc58.18.100 aac
    Stream #0:2: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc58.18.100 aac
    Stream #0:3(fre): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc58.18.100 aac

Do you know why?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...