Re: [Mjpeg-users] DC10+ and video out
On Mon April 10 2006 01:28, Ronald S. Bultje wrote: > Hi, > > On Sun, 9 Apr 2006, Dave Chapman <[EMAIL PROTECTED]> wrote: > > Does anyone know of the hardware hack to send the signal from a TV tuner > > card through the DC10+ > > If you open a TV viewing app, you'll note that the dc10+ has three video > inputs; composite, svideo and some magical thing called "internal". Open > your computer and look at the card; you'll see a small black connector on > the side of the card labelled "video in", and the "internal" option is > exactly this. > Some tv/tuner cards actually have a similar connector labelled "video > out". By connecting the tuner out to the dc10+ internal in, you > essentially add a tuner to your dc10+ (or a hardware codec to your tuner > card, depending on whose side you're on). The cable input is then > connected to the tuner card, the tuner proxied to the dc10+, and you > capture using lavrec or so. > > Ronald I don't suppose you know of any particular TV cards that have this connector. To help narrow my search. Thanks Dave --- 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=lnk&kid=110944&bid=241720&dat=121642 ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] DC10+ and video out
I guys. I'm new to the list so don't shot me down if these are silly questions. I have a Pinnacle DC10+ that I am using with Mythtv to capture from my cable box. Two questions Can the video out ports be used at all What tweaks are there to get the best quality verses file size Make that three Does anyone know of the hardware hack to send the signal from a TV tuner card through the DC10+ Thanks Dave --- 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=lnk&kid=110944&bid=241720&dat=121642 ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] Raw WAV with mp2enc?
Michael Lehmeier wrote: Then I record the audio input like this: arecord -f dat audio.wav The problem: audio.wav is then only raw audio. mp2enc doesn't handle raw audio AFAIK. On checking the man page for arecord, you can add "-t wav" to make arecord create a wav file. I don't know if it's then possible to pipe that into mp2enc - wav files headers contain the filesize - something not possible to include with live streams. Another mp2 encoder is toolame - this seems to support reading raw data from stdin, but I haven't tested it. Dave. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] Mplex lpcm bug+fix (1.8.0)
Steven M. Schultz wrote: > Does anyone know how 20bit LPCM audio is packed? According to > http://www.dvddemystified.com/dvdfaq.html#3.6.2 LPCM of 16, 20 or 24 > bits (at either 48k or 96k) is allowed. My understanding from examining 20-bit DVD-Audio AOB files (authored using a commercial DVD-A authoring package) is that they are packed in a similar way to 24-bit. i.e. taking the example of four samples (two stereo pairs) 0x01234 (sample 0, left) 0x56789 (sample 0, right) 0xabcde (sample 1, left) 0xf3456 (sample 1, right) these would be packed as: 0x01 0x23 0x56 0x78 0xab 0xcd 0xf3 0x45 0x49 0xe6 i.e. the most significant 16 bits (in big-endian order) for each of the four samples, followed by the least significant 4 bits of each sample. But I haven't even tested this with DVD-Audio, so I can only guess that this is how it's done for DVD-Video. Dave. --- 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] More info on mplex + lpcm problem
Skip Intro wrote: > Folks: > > I'm still having trouble multiplexing a LPCM file with an MPEG-2 video > stream with mplex > > I'm using the command line > > mplex -f 8 -L 48000:2:16 -o output.mpg video.m2v audio.pcm > > The "audio.pcm" file is 48K , stereo, 16 bits, Motorola byte order > When loaded into Adobe audition, it plays fine. Firstly, are you using the latest (CVS) version of mplex? There is a known bug in 1.6.3rc1 which is fixed in CVS. If that doesn't fix the problem, can you post the output of the mplex command? Also, what are you using to play back the multiplexed file? Are you sure that it is not a bug in that application? Have you tried burning it to DVD and playing in a hardware player? I don't think very many people use LPCM audio with mplex - but I do, and it works fine. But only if you are using the latest CVS - 1.6.3rc1 and earlier versions are broken. Dave. --- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] mplex and lpcm bug?
[EMAIL PROTECTED] wrote: > Hello Dave, > > how do I know the result of the mplexed mpg file will never takes over > the 10.08Mbit/s limit for DVDs? I know tried to burn the DVD with AC3 > tone and this time the peak bit-rame and the audio rat are under 10.08 > Mbit. At the beginning sound and video is ok, but after 1/2 hour the > video is jumping for <1 second. I don't know if it discards frames or > something else. It should (I think) be detected by mplex. If mplex doesn't give any warnings about buffer underruns, then it should be fine. If that's not the case, then mayba ask on the mjpeg-devel mailing list. It could also be a completely different problem - in the past I have had problems with certain types of DVD media where the first half of the disk would read fine, but the second half wouldn't. Does anyone else reading this have any ideas? Dave. --- 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=7477&alloc_id=16492&op=click ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] mplex and lpcm bug?
[EMAIL PROTECTED] wrote: >INFO: [mplex] Average bit-rate : 7173600 bits/sec >INFO: [mplex] Peak bit-rate: 8804400 bits/sec >INFO: [mplex] BUFFERING min 15 Buf max 139661 >INFO: [mplex] MUX STATUS: no under-runs detected. > > So peak bit-rate is OK. No it isn't. 8.8Mbit/s for the video, plus 1.5Mbit/s for the audio takes you over the 10.08Mbit/s limit for DVDs. There is also the overhead of the MPEG program stream headers and the system packets to add to the raw streams. I'm surprised that mplex doesn't report any buffer under-runs, but that your DVD player struggles in some parts (implying that there probably are buffer underruns). The only solution is to try and alter your mpeg2enc parameters to bring the peak bitrate closer to 8Mbit/s - or compress your audio using AC3 or MP2. But I'm far from an expert on mpeg2, so hopefully someone else can give you more advice or correct me if I'm wrong. Dave. --- 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=7477&alloc_id=16492&op=click ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] mplex and lpcm bug?
[EMAIL PROTECTED] wrote: > > $ sox -V > sox: Version 12.17.7 Checking the sox ChangeLog, I found this: sox-12.17.8 --- o "-x" option was being ignored since 12.17.7. So it looks like a bug in 12.17.7 - you should upgrade to 12.17.8 and that should fix it. > I now swapped the bytes myself and now the mpeg file is ok. Any > suggestions for the best video rate with pcm audio? > At the moment I use this mpeg2enc options: > -M3 -a2 -q4 -f8 -b8192 -np -F3 -I1 -21 -41 -r16 -N1.0 -Khi-res -D10 -s -c -P > > But the burned result skips some video frames when playing it on a > normal dvd player. Ton is ok. Limiting the bitrate to about 8Mbit/s (which you have done) should be fine. If the peak bitrate is less than that you should be fine. Does mplex give you any error messages or warnings about buffer underflows? What are the average and peak bitrates it displays when it finishes running? Dave. --- 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=7477&alloc_id=16492&op=click ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] mplex and lpcm bug?
[EMAIL PROTECTED] wrote: On Wed, 29 Jun 2005, Dave Chapman wrote: [EMAIL PROTECTED] wrote: Hallo, I think there has to be a bug in the mplex tool with lpcm. That is what I have done: 1. sox NAME.wav -t raw -x -s -w -c2 -r48000 NAME.lpcm 2. mplex -S 0 -f 8 -V -o NAME.mpg NAME.lpcm NAME.m2v It make no different if I also use "-L 48000:2:16" 3. Try to play this file with mplayer and xine. Video is OK, but Sound make just a noise. If you compare the bytes in NAME.wav and NAME.lpcm, are they byte-swapped? (They should be). If not, then you should remove the -x option to sox. No the bytes are not swapped. The "-x" option swaps the bytes only if it is nessasary. So you get the same NAME.lpcm file without the "-x". I started my test with just cutting of the wav header with dd and the NAME.lpcm was even then the same. That's the cause of your problem. WAV data is always little-endian, and LPCM files for DVDs must be big-endian. If you can't get sox to do that conversion, then you may like to try the "wav2lpcm" program which does this conversion (and the necessary byte re-packing for 24-bit audio). It's only available via CVS (as part of my dvd-audio project at Sourceforge). You can browse it here: http://cvs.sourceforge.net/viewcvs.py/dvd-audio/tools/ Dave. --- 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=7477&alloc_id=16492&op=click ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] mplex and lpcm bug?
[EMAIL PROTECTED] wrote: > Hallo, > > I think there has to be a bug in the mplex tool with lpcm. That is what I have > done: > > 1. sox NAME.wav -t raw -x -s -w -c2 -r48000 NAME.lpcm > 2. mplex -S 0 -f 8 -V -o NAME.mpg NAME.lpcm NAME.m2v >It make no different if I also use "-L 48000:2:16" > 3. Try to play this file with mplayer and xine. Video is OK, but Sound >make just a noise. If you compare the bytes in NAME.wav and NAME.lpcm, are they byte-swapped? (They should be). If not, then you should remove the -x option to sox. What exactly is the noise you are hearing? Is it constant noise, or does it fade in and out? Dave. --- 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=7477&alloc_id=16492&op=click ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] mplex and lpcm bug?
[EMAIL PROTECTED] wrote: > I tried version mjpegtools-1.6.2 and mjpegtools-1.6.3-rc1. Both have this > problem. Try the current CVS version - I submitted a patch to fix this bug which was committed after the release of 1.6.3-rc1. Dave. --- 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=7477&alloc_id=16492&op=click ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] scaling HDTV -> DVD
Steven M. Schultz wrote: > On Tue, 24 May 2005, Jean Connelly wrote: > > >>Well, I tried searching for strings including things like: hdtv, dvd, >>scaling, y4mscaler, yuvscaler, mpeg2enc, 1080i ... in various > > > Hmm, strange - I would have expected a few signficant hits when > searching the mjpeg-dev and -users lists. Steven may be remembering a long conversation with me on this same issue about 5 months ago - but that was on the dvdauthor-users mailing list, not here. A search for "hdtv" on that list will find the thread. And I concur - the suggested scripts produce very nice results. Dave. --- This SF.Net email is sponsored by Yahoo. Introducing Yahoo! Search Developer Network - Create apps using Yahoo! Search APIs Find out how you can build Yahoo! directly into your own Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005 ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] How to concatenate yuv streams
Dik Takken wrote: > > Hi all, > > I was just trying to create a single MPEG2 file from multiple DV files, > where each DV file is treated differently (different denoising etc). I > tried to do this: > > ( scriptA.sh ; scriptB.sh ) | y4mscaler ... | mpeg2enc ... > > The shell scripts each produce a yuv stream on stdout. These streams are > concatenated and fed to the stdin of y4mscaler and other utils. > > Unfortunately, it turns out that this does not work. Some (all?) MJPEG > tools panic when they find a new stream header in the middle of a yuv > stream. > > Is there any way to make this work? Will it work when I strip the > headers from the yuv streams? If so, how can I strip the yuv header from > a shell script? Steven M. Shultz gave me the solution to this problem a while ago. You need to create a bash function to strip out the header line from the second (and subsequent) yuv streams. e.g. [start of script] #!/bin/bash skip1() { read junk cat return 0 } ( scriptA.sh ; scriptB.sh | skip1 ; scriptC.sh | skip1 ) | y4mscaler ... | mpeg2enc ... [end of script] Dave. --- This SF.Net email is sponsored by Oracle Space Sweepstakes Want to be the first software developer in space? Enter now for the Oracle Space Sweepstakes! http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] Putting together 2 movies
Bernhard Frühmesser wrote: > Ray Cole wrote: > >> How about passing both .mpg files to dvdauthor so they'll each be a >> single chapter? >> >> -- Ray > > > I would prefer having 1 title 2 chapers or just 1 title 1 chapter at > all. The second option would be best. You could try using "Project X". I haven't tried exactly what you want to do, but I think it will work. You just need to load the two files into Project X, and then press the "Go" button to demux to a single pair of video/audio elementary streams. You can then use mplex to generate a single, clean MPEG file ready for dvdauthor. I'm assuming that the video and audio streams in both files use the same formats - otherwise you will need to re-encode one. Dave. --- This SF.Net email is sponsored by: NEC IT Guy Games. Get your fingers limbered up and give it your best shot. 4 great events, 4 opportunities to win big! Highest score wins.NEC IT Guy Games. Play to win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] dvd with 24 bits/48 kHz audio
Bernhard Praschinger wrote: > Hallo > > >>However, I've already done the hard work in my DVD-Audio authoring >>application, so I will try and copy-and-paste together a "wav2lpcm" >>program that supports 16-bit and 24-bit samples. I'll add 20-bit when >>I've worked out how they are stored - I'm assuming there's even less >>demand for 20-bit than 24-bit. > > That would be nice, and even nicer if it supports reading the stream > from stdin so you can create your lpcm streams in a single step from the > AVI/QT file. I've just released the first version (see the email I have just sent to this list). You can use "/dev/stdin" as the input filename to read from stdin if you wish. Output is always written to stdout. Dave. --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
[Mjpeg-users] ANN: wav2lpcm
As promised a couple of hours ago, here's a first attempt at a "wav2lpcm" program to create a ".lpcm" file suitable for multiplexing with mplex. It should support mono/stereo WAV files at 16-bit/24-bit and 48KHz/96KHz, but I've not tested it very thoroughly. You can get it at: http://dvd-audio.sourceforge.net/wav2lpcm.tar.gz It's also available via the CVS repository for the "dvd-audio" project at Sourceforge (in the "tools" module). But I've only just added it there, so give the Sourceforge anonymous CVS a few hours to catch up. Dave. --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] dvd with 24 bits/48 kHz audio
Steven M. Schultz wrote: >>I don't know if any tools exist to do this manipulation. > > > Is there a newer version of 'sox' that might do the task? I haven't > done any serious looking at audio projects but I get the feeling that > 24bit audio isn't well supported outside the professional studios > yet. I've just checked the sox CVS (see http://sox.sourceforge.net) and 24-bit support is still on the TO-DO list. To quote that file: "* Support 24-bit formats... Difficult because sometimes that means 24-bits in a 32-bit integer and sometimes it means packed 24-bits (read 3-bytes at a time)." I've just started exploring 24-bit audio under Linux, and share your feeling that very few applications support it. I don't know about the closed-source world. However, I've already done the hard work in my DVD-Audio authoring application, so I will try and copy-and-paste together a "wav2lpcm" program that supports 16-bit and 24-bit samples. I'll add 20-bit when I've worked out how they are stored - I'm assuming there's even less demand for 20-bit than 24-bit. I'm sure lots of people would like to see WAV support in mplex, but I don't have the time to attempt that at the moment. Dave. --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] dvd with 24 bits/48 kHz audio
Steven M. Schultz wrote: > Yes, something like > > sox input.wav sox.raw > > might do the trick - but check the manpage first ;) I should also add (for completeness) that 16-bit audio requires byte-swapping when converting from WAV to a raw format. mplex also requires LPCM audio streams to have the ".lpcm" extension, so you need to manually specify the output filetype "-t raw" to sox. So a suitable sox command (for 16-bit only) is: sox input.wav -x -t raw output.lpcm If your input file isn't 48KHz or 96KHz, you can resample using, for example: sox input.wav -r 48000 -x -t raw output.lpcm resample Dave. --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users
Re: [Mjpeg-users] dvd with 24 bits/48 kHz audio
Steven M. Schultz wrote: >>i'm trying to create a dvd video with an lpcm >>soundtrack that has a sample size of 24 bits and a >>sample frequency of 48 kHz. when i run mplex: >> > >>are there problems with mplex and lpcm audio? if so, > > > No, there are not any known problems if you give mplex a lpcm audio > file. > > There are problems with a WAV files though. Strip off the WAV header > and produce a 'raw' LPCM file and it will work. Unfortunately, it's not quite as simple as that for 24-bit audio. For 24-bit audio, the method of packing of the data in the LPCM stream is different to a WAV file. I've been working on DVD-Audio authoring, and the same packing for 24-bit samples is used there (in the .AOB files). As an example, here are 12 bytes of data from a 24-bit stereo WAV file and the same data in an LPCM stream in a VOB/AOB file: WAV: 01 23 45 bf 60 8c 67 89 ab b7 d4 e3 AOB: 45 23 8c 60 ab 89 e3 d4 01 bf 67 b7 A WAV file is little-endian, so it consists of the samples 0x452301 (sample 0, left), 0x8c60bf (sample 0, right), 0xab8967 (sample 1, left), 0xe3d4b7 (sample 1, right). As you can see, the packing consists of the most significant 16-bits of the four samples (in big-endian byte order), followed by the least significant 8 bits of the four samples. The following unoptimised C code performs the above manipulation - you must ensure that the PCM data is a multiple of 12 bytes, if necessary by padding the end of the stream with an extra sample. for (i=0;ihttp://dvd-audio.sourceforge.net/ Regards, Dave. --- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click ___ Mjpeg-users mailing list Mjpeg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mjpeg-users