Coder Social home page Coder Social logo

hlechner / wwidd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wwidd/wwidd

0.0 0.0 1.0 1.44 MB

Video library manager

Home Page: http://wwidd.com

License: MIT License

JavaScript 83.77% HTML 3.28% CSS 11.40% PLpgSQL 1.37% Batchfile 0.07% Shell 0.11%

wwidd's People

Contributors

danstocker avatar hlechner avatar

Watchers

 avatar  avatar

Forkers

jeanlopes

wwidd's Issues

Fix memory leak issue

example:

(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at process.EventEmitter.addListener (events.js:178:15)
    at process.on.process.addListener (node.js:599:26)
    at envelope (/home/hlechner/wwidd_testes/wwidd/server/src/ajax/envelope.js:43:10)
    at Object.run (/home/hlechner/wwidd_testes/wwidd/server/src/ajax/system.js:25:3)
    at Server.<anonymous> (/home/hlechner/wwidd_testes/wwidd/server/src/server.js:70:10)
    at Server.EventEmitter.emit (events.js:96:17)
    at HTTPParser.parser.onIncoming (http.js:1824:12)
    at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:111:23)
    at Socket.socket.ondata (http.js:1721:22)
    at TCP.onread (net.js:403:27)

Update start.sh

Update the start.sh file with some needed verification as example:

  • If nodejs exists (if node or nodejs)
  • If vlc exists
  • If ffmpeg exists
  • If SQLite exists
  • check node version

Implement "Collections"

Implement a "Collections" feature, so the user can create collections with the videos that he desires.

Make the thumbnails bigger

Actual size: SQCIF(128 ร— 96 [4:3])

example of how to generate a 320x180 thumbnail with ffmpeg command line in linux:

ffmpeg -i file.wmv -f image2 -vframes 1 -aspect 16:9 -filter:vf scale="'if(gt(a,16/9),320,-1)':'if(gt(a,16/9),-1,180)', pad=w=320:h=180:x=(ow-iw)/2:y=(oh-ih)/2:color=black" -ss 15 output10.jpg

Wwidd file:

  • server/src/tools/ffmpeg.js

16:9:

  • 320x180
  • 300x169
  • 252x142
  • 200x113

Thumbnail size references:

  • Youtube: 196x110
  • Vimeo: 301x169
  • Dailymotion: 300x169
  • Yahoo Videos: 300X168

Adult:

  • PornHub: 258x145
  • RedTube: 224x126
  • Xvideos: 253x190

add editable video information into db

Video information:

  • Year
  • Country (with country flag)
  • Source (DVD, VHS, Blu-RAY, Digital Media, etc)
  • Website/URL
  • Tittle
  • Notes
  • imdb

Associated:

  • Collections
  • Actors, directors, studios directory
  • Implement real Categories (not tags)
  • Categories/ Sub-Categories

Boolean:

  • favorite yes/no (heart icon)
  • fake yes/no

It doesn't get IP since nodejs v0.9.4

Since nodejs v0.9.4, wwidd doesn't capture the network IP and use the loopback instead.

It works on nodejs v0.9.3.

The change in v0.9.4 that result this behavior was the update of a new version of libuv, and the new version of libuv remove the libev depedence and create an own implementation.

As you can see on this commit:
joyent/libuv@1282d64


For some reason on version v0.9.4 and above are executing in different sequence.

the file tool.js called by ifconfig.js in some part of the code should enter on function onData(data) { however it doesn't go there at the time, leaving the wwidd without the ip.

New video formats

Target: server/src/utils/walker.js


MPEG-4 part 2 (.divx)

VLC - Yes
FFMPEG - Yes

real media (.rmbv)

VLC - Partial
FFMPEG - Yes

3gp (.3gp)

VLC - Yes
FFMPEG - Yes

mpeg (.mpg)

VLC - Yes
FFMPEG - Yes

flv (.flv)

VLC - Yes
FFMPEG - Yes

Webm: (.webm)

VLC - 1.1.0 [ jun/2010 ]
FFMPEG - 0.6 [ jun/2010 ]

Theora Vorbs: (.ogv)

VLC - Yes
FFMPEG - Yes

External config file

On root of wwidd folder could have a config file (using a INI format).

It allows the user to easily change important variables as example:

  • change the port
  • force loopback IP (boolean)
  • change the amount of videos per page
  • do not run the browser (boolean)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.