[Mjpeg-users] generate a DVD? prepare data for dvdauthor?
Hi, i try to burn a DVD made with some material that i've cut and edited. Nearly every page i've found describes how to get the data _from_ a DVD, not how to generate it _for_ a DVD. Also in the MJPEG-Howto there is only described how to create a VCD or SVCD, not for DVD. I'd like to prepare an MPG (Video and Audio) so i can use this file as an input for dvdauthor. From the man-page and some examples in the internet i already found out that i need to mplex the data with: mplex -f 8 -o final.mpg video.m2v audio.mp2 But how can i create video.m2v and audio.mp2 with either transcode or mencoder? Best regards, Torsten. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] creating a YUV stream from PNGs, distorted output with garbage
Hi everybody, i try to generate an MPEG that is suitable for a background menu for a DVD. So i used a Perl script to generate some pictures: #! /usr/bin/perl -w use GD; my $n = 25; for(my $i = 0; $i $n; $i++) { my $img = GD::Image-new(720, 576); my $white = $img-colorAllocate(255, 255, 255); my $black = $img-colorAllocate(0, 0, 0); # $img-transparent($white); $img-rectangle(10, 10, 10+2*$i, 10+3*$i, $black); save_png(sprintf(pic/img%02i.png, $i), $img); } sub save_png { my ($fname, $im) = @_; local *FH; open FH, $fname or die can't write-open '$fname'\n; binmode FH; print FH $im-png(); close FH; } Then i used mogrify * on all the images. before that i got some complaints from png2yuv: png2yuv -v 2 -f 25.00 -I t -L 1 -n 24 -j pic/img%02d.png menu.yuv INFO: [png2yuv] Parsing checking input files. --DEBUG: [png2yuv] Analyzing pic/img00.png to get the right pic params INFO: [png2yuv] Image dimensions are 720x576 INFO: [png2yuv] Movie frame rate is: 25.00 frames/second INFO: [png2yuv] Interlaced frames, top field first. INFO: [png2yuv] Frame size: 720 x 576 INFO: [png2yuv] Now generating YUV4MPEG stream. **ERROR: [png2yuv] mpegz: UNKNOWN COLOR FORMAT 3 in PNG transformation ! So after mogrifying the pictures i can create a YUV stream. png2yuv -v 2 -f 25.00 -I t -L 1 -n 24 -j pic/img%02d.png menu.yuv ... lots of debug stuff ... But when i use MPlayer to show the stream i get lots of garbage output. In the output i can see the generated pictures, but they are heavily distorted and garbage is added. Can anybody tell me what is going wrong? Do i use incorrect parameters? Best regards, Torsten. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] Driver installation?
Hi, thanks for the hint. But it looks like my card is damaged. As i think about replacing it now i thought i'd first ask here for recommendations. What card should i buy for digital video editing under Linux? i got the hint by private mail to clean the contacts of the PCI card. That actually worked, now the card is recognised and modprobing saa7110, adv7175 and zr36067 gives correct entries in /var/log/messages. (First capturing failed, but that may be a problem of the cables). Best regards, Torsten. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] Driver installation?
Hi, Your card appears somewhat broken, the correct id is 0x7efe, not 0x7e7e (note how the highest bit of the last byte is missing). Try modprobe zr36067 card=2 to workaround failing autodetection; it may work, but it may just bail out randomly elsewhere if the card really is damaged. thanks for the hint. But it looks like my card is damaged. As i think about replacing it now i thought i'd first ask here for recommendations. What card should i buy for digital video editing under Linux? Best regards, Torsten. --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42 plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] Driver installation?
Hi, i have a DC10 card in my PC that i haven't used for a longer time. It is not configured to work at the moment. In /etc/modprobe.conf i've set char-major-81 to zr36067. When i now do modprobe -k zr36067 i get the message: FATAL: Error inserting zr36067 (/lib/modules/2.6.11.6/kernel /drivers/media/video/zr36067.ko): No such device In /var/log/messages i get (without time): Zoran MJPEG board driver version 0.9.5 ACPI: PCI interrupt :03:0b.0[A] - GSI 23 (level, low) - IRQ 23 MJPEG[0]: Zoran ZR36067 (rev 2) irq: 23, memory: 0x MJPEG[0]: subsystem vendor=0x1031 id=0x7e7e MJPEG[0]: find_zr36057() - unknown card No known MJPEG cards found. I use kernel 2.6.11.6, based on SuSE 9.3. What do i need to do to configure the card? I remember vaguely that some additional lines in /etc/modprobe.conf are necessary, right? Best regards, Torsten. --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] how to encode an MPEG from an AVI?
Hi, i did not encode any MPEGs from an AVI for a longer time. I used to use mp2enc for that, but it seems it is not in the latest distribution i use any more. I think there were some license issues with this one, if i remember correct? What could i use best nowadays to encode an MPEG from an AVI, e.g. for a SVCD or something similar? Best regards, Torsten. --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477alloc_id=16492op=click ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] Error initializing Audio: Audio task died.
Hi, thanks for the hints to get the mjpeg tools to compile, now it works. I still have the problem that glav dies immediately because it can't open ALSA audio on my 2.6.7 with onboard sound-intel8x0. I took a look int audiolib.c to see what the problem could be. The message i get is: **ERROR: [lavplay] Error initializing Audio: Audio task died. \ Reason: Error mapping audio buffer - Input/output error I think this is related to line 805 in audiolib.c if (audio_capt) buf=mmap(NULL, tmp, PROT_READ , MAP_SHARED, fd, 0); else buf=mmap(NULL, tmp, PROT_WRITE, MAP_SHARED, fd, 0); if (buf==MAP_FAILED) 806: system_error(mapping audio buffer,fd, 1); So maybe this is rather a problem of my shared memory subsystem in the kernel? Maybe i only forgot to set a certain option? Best regards, Torsten. --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] SuSE 9.1, glav dies, mp2enc missing
Hi, 1. glav dies: [EMAIL PROTECTED]:/vid glav geschenk.avi ++: **ERROR: [lavplay] Error initializing Audio: Audio \ task died. Reason: Error mapping audio buffer - Input/output error ++: lavtools version 1.6.2 Does you sound card support mmap audio playback ? The error decription sound as if the sound card would not support mmap playback. Which soundcard do you have and which soundsystem do you use i use the ALSA in kernel 2.6.7, it is a intel8x0 based sound card. Playing it back with -a 0 works, but as expected, no sound. Are there options to NOT use mmap? Best regards, Torsten. --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] SuSE 9.1, glav dies, mp2enc missing
Hi, my system is based on german distribution SuSE 9.1, i use kernel 2.6.7. 1. glav dies: [EMAIL PROTECTED]:/vid glav geschenk.avi ++: **ERROR: [lavplay] Error initializing Audio: Audio \ task died. Reason: Error mapping audio buffer - Input/output error ++: lavtools version 1.6.2 [EMAIL PROTECTED]:/vid glav -v2 geschenk.avi ++:INFO: [lavplay] Initialising SDL ++:INFO: [lavplay] SDL YUV overlay: hardware ++:INFO: [lavplay] Using mmap(2) system call for capture ++: **ERROR: [lavplay] Error initializing Audio: Audio task died. Reason: Error mapping audio buffer - Input/output error ++: lavtools version 1.6.2 2. mp2enc is missing, mpeg2enc is missing. This seems to be some license issue. Where can i get these two? Does it make sense to compile lavtools to solve these two isues? Best regards, Torsten. --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] Build VDR, Tuner needed
Hi, thanks for that hint. Yes, i'm in Germany. I also had the idea to use my Sony VCR as a tuner and control it via its S-input (not S-Video but S-Control) to change to a certain channel. I thought there were tuners available that are smaller and controllable via a standard interface? I'll look at ELV, Conrad and so on. Thanks, Torsten. Torsten Mohr wrote: Hi, Hallo i'd like to build a VDR based on my DC10 card. But that card has no tuner, so the idea is to either: - add an external tuner that selects the program to record. Can anybody recommend an external tuner? Try a old VCR (Videorekorder) they have a tuner. But often not the really good quality. If you live in Germany maybe ELV (www.elv.de) or Radiobastler has a suitable device. - use my BT878 based card with tuner to select the program and somehow transfer the captured pic into the memory of the DC10 and do the compression there. Is this possible? No the zoran isn't designed or able to do that. auf hoffentlich bald, Berni the Chaos of Woodquarter Email: [EMAIL PROTECTED] www: http://www.lysator.liu.se/~gz/bernhard --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] Build VDR, Tuner needed
Hi, thanks for that hint. It looks like this project is not yet really stable, has anybody got some experiences with this? Best regards, Torsten. On Wed, Apr 21, 2004 at 01:22:13PM +0200, Torsten Mohr wrote: Hi, i'd like to build a VDR based on my DC10 card. But that card has no tuner, so the idea is to either: - add an external tuner that selects the program to record. Can anybody recommend an external tuner? Any VCR with composite/svideo level outputs. But now your problem changes from what tuner do I attach to how to I tune the tuner. :) One possible solution to that is the RedRat IR control box (http://www.redrat.co.uk/start.htm). - use my BT878 based card with tuner to select the program and somehow transfer the captured pic into the memory of the DC10 and do the compression there. Is this possible? Has anybody got another idea on how to build a VDR based on that DC10 and the MJPEG tools for Linux? VCR + RedRat + some programming, and you'll have a VDR. However, you omitted option #3: Get a Hauppage WinTV-PVR250/PVR350 card, and you not only have an on-board tuner, but hardware compression straight to MPEG all on one little PCI card (linux drivers at http://ivtv.sourceforge.net/). --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470alloc_id=3638op=click ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] perl bindings for LAV-Tools and SDL
Hi, i just uploaded the C++ wrapper and the perl bindings for lavtools: http://www.s.netic.de/tmohr/lavperl-0.3.0.tar.bz2 This one: - fixes a bug that prevented the previous version from working. - contains a pach for SDL_perl-1.20.0 that adds the a functionality to return a Surfaces data as a perl string. - contains an example perl code that loads an AVI, lets one single step through the frames, shows each frame in an SDL window and writes each frame into an output stream. It is also possible to write an animation directly from SDL Surfaces. Best regards, Torsten. --- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] which IEEE1394 card to buy, how to capture and convert to MJPEG
Hi, i'd like to buy a FireWire Card to capture some video streams from my brand new miniDV camcorder. What would be a good card to buy, that has good support in Linux? I'd like to then capture video streams and convert them in a way that lets me process them with MJPEG tools. Can anybody give me a hint on that? Best regards, Torsten. --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] xawtv DC10+
Hi, when i try to watch the video source that comes from my DC10+ with xawtv-3.83 (just downloaded it, 3.76 didn't work either) i only see a mixture of green/violet. The settings (composite, PAL, overlay) seem correct to me. I use the zr36067 that came with my 2.4.19 kernel. Any settings i change have some effect on the picture, but it is always a mixture of green/violet and always bad. What could be wrong? Thanks for any hints, Torsten. --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] Announce: some effect tools
Hi, i just wrote some tools that use liblav to do some effects on AVI video streams that are captured with lavrec. Thay are available at: http://www.s.netic.de/tmohr/lavfilter.tar.bz2 The name is kind of misleading. The tools can do: - pngblend: blend two streams into a final one. - pngoverlay: overlay some PNG pictures over a video stream - pngtrans: do some transitions between several AVI streams I'd be glad to hear any comments on those tools. Best regards, Torsten. Here's an example on how to start them: #! /bin/bash # These tools are slow, because the convert the AVI streams to RGB # values. This takes some time... # This one takes a stream from left side -l file and a stream from # right side -r file outputs it to -o file. the left side of the # output stream (0 to -n xvalue) comes from the left stream, the # right side (-m xvalue to maximum width) comes from the right stream. # All values between -n x1 to -m x2 are mixed. # No sound at the moment. # ./pngblend -l ../lav_examples/file1.avi -r ../lav_examples/file2.avi \ # -n 354 -m 414 -o qq.avi # This one works like the example above, except that a -p picture.png # is used to decide from where a value comes (black:left - white:right). # Inbetween values are interpolated. # No sound at the moment. # ./pngblend -l ../lav_examples/file1.avi -r ../lav_examples/file2.avi \ # -o qq.avi -p ../lav_examples/bfile.png # These examples take an input stream and overlay a PNG file that comes # from -p mask. An offset (-a) can be set to a offset (where the # overlay starts). # Sound is just copied to the output stream. # ./pngoverlay -p ../lav_examples/in/%04d.png -b 1 -e 15 \ # -i ../lav_examples/in.avi -o out.avi -a 1 #./pngoverlay -p ../lav_examples/in/%04d.png -b 1 -e 15 \ # -i /vid/volltreffer1.avi -o out.avi -a 1 #./pngoverlay -p ../lav_examples/in/%04d.png -b 1 -e 15 \ # -i ../lav_examples/peanuts.avi -o out.avi -a 1 # This one puts the output into -o res.avi. # The order of the command line parameters matters. # There are parameters that describe an input stream: # -f input file name # -b begin frame number # -e end frame number (negative values are counted from the end) # # There are parameters that describe a transition from one stream to # another (or to/from video:black / sound:quiet): # -v number: video transition lasts number frames # -s number: sound transition lasts number frames # -a number: video offset # -b number: sound offset # # Example: file1 has frames 1 to 50, file2 has frames 1 to 70. If the # video transition between those two is 15, the resulting video sequence # is like this: # frames 1 to 34 from file1 # frames 35 to 50 are mixed with frames 1 to 15 from file2 # frames 51 to 105 from file2 # # If a video offset is given, e.g. 7 it all looks like this: # frames 1 to 41 from file1 # frames 42 to 57 are mixed with frames 1 to 15 from file2 # frames 58 to 105 from file2 #./pngtrans -o res.avi \ #-v 50 -s 50 \ #-f ../lav_examples/peanuts.avi -b 13 -e 150 \ #-a 50 -v 20 -s 20 \ #-f ../lav_examples/cc1.avi -b 26 -e 150 \ #-v 50 -s 50 --- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] lav_read_audio: how many samples for ONE frame?
Hi, i try to do some video and audio effects on some AVI streams, i have some questions related to that, it would be great if someone could give me some hints. I just sampled an AVI stream with lavrec, audio in 16 bits, 1 channel, audio rate is 11025. When i open that stream and read out the informations in it i get: Video frames: 438 Video rate: 25.0 frames per second Audio channels: 1 Audio Bits: 16 Audio Rate: 11025 Audio Samples: 192413 I try to check the audio sample number now: 438*11025/25 is 193158, that's higher than the number in the stream. 437*11025/25 is 192717, that's still too high, though i took one frame less. I'd like to mix two (or more) streams (video works!) but when i try to figure out how many samples are related to a video frame it gets annoying. I only work with frames with matching audio/video parameters, so rate, bits, channels are the same. As in the example above, it seems i can't just try to read the (audio_rate/video_rate) samples. So i tried it a different way: audio_pos = video_frame * audio_samples / all_video_frames; audio_pos = ~1; I calculate the size of the data as: size = audio_pos(frame+1) - audio_pos(frame); But this leads to differing sizes, sometimes 438, sometimes 440. (Also, for large number of frames there can be an overflow.) So when i read in video frames from TWO streams, the audio size of the first one may be 438, the second one 440. This leads to complicated algorithms for mixing the audio data. Has anybody got an idea of how to read in the audio chunks related to a frame? I'd like to use a fixed buffer size, this would make things much easier. Thanks for any hints, Torsten. --- This SF.NET email is sponsored by: FREE SSL Guide from Thawte are you planning your Web Server Security? Click here to get a FREE Thawte SSL guide and find the answers to all your SSL security issues. http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] reading an AVI file, how to get the sound?
Hi, in /usr/include/mjpegtools/lav_io.h there are several functions declared to access/read/write a file recorded with lavrec. I have used these functions to read/write lavrec files. But how do i access the samples that are related to a picture? As i understand it, there is video information and sound information mixed in the file. I can read every frame i'd like with e.g. lav_read_frame. I assume it can be seen like this: PIC1...PIC2...PIC3...PIC3 soundsoundsoundsoundsoundsoundsoundsoundsound How can i read the samples that are related to this frame? To read out the audio info, do i do it like this? - read the audio information (bits, channels, rate, number of samples) - read a video frame N - set audio position N (lav_set_audio_position) - read that audio sample (lav_read_audio) If i do it like this, is video frame N in sync to the audio data then? Best regards, Torsten. --- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en ___ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users