[MEncoder-users] mencoder on Ubuntu 10.10
Paulo Paiva
paivalhao at gmail.com
Fri Apr 8 02:28:03 CEST 2011
Hello Steven
That's because Ubuntu 10.10 doesn't have the the /dev/audio any more.
The developers removed that from the core.
You got to compile the core (saw it somewhere in the web...)
Here is a thread concerning that matter:
http://ubuntuforums.org/showthread.php?t=1635642
Someone correct me if I am wrong!
Regards
Paulo Paiva
On 04/08/2011 12:30 AM, Corenflos, Steven wrote:
> I have been using mencoder to record audio and video from my Logitech Quickcam Pro 9000. I've been using the following wrapper script under 10.04:
>
> -----
> #!/bin/bash
>
> outFile=$(date +%Y-%m-%d)
>
> mencoder tv:// -tv driver=v4l2:width=800:height=600:device=/dev/video0:forceaudio:adevice=/dev/audio1 -ovc lav
> -----
>
> However I updated to 10.10 the other day and now this script no longer works.
>
> When I run it I get the following output from mencoder:
>
> -----
> user at host:~$ mencoder tv:// -tv driver=v4l2:width=800:height=600:device=/dev/video0:forceaudio:adevice=/dev/audio1 -ovc lavc -oac mp3lame -lameopts cbr:br=64:mode=3 -o ~/projects/webcam/test.avi
> MEncoder 1.0rc4-4.4.5 (C) 2000-2010 MPlayer Team
> success: format: 9 data: 0x0 - 0x0
> TV file format detected.
> Selected driver: v4l2
> name: Video 4 Linux 2 input
> author: Martin Olschewski<olschewski at zpr.uni-koeln.de>
> comment: first try, more to come
> v4l2: your device driver does not support VIDIOC_G_STD ioctl, VIDIOC_G_PARM was used instead.
> Selected device: UVC Camera (046d:0990)
> Capabilites: video capture streaming
> supported norms:
> inputs: 0 = Camera 1;
> Current input: 0
> Current format: YUYV
> v4l2: ioctl set format failed: Invalid argument
> v4l2: ioctl set format failed: Invalid argument
> v4l2: ioctl set format failed: Invalid argument
> tv.c: norm_from_string(pal): Bogus norm parameter, setting default.
> v4l2: ioctl enum norm failed: Invalid argument
> Error: Cannot set norm!
> Selected input hasn't got a tuner!
> Unable to open '/dev/audio1': No such file or directory
> Unable to open '/dev/audio1': No such file or directory
> Unable to open '/dev/audio1': No such file or directory
> v4l2: ioctl set mute failed: Invalid argument
> v4l2: 0 frames successfully processed, 0 frames dropped.
> ============ Sorry, this file format is not recognized/supported =============
> === If this file is an AVI, ASF or MPEG stream, please contact the author! ===
> Cannot open demuxer.
>
> Exiting...
> -----
>
> Can anyone please help me figure out what's going on? The video and audio work in other applications, but for some reason mencoder isn't using them. I don't like Cheese (what seems to be the recommended alternative) because it seems like I can't get equally high framerates at good resolution, and besides I want to be able to run this from the command line.
>
> Thanks for any help!
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
More information about the MEncoder-users
mailing list