特殊:Badtitle/NS100:MythExport:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第114行: | 第114行: | ||
If you get any errors about aac, xvid, mp3, or h264 then your ffmpeg version may not have those enabled. The easiest way to fix this is to enable the Medibuntu repositories. | If you get any errors about aac, xvid, mp3, or h264 then your ffmpeg version may not have those enabled. The easiest way to fix this is to enable the Medibuntu repositories. | ||
---- | ---- | ||
[[category:CategoryDocumentation]] | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2008年10月19日 (日) 16:19的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/MythExport }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/af | • {{#if: UbuntuHelp:MythExport|Afrikaans| [[::MythExport/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/ar | • {{#if: UbuntuHelp:MythExport|العربية| [[::MythExport/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/az | • {{#if: UbuntuHelp:MythExport|azərbaycanca| [[::MythExport/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/bcc | • {{#if: UbuntuHelp:MythExport|جهلسری بلوچی| [[::MythExport/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/bg | • {{#if: UbuntuHelp:MythExport|български| [[::MythExport/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/br | • {{#if: UbuntuHelp:MythExport|brezhoneg| [[::MythExport/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/ca | • {{#if: UbuntuHelp:MythExport|català| [[::MythExport/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/cs | • {{#if: UbuntuHelp:MythExport|čeština| [[::MythExport/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/de | • {{#if: UbuntuHelp:MythExport|Deutsch| [[::MythExport/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/el | • {{#if: UbuntuHelp:MythExport|Ελληνικά| [[::MythExport/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/es | • {{#if: UbuntuHelp:MythExport|español| [[::MythExport/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/fa | • {{#if: UbuntuHelp:MythExport|فارسی| [[::MythExport/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/fi | • {{#if: UbuntuHelp:MythExport|suomi| [[::MythExport/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/fr | • {{#if: UbuntuHelp:MythExport|français| [[::MythExport/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/gu | • {{#if: UbuntuHelp:MythExport|ગુજરાતી| [[::MythExport/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/he | • {{#if: UbuntuHelp:MythExport|עברית| [[::MythExport/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/hu | • {{#if: UbuntuHelp:MythExport|magyar| [[::MythExport/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/id | • {{#if: UbuntuHelp:MythExport|Bahasa Indonesia| [[::MythExport/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/it | • {{#if: UbuntuHelp:MythExport|italiano| [[::MythExport/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/ja | • {{#if: UbuntuHelp:MythExport|日本語| [[::MythExport/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/ko | • {{#if: UbuntuHelp:MythExport|한국어| [[::MythExport/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/ksh | • {{#if: UbuntuHelp:MythExport|Ripoarisch| [[::MythExport/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/mr | • {{#if: UbuntuHelp:MythExport|मराठी| [[::MythExport/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/ms | • {{#if: UbuntuHelp:MythExport|Bahasa Melayu| [[::MythExport/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/nl | • {{#if: UbuntuHelp:MythExport|Nederlands| [[::MythExport/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/no | • {{#if: UbuntuHelp:MythExport|norsk| [[::MythExport/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/oc | • {{#if: UbuntuHelp:MythExport|occitan| [[::MythExport/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/pl | • {{#if: UbuntuHelp:MythExport|polski| [[::MythExport/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/pt | • {{#if: UbuntuHelp:MythExport|português| [[::MythExport/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/ro | • {{#if: UbuntuHelp:MythExport|română| [[::MythExport/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/ru | • {{#if: UbuntuHelp:MythExport|русский| [[::MythExport/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/si | • {{#if: UbuntuHelp:MythExport|සිංහල| [[::MythExport/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/sq | • {{#if: UbuntuHelp:MythExport|shqip| [[::MythExport/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/sr | • {{#if: UbuntuHelp:MythExport|српски / srpski| [[::MythExport/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/sv | • {{#if: UbuntuHelp:MythExport|svenska| [[::MythExport/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/th | • {{#if: UbuntuHelp:MythExport|ไทย| [[::MythExport/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/tr | • {{#if: UbuntuHelp:MythExport|Türkçe| [[::MythExport/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/vi | • {{#if: UbuntuHelp:MythExport|Tiếng Việt| [[::MythExport/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/yue | • {{#if: UbuntuHelp:MythExport|粵語| [[::MythExport/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/zh | • {{#if: UbuntuHelp:MythExport|中文| [[::MythExport/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/zh-hans | • {{#if: UbuntuHelp:MythExport|中文(简体)| [[::MythExport/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:MythExport | UbuntuHelp:MythExport | {{#if: | :}}MythExport}}/zh-hant | • {{#if: UbuntuHelp:MythExport|中文(繁體)| [[::MythExport/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:MythExport|:MythExport|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :MythExport/zh | | {{#ifexist: MythExport/zh | | {{#ifeq: {{#titleparts:MythExport|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:MythExport|1|-1|}} | zh | | }}
<<Include(MythTV/Header)>> ~+NOTE: Version 1.0.2 has been released for Intrepid. This page now contains updated information for the latest version.+~ ~+UPDATE: I am moving the packages to the Mythbuntu Testing PPA. This way I can do some development on my own PPA without breaking everyone's system. You should remove my PPA from your apt sources and add this one instead: http://launchpad.net/~mythbuntu-testing/+archive +~
New Features in 1.0.2
- RSS Support. Just hit http://X.X.X.X/mythexport. This will work with your internal URL and, if configured, your external URL as well. If you would like to group your podcasts by different names you can do so by passing a name into the MythExport script and appending it on the end of the url when accessing the RSS feed. Example: http://X.X.X.X/mythexport/iPod/
- File cleanup. A daily cronjob will delete files when they reach their expiration date.
- New "none" device & codec. Instead of exporting the video, a symlink is made to the original recording. ** THIS FEATURE MAY NEED ADDITIONAL TESTING **
- New mp3 export codec. Will export your recording without video as a mp3 file.
- Some bug fixes.
To install this latest version in Hardy you need to add the following to your /etc/apt/sources.list:
deb http://ppa.launchpad.net/mythbuntu-testing/ubuntu hardy main deb-src http://ppa.launchpad.net/mythbuntu-testing/ubuntu hardy main
Introduction
MythExport is a script that can be added to MythTV as a User Job and used to export recordings into a format playable on portable devices such as iPod Video, iPod Touch, and PSP. Besides converting your recordings, this script also grabs data from the MythTV MySQL database and injects it as iTunes data into the exported video so that it will show up correctly on your iPod.
Installation
If you installed MythExport and AtomicParsley by hand previously then you will need to remove them (Also note that mythexport.pl has now become mythexport in the new installation):
sudo rm /usr/local/bin/mythexport.pl sudo rm /usr/local/bin/AtomicParsley
On Gutsy you need to add additional sources before installing, this is not needed on Hardy. Add the following to your /etc/apt/sources.list:
deb http://ppa.launchpad.net/mythbuntu-testing/ubuntu gutsy main deb-src http://ppa.launchpad.net/mythbuntu-testing/ubuntu gutsy main
Install MythExport and AtomicParsley:
sudo apt-get update sudo apt-get install mythexport atomicparsley
Script Configuration
Use the script usage below to choose your settings. You can reference this when you need them later.
john@ultramagnus:~$ mythexport How to use mythexport: chanid = Channel ID associated with the recording to export. starttime = Recording start time in either 'yyyy-mm-dd hh:mm:ss' or 'yyyymmddhhmmss' format. exportdir = Directory to export completed MP4 files to (note the user the script runs as must have write permission on that directory). size = Frame size of output file. 320x240 is the default value. aspect = Aspect ratio of output file. Valid values are 4:3 (default) and 16:9. audio_bitrate = Audio bitrate in output file in kbps. Default value is 96kb. video_bitrate = Video bitrate in output file in kbps. Default value is 300kb. export_codec = Acceptable export codecs: mpeg4, xvid, h264, mp3, none. export_device = Acceptable export devices: ipod, psp, zune, archos, none. delete_period = How long (in days) to keep the exported files before removing them. Default value is 30 days. podcast_name = Used to group recordings into different podcasts. Default value is null. debug = Enable debugging information - outputs which commands would be run. Example: mythexport exportdir=/mythtv/ipod starttime=20060803205900 chanid=1006 size=320x240 aspect=4:3 audio_bitrate=192kb video_bitrate=300kb export_device=ipod export_codec=mpeg4 debug
Compatability | ||
Device | Encoding | Max Resolution |
iPod Video | mpeg4/xvid | 320x240 |
iPod Nano | mpeg4/xvid | 320x240 |
iPod Touch | mpeg4/xvid/h264 | 480x320 |
iPhone | mpeg4/xvid/h264 | 480x320 |
PSP | mpeg4/xvid | 480 x 272* |
Zune | mpeg4/xvid/h264 | 480x320* |
Archos | mpeg4/xvid/h264 | 480x320* |
none | none | not needed (this symlinks to the original recording) |
Additional Devices | Email [email protected] with a working ffmpeg line | |
* Verification Still Needed |
MythTV Configuration
Enable a User Job to be used: {{https://help.ubuntu.com/community/MythExport?action=AttachFile&do=get&target=user_job_1.png%7D%7D If you have multiple backends, check this box so that you don't get errors with a backend trying to export a file it doesn't have: {{https://help.ubuntu.com/community/MythExport?action=AttachFile&do=get&target=user_job_2.png%7D%7D Fill in a name for your User Job. Then add the command you want the custom job to run: Here is my command for medium quality:
mythexport exportdir=/mythtv/ipod starttime=%STARTTIME% chanid=%CHANID% size=320x240 aspect=4:3 audio_bitrate=192kb video_bitrate=600kb export_device=ipod export_codec=mpeg4
{{https://help.ubuntu.com/community/MythExport?action=AttachFile&do=get&target=user_job_3.png%7D%7D The User Job name and command can also be modified in MythWeb (by clicking on the MythTV Settings button), but it must first be enabled in mythtvfrontend as shown above: {{https://help.ubuntu.com/community/MythExport?action=AttachFile&do=get&target=mythweb_user_job_0.png%7D%7D {{https://help.ubuntu.com/community/MythExport?action=AttachFile&do=get&target=mythweb_user_job_1.png%7D%7D
Exporting a Recording
Execute your user job in MythTv: Media Library -> Watch Recordings {{https://help.ubuntu.com/community/MythExport?action=AttachFile&do=get&target=user_job_4.png%7D%7D {{https://help.ubuntu.com/community/MythExport?action=AttachFile&do=get&target=user_job_5.png%7D%7D You can check that your job is running in the Info Center (Information Center -> System Status -> Job Queue): {{https://help.ubuntu.com/community/MythExport?action=AttachFile&do=get&target=user_job_7.png%7D%7D The User Job can be configured to run on recordings after they are created (Post Recording Processing Menu on the Recording Options screen): {{https://help.ubuntu.com/community/MythExport?action=AttachFile&do=get&target=user_job_8.png%7D%7D
Troubleshooting
Verify that the user which runs the script has permissions to create files in the directory you are exporting to. If you get an error about config.xml missing, this can normally be found in the home directory of the user who runs your MythTV Fronend, and can be fixed by creating a symlink in mythtv's home directory (because that is the user who runs user jobs from the backend). If you run into problems it is always a safe bet to make sure the config.xml exists in the following places:
** These are especially important when using the RSS feature or running as a user job ** /home/%your_user_account%/.mythtv /root/.mythtv /home/mythtv/.mythtv
If you get any errors about aac, xvid, mp3, or h264 then your ffmpeg version may not have those enabled. The easiest way to fix this is to enable the Medibuntu repositories.