LinHES Forums http://forum.linhes.org/ |
|
nuv2avi, need a knoppmyth uberhacker volunteer http://forum.linhes.org/viewtopic.php?f=11&t=3433 |
Page 1 of 1 |
Author: | lynchaj [ Fri Feb 04, 2005 6:16 am ] |
Post subject: | nuv2avi, need a knoppmyth uberhacker volunteer |
Hi, I just found a tool on the MythTV wiki that I think would be useful to the KnoppMyth community, well to me at least. The tool promises to export NUV files to AVI (mpeg4, etc) directly AS IS without using nuvexport or transcoding. http://mythtv.info/moin.cgi/nuv2avi Now there is nothing wrong with nuvexport except for that requires mythtranscode of the NUV file. In the general case that is appropriate however for a straight NUV to AVI conversion without transcoding it is very CPU intensive and can be time consuming. So, I went to the webpage and downloaded the source code. I did the usual build commands to get it going but ran into a snag. login as root wget http://mythtv.beirdo.ca/files/nuvtools-0.0.2.tar.gz tar xzvf nuvtools* cd nuvtools* make install >output 2>&1 The program errors out complaining about not finding a lame.h (I suppose a lame header from the development package). So, I do a apt-get update apt-get install lame-devel which tells me that there is no lame-devel package, which I find curious, so I do this: dpkg -l | grep "lame" which tells me that KnoppMyth does contains lame packages. liblame-dev liblame0 this tells me that probably there is a problem in the nuv2avi code finding the lame libraries (which I think are already there). Now, I am not a super duper linux hacker but I can do fairly straight forward stuff. I think I can probably get to the bottom of this eventually but it is going to take a while. So what I am asking for is some of the linux gurus on the KnoppMyth forum to take a whack at this package and see if you can get it working. If so, post a diff file here or better yet, send it to the author. I have contacted the author who turns out to be pretty cool. Of course, I don't want to pester this guy with my dumb questions more than necessary. Hey, thats what user forums are for! http://mythtv.info/moin.cgi/GavinHurlbut The nuv2avi homepage. http://mythtv.beirdo.ca/ I am thinking that this is probably a simple problem but one that will take me hours to find. Probably someone on this list will find it in a minute and post a patch diff in a tiny fraction of the time it will take me to slog through it all. I will still do it if no one steps forward but please be patient. Any volunteers? Thanks! Andrew Lynch |
Author: | cesman [ Fri Feb 04, 2005 12:56 pm ] |
Post subject: | |
./configure --help (if there is a ./configure) You probably need something along the lines of ./configure --lame-dev=/usr/include/lame |
Author: | lynchaj [ Fri Feb 04, 2005 2:25 pm ] |
Post subject: | |
Thanks for the reply. Yes, I looked for a autoconf configure file but there isn't one. There isn't a readme or any documentation as I can see and only a simple Makefile. I suspect the directory for the libraries is specified in Makefile someplace. I don't know but will take a whack at it again tonight. The lame.h headers are in KnoppMyth though, that much I am fairly sure of. I searched on KnoppMyth forums and nuv2avi only shows up in this thread which makes me think not too many people are aware of this neat tool. I hope it works, that would be awesome to export NUVs to xvid without transcoding. Transcoding takes hours on my celeron. More later! Thanks! Andrew Lynch |
Author: | lynchaj [ Fri Feb 04, 2005 7:13 pm ] |
Post subject: | |
Ok, I think I fixed it. Problem seems pretty simple. I am not going to submit a diff since I will send an email to the author. What I did was all the steps above. Then I did a updatedb locate lame.h It said lame.h was in /usr/include/lame so, I did cd nuv2avi vi Makefile and made the following change (in bold) CC = gcc CFLAGS = -O6 -g ${INCLUDES} -pthread INCLUDES = -I${TOPDIR}/libavformat -I${TOPDIR}/libavcodec INCLUDES += -I${TOPDIR}/libnuvread -I/usr/include/lame LDFLAGS = -L${TOPDIR}/libavformat -lavformat -L${TOPDIR}/libavcodec -lavcodec LDFLAGS += -L${TOPDIR}/libnuvread -lnuvread -lm -lz -lmp3lame -lpthread BINDIR = /usr/local/bin OBJS = main.o reader.o reencode.o writer.o queue.o linked_list.o logging.o LIBS = ${TOPDIR}/libnuvread/libnuvread.a LIBS += ${TOPDIR}/libavcodec/libavcodec.a LIBS += ${TOPDIR}/libavformat/libavformat.a ifeq (.${TOPDIR}.,..) all: ${MAKE} -C .. nuv2avi else all: nuv2avi endif clean: -rm nuv2avi ${OBJS} install: all install -m 755 nuv2avi ${BINDIR}/nuv2avi nuv2avi: ${OBJS} ${LIBS} ${CC} -o $@ ${OBJS} ${LDFLAGS} nuv2avi.o: nuv2avi.c So then I did another make install >output.txt 2>&1 and it apparently completed normally. Next, I went to /myth/tv and picked NUV file test victim and ran nuv2avi -i 1073_[lots of numbers].nuv -o test.avi I moved test.avi to /myth/video, updated the video manager and it worked like a regular video. The utility runs fast, fast, fast. On my slow celeron PC it buzzes along at 400-800 fps so it did a massive 3,468,814,283 byte file in just a few minutes. Bottom line... NUV2AVI ROCKS!!!! COOL! THANK YOU! Andrew Lynch |
Author: | lynchaj [ Fri Feb 04, 2005 7:27 pm ] |
Post subject: | |
Hi, Please would some admin person move this thread to the "howto" section for others if they want to hack out a working nuv2avi. I think once word gets out on this neat tool people are going to want it. Thanks! Andrew Lynch |
Author: | ardell [ Sat Jul 30, 2005 7:39 pm ] |
Post subject: | |
I've set up nuv2avi as described in this post, and it works great from the command line. I've tried to set it up in the job queue with the command: Code: /usr/bin/nuv2avi -i /myth/tv/%FILE% -o /myth/video/"%TITLE% - %SUBTITLE%.avi"
The jobs get queued up fine, but they remain queued indefinitely, and never process. I've tried taking out the %TITLE% and %SUBTITLE% and just putting test.avi in there as the filename, with the same result. I do transcode all my recordings to MPEG4 after recording, and all the commercial flagging and transcoding jobs run fine. Any thoughts? Is there some sort of test script I can run to make sure the parameters are being passed correctly and that the job is trying to start? --- KnoppMyth R5A16 Hauppauge PVR-250 |
Author: | bugmenot [ Fri Aug 19, 2005 7:08 pm ] |
Post subject: | |
ardell wrote: Code: /usr/bin/nuv2avi -i /myth/tv/%FILE% -o /myth/video/"%TITLE% - %SUBTITLE%.avi" You may try: Code: /usr/bin/nuv2avi -i /myth/tv/%FILE% -o "/myth/video/%TITLE% - %SUBTITLE%.avi"
(different position of first ") |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |