Results 1 to 5 of 5

Thread: Stream analog NTSC video through avconv.

  1. #1
    Join Date
    Jun 2011
    Beans
    16
    Distro
    Ubuntu 11.04 Natty Narwhal

    Stream analog NTSC video through avconv.

    Hello, everyone.

    I'm trying to do a live stream of video from an NTSC output, live video that passes through a DVD player before being sent to my computer. I have a em28xx device, and audio recording works fine. The problem is with the video. Whenever I try and record video, it attempts to record it as if it were PAL.

    -Note, this setup cannot be changed because I am trying to stream church service. This requires that I use avconv.

    Here is the command I am using:
    Code:
    avconv -f video4linux2 -i /dev/video1 -f alsa -i hw:1,0 -ar 44100 output.mov
    Here is a screenshot:
    screen.png

    I can play the video fine using [code]mplayer tv:// -tv norm=NTSC so I know that the device works fine.

    I tried to force it into NTSC mode with this command, but it gives me an error.
    Code:
    $ v4l2-ctl -s=ntsc
    VIDIOC_S_STD: failed: Invalid argument
    System specs:
    Code:
    $uname -a
    Linux Tyler-Linux 3.2.0-32-generic #51-Ubuntu SMP Wed Sep 26 21:33:09 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
    
    $lsb_release -a
    LSB Version:    core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch:cxx-3.0-amd64:cxx-3.0-noarch:cxx-3.1-amd64:cxx-3.1-noarch:cxx-3.2-amd64:cxx-3.2-noarch:cxx-4.0-amd64:cxx-4.0-noarch:desktop-3.1-amd64:desktop-3.1-noarch:desktop-3.2-amd64:desktop-3.2-noarch:desktop-4.0-amd64:desktop-4.0-noarch:graphics-2.0-amd64:graphics-2.0-noarch:graphics-3.0-amd64:graphics-3.0-noarch:graphics-3.1-amd64:graphics-3.1-noarch:graphics-3.2-amd64:graphics-3.2-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-3.2-amd64:printing-3.2-noarch:printing-4.0-amd64:printing-4.0-noarch:qt4-3.1-amd64:qt4-3.1-noarch
    Distributor ID:    Ubuntu
    Description:    Ubuntu 12.04.2 LTS
    Release:    12.04
    Codename:    precise
    Running on an intel Centrino 2. (HP Dv7 laptop)
    Last edited by tyzoid; March 1st, 2013 at 03:05 AM.

  2. #2
    Join Date
    Jun 2011
    Beans
    16
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Stream analog NTSC video through avconv.

    -bump-
    Anyone have any hints? I was hoping to be able to have this done by tomorrow...

  3. #3
    Join Date
    Jun 2011
    Beans
    16
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Stream analog NTSC video through avconv.

    Ok, so I've found out that there are no video standards supported by my installation of v4l2:
    Code:
    $ v4l2-ctl --list-standards
    ioctl: VIDIOC_ENUMSTD
    Anyone know how to add these? I searched through Synaptic and didn't find anything.

  4. #4
    Join Date
    Sep 2006
    Beans
    3,483

    Re: Stream analog NTSC video through avconv.

    I don't use avconv, but I can help you with ffmpeg. Please show the output of:
    Code:
    ffmpeg -f video4linux2 -list_formats all -i /dev/video1
    Get a recent static build of ffmpeg to avoid the rampant avconv bugs.

  5. #5
    Join Date
    Jun 2011
    Beans
    16
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Stream analog NTSC video through avconv.

    I've fixed the video with ffmpeg, forgot to post back. Now my audio quit :/

    I'm trying to capture audio through my em28xx device. alsa is recognizing it (as recorder hw:1,0) and alsamixer shows the device turned up, but no sound comes through...

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
  •