{ "info": { "author": "david reid", "author_email": "zathrasorama@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Topic :: Multimedia :: Video :: Display", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "_**atavism** - an evolutionary throwback._\n\n# atavism\nPython module and script to allow playing videos to an AppleTV or Chromecast.\n\n## Usage\n\n> $ atavism ~/Videos/some_video.mp4\n\nThe output is simple :-)\n\n```\n Looking for devices...\n\n Found Apple TV [AppleTV3,2] 1920x1080 @ 192.168.xxxxxxx:7000\n\n Search complete.\n\n Creating the HLS stream...\n done\n HLS stream created: 4 segments...\n\n Playback: [### ] 7.031%\n Playback: [##### ] 11.081%\n Playback: [######## ] 16.117%\n Playback: [########## ] 21.151%\n Playback: [############# ] 26.690%\n Playback: [############### ] 31.725%\n Playback: [################## ] 36.760%\n Playback: [#################### ] 41.796%\n Playback: [####################### ] 46.834%\n Playback: [######################### ] 51.866%\n Playback: [############################ ] 56.904%\n Playback: [############################## ] 61.937%\n Playback: [################################# ] 66.972%\n Playback: [#################################### ] 72.007%\n Playback: [###################################### ] 77.043%\n Playback: [######################################### ] 82.078%\n Playback: [########################################### ] 87.113%\n Playback: [############################################## ] 92.148%\n Playback: [################################################ ] 97.183%\n Playback: [ Completed ] 100.000%\n```\n\nThis will look for ffmpeg and AppleTV or Chromecast devices on your network. If more than one is found a list should be\nshown allowing you to choose which to use. \n\nPresently the app will create an HLS stream to stream to the device. This step can take a while and so direct streaming\nis also supported using the --send-direct flag.\n\n> $ atavism --send-direct ~/Videos/some_video.mp4\n\nNB Whether the video is played depends on the support offered by the device.\n\n> $ atavism --hls-only ~/Videos/some_video.mp4\n\nThis simply creates the HLS files in a directory and exits. No attempt will be made to find a suitable device.\n\n## Usage Examples\n\nIf you know the IP address of an AppleTV...\n\n> $ atavism --ip 192.168.55.55 Video.mp4\n\nOr, if the device is a Chromecast...\n\n> $ atavism --ip 192.168.55.55 --chromecast Video.mp4\n\nTo log some additional debug output...\n \n> $ atavism --log some.log -v ...\n\n## Background\nThis module started with a desire for a way to play a video file on the TV using the AppleTV - from the command line. The\noriginal version of this app supported just teh AppleTV, but later versions (0.2 onwards) have also supported streaming\nto a Chromecast.\n\nThe external HTTP interface of the AppleTV isn't documented, but there is unofficial information available, primarily at \nhttp://nto.github.io/AirPlay.html, which allowed me to write this.\nThe Chromecast code shown here uses the Google cast API, which is documented but without the work of many people in the\nopen source world I wouldn't have been able to add support.\n\n## Why HLS?\nCreating the HLS stream takes time and delays the start of playback, so why use it? The simple answer is that for large files, once created it starts the playback faster. Additionally, while the stream is being created the video is correctly encoded, allowing a far wider range of formats to be played via the AppleTV than is possible when sending the files directly.\n\n## Status\nIt plays video files via an AppleTV or Chromecast device. \n\nThe http module is still a work in progress. It may see more development depending on how my time go and it's use in some of my other projects. It's bundled here to reduce dependency issues.\n\nBasic logging support has been added, but this needs to be expanded to be more useful.\n\nThe tests provide only a basic coverage, but are useful.\n\nAs always, feedback is welcome and contributions doubly so!\n\n## Todo\n* I really need to add logging support to see what's going on when it doesn't work as expected.\n* The progress bar doesn't work as it should under Python3.\n\n## Notes\n* For HLS support this module requires a recent build of ffmpeg.\n\n## Future Plans\nThis was written for my own use, but there are a few things I have considered for the future. If anyone else finds this useful, that may help with my time planning :-)\n\n* Improve the code :-)\n* Add more logging", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/zathras777/atavism/tarball/0.2", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/zathras777/atavism", "keywords": "appletv video ffmpeg streaming", "license": "Unlicense", "maintainer": null, "maintainer_email": null, "name": "atavism", "package_url": "https://pypi.org/project/atavism/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/atavism/", "project_urls": { "Download": "https://github.com/zathras777/atavism/tarball/0.2", "Homepage": "https://github.com/zathras777/atavism" }, "release_url": "https://pypi.org/project/atavism/0.2/", "requires_dist": null, "requires_python": null, "summary": "Module to play video to an AppleTV", "version": "0.2" }, "last_serial": 1574911, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "b78fb67eea6c37574da24468c145e8e5", "sha256": "3bbabedd8b05fbca8ee59bb2333a267b8e17f7268de1c0216d0d8071271e0c33" }, "downloads": -1, "filename": "atavism-0.1.tar.gz", "has_sig": false, "md5_digest": "b78fb67eea6c37574da24468c145e8e5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24850, "upload_time": "2015-04-20T09:42:40", "url": "https://files.pythonhosted.org/packages/0e/79/24b3e3322f5ad3f0941e49d9adc689612aa4bbc28a79cfad7a6d07ea4af4/atavism-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "96a1feafe7f8a742bc4a11082da7715e", "sha256": "9564c679588e1e64056e310eaa9fc323801ecef73292e43e549a274b8ec32173" }, "downloads": -1, "filename": "atavism-0.2.tar.gz", "has_sig": false, "md5_digest": "96a1feafe7f8a742bc4a11082da7715e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30175, "upload_time": "2015-06-02T13:00:35", "url": "https://files.pythonhosted.org/packages/97/21/0c01de90b002b7294081a2de4d369432c476a64772bb6ab5630f9421f5e7/atavism-0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "96a1feafe7f8a742bc4a11082da7715e", "sha256": "9564c679588e1e64056e310eaa9fc323801ecef73292e43e549a274b8ec32173" }, "downloads": -1, "filename": "atavism-0.2.tar.gz", "has_sig": false, "md5_digest": "96a1feafe7f8a742bc4a11082da7715e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 30175, "upload_time": "2015-06-02T13:00:35", "url": "https://files.pythonhosted.org/packages/97/21/0c01de90b002b7294081a2de4d369432c476a64772bb6ab5630f9421f5e7/atavism-0.2.tar.gz" } ] }