[FFmpeg-user] Help me with multi input in a video
Emre Karataşoğlu
letheea at gmail.com
Fri Sep 14 21:55:45 CEST 2012
nope my friend , I try every escape combination for it but still the same
problem . Anyway I developed my code a bit and solve this problem
with
--
my bat
--
@echo off
cd c:\ffmpeg\bin
ffmpeg -i rtmp://192.168.10.88/live/new -i rtmp://localhost/live/me
-filter_complex "[0]scale=iw/2:ih/2,pad=3*iw+20:3*ih+20:10:10
[first];[1]scale=iw/2:ih/2[second] ; [first][second] overlay=main_w/2+10:10
" -b:v 32k rtmp://localhost/live/joinFirstPair
pause
---
but in this case waiting time kill me .
In wowza or red5 I can stream live very fast , but in ffmpeg I wait and
wait about 45 sec minumum .
I think I have to use different program , cause the security provider
company make this code write .
They can see 16 cam in a window , ffmpeg is a key and bridge for this work
I think . I'm a php & java developer , what I do is ffmpeg engineer :S Any
Idea to solve this problem ?
---
2012/9/14 Stefano Sabatini <stefasab at gmail.com>
> On date Friday 2012-09-14 09:29:01 +0300, Emre Karataşoğlu encoded:
> > Hello . I need help about two subject.
> > First of them is the syntax error in filter movie
> > . My aim is to join two stream in a video .
> > and with the overlay I can do two local video with ffmpeg
> > <!-- My code is -->
> > ffmpeg.exe -i 1a.avi -vf "[in] scale=iw/3:ih/3,
> > pad=3*iw+240:2*ih+220:200:100 [left]; movie=1c.avi,
> > <code>
> > like that . but when I try to replace 1c.avi with the rtsp://localhost
> ...
> > I got error 'unknown parameter '.
>
> When you do:
> movie=rtsp://localhost/...
>
> ffmpeg is parsing it like:
>
> movie= FILENAME : OPTIONS
>
> with rtsp=FILENAME and //localhost/... is interpreted like OPTIONS.
>
> Thus you need to escape the filename, like:
>
> movie='rtsp://localhost/...'
>
> (first level of escaping)
>
> Another level of escaping may be needed depending on your shell.
>
> >
> > ---> my seconde question is
> > - is it possible to 2x2 mosaic video show with ffmpeg ?
>
> The best way to do it is to create a background with color source, and
> then overlay video 1 and 2 in cascade (either using "movie" or the
> filter_complex option).
>
> > or which console tool I can succeed it ?
> > I couldnt use avis with videohub cause I didnt find any way to stream my
> > result .
> > IN ffmpeg
> > I can save or stream or convert my output .
> > I found that xuggle in java maybe do it but it is very hard the article
> > said.
> > Please help me . Best Regards Emre K.
> --
> ffmpeg-user random tip #26
> RTFM.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
More information about the ffmpeg-user
mailing list