5 Replies - 749 Views - Last Post: 13 July 2019 - 06:14 AM

#1 mercy_angel   User is offline

  • D.I.C Regular

Reputation: 0
  • View blog
  • Posts: 444
  • Joined: 28-February 13

vlc codecs

Posted 12 July 2019 - 05:07 AM

Hi guys, i am having a some app which use vlc to stream some video. I am using ubuntu 18.I am facing lag in video.
So I tried on windows and working just fine.
Also tried to install ffmpeg but no lucky.
Can I try some other codes, or something else?
Is This A Good Question/Topic? 0
  • +

Replies To: vlc codecs

#2 baavgai   User is offline

  • Dreaming Coder
  • member icon


Reputation: 7492
  • View blog
  • Posts: 15,527
  • Joined: 16-October 07

Re: vlc codecs

Posted 12 July 2019 - 05:38 AM

Installing a new (different) codec is unlikely to buy you anything. Which is to say, VLC will choose the one that works based on the file format. Of course, updating the same codec could help.

So, is this issue on the same box? Which is to say, is the Linux as beefy as the Windows? Are you using vlc as the client or are you streaming to something else? Basically, is the only difference OS or are there other differences?

I usually encode everything in format my plex server, and display box, likes best. Even if it's theoretically the same format, normalizing frame rates can often do a world of good. Also, something like mkv should almost always be transcoded: it's a nice, tight, format that thrashes the CPU and isn't native to any hardware I'm aware of.

I've played around with a lot of encoders. My go to is HandBrake. I does everything I need out of the box without drama. I mean, you can ffmpeg to do the same thing, maybe, with some scripts, sometimes.
Was This Post Helpful? 0
  • +
  • -

#3 mercy_angel   User is offline

  • D.I.C Regular

Reputation: 0
  • View blog
  • Posts: 444
  • Joined: 28-February 13

Re: vlc codecs

Posted 13 July 2019 - 03:27 AM

app is java based, and windows just run it better, without any lag. Can't figure out what is that what missing in linux. Its updated, and install the same java like in windows.
Does anyone know or have idea what to try?
Was This Post Helpful? 0
  • +
  • -

#4 baavgai   User is offline

  • Dreaming Coder
  • member icon


Reputation: 7492
  • View blog
  • Posts: 15,527
  • Joined: 16-October 07

Re: vlc codecs

Posted 13 July 2019 - 03:55 AM

You're using Java and blaming VLC... So, I'm guessing the VLC client itself runs fine in both environments, but the mystery java app is somehow challenged?

Frankly, Windows simply runs Java faster than Linux. Or, more fairly, you have to work harder to make Java suck less on Linux. Googling java slower on linux will cough up some helpful hints.

Sadly, one quick fix is to load the proprietary Oracle JDK rather than the more Linux friendly OpenJDK. However, at the root is really an OS architecture issue. Windows seems to be better at blocking: not so great for multitasking, but great for gaming and other single process OS intensive things.
Was This Post Helpful? 0
  • +
  • -

#5 mercy_angel   User is offline

  • D.I.C Regular

Reputation: 0
  • View blog
  • Posts: 444
  • Joined: 28-February 13

Re: vlc codecs

Posted 13 July 2019 - 04:39 AM

thanks for that, i found something maybe helpfull. It is from Link
and it adding some java options in environment (best way)
_JAVA_OPTIONS=-Dsun.java2d.opengl=true

So Can you help me how to use it within my script?
Can I somehow call java with that option?
So, i am just using basic script to call some jar file.
/opt/java/bin/java -jar myfile.jar

Was This Post Helpful? 0
  • +
  • -

#6 baavgai   User is offline

  • Dreaming Coder
  • member icon


Reputation: 7492
  • View blog
  • Posts: 15,527
  • Joined: 16-October 07

Re: vlc codecs

Posted 13 July 2019 - 06:14 AM

Wouldn't that just be this?
/opt/java/bin/java -Dsun.java2d.opengl=true -jar myfile.jar


Was This Post Helpful? 0
  • +
  • -

Page 1 of 1