Re: [mythtv-users] My ffmpeg nuvexport module so far
On Thu, 02 Dec 2004 20:29:47 -0400, Jonathan Markevich <[EMAIL PROTECTED]> wrote: > Lane Schwartz wrote: > > >On Tue, 30 Nov 2004 13:49:37 -0400, Jonathan Markevich > ><[EMAIL PROTECTED]> wrote: > > > > > >>Here (finally) is my module that I have been using with the most success > >>for exporting MPEG1. Notice that I declare a bunch of KVCD parameters > >> > >> > >> > >Just for clarification... This module will only export MPEG1, not MPEG2? > >Right? > > > > > > As it stands, yes. ffmpeg will do MPEG2, AFAICT, if you look at ffmpeg > -formats, you'll see a few of them that point to MPEG2. I'm not really > sure which ones would be appropriate... > OK. So if I install this module, it will allow me to export as MPEG2 via ffmpeg using nuvexport? Sorry for all the questions - I'm just trying to understand what this module can and can't do. -- "No, we've had no evidence that Saddam Hussein was involved in 9/11." -- George W. Bush, 17 Sept 2003 ___ mythtv-users mailing list [EMAIL PROTECTED] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] My ffmpeg nuvexport module so far
Jonathan Markevich wrote: Lane Schwartz wrote: On Tue, 30 Nov 2004 13:49:37 -0400, Jonathan Markevich <[EMAIL PROTECTED]> wrote: Here (finally) is my module that I have been using with the most success for exporting MPEG1. Notice that I declare a bunch of KVCD parameters Just for clarification... This module will only export MPEG1, not MPEG2? Right? As it stands, yes. ffmpeg will do MPEG2, AFAICT, if you look at ffmpeg -formats, you'll see a few of them that point to MPEG2. I'm not really sure which ones would be appropriate... ___ mythtv-users mailing list [EMAIL PROTECTED] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users I have used ffmpeg several times for a different purpose to encode DV-AVI from my DV camera to DVD-quality MPEG2. I did this using Kino (the newest version), which has some nice ffmpeg export "pipes" (or scripts). You will notice that this is actually a 2-pass encoding, which works awesome and produces great results. I actually changed the script slightly to put in a denoise statement. This was because I had a few blips in my original source, but this ended up not fixing those. It slows it down some, but I thought I would leave it in. If you need or want to take it out, let me know and I can send the original, as some of the options change. Here is how they do it: if [ $pass -eq "1" ]; then ffmpeg -v 1 -f dv -i pipe: -f yuv4mpegpipe pipe: \ -vn -f $audio_format -ac 2 -ab $audio_bitrate -ar 48000 -y "$AC3" | \ \ yuvdenoise -r 16 -f 2> /dev/null | \ \ ffmpeg -v 1 -f yuv4mpegpipe -s "$normalisation" -r "$frame_rate" -i pipe: \ -an -target dvd -f mpeg1video -b 3000 -minrate 3000 -maxrate 3000 -ildct -ilme \ -aspect 4:3 -pass 1 -passlogfile "$LOG" -y "$M2V" else if [ $pass -eq "2" ]; then ffmpeg -v 1 -f dv -i pipe: -an -f rawvideo -pix_fmt yuv420p pipe: | \ ffmpeg -v 1 -f rawvideo -pix_fmt yuv420p -s "$normalisation" -r "$frame_rate" -i pipe: \ -an -target dvd -f mpeg1video -b 3000 -minrate 3000 -maxrate 3000 -ildct -ilme \ -aspect 4:3 -pass 2 -passlogfile "$LOG" -y "$M2V" mplex -v 1 -f 8 -o "$file".vob "$M2V" "$AC3" rm -f "$M2V" "$AC3" "$LOG-0.log" fi fi ___ mythtv-users mailing list [EMAIL PROTECTED] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] My ffmpeg nuvexport module so far
The end result looks as good as what I was getting using the VCD option. Well AFAICT anyway because I'm using VGA -> Scan Convertor -> Compsite RCA. Not the best quality, but good enough for what I'm doing. I tend to agree with your assessment of mpeg2enc. If faster processors don't really make it run any faster, it's likely blocked somehow (I/O, thread, etc.). Jonathan Markevich wrote: Michael J. Lynch wrote: Coolthe export frame rate on my 733Mhz P3 went from 3 fps to 21 fps. Way more acceptable. Thanks for the patch. I hope it ends up in the distro. Glad it helps. How does the end result look to you? I find it interesting that this encode scales with the processor speed whereas mpeg2enc seemingly doesn't. I've seen people with 1 GHz machines and Athlon 64 3200+ machines that claim the same render speed. Sounds like some kind of bug/bottleneck rather than just extreme attention to quality... But that's just my tinfoil-beanie wearing side speaking, now :) ___ mythtv-users mailing list [EMAIL PROTECTED] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users -- Michael J. Lynch What if the hokey pokey IS what it's all about -- author unknown ___ mythtv-users mailing list [EMAIL PROTECTED] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] My ffmpeg nuvexport module so far
As it stands, yes. ffmpeg will do MPEG2, AFAICT, if you look at ffmpeg -formats, you'll see a few of them that point to MPEG2. I'm not really sure which ones would be appropriate... I'm all for using ffmpeg for svcd/dvd/etc. But as I said, I've heard that there are quality differences vs mpeg2enc. I'm no fan of mpeg2enc, but there must be some reason why people use it. VCD isn't such an issue since its quality sucks, anyway. -Chris ___ mythtv-users mailing list [EMAIL PROTECTED] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] My ffmpeg nuvexport module so far
Michael J. Lynch wrote: Coolthe export frame rate on my 733Mhz P3 went from 3 fps to 21 fps. Way more acceptable. Thanks for the patch. I hope it ends up in the distro. Glad it helps. How does the end result look to you? I find it interesting that this encode scales with the processor speed whereas mpeg2enc seemingly doesn't. I've seen people with 1 GHz machines and Athlon 64 3200+ machines that claim the same render speed. Sounds like some kind of bug/bottleneck rather than just extreme attention to quality... But that's just my tinfoil-beanie wearing side speaking, now :) ___ mythtv-users mailing list [EMAIL PROTECTED] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] My ffmpeg nuvexport module so far
Lane Schwartz wrote: On Tue, 30 Nov 2004 13:49:37 -0400, Jonathan Markevich <[EMAIL PROTECTED]> wrote: Here (finally) is my module that I have been using with the most success for exporting MPEG1. Notice that I declare a bunch of KVCD parameters Just for clarification... This module will only export MPEG1, not MPEG2? Right? As it stands, yes. ffmpeg will do MPEG2, AFAICT, if you look at ffmpeg -formats, you'll see a few of them that point to MPEG2. I'm not really sure which ones would be appropriate... ___ mythtv-users mailing list [EMAIL PROTECTED] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] My ffmpeg nuvexport module so far
On Tue, 30 Nov 2004 13:49:37 -0400, Jonathan Markevich <[EMAIL PROTECTED]> wrote: > Here (finally) is my module that I have been using with the most success > for exporting MPEG1. Notice that I declare a bunch of KVCD parameters > in here, but am not using them right now. When I try to change the > frame rate it becomes really jerky, though the matrix does make for some > better compression. > > I haven't figured out resizing either. It always works quite slowly and > comes out as a green screen with some kind of tearing to it. I left out > the reference to the size in the ffmpeg call. It just does a straight, > non-resized copy. > > You need the latest version of ffmpeg for this, otherwise the -aspect > option will fail. Just for clarification... This module will only export MPEG1, not MPEG2? Right? Lane -- "No, we've had no evidence that Saddam Hussein was involved in 9/11." -- George W. Bush, 17 Sept 2003 ___ mythtv-users mailing list [EMAIL PROTECTED] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] My ffmpeg nuvexport module so far
Coolthe export frame rate on my 733Mhz P3 went from 3 fps to 21 fps. Way more acceptable. Thanks for the patch. I hope it ends up in the distro. Michael J. Lynch wrote: Jonathan Markevich wrote: If you don't have the latest ffmpeg the first transcoding step will take something like 10 seconds (meaning it failed), and say 0 of 0 frames. If all went well you should see some sweet better-than-realtime encoding. Farm-out!! :-) I'll give it a try as soon as I have something I want to export. The other night I used nuvexport on a 2 hour show with a commercial cut list and it took a good 10 hours to do the export. Thanks for the info, I can hardly wait. -- Michael J. Lynch What if the hokey pokey IS what it's all about -- author unknown ___ mythtv-users mailing list [EMAIL PROTECTED] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: [mythtv-users] My ffmpeg nuvexport module so far
Jonathan Markevich wrote: If you don't have the latest ffmpeg the first transcoding step will take something like 10 seconds (meaning it failed), and say 0 of 0 frames. If all went well you should see some sweet better-than-realtime encoding. Farm-out!! :-) I'll give it a try as soon as I have something I want to export. The other night I used nuvexport on a 2 hour show with a commercial cut list and it took a good 10 hours to do the export. Thanks for the info, I can hardly wait. -- Michael J. Lynch What if the hokey pokey IS what it's all about -- author unknown ___ mythtv-users mailing list [EMAIL PROTECTED] http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users