Giter Club home page Giter Club logo

iencode-ng's Introduction

iencode-ng is the evolution of iencode , a set of scripts to ease encoding of movies and series for iPhone/iPod Touch.

This software require HandbrakeCLI 0.9.4 in your PATH

To install

You can easily install iencode-ng via easy_install

easy_install iencode-ng

You may need to use sudo, depending on your setup:

sudo easy_install iencode-ng

If you wish to install the latest (non-stable) development version from source, download the latest version of the code, either from http://github.com/tuxtof/iencode-ng/tarball/master or by running:

git clone git://github.com/tuxtof/iencode-ng.git

..then cd into the directory, and run:

sudo rake install

Basic usage

From the command line, simply run:

iencode the.file.mkv

For example:

$ iencode Chuck.3x03.mkv
Encoding file Chuck.3x03.mkv
Encoding: task 1 of 1, 0.58 %
Muxing: this may take awhile...
Processing is done

Command line arguments

There are various flags you can use with iencode, run..

iencode --help

..to see them, and a short description of each.

-h, --help show help message and exit

-d, --debug show all debugging info

-v, --verbose will provide some feedback [default]

-q, --quiet for ninja-like processing

-f, --force overwrite existing target movie file

-t, --tvtags tag file.mp4 after conversion with tvtags (required)

-m, --movietags tag file.mp4 after conversion with movietags (required)

-n, --renaming enable cleaning name for tvtags & movietags

-i, --itunes Automatically add to iTunes

-T, --test test mode, only encode 30 first seconds

--version show version information for iencode

iencode-ng's People

Contributors

tuxtof avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

iencode-ng's Issues

Unknown character issue in interactive tvtags.py

[Fitz] 23:41:58 ~/Desktop/
yann$ tvtags.py -i NCIS\ Los\ Angeles.1x10.mp4
Connecting to the TVDB...
Retrieving Show Information...
TVDB Search Results:
1 -> NCIS [en] # http://thetvdb.com/?tab=series&id=72108
2 -> NCIS : Enquêtes spéciales [fr] # http://thetvdb.com/?tab=series&id=72108
3 -> NCIS : Los Angeles [fr] # http://thetvdb.com/?tab=series&id=95441
4 -> NCIS: Los Angeles [en] # http://thetvdb.com/?tab=series&id=95441
Enter choice (first number, ? for help):
4
TVDB Search Results:
1 -> NCIS : Los Angeles [fr] # http://thetvdb.com/?tab=series&id=95441
2 -> NCIS: Los Angeles [en] # http://thetvdb.com/?tab=series&id=95441
Enter choice (first number, ? for help):
2

List of available artwork
0. http://www.thetvdb.com/banners/seasons/95441-1.jpg
Example of listing: 0 2 4
List Images to Preview: 0
Artwork to use: 0
Downloaded Artwork: NCIS : Los Angeles Season 1.jpg
Traceback (most recent call last):
File "/Users/yann/bin/iencode-ng/tvtags.py", line 432, in
sys.exit(main())
File "/Users/yann/bin/iencode-ng/tvtags.py", line 428, in main
tvtags(opts, fullPath)
File "/Users/yann/bin/iencode-ng/tvtags.py", line 379, in tvtags
artworkFileName = artwork(opts, opts.interactive, program, series)
File "/Users/yann/bin/iencode-ng/tvtags.py", line 282, in artwork
os.popen("curl %s -o "%s" "%s"" % (curlVerbosity, artworkFullFileName, artworkUrl))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xa0' in position 73: ordinal not in range(128)

processing shouldn't stop on errors

As soon as an error in encountered, iencode-ng stops processing the queue (the files provided in the command line). Most of the time the error is not critical and would not prevent other files to be processed.

Error while tagging a file

Maybe that specific show info did have a character that caused this issue.

getEpisodeSpecificInfo overview
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
Tagged: Chuck.4x02.m4v

Add a "move" option

iTunes has an interesting "Automatically add to iTunes" folder located in iTunes Music folder.
It would be nice if, after encoding, iencode-ng move the file in that folder

Problem with UTF8 characters in path handling

yann$ tvtags.py NCIS\ Los\ Angeles.1x10.mp4
Connecting to the TVDB...
Retrieving Show Information...
Downloaded Artwork: NCIS : Enquêtes spéciales Season 1.jpg
Traceback (most recent call last):
File "/Users/yann/bin/iencode-ng/tvtags.py", line 432, in
sys.exit(main())
File "/Users/yann/bin/iencode-ng/tvtags.py", line 428, in main
tvtags(opts, fullPath)
File "/Users/yann/bin/iencode-ng/tvtags.py", line 379, in tvtags
artworkFileName = artwork(opts, opts.interactive, program, series)
File "/Users/yann/bin/iencode-ng/tvtags.py", line 282, in artwork
os.popen("curl %s -o "%s" "%s"" % (curlVerbosity, artworkFullFileName, artworkUrl))
UnicodeEncodeError: 'ascii' codec can't encode character u'\xea' in position 80: ordinal not in range(128)

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.