Author |
Message |
bforsyth
|
Posted: Mon Jan 29, 2007 10:25 pm |
|
Joined: Sun Feb 26, 2006 5:46 pm
Posts: 1
|
I have managed to fix the bitrate problem for ffmpeg XviD export from nuvexport by editing the /usr/local/share/nuvexport/export/ffmpeg/XviD.pm file. Going on the observation that other people had about the parameters to ffmpeg being incorrect I compared what the perl script was generating and what the ffmpeg docs said. I noticed that the nuvexport script was using bit_rate as the bitrate flag when it looked like it should have been just b. So I changed line 146 of XviD.pm (revision 302) to read Code: .$self->param('b', $self->{'v_bitrate'}) instead of Code: .$self->param('bit_rate', $self->{'v_bitrate'}) and this seems to do the trick.
|
|
Top |
|
 |
grg3
|
Posted: Wed Jan 31, 2007 4:27 pm |
|
Joined: Mon Jan 30, 2006 6:57 pm
Posts: 90
|
Thanks! I was hoping someone would figure this out!
I can verify that the XVID works with ffmpeg and I cannot tell any difference in the quality from XVID by transcode.
I am going to try this with some of the other formats next!
|
|
Top |
|
 |
spalVl
|
Posted: Wed Jan 31, 2007 4:42 pm |
|
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location:
Philadelphia, PA US
|
Quote: I can verify that the XVID works with ffmpeg and I cannot tell any difference in the quality from XVID by transcode.
You happen to test if the XviD files created though nuvexport and ffmpeg are compatible? Previously (R5C7's nuvexport, ffmpeg versions) I found that the XviD files were only compatible with some video players but not all. Namely the core XviD codecs installed. That is why I starting using transcode even though takes longer.
|
|
Top |
|
 |
rando
|
Posted: Thu Feb 01, 2007 9:54 am |
|
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location:
Winnipeg - Canada
|
Quote: You happen to test if the XviD files created though nuvexport and ffmpeg are compatible? Previously (R5C7's nuvexport, ffmpeg versions) I found that the XviD files were only compatible with some video players but not all. Namely the core XviD codecs installed. That is why I starting using transcode even though takes longer.
Do you by chance know which players had trouble with the files? I'm in the middle of doing a nuvexport/ffmpeg encode right now and would be more than happy to test it out when I get home (encoding from a SSH session while at work) and see if it works in various players.
_________________ Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)
|
|
Top |
|
 |
spalVl
|
Posted: Thu Feb 01, 2007 10:43 am |
|
Joined: Mon Aug 29, 2005 4:04 pm
Posts: 729
Location:
Philadelphia, PA US
|
Quote: Do you by chance know which players had trouble with the files?
Media Player Classic and Windows Media Player with XviD codec installed had troubles playing.
http://www.koepi.org/XviD-1.1.0-30122005.exe
VLC & Media Player Classic from K-lite codec pack were fine.
Thanks for the testing.
|
|
Top |
|
 |
rando
|
Posted: Thu Feb 01, 2007 10:47 am |
|
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location:
Winnipeg - Canada
|
No prob, I generally use VLC on my windows boxes, but of course have Win Media player installed, I am not positive what versions I have kicking around on various PCs in the house, but I'll do a rundown and post the results here.
_________________ Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)
|
|
Top |
|
 |
bash1979
|
Posted: Thu Feb 01, 2007 11:55 am |
|
Joined: Mon Jan 01, 2007 2:59 pm
Posts: 9
|
Thanks for the tips here. My Nuvexport appears to be encoding fine now.
One question: How long should this process be taking? My eta for completion is frequently over 30 HOURS, and the highest FPS I ever see during encoding is about 11. I know it depends on processor speed, but I have an Athlon Tbird 1GHZ, with 512 RAM, so I assumed it would go a little faster than this.
Any ideas?
|
|
Top |
|
 |
rando
|
Posted: Thu Feb 01, 2007 12:01 pm |
|
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location:
Winnipeg - Canada
|
I'm running on an AMD 3000+ w 1gb of ram, currently I'm getting approx 20 fps (but am recording and commflagging a show at the same time).
I would say that what you are seeing probably sounds about right.
Here's a quick snip of my "top"
Code: top - 11:59:51 up 6 days, 14:57, 3 users, load average: 1.86, 2.08, 1.73 Tasks: 112 total, 3 running, 107 sleeping, 0 stopped, 2 zombie Cpu(s): 1.7%us, 8.7%sy, 88.9%ni, 0.0%id, 0.0%wa, 0.3%hi, 0.3%si, 0.0%st Mem: 1033072k total, 1018828k used, 14244k free, 8260k buffers Swap: 1959920k total, 48k used, 1959872k free, 569100k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3365 mythtv 39 19 25092 14m 1404 R 70.4 1.4 15:49.57 ffmpeg 3356 mythtv 0 19 99068 43m 13m S 13.1 4.3 3:00.58 mythtranscode 2784 mythtv 0 17 100m 54m 13m S 12.1 5.4 7:19.55 mythcommflag 3032 mythtv 0 0 235m 28m 12m S 1.7 2.9 30:44.17 mythbackend 2215 root 0 -10 0 0 0 S 1.3 0.0 18:17.46 ivtv-enc 2773 mysql 0 0 128m 36m 5308 S 0.7 3.6 10:59.92 mysqld 3211 mythtv 0 0 149m 78m 20m S 0.3 7.8 6:41.14 mythfrontend 3363 mythtv 0 0 1572 372 304 S 0.3 0.0 0:00.58 cat 1 root 0 0 1944 628 540 S 0.0 0.1 0:01.20 init 2 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0 3 root 0 19 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd/0 4 root RT 0 0 0 0 S 0.0 0.0 0:00.00 watchdog/0 5 root 0 -5 0 0 0 S 0.0 0.0 0:00.99 events/0 6 root 0 -5 0 0 0 S 0.0 0.0 0:00.00 khelper 7 root 0 -5 0 0 0 S 0.0 0.0 0:00.00 kthread 10 root 0 -5 0 0 0 S 0.0 0.0 0:00.90 kblockd/0 11 root 30 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid 129 root 27 -5 0 0 0 S 0.0 0.0 0:00.16 kseriod 244 root 0 0 0 0 0 S 0.0 0.0 0:33.17 kswapd0 245 root 39 19 0 0 0 S 0.0 0.0 0:00.01 kprefetchd 246 root 13 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0 247 root 13 -5 0 0 0 S 0.0 0.0 0:00.00 jfsIO 248 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 jfsCommit 249 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 jfsSync 250 root 13 -5 0 0 0 S 0.0 0.0 0:00.00 xfslogd/0 251 root 13 -5 0 0 0 S 0.0 0.0 0:00.00 xfsdatad/0 931 root 13 -5 0 0 0 S 0.0 0.0 0:00.00 ata/0 932 root 13 -5 0 0 0 S 0.0 0.0 0:00.00 ata_aux 939 root 12 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_0 940 root 12 -5 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1 963 root 13 -5 0 0 0 S 0.0 0.0 0:00.00 kpsmoused 982 root 0 -5 0 0 0 S 0.0 0.0 0:11.75 kjournald 1047 root 0 -4 2312 716 364 S 0.0 0.1 0:00.89 udevd 1854 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khubd
And here's the command I ran to get my transcode started (as well as my current output from the encode) Code: /usr/local/bin/nuvexport --chanid=2036 --start=20070104223000 --bitrate=1500 --mode=XviD --nice=19 --cutlist --nodenoise --deinterlace --force-aspect=1.33 --width=640 --filename=2036_20070104223000.XviD --path=/myth/video/archive/ Loading MythTV recording info. 99% Default resolution based on forced 4:3 aspect ratio.
Now encoding: Good Eats: Water Works II Encode started: Thu Feb 1 11:37:09 2007 First pass... Waiting for mythtranscode to set up the fifos. Waiting for mythtranscode to set up the fifos. Starting ffmpeg. processed: 465 of 40116 frames at 20.22 fps (1.16%, eta: 32m 40s)
Hope this helps to gauge your performance.
_________________ Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)
|
|
Top |
|
 |
bash1979
|
Posted: Thu Feb 01, 2007 2:17 pm |
|
Joined: Mon Jan 01, 2007 2:59 pm
Posts: 9
|
Thanks very much! That definitely helps a lot.
However, after reading through your info, I think I see where my problem lies. It appears that 11 FPS is an OK number for me....but my problem is that my half an hour show recording was over 1.9 million frames! No wonder the eta is over 20 hours!
I imagine this has something to do with my recording quality, which I belive is set pretty high. What quality are you recording your shows at?
|
|
Top |
|
 |
rando
|
Posted: Thu Feb 01, 2007 2:30 pm |
|
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location:
Winnipeg - Canada
|
I've bumped the resolution up to 720 by 480, but I dont think I changed my bitrate...... so whatever the default is.
I'm doing a hardware capture with a PVR 150, not sure what your hardware is (or if that would matter).
Would different quality settings change the number of frames though? I'm recording 29.97 frames (NTSC) wouldn't it be the same even at a lower quality? still 29.97 frames, just frames with a smaller amount of data in them..... maybe I'm on the wrong track here, but in my mind this is how I'm seeing things....
How long is the program you are trying to transcode? I'm working off of a 1/2 hour TV episode here, are you doing a movie or sporting event or something else really long?
edit:Just re-read your post and saw that you are also working with a 1/2 hour show...... not sure why the gigantic difference in number of frames
_________________ Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)
|
|
Top |
|
 |
bash1979
|
Posted: Thu Feb 01, 2007 3:17 pm |
|
Joined: Mon Jan 01, 2007 2:59 pm
Posts: 9
|
I also did the 720x480 bump up, and I also capture with a PVR150.
Good question about the # of frames....your logic makes sense for sure. I just assumed higher quality = bigger file = more work to compress.
And yeah, it's just a 1/2 hour show. I did make a typo in my original statement....it's actually 1.19 million frames, which is still way higher than your 40 thousand.
I'll have to review the way I'm capturing these videos. My resulting file size for a half hour show is 1.2 gigs, if that means anything. I think i need to better understand what constitutes # of frames, and how I can reduce that without affecting picture quality too much.
Thanks for the input so far.
|
|
Top |
|
 |
rando
|
Posted: Thu Feb 01, 2007 3:24 pm |
|
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location:
Winnipeg - Canada
|
I'm also hitting about 1.2gb for a 1/2 hour show.... it seems our setups are quite similar.
If you try with a different file are you still getting the same number of frames? maybe that particular recording is somehow corrupted or wacky for some reason?
Back when I was first starting to play with my nuvexport jobs, I recorded a small (2 minutes) piece of show.... just so I could run a script and see the results, then change the settings, run it again, and compare without having to wait for a "full sized" job to complete....
I believe that number of 40,000ish was with approx 8 or so minutes of commercials being chopped out.... dunno if you are ripping commercials out of yours or not, but again, if with factoring that into the equation, there is still a tremendous difference between our two frame amounts.
/scratches head
_________________ Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)
|
|
Top |
|
 |
bash1979
|
Posted: Fri Feb 02, 2007 3:15 pm |
|
Joined: Mon Jan 01, 2007 2:59 pm
Posts: 9
|
Well, good call my friend. I only had the one recording on my drive, so that's the one I was fooling around with.
I recorded a program this morning, 1 hour long, so it came to about 2.3 gigs. # of frames was only about 100,000, which seems to make a LOT more sense.
Of course, it still took over 3.5 hours to encode, but that's more my crappy hardware than anything else!
Thanks for your help on this one!
|
|
Top |
|
 |
rando
|
Posted: Fri Feb 02, 2007 3:19 pm |
|
Joined: Sat Feb 11, 2006 5:26 pm
Posts: 282
Location:
Winnipeg - Canada
|
Awesome (not the part about crappy hardware). Sounds like something was wonky in that original recording, I think you are on track now, sounds like your framesizes and all that are about right (at least compared to mine).
_________________ Currently Running:
Too lazy to update this with my current hardware, I'll redo it during my next install =)
|
|
Top |
|
 |
victor97
|
Posted: Sat Feb 03, 2007 5:20 am |
|
Joined: Fri Feb 24, 2006 9:46 am
Posts: 65
|
Hi,
I still get errors with Transcode. I did what Cecil described and what bforsyth described about editing the script.
If I try to Transcode a recorded show using the standard Mythtv interface (did not try it via commandline) than I get an error in my System Status - Job Queue. The error is:
Job: Transcode Status: Errored (mythtv)
Transcode failde with status: 247
What does this error means?
|
|
Top |
|
 |