Pipe out of ffmpeg
I Can some one help mi, ? I'm traing to establish a pipe out of ffmpeg to ffmpeg2theora ffmpeg -vd /dev/video0 -ad /dev/dsp0 -r 29.97 -s 320x240 -f mpeg test.mpg give me an perfect mpg but piping ffmpeg -vd /dev/video0 -ad /dev/dsp0 -r 29.97 -s 320x240 -f mpeg - | ffmpeg2theora -a 0 -v 5 -f mpeg -x 320 -y 240 -o test.ogg ffmpeg -vd /dev/video0 -ad /dev/dsp0 -r 29.97 -s 320x240 -f mpeg - | ffmpeg2theora -a 0 -v 5 -f mpeg -x 320 -y 240 -o test.ogg Unable to open file Input #0, video4linux, from '': Duration: N/A, bitrate: N/A Stream #0.0: Video: rawvideo, yuv420p, 320x240, 29.97 fps Input #1, audio_device, from '': Duration: N/A, bitrate: N/A Stream #1.0: Audio: pcm_s16le, 44100 Hz, mono, 705 kb/s Output #0, mpeg, to 'pipe:': Stream #0.0: Video: mpeg1video, 320x240, 29.97 fps, q=2-31, 200 kb/s Stream #0.1: Audio: mp2, 44100 Hz, mono, 64 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #1.0 -> #0.1 Press [q] to stop encoding and it stop here.... any idea ??
Philippe Demartin wrote:
I Can some one help mi, ? I'm traing to establish a pipe out of ffmpeg to ffmpeg2theora ffmpeg -vd /dev/video0 -ad /dev/dsp0 -r 29.97 -s 320x240 -f mpeg test.mpg give me an perfect mpg but piping ffmpeg -vd /dev/video0 -ad /dev/dsp0 -r 29.97 -s 320x240 -f mpeg - | ffmpeg2theora -a 0 -v 5 -f mpeg -x 320 -y 240 -o test.ogg
You forgot "-i /dev/stdin" in commandline ffmpeg2theora. [...]
and it stop here.... any idea ??
Use ffmpeg2theora itself. It can handle videodevices. But, You need to compile latest av* libs from ffmpeg, and link ffmpeg2theora against them. Or, better way - use VLC (0.8.4). It can theora now... -- Viktor Kompaneyets Wnet project manager
Le Jeu 20 Oct 2005 05:20, Viktor Kompaneyets a ?crit :
Philippe Demartin wrote:
I Can some one help mi, ? I'm traing to establish a pipe out of ffmpeg to ffmpeg2theora ffmpeg -vd /dev/video0 -ad /dev/dsp0 -r 29.97 -s 320x240 -f mpeg test.mpg give me an perfect mpg but piping ffmpeg -vd /dev/video0 -ad /dev/dsp0 -r 29.97 -s 320x240 -f mpeg - | ffmpeg2theora -a 0 -v 5 -f mpeg -x 320 -y 240 -o test.ogg
You forgot "-i /dev/stdin" in commandline ffmpeg2theora. [...]
and it stop here.... any idea ??
Use ffmpeg2theora itself. It can handle videodevices. But, You need to compile latest av* libs from ffmpeg, and link ffmpeg2theora against them.
Or, better way - use VLC (0.8.4). It can theora now...
I hope no to be tu much out of subject in that user list... great, but that ffmpeg2theora handle Video devices, but how can I imput sound from it, the only command swich I know hare from the help... usage: ffmpeg2theora [options] input Output options: --output,-o alternative output --width, -x scale to given size --height,-y scale to given size --aspect define frame aspect ratio: i.e. 4:3 or 16:9 --crop[top|bottom|left|right] crop input before resizing --videoquality,-v [0 to 10] encoding quality for video --videobitrate,-V [45 to 2000] encoding bitrate for video --sharpness,-S [0 to 2] sharpness of images(default 2) { lower values make the video sharper. } --keyint,-K [8 to 65536] keyframe interval (default: 64) --audioquality,-a [-1 to 10] encoding quality for audio --audiobitrate,-A [45 to 2000] encoding bitrate for audio --samplerate,-H set output samplerate in Hz --channels,-c set number of output sound channels --nosound disable the sound from input --endtime,-e end encoding at this time (in sec) --starttime,-s start encoding at this time (in sec) --v2v-preset,-p encode file with v2v preset, right now there is preview and pro, 'ffmpeg2theora -p info' for more informations Input options: --deinterlace force deinterlace otherwise only material marked as interlaced will be deinterlaced --format,-f specify input format --v4l /dev/video0 read data from v4l device /dev/video0 you have to specifiy an output file with -o --inputfps [fps] override input fps --audiostream streamid by default the last audiostream is selected, use this to select another audio stream --sync Use A/V Sync from input container. since this does not work with all input format you have to manualy enable it if you have issues with A/V sync. Metadata options: --artist Name of artist (director) --title Title --date Date --location Location --organization Name of organization (studio) --copyright Copyright --license Licence Other options: --nice set niceness to n --help,-h this message Examples: ffmpeg2theora videoclip.avi (will write output to videoclip.ogg) cat something.dv | ffmpeg2theora -f dv -o output.ogg - Live streaming from V4L Device: ffmpeg2theora --v4l /dev/video0 --inputfps 15 -x 160 -y 128 -o - \ | oggfwd iccast2server 8000 password /theora.ogg Live encoding from a DV camcorder (needs a fast machine): dvgrab - | ffmpeg2theora -f dv -x 352 -y 288 -o output.ogg - Live encoding and streaming to icecast server: dvgrab --format raw - | \ ffmpeg2theora -f dv -x 160 -y 128 -o /dev/stdout - | \ oggfwd iccast2server 8000 password /theora.ogg and I see nowhere a audio device imput... -- ______________________________________________________________ Philippe Demartin Mail: philippe_demartin at bigfoot.com Web: www.demartinenchile.com tel: +56 32 77 20 24 Cel: +56 9 278 28 68 Skype: phdemart ______________________________________________________________
Philippe Demartin wrote:
You forgot "-i /dev/stdin" in commandline ffmpeg2theora.
Have you red this ? ^^^^^^^^^^ [...]
and I see nowhere a audio device imput...
/dev/audio or /dev/dsp tried? like ffmpeg2theora -v4l /dev/video0 /dev/audio0 ? -- Viktor Kompaneyets Wnet project manager
participants (3)
-
philippe@demartinenchile.com -
philippe_demartin@bigfoot.com -
vato@wnet.ua