problems recording (and streaming) video

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

problems recording (and streaming) video

Dietmar Schaefer-2
Hi !



I have been trying to stream a video over my internal LAN using ffmpeg
ans ffserver.
(I have  Hauppauge WinTV analog tv card)
I can view the video (from a camera)  with awtv on device /dev/video1
Channel 1)

I have a couple of questions:


- all documentation I can find using -vd  <DEVICE> to set the device to
read from.
   ffmpeg: unrecognized option '-vd'

 so I set -i <device>


- no matter what parameters I try it dosen't work:

FFmpeg version SVN-r11349, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-pthreads --enable-libtheora
--enable-gray
  libavutil version: 49.6.0
  libavcodec version: 51.49.0
  libavformat version: 52.3.0
  built on Dec 30 2007 08:01:34, gcc: 4.1.2 20070925 (Red Hat 4.1.2-33)
[video4linux @ 0x841de54]Bad capture size (0x0) or wrong time base (0)
/dev/video1: Error while opening file




any help ?



regards


Dietmar
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: problems recording (and streaming) video

Stefano Sabatini
On date Sunday 2007-12-30 12:35:01 +0100, Dietmar Schaefer encoded:

> Hi !
>
>
>
> I have been trying to stream a video over my internal LAN using ffmpeg
> ans ffserver.
> (I have  Hauppauge WinTV analog tv card)
> I can view the video (from a camera)  with awtv on device /dev/video1
> Channel 1)
>
> I have a couple of questions:
>
>
> - all documentation I can find using -vd  <DEVICE> to set the device to
> read from.
>    ffmpeg: unrecognized option '-vd'
>
>  so I set -i <device>

Right, then you also have to specify the acquisition format, that is
-f video4linux if you're on linux.

> - no matter what parameters I try it dosen't work:
>
> FFmpeg version SVN-r11349, Copyright (c) 2000-2007 Fabrice Bellard, et al.
>   configuration: --enable-gpl --enable-pthreads --enable-libtheora
> --enable-gray
>   libavutil version: 49.6.0
>   libavcodec version: 51.49.0
>   libavformat version: 52.3.0
>   built on Dec 30 2007 08:01:34, gcc: 4.1.2 20070925 (Red Hat 4.1.2-33)
> [video4linux @ 0x841de54]Bad capture size (0x0) or wrong time base (0)
> /dev/video1: Error while opening file

Post the complete commandline, you're likely missing the -s parameter
here.
 
> any help ?

Regards.
--
ffmpeg-user random tip #21
Create a video from a single image:
ffmpeg -loop_input -f image2 -i image.jpeg -t 20 image-movie.mpeg
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user
Reply | Threaded
Open this post in threaded view
|

Re: problems recording (and streaming) video

Dietmar Schaefer-2
Stefano Sabatini wrote:


> On date Sunday 2007-12-30 12:35:01 +0100, Dietmar Schaefer encoded:
>  
>> Hi !
>>
>>
>>
>> I have been trying to stream a video over my internal LAN using ffmpeg
>> ans ffserver.
>> (I have  Hauppauge WinTV analog tv card)
>> I can view the video (from a camera)  with awtv on device /dev/video1
>> Channel 1)
>>
>> I have a couple of questions:
>>
>>
>> - all documentation I can find using -vd  <DEVICE> to set the device to
>> read from.
>>    ffmpeg: unrecognized option '-vd'
>>
>>  so I set -i <device>
>>    
>
> Right, then you also have to specify the acquisition format, that is
> -f video4linux if you're on linux.
>
>  
Well, I did this before but it didn't change that much

>> - no matter what parameters I try it dosen't work:
>>
>> FFmpeg version SVN-r11349, Copyright (c) 2000-2007 Fabrice Bellard, et al.
>>   configuration: --enable-gpl --enable-pthreads --enable-libtheora
>> --enable-gray
>>   libavutil version: 49.6.0
>>   libavcodec version: 51.49.0
>>   libavformat version: 52.3.0
>>   built on Dec 30 2007 08:01:34, gcc: 4.1.2 20070925 (Red Hat 4.1.2-33)
>> [video4linux @ 0x841de54]Bad capture size (0x0) or wrong time base (0)
>> /dev/video1: Error while opening file
>>    
>
> Post the complete commandline, you're likely missing the -s parameter
> here.
>  
>  


o.k.

here it comes:
ffmpeg  -f video4linux -i /dev/video1 -s cif -o ds.mpg

same result

I don't even have an idea what the right capture size can be ?





>> any help ?
>>    
>
> Regards.
>  

_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-user