[MPlayer-users] trying to pipe mencoder to ffmpeg2theora

Roman Haefeli reduzierer at yahoo.de
Thu May 17 00:24:28 CEST 2007


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.

out of curiosity, but also because i believe, that might help for my
problem, i would like to know how to use mencode to encode into a proper
dv-file, let's say for pal (720x576 at 25fps)

thanks for any hints


> Though, probably the bigger problem is that MPlayer/mencoder has never
> been able to supress all of it's own status output to stdout.  You
> really need to use a fifo instead.

oh, that is quite helpful information. i kept trying using '|'. thanks
for that hint.

roman



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



More information about the MPlayer-users mailing list