Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm trying to use Xawtv to record videos off my ATI tv woner ve, but I'm not having much success. In particular, I'm having two problems. One, the video is coming out upside down, but I think I could fix this with transcode. My main problem is that I'm not getting any sound. I can hear the sound when coming out of the computer's speakers as I'm recording the video, but there is no sound in the resulting avi after I'm done recording the video. I have the audio cables going to the mic input on my audio card, which is a soundblaster audigy. Can someone tell me how I may be able to fix this?
xawtv's recording capabilites are pretty limited, you should focus on using a dedicated application, in particular mencoder, which comes with http://mplayerhq.hu more than worth the trouble reading some of the docs.
i found that when recording with mencoder the audio went out of sync quite quickly, the only application i found that had good sync was streamer (comes with xawtv) but this was quite a while ago and mplayer has probably improved since.
I'm now using mencoder, but I'm still getting silent avis. The sound is coming out of my speakers though, so where can I be going wrong here? I don't think it's anything in the mixer, but I'll have a look at it and makes sure everything is okay there.
Right now it seems that xawtv is better because it gives me a better picture (albeit upside down), while mencoder is giving me a black and white picture that is doubled, with a huge green strip at the bottom of the screen. Neither are giving me any sound. It can't be that I have things muted because I can hear the sound on my speakers. Can it be that the xawtv or mencoder aren't trying to get the sound from the sound card and rather from the tv tuner card?
Distribution: Kubuntu 14.04 (Dell Linux-preinstalled laptop + 2 other laptops)
Posts: 117
Rep:
Inexactitude: did you ever get mencoder working? In case no, here are some ideas:
If your video shows black and white with coloured bands, or if the screen is split into two half-size identical screens, or something like that, you may be using the wrong video signal encoding. Various encodings include RGB, YUV, and other formats like that. They might correspond to (for example) "specify Red for the whole image, then specify Blue for the whole image" or "specify Red, Blue, Green for this pixel, then move on to next pixel" which might explain why you're seeing what you're seeing.
[Addendum: when I play my North American NTSC signal but tell mplayer that I have a PAL signal, I get black&white with a green band across the bottom.]
Not sure why your video is upside down, but I think there's a "flip" option that you can put into the config file. "man mplayer" for details.
If you're not getting sound, here are two possibilities:
1. You should be plugging the sound output from your TV card into the Line-In jack, not the Microphone jack, of the sound card. Actually, I don't know why they are two different inputs, but there you have it.
2. Have you set your recording source (using aumix, alsamixer, etc.) to Line-In? Apparently mplayer will record from whatever the current sound source is, and you have to say "record from microphone" or "record from my CD player" etc.
Thanks a lot man. The black and white with a green bottom is exactly what I get. So next I'm recording video I'll just specify ntsc (I can just do this on the command line right?).
I fixed my sound problem. All I had to do was specify my sound device as /dev/sound/adsp instead of /dev/dsp.
(That's just a partial sample command line; add other command-line arguments as appropriate.)
Also, I have been experimenting with AviCap, and for the first time I was able to correctly record video (with audio), and do it with timer as well. At first I was put off by their home page at http://avifile.sourceforge.net/ which did now show any "news" after last summer (so I thought that the project was stalled/dead and should be avoided). Actually, I was surprised by how simple the interface was, and that it worked. It works with xawtv, and I already had xawtv up and running. I even tested it to record 1 minute of TV at a given scheduled time, but I don't have enough space on my hard drive to record a full TV show.
After getting the AviCap configuration menu by right-clicking on the main screen, I got it working with my ATI TV Wonder VE card here in the USA by setting the following:
Device: "Color Mode = NTSC" , "Capture Color Space = YV12"
Video: "Current format = Uncompressed YV12"
You might have different settings depending on your own circumstances. This gives me huge uncompressed AVI files that I have to compress afterward with mencoder:
I tried setting AviCap to use various codecs to compress while it was recording, but it couldn't find the right files. I'll continue to experiment. (I'll be out of town for the next few days, so it may take a while.)
Good. Maybe I'll take a look at it myself since I'll probably be working on a couple of old vhs tapes this weekend. Thanks for the bit about ntsc though, that is almost definetly why I was having problems with mencoder in the first place. Using mencoder instead of xawtv really helps me out because the video that xawtv was producing was having problems with transcode, so I had to mencode it first anyway, which resulted in a serious degradation of quality.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.