[MPlayer-users] trying to pipe mencoder to ffmpeg2theora

Roman Haefeli reduzierer at yahoo.de
Thu May 17 01:09:03 CEST 2007


On Thu, 2007-05-17 at 00:24 +0200, Roman Haefeli wrote:
> On Wed, 2007-05-16 at 13:21 -0700, RC wrote:
> > On Wed, 16 May 2007 15:25:41 +0200
> > Roman Haefeli <reduzierer at yahoo.de> wrote: 
> >  
> > > the only program i know to encode theora is ffmpeg2theora.
> > 
> > There are several others.  ffmpeg2theora is quite new actually. 
> > encoder_example in libtheora-(ver)/tools/ works fine.
> > 
> > > ffmpeg2theora cannot acces my audio-device. mencoder can access
> > > everything (v4l and alsa), but there is noway to pipe the stream in a
> > > format, that is understood by ffmpeg2theora. 
> > 
> > Atilla said to try mencoder with an output format other than AVI for
> > ffmpeg2theora.
> 
> i tried several. i had no luck with mov and mpeg as well, not only with 
> avi. since 'dvgrab | ffmpeg2theora' obviously works (according to many
> webpages), i wanted to try dv as well, but i had no luck. this is a
> separate problem, but i really wonder how to encode a proper .dv file. i
> tried:
> 
> mencoder tv:// -tv
> driver=v4l:device=/dev/video1:width=320:height=240:fps=25:immediatemode=0:adevice=hw.1:amode=0:alsa:audiorate=44100:forceaudio
> -oac pcm -af channels=2,resample=48000 \
> -ovc libdv \
> -of lavf -lavfopts
> format=dv:i_certify_that_my_video_stream_does_not_use_b_frames \
> -vf scale=720:576 \
> -ofps 25 \
> -o file.dv
> 
> 
> and i just get:
> 
> MEncoder dev-SVN-r22212-4.0.3 (C) 2000-2006 MPlayer Team
> CPU: Intel(R) Pentium(R) M processor 1.70GHz (Family: 6, Model: 13,
> Stepping: 6)
> CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
> 
> success: format: 9  data: 0x0 - 0x0
> TV file format detected.
> Selected driver: v4l
>  name: Video 4 Linux input
>  author: Alex Beregszaszi
>  comment: under development
> =================================================================
>  WARNING: YOU ARE USING V4L DEMUXER WITH V4L2 DRIVERS!!!
>  As the V4L1 compatibility layer is broken, this may not work.
>  If you encounter any problems, use driver=v4l2 instead.
>  Bugreports on driver=v4l with v4l2 drivers will be ignored.
> =================================================================
> Selected device: Philips SPC 900NC webcam
>  Capabilites: capture 
>  Device type: 1
>  Supported sizes: 160x120 => 640x480
>  Inputs: 1
>   0: Webcam:  (tuner:0, norm:pal)
> 
> and it does nothing... it just stays there.

actually, i found out why it stucks there (when using my hammerfall
audio card, the usb-audio from the cam is mounted on hw:3 instead of
hw:1). however, i try:

mencoder tv:// -tv
driver=v4l:device=/dev/video1:width=320:height=240:fps=25:immediatemode=0:adevice=hw.3:amode=0:alsa:audiorate=44100:forceaudio
-oac pcm -af channels=2,resample=48000 \
-ovc libdv \
-of lavf \
-lavfopts format=dv:i_certify_that_my_video_stream_does_not_use_b_frames \
-vf scale=720:576 \
-ofps 25 \
-o file.dv

and i get:

Writing header...
[dv @ 0x8667660]Can't initialize DV format!
Make sure that you supply exactly two streams:
     video: 25fps or 29.97fps, audio: 2ch/48Khz/PCM
     (50Mbps allows an optional second audio stream)
Floating point exception


am i doing something wrong, or is it a bug of mencoder? what do i need
to do in order to fulfill the specs of the dv-format? resolution,
framerate, samplingrate, number of channels, resolution seems to ok. did
i forget something?

roman


		
___________________________________________________________ 
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de



More information about the MPlayer-users mailing list