Author |
Message |
steff
|
Posted: Sat Dec 03, 2005 10:51 am |
|
Joined: Wed Nov 02, 2005 3:47 am
Posts: 10
|
If you add this Code: --cutlist as an extra parameter to nuvexport in line 120, it will use the cutlist from myth`s commercial flagging and remove the commercials too. 
Last edited by steff on Mon Jan 02, 2006 9:36 am, edited 1 time in total.
|
|
Top |
|
 |
rteichman
|
Posted: Mon Dec 05, 2005 12:37 pm |
|
Joined: Wed Feb 02, 2005 4:07 pm
Posts: 141
|
steff wrote: If you add this Code: --cutlist as an extra parameter to nuvexport in line 119, it will use the cutlist from myth`s commercial flagging and remove the commercials too. 
Thanks, but I can't seem to get nuvexport to work. I spent all weekend on it, but it fails on the ffmpeg part (0 out of xxxx frames). Its wierd since the I am using ffmpeg in the other script with no problem.
|
|
Top |
|
 |
skiman65
|
Posted: Mon Dec 12, 2005 5:28 pm |
|
Joined: Thu Dec 08, 2005 3:36 am
Posts: 1
Location:
Australia
|
First off, I'd like to say, great to see there is a script to get video onto the iPod.
I posted this message to the ffmpeg-user mailing list but without reply so far, so here goes:
I am using the 3277056 CVS build of ffmpeg in conjunction with the myth2ipod script ( http://myth2ipod.com/) to transcode files from MythTV's NUV format to iPod's MPEG-4 format. (Note: this is installed on FC4)
Code: -bash-3.00$ /home/mythtv/bin/ffmpeg -version ffmpeg version CVS, build 3277056, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-xvid --enable-gpl --enable-faac built on Nov 30 2005 12:15:25, gcc: 4.0.1 20050727 (Red Hat 4.0.1-5) ffmpeg CVS libavcodec 3277056 libavformat 3211776
What I am seeing is that, depending on the channel the program was recorded from, ffmpeg fails to transcode the stream as shown below: 1. Example of working transcode Code: $ ./ffmpeg -y -i /video/record/1010_20051208130000_20051208133500.nuv -cropleft 4 -cropright 10 -deinterlace -vcodec xvid -s 320x240 -r 29.97 -b 384 -qmax 5 -bufsize 4096 -acodec aac -ab 96 -g 300 -pass 1 -passlogfile /var/log/mythtv/myth2ipod.log -f mov /video/ipod/test.pass1 ffmpeg version CVS, build 3277056, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-xvid --enable-gpl --enable-faac built on Nov 30 2005 12:15:25, gcc: 4.0.1 20050727 (Red Hat 4.0.1-5) Input #0, mpegts, from '/video/record/1010_20051208130000_20051208133500.nuv': Duration: 00:37:27.2, start: 14376.468478, bitrate: 4939 kb/s Stream #0.0[0x905], 25.00 fps: Video: mpeg2video, yuv420p, 720x576, 15000 kb/s Stream #0.1[0x906](eng): Audio: mp2, 48000 Hz, stereo, 256 kb/s Output #0, mov, to '/video/ipod/test.pass1': Stream #0.0, nan fps: Video: xvid, yuv420p, 320x240, q=2-5, pass 1, 384 kb/s Stream #0.1: Audio: aac, 48000 Hz, stereo, 96 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding frame= 65 q=2.0 Lsize= 134kB time=1.7 bitrate= 650.9kbits/s video:83kB audio:20kB global headers:0kB muxing overhead 30.111485% Received signal 2: terminating.
* Note: manually stopped by me as it works from here on 2. Example of failed transcode Code: $ ./ffmpeg -y -i /video/record/1012_20051019193000_20051019203000.nuv -cropleft 4 -cropright 10 -deinterlace -vcodec xvid -s 320x240 -r 29.97 -b 384 -qmax 5 -bufsize 4096 -acodec aac -ab 96 -g 300 -pass 1 -passlogfile /var/log/mythtv/myth2ipod.log -f mov /video/ipod/test.pass1 ffmpeg version CVS, build 3277056, Copyright (c) 2000-2004 Fabrice Bellard configuration: --enable-xvid --enable-gpl --enable-faac built on Nov 30 2005 12:15:25, gcc: 4.0.1 20050727 (Red Hat 4.0.1-5) Input #0, mpegts, from '/video/record/1012_20051019193000_20051019203000.nuv': Duration: 00:59:57.3, start: 42869.962500, bitrate: 6670 kb/s Stream #0.0[0x207], 25.00 fps: Video: mpeg2video, yuv420p, 720x576, 10000 kb/s Stream #0.1[0x2d0](eng): Audio: mp2, 48000 Hz, stereo, 256 kb/s Stream #0.2[0x2d1](eng): Audio: 0x0000 Output #0, mov, to '/video/ipod/test.pass1': Stream #0.0, nan fps: Video: xvid, yuv420p, 320x240, q=2-5, pass 1, 384 kb/s Stream #0.1: Audio: aac, 96 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
The only difference I can see between the two NUV files is that the one that fails has a second (empty?) audio stream.
Stream #0.2[0x2d1](eng): Audio: 0x0000
I am using the same command line options in both cases.
In fact, all files from this channel 1012 (and two others) have this same 'feature' of a second audio stream, and therefore all files from these channels fail transcoding by ffmpeg.
Channel Number works? Channel Name
1004_ no TEN
1009_ no ABC
1010_ yes ABC2
1012_ no Nine
1017_ yes Seven
Is there a way to ignore the "Stream #0.2[0x2d1](eng): Audio: 0x0000"? I have tried various combinations of the -map option without any success?
Thanks
Frank.
|
|
Top |
|
 |
FunkyELF
|
Posted: Mon Dec 26, 2005 5:00 pm |
|
Joined: Mon Dec 26, 2005 4:54 pm
Posts: 7
|
I have some questions about this script.
I'm not sure what all of the variables do. I don't know perl so if someone could help me out that'd be great. If someone would post an explanation of what all of the user variables do, it would be awesome.
I just got the video ipod for christmas and got the AV cable. So now I can record shows for my girlfriend and bring them over to her place. I can't wait to get this thing working.
Thanks,
~Eric
|
|
Top |
|
 |
DustSmoke
|
Posted: Wed Dec 28, 2005 3:04 am |
|
Joined: Sat Jun 04, 2005 3:26 pm
Posts: 16
|
Nice job and thanks for the script.
I went out and bought an 60gig video ipod today thanks to this script. And it looks to be well worth it after I got it all going. Now I can watch my recorded shows while I'm traveling for work. (yes, and at work  )
Thanks again.
P.S. if you can get a SVN or CVS repo up for the php interface. I'd be willing to help build that part. (plus willing to add to the perl script)
|
|
Top |
|
 |
puetzc
|
Posted: Wed Dec 28, 2005 11:24 pm |
|
Joined: Wed Dec 28, 2005 11:15 pm
Posts: 4
Location:
Iowa, US
|
steff wrote: If you add this Code: --cutlist as an extra parameter to nuvexport in line 119, it will use the cutlist from myth`s commercial flagging and remove the commercials too. 
Thanks to everyone for the work on this topic, and the helpful posts.
I cannot get the nuvexport patch to apply correctly. I have version 8b of the original file, and when I try to apply the patch, I get the following:
homer:~/Myth2iPod$ patch myth2ipod myth2portable.patch
patching file myth2ipod
Hunk #3 FAILED at 14.
patch: **** `<' expected at line 23 of patch
homer:~/Myth2iPod$
line 23 in my file is an "<". I am not an expert, and am not sure now to proceed.
Also, in the original perl script, what do the "feedfile" and feedurl refer to? I am not really planning to automate the conversions, as I will only convert a few files, and will probably have edited the cut points in MythTV first.
TIA for any responses!
|
|
Top |
|
 |
Drel
|
Posted: Thu Dec 29, 2005 12:44 pm |
|
Joined: Thu Dec 29, 2005 12:31 pm
Posts: 2
|
I'm having what seems to be a kind of unique problem; I have myth2ipod installed (VERSION: Beta .8b), everything is working great on the server side (or appears to be). However, the video files don't appear on the iPod interface after they're copied over.
I did make one change to the script; I changed the single quotes around the title variable to escaped double quotes, so that it wouldn't break on shows with an apostrophe in the title ("That 70's Show"). I did this for both the pass1 and pass2 sections of the script. Otherwise, the only changes to the script were to the user customized variables at the top of the script.
Source video is obtained via a Hauppage PVR-350, so it's in MPEG2 format. The ffmpeg conversion runs fine and produces no errors in mythbackend.log. I can play back the resulting .mov files in Totem on the Linux box. The php feed file is created fine.
I have a second computer that is running Windows XP with the latest version of iTunes on it. I subscribed to the myth2ipod podcast feed from my MythTV server, and my recorded shows are automatically pulled down to iTunes. I can play them back within iTunes fine by double-clicking on the video file.
I then drag and drop the video files onto my iPod (I have my iPod set to manually sync since I use it on several different computers and don't want the library overwritten). I then eject my iPod as normal, clicking the eject button within iTunes, and "safely removing the hardware" via the Windows XP taskbar applet.
However, the video files don't show up on the iPod within any of the video categories (movies, music videos, video podcasts). It's not that they're listed, but won't play back; they simply don't show up at all.
If I look at the iPod "recently added" within iTunes when it's connected, however, I see the video files there. They're just not showing up within the iPod interface.
What am I doing wrong??
PS - I am using the original myth2ipod script without the nuvexport patch. Like the previous poster to this thread, I couldn't get the patch to apply properly.
PPS - If I were to have downloaded a file from Bittorrent, say, 'Battlestar.Galactica.02x01.(XSVCD)-Scattered.mpg', and used 3GP Converter to convert this hypothetical file using 'Model: MP4, for PSP' and 'QVGA/29.97fps/1500kbps Stereo/128kbps' profile, and then imported that into iTunes, and copied it to the iPod, it showed up on the iPod under Movies, and worked. Er, would have worked, had this download not been hypothetical, of course. What I'm trying to say is, I can get video to play on the iPod, just not my myth2ipod converted files!
|
|
Top |
|
 |
FunkyELF
|
Posted: Thu Dec 29, 2005 2:20 pm |
|
Joined: Mon Dec 26, 2005 4:54 pm
Posts: 7
|
Hello,
I want to ask some questions about what this script is meant to do and at what point. Right now I am not doing any transcoding and leave my recordings as is. I edit the commercial skips so that when I play an episode again they are tweaked.
I have transcoded a couple of times and then stoped because the files were no longer playable on my Windows computer where the original .nuv files (mpeg from pvr-500) were playable.
Is this script intended to work on the original files only or will it work once they have been transcoded into another format?
I have manually ran myth2ipod once using "$ myth2ipod /mnt/store 1004_20051227213000_20051227220000.nuv" I was able to watch this video in Quicktime on Windows but haven't yet tried putting it on the ipod.
I noticed that when I did this the commercials were there.
How am I supposed to run myth2ipod so that it will skip the commercials?
Can this only be done once it has already been transcoded and commericial skipped?
Could someone provide me with a sequence of events that will lead to having iPod compatable files without commercials.
i.e.
1. record program
2. tweak commerical markings
..
..
..
10. your iPod compatible video is now available from within iTunes.
Thanks,
~Eric
|
|
Top |
|
 |
Drel
|
Posted: Thu Dec 29, 2005 10:22 pm |
|
Joined: Thu Dec 29, 2005 12:31 pm
Posts: 2
|
Drel wrote: I'm having what seems to be a kind of unique problem; I have myth2ipod installed (VERSION: Beta .8b), everything is working great on the server side (or appears to be). However, the video files don't appear on the iPod interface after they're copied over.
UPDATE: If I manually drag the myth2ipod encoded files in iTunes to a video playlist on the iPod, they will play back properly if I go through Videos -> Video Playlists -> <Playlist Name>.
However, for whatever reason, rather than the files being organized under Videos, the added files are added to Music -> Artists -> MythTV. Any tips on how I can fix this? If I try to play back the video file from the Music menu, the iPod resets after a second or two to the main iPod menu.
I'm thrilled I can get the video to play now (via the playlist functionality), but it's strange that the files are being miscategorized as music rather than video.
Drel
|
|
Top |
|
 |
FunkyELF
|
Posted: Sun Jan 01, 2006 2:39 pm |
|
Joined: Mon Dec 26, 2005 4:54 pm
Posts: 7
|
Drel,
Do you have the latest iTunes available? I have the latest iTunes and myth2ipod and mine show up under video podcasts.
~Eric
|
|
Top |
|
 |
steff
|
Posted: Mon Jan 02, 2006 9:03 am |
|
Joined: Wed Nov 02, 2005 3:47 am
Posts: 10
|
puetzc wrote: I cannot get the nuvexport patch to apply correctly. I have version 8b of the original file, and when I try to apply the patch, I get the following:
homer:~/Myth2iPod$ patch myth2ipod myth2portable.patch patching file myth2ipod Hunk #3 FAILED at 14. patch: **** `<' expected at line 23 of patch homer:~/Myth2iPod$
Perhaps binary is better? Grab it here: http://juniks.org/myth2ipod.patch
I've verified that this works against the current (todays) version on myth2ipod.com. 
|
|
Top |
|
 |
DustSmoke
|
Posted: Mon Jan 02, 2006 2:28 pm |
|
Joined: Sat Jun 04, 2005 3:26 pm
Posts: 16
|
Now that I have this, and iTunes. Is there anything besides itunes that does podcasts for us? I really can't take iTunes and how badly it handles a semi large music library. It chokes the entire computer which is quite pathetic for what it is physically doing at the times it kills the computer for a couple mins. (reading the library from its own database)
Example would be media monkey. It works just fine on windows and does more at the same time. However, it doesn't do podcasts.
|
|
Top |
|
 |
puetzc
|
Posted: Tue Jan 03, 2006 9:05 pm |
|
Joined: Wed Dec 28, 2005 11:15 pm
Posts: 4
Location:
Iowa, US
|
steff wrote: puetzc wrote: I cannot get the nuvexport patch to apply correctly. I have version 8b of the original file, and when I try to apply the patch, I get the following:
homer:~/Myth2iPod$ patch myth2ipod myth2portable.patch patching file myth2ipod Hunk #3 FAILED at 14. patch: **** `<' expected at line 23 of patch homer:~/Myth2iPod$ Perhaps binary is better? Grab it here: http://juniks.org/myth2ipod.patchI've verified that this works against the current (todays) version on myth2ipod.com. 
I downloaded the patch above, and a new copy of the original. The patch applies correctly - thanks for the reply.
|
|
Top |
|
 |
puetzc
|
Posted: Tue Jan 03, 2006 9:09 pm |
|
Joined: Wed Dec 28, 2005 11:15 pm
Posts: 4
Location:
Iowa, US
|
I only have sound on one channel - in one ear using headphones. I see that the default for ffmpeg in -ac=1 (one audio channel), but apparently this doesn't mean mono. I tried adding a line in the iPod.pm script with -ac=2, but this didn't seem to make any difference. Should I expect sound in both ears, and if so, does anyone have any suggestions?
I posted this question in the General section several days ago by mistake but have received no responses. I appologize to anyone who is seeing it for the second time.
Thangs again for all of the helpful suggestions contained in the many posts and scripts provided by this group.
|
|
Top |
|
 |
steff
|
Posted: Mon Jan 09, 2006 3:22 am |
|
Joined: Wed Nov 02, 2005 3:47 am
Posts: 10
|
steff wrote: There is a .pm file (its like a plugin) for the iPod format for nuvexport at https://svn.forevermore.net/nuvexport/ticket/56right now which works really well. (probably this will be standard in nuvexport in the future) It adds an iPod export option to nuvexport, and Ive been investigating a bit on how to run nuvexport non-interactively using this config.
This is now standard in the latest nuvexport SVN, so no need for any of this hacking any more, just upgrade! 
|
|
Top |
|
 |