Results 1 to 7 of 7

Thread: Problem using ffmpeg command

  1. #1
    Join Date
    Jan 2013
    Beans
    9

    Problem using ffmpeg command

    I am using a Creative Webcam NX Ultra(Model No-PD1120) . I tried using the following command to capture the webcam video to an avi file.
    ffmpeg -f video4linux2 -s 640x480 -i /dev/video0 -y sample.avi

    I am getting the following error message:
    ffmpeg version N-50294-gbb7bc34 Copyright (c) 2000-2013 the FFmpeg developers
    built on Feb 25 2013 12:06:20 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
    configuration:
    libavutil 52. 17.103 / 52. 17.103
    libavcodec 54. 92.100 / 54. 92.100
    libavformat 54. 63.100 / 54. 63.100
    libavdevice 54. 3.103 / 54. 3.103
    libavfilter 3. 41.100 / 3. 41.100
    libswscale 2. 2.100 / 2. 2.100
    libswresample 0. 17.102 / 0. 17.102
    [video4linux2,v4l2 @ 0x2d300e0] Cannot find a proper format for codec 'none' (id 0), pixel format 'none' (id -1)
    Assertion *codec_id != AV_CODEC_ID_NONE failed at libavdevice/v4l2.c:824
    Aborted


    Can anyone help me with this please, my situation is very critical. I expect some help very soon. Thank you in advance.

  2. #2
    Join Date
    Oct 2010
    Location
    London
    Beans
    481
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Problem using ffmpeg command

    Hmm... it's almost a shot in the dark, but try:

    Code:
    ffmpeg -y -f video4linux2 -c:v rawvideo -s 640x480 -i /dev/video0 sample.avi
    Also, just to check, the webcam is turned on in your BIOS? Can you use it in other applications, like cheese or skype?

  3. #3
    Join Date
    Sep 2006
    Beans
    3,490

    Re: Problem using ffmpeg command

    Please show the output of:
    Code:
    ffmpeg -f video4linux2 -list_formats all -i /dev/video0

  4. #4
    Join Date
    Jan 2013
    Beans
    9

    Re: Problem using ffmpeg command

    Thanks to both of you for your support, i have listed the output of the commands you listed:

    output of the command requested by FakeOutdoorsman:
    ffmpeg -f video4linux2 -list_formats all -i /dev/video0

    ffmpeg version N-50294-gbb7bc34 Copyright (c) 2000-2013 the FFmpeg developers
    built on Feb 25 2013 12:06:20 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
    configuration:
    libavutil 52. 17.103 / 52. 17.103
    libavcodec 54. 92.100 / 54. 92.100
    libavformat 54. 63.100 / 54. 63.100
    libavdevice 54. 3.103 / 54. 3.103
    libavfilter 3. 41.100 / 3. 41.100
    libswscale 2. 2.100 / 2. 2.100
    libswresample 0. 17.102 / 0. 17.102
    [video4linux2,v4l2 @ 0x28c8c20] Raw : Unsupported : S505 : 160x120 176x144 320x240 352x288 640x480
    /dev/video0: Immediate exit requested

    @evilsoup: tried out the comman you requested, am getting the error
    ffmpeg -y -f video4linux2 -c:v rawvideo -s 640x480 -i /dev/video0 sample.avi


    ffmpeg version N-50294-gbb7bc34 Copyright (c) 2000-2013 the FFmpeg developers
    built on Feb 25 2013 12:06:20 with gcc 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
    configuration:
    libavutil 52. 17.103 / 52. 17.103
    libavcodec 54. 92.100 / 54. 92.100
    libavformat 54. 63.100 / 54. 63.100
    libavdevice 54. 3.103 / 54. 3.103
    libavfilter 3. 41.100 / 3. 41.100
    libswscale 2. 2.100 / 2. 2.100
    libswresample 0. 17.102 / 0. 17.102
    [video4linux2,v4l2 @ 0x30b5180] Cannot find a proper format for codec 'rawvideo' (id 14), pixel format 'none' (id -1)
    Assertion *codec_id != AV_CODEC_ID_NONE failed at libavdevice/v4l2.c:824
    Aborted
    Last edited by Arun Krishnan; February 27th, 2013 at 07:28 AM.

  5. #5
    Join Date
    Jan 2013
    Beans
    9

    Re: Problem using ffmpeg command

    No reply yet

  6. #6
    Join Date
    Sep 2006
    Beans
    3,490

    Re: Problem using ffmpeg command

    Also show the output of:
    Code:
    v4l2-ctl --list-formats-ext
    Please use the code tag for the console outputs. It makes reading your posts easier.

  7. #7
    Join Date
    Jan 2013
    Beans
    9

    Re: Problem using ffmpeg command

    Thank you for your reply, i got the output using a Phillips Webcam. It seems the webcam i used never had v4l2-compatibility.
    Last edited by Arun Krishnan; March 27th, 2013 at 09:52 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •