Re: [Mjpeg-users] Converting back from DVD
Ronald S. Bultje wrote: Hi, On Sun, 2005-10-16 at 22:43 +0200, Bernhard Frühmesser wrote: Does anybody know if it is possible to rip back the DVD to use it with the mjpegtools (glav) etc...? I'd recommend something like DVD::rip for that purpose. If you don't mind it being in a mjpegtools-incompatible format, Thoggen may also serve as a very user-friendly tool to do the job; unfortunately, it's Ogg/Theora only for now. Well, i have tested DVD::rip but non of these formats can be used with the mjpegtools then. Bernhard Ronald --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] Converting back from DVD
On Mon, 17 Oct 2005 12:08:04 +0200 Bernhard Frühmesser [EMAIL PROTECTED] wrote: Ronald S. Bultje wrote: Hi, On Sun, 2005-10-16 at 22:43 +0200, Bernhard Frühmesser wrote: Does anybody know if it is possible to rip back the DVD to use it with the mjpegtools (glav) etc...? I'd recommend something like DVD::rip for that purpose. If you don't mind it being in a mjpegtools-incompatible format, Thoggen may also serve as a very user-friendly tool to do the job; unfortunately, it's Ogg/Theora only for now. Well, i have tested DVD::rip but non of these formats can be used with the mjpegtools then. A variation of mencoder dvd://1 -o outfile.avi -oac pcm -ovc lavc -lavcopts vcodec=mjpeg:vqmin=1 will create an avi file with pcm sound and MJPEG video. Bear in mind that this conversion, as the subsequent conversion back to MPEG2 for the DVD, will degrade the quality for each step. It would be beneficial if you could use gopchop or a similar MPEG2 cutting tool instead. You may be able to use the fabled YUV support in recent lavtools, which then would lessen the losses from MPEG2-MJPEG-MPEG2 to just MPEG2-(lossless YUV)-MPEG2, but I don't know how or if it works. /Sam --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] DV avi in NTSC
Hi, does anyone have a NTSC-DV (interlaced) snipplet (something arround 200-400 frames) for me to test the new deinterlacer against it? cu Stefan --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] DV avi in NTSC
I've got some captured on my NTSC DV camera. If you want it, I'll send it to you. Tell me what information you'd like to know. Joe --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] DV avi in NTSC
Joe Friedrichsen schrieb: I've got some captured on my NTSC DV camera. If you want it, I'll send it to you. Tell me what information you'd like to know. Any NTSC-DV-file with moving objects in it will be fine. It's just to test the deinterlacers response to NTSC-chrominance (411) data. I don't expect it to fail, but who knows. I only have some PAL-DV material at hand... Stefan --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] Converting back from DVD
On Mon, 17 Oct 2005, [ISO-8859-1] Bernhard Fr?hmesser wrote: So far i have the vob file on the HDD, and mpeg2dec reads it, but do i have to use a pipe here to store the output in a file? Right now the video displays on the desktop. With -o pgm i get a pgm for each frame. Why not use 'mpeg2dec -o pgmpipe ...'? You get a stream of the 'pgm' images. 'pgmtoy4m' from mjpegtools understands that format and will assist in the repacking (it really isn't a conversion - the bytes themselves are not changed). The frame size will be computed by pgmtoy4m but the rate, aspect ratio and chroma sampling info must be supplied by the user. No, you do not have to use a pipe if you have lots of space. But compressing DVD video will multiply the size about 20x - DVD video averages in many cases between 5 and 9 Mb/s and uncompressed video is ~125Mb/s. Perhaps this script (which I use to recode HDTV broadcasts to DVD) will be useful (of course the aspect and frame size numbers will need to be changed if you're in a 625 line country ;)): -- #!/bin/sh N=072405105923 # Since a full frame is 704x480 (NOT 720x480!) exact scaling with # NO cropping/padding can be done by explicitly setting the SAR to 40:33 and # the output size to 704x480! Previously when scaling to 720x480 there would # be either cropping (when using -O infer=simplify) or padding (when using # -O infer=exact). mpeg2dec -o pgmpipe $N.m2v | \ pgmtoy4m -i t -a 1:1 -r 3:1001 -x 420mpeg2 | \ y4mscaler -v 0 -I active=1920x1080+0+0 -O infer=exact -O sar=40:33 -O size=704x480 -S option=cubicK4 | \ bfr -b 10m -T 70 | \ mpeg2enc -f 8 -b 8600 -q 2 -D 10 -E -12 --dualprime-mpeg2 -K tmpgenc -4 1 -2 1 -o new-out.m2v -- Cheers, Steven Schultz --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] mjpegtools, qdvdauthor to make DVD
Hi everyone, I'm finally getting around to trying to make some DVD's from older VHS tapes. After getting a Canopus ADVC-110 and LOTS of emails to Steven Schultz, I'm getting there. Thanks a lot for all the help Steven. I'm still unsure how to make a DVD (with the menus and so forth) if I process the raw capture files via a script like this: smil2yuv -i 2 -a video.mp2 video.smil | y4mshift -b 8,0,704,476 | yuvdenoise -s 4,5,5 -g 64,255,255 -t 3,4,4 | y4mscaler -v 0 -I active=704x480+8+0 -O sar=src -O chromass=420_mpeg2 | mpeg2enc -f 8 -D 10 -E -10 -4 1 -2 1 -c --dualprime-mpeg2 -q 8 -o video.m2v It looks to me like Kino and qdvdauthor are designed more to take the raw capture files and process them based on the various settings within that particular program. Is this the case? If so, is there another way to generate the XML file (manually create) so qdvdauthor will see it as a project file if another script (like the one above) is used? Or is there another way to do this that I'm unaware of? It takes an awfully long time to process the capture files into a mpeg2 file. Like 3 hr and 20 minutes or so for 30 minutes of video. That's on a machine with FC4, a 2.8 Ghz Celeron, 1 Gb of memory and a 120 Gb 7200 RPM Deskstar. I'm hoping I don't have to go through it all over again. Thanks for any and all help. Stan --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] DV avi in NTSC
Stefan M. Fendt wrote: Joe Friedrichsen schrieb: I've got some captured on my NTSC DV camera. If you want it, I'll send it to you. Tell me what information you'd like to know. Any NTSC-DV-file with moving objects in it will be fine. It's just to test the deinterlacers response to NTSC-chrominance (411) data. I don't expect it to fail, but who knows. I only have some PAL-DV material at hand... Ok. My file will probably work for you. It's a simple Rube Goldberg machine from a Japanese kid's television show. The quality isn't optimum as it's captured from aerial TV, but the video's still interlaced. Joe --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] Converting back from DVD
So far i have the vob file on the HDD, and mpeg2dec reads it, but do i have to use a pipe here to store the output in a file? Right now the video displays on the desktop. With -o pgm i get a pgm for each frame. Why not use 'mpeg2dec -o pgmpipe ...'? I have tested this, mpeg2dec ofile.m2v -o pgmpipe | pgmtoy4m -i t -a 1:1 -r 3:1001 -x 420mpeg2 test.mov But when i do a lavplay later on test.mov i get: nable to identify file (not a supported format - avi, quicktime). **ERROR: [lavplay] Error opening test.mov So i am not sure if pgmtoy4m can store the output in a file which i can use with glav/lavplay etc... as the stuff in the manpage doesn´t tell of any option to specify an output file. Also the audio won´t be available here, so i guess ffmpeg or mencoder will be better here to have the audio too. BTW i might recompile the mjpegtools here as i get Segmentation fault very often. Either i recompile version 1.8.0 or get back to 1.6.2. Bernhard You get a stream of the 'pgm' images. 'pgmtoy4m' from mjpegtools understands that format and will assist in the repacking (it really isn't a conversion - the bytes themselves are not changed). The frame size will be computed by pgmtoy4m but the rate, aspect ratio and chroma sampling info must be supplied by the user. No, you do not have to use a pipe if you have lots of space. But compressing DVD video will multiply the size about 20x - DVD video averages in many cases between 5 and 9 Mb/s and uncompressed video is ~125Mb/s. Perhaps this script (which I use to recode HDTV broadcasts to DVD) will be useful (of course the aspect and frame size numbers will need to be changed if you're in a 625 line country ;)): Cheers, Steven Schultz --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] Converting back from DVD
Bernhard Frühmesser wrote: So far i have the vob file on the HDD, and mpeg2dec reads it, but do i have to use a pipe here to store the output in a file? Right now the video displays on the desktop. With -o pgm i get a pgm for each frame. Why not use 'mpeg2dec -o pgmpipe ...'? I have tested this, mpeg2dec ofile.m2v -o pgmpipe | pgmtoy4m -i t -a 1:1 -r 3:1001 -x 420mpeg2 test.mov But when i do a lavplay later on test.mov i get: nable to identify file (not a supported format - avi, quicktime). **ERROR: [lavplay] Error opening test.mov Maybe you could try using ffmpeg or mplayer. I've documented how to get yuv4mpeg out of them previously. Here's the crash course: ffmpeg -i ofile.m2v -f yuv4mpegpipe test.yuv (will write to test.yuv) mplayer -ac dummy -ao null -vo yuv4mpeg -benchmark -noframedrop ofile.m2v (will write to stream.yuv, this name is hardcoded) Also have you had a quick look at the resulting yuv file, produced by pgmtoy4m? (test.mov) It should look something like this: YUV4MPEG2 W352 H288 F3:1001 It A1:1 FRAME [snip] Mark --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] Converting back from DVD
On Tue, 18 Oct 2005, [ISO-8859-1] Bernhard Fr?hmesser wrote: I have tested this, mpeg2dec ofile.m2v -o pgmpipe | pgmtoy4m -i t -a 1:1 -r 3:1001 -x 420mpeg2 test.mov I hope you weren't expecing to get a Quicktime file from 'pgmtoy4m' ;) As the name implies pgmtoy4m is a PGM(mpeg2dec) to YUV4MPEG2 (also known as Y4M) program not a Quicktime (.mov) wrappering program. Coming from a DVD I really do not think square pixels (-a 1:1) is the proper setting. If it's a non-widescreen NTSC then 10:11 is the value, widescreen NTSC is 40:33. http://www.mir.com/DMG/aspect.html is a good place to bookmark ;) Even for testing I think it's a good idea to use the correct aspect values. But when i do a lavplay later on test.mov i get: Unable to identify file (not a supported format - avi, quicktime). That is to be expected since Y4M data is neither avi or quicktime. Simply putting a .mov in a filename doesn't cause a transformation from Y4M data to a Quicktime wrapper. So i am not sure if pgmtoy4m can store the output in a file which i can use with glav/lavplay etc... as the stuff in the manpage doesn't I guess I read too quickly thru the goal you're trying to achieve. I (mistakenly) thought you were simply trying to recode a DVD to a different format. Also the audio won't be available here, so i guess ffmpeg or mencoder will be better here to have the audio too. Extract the audio to a separate file. Any decent editor will have the ability to import the video and audio from different files. Editing MPEG-2 video can be done one of three ways: 1. Edit with GOP sized resolution (typical DVDs are about 15 per GOP or about .5 seconds) with something like ProjectX http://www.lucike.info/ - then export new files (audio and video) which can be mplex'd together. 2. A lossless decode to uncompressed Y'CbCr, do the editing, export the data to a new uncompressed file and encode. There will be some loss of quality due to the re-encoding but it's not too bad. 3. Decode the original MPEG-2/VOB file, do a lossy encode to something glav understands (MJPEG or DV), edit, decode the MJPEG or DV, encode to MPEG-2. If you encode to DV25 then Kino could be used to do the editing. I've seen the results of going thru an intermediate lossy compression step and it's not pretty ;( For #2 perhaps Cinelerra can handle uncompressed video. The couple times I've done this type of thing I supersampled the chroma from 4:2:0 to 4:2:2 (using y4mscaler) and created a '2vuy' (uncompressed 4:2:2) Quicktime file from the Y4M data (using a hack written for the purpose). Editing and rendering was done using Final Cut Pro. BTW i might recompile the mjpegtools here as i get Segmentation fault very often. Either i recompile version 1.8.0 or get back to 1.6.2. Can't fix what hasn't been reported. We're not mind-readers ;) A better bug report than I get segmentation fault very often would be a good start :-) Knowing what program(s) were crashing would also be useful information. I haven't had an segment faults in the encoder or multiplexor (mpeg2enc or mplex). There is a memory leak in the Quicktime audio handling - if you're seeing crashes due to memory allocation there's a small patch in the recent mailinglist archives. It's been fixed in CVS of course ;) Cheers, Steven Schultz --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] mjpegtools, qdvdauthor to make DVD
Hi - On Mon, 17 Oct 2005, Stan Gammons wrote: I'm finally getting around to trying to make some DVD's from older VHS tapes. After getting a Canopus ADVC-110 and LOTS of emails to Steven Nice unit - I was certainly happy with the older ADVC-100 (as I recall one of the big advantanges of the 110 is that it can draw its power from the ieee1394 bus and not require a power adaptor/brick). I'm still unsure how to make a DVD (with the menus and so forth) if I process the raw capture files via a script like this: That's the job of 'dvdauthor'. Your encoding script looks correct (and very familiar :-)) It looks to me like Kino and qdvdauthor are designed more to take the raw capture files and process them based on the various settings within that particular program. Is this the case? If so, is there another way Not exactly. Kino takes the raw file (often batch/bulkcaptured with dvgrab) and created a .smil file. I haven't looked at qdvdauthor but being a front end to dvdauthor it's likely that you feed the .mpg files into qdvdauthor in the same way as dvdauthor. to generate the XML file (manually create) so qdvdauthor will see it as You could create it by hand I suppose. The menus and so on you'll need to craft using ImageMagick, xv, gimp, whatever. awfully long time to process the capture files into a mpeg2 file. Like 3 hr and 20 minutes or so for 30 minutes of video. That's on a machine That's quite reasonable for that pipeline. The bottleneck is not the encoder but the other processing - denoising/enhancing/etc video is time consuming. with FC4, a 2.8 Ghz Celeron, 1 Gb of memory and a 120 Gb 7200 RPM Celeron does have a smaller cache - that might be a small part of the slowness. But with 5 process in the pipeline there's a lot of competition for 1 cpu. Deskstar. I'm hoping I don't have to go through it all over again. No, once you have the .m2v and .mp2 (or .ac3) files then you 'mplex -f 8 -o output.mpg input.m2v input.mp2' and send the output.mpg off to the dvd authoring process. The other DVD authoring programs I'm familiar with use the elementary files (.m2v, .mp2) and do the mplex'ing as part of the final output processing (when the .VOB files are being created). Cheers, Steven Schultz --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users