[Ffmpeg-devel-irc] ffmpeg.log.20120207
burek
burek021 at gmail.com
Wed Feb 8 02:05:02 CET 2012
[00:29] <Freakshow> Gus: figured my issue out
[00:29] <Freakshow> -f rtsp -rtsp_transport tcp -muxdelay 0.1 "rtsp://server.blah.foo/path/to/stream.sdp"
[00:30] <Freakshow> sans auth obviously
[00:47] <slackyman> hi
[00:49] <slackyman> Gus, R U still here?
[00:51] <slackyman> anyone here can help me compiling rtmp in mingw32?
[00:55] <pasteeater> Zeranoe might be able to if he is around. </oblique ping>
[00:56] <slackyman> I can't get rid of some compile errors
[00:57] <slackyman> Zeranoe, R U here? :D
[00:59] <Zeranoe> slackyman: What are you running into?
[01:00] <slackyman> I'm on Fedora
[01:00] <slackyman> and setted up a good Mingw32 toolchain
[01:00] <slackyman> I just compiled ALL other libraries
[01:01] <slackyman> libxvid, vorbis, ogg, etc
[01:01] <slackyman> x264
[01:01] <slackyman> everything went really good
[01:01] <slackyman> and I can compile a really static ffmpeg build with static linked sdl support
[01:01] <slackyman> I compiled PolarSSL too
[01:02] <slackyman> but I cannot get rid of librtmp compiling errors
[01:02] <slackyman> i "gitted" rtmpdump
[01:02] <Zeranoe> slackyman: Are you using mingw, or mingw-w64?
[01:02] <slackyman> mingw32 not w64
[01:03] <slackyman> I'm on a 32 bit machine
[01:03] <slackyman> I modified the Makefile with no success
[01:03] <Zeranoe> slackyman: Keep in mind that I still recommend mingw-w64. are you cross compiling?
[01:04] <slackyman> yes, but I even tried directy through win
[01:04] <slackyman> with windows build of mingw
[01:04] <Zeranoe> slackyman: what errors are you getting?
[01:05] <slackyman> ok
[01:06] <slackyman> first of all, my command is
[01:06] <slackyman> mingw32-make SHARED= SYS=mingw CRYPTO=POLARSSL LIBZ="-lz -static" VERSION="2.4"
[01:08] <slackyman> http://pastebin.com/ghzKLNad
[01:08] <Synthead> so guys, I have six files, video1.avi, video1.mp3, video2.avi, etc. how can I combine all these files into the audio and video tracks of one file?
[01:08] <slackyman> as you can see it uses gcc
[01:08] <slackyman> not i686-pc-mingw32-gcc
[01:08] <slackyman> even if I set CROSS_COMPILE environment
[01:09] <Zeranoe> slackyman: You are cross compiling?
[01:10] <slackyman> yes
[01:10] <slackyman> I'm on a Fedora
[01:10] <Zeranoe> you should just be calling make
[01:10] <slackyman> I even tried on a windows machine with mingw
[01:10] <slackyman> I should...
[01:11] <slackyman> but if I go in the Makefile I can see that SYS is set to POSIX
[01:11] <slackyman> so i changed to mingw
[01:11] <slackyman> and so on
[01:11] <slackyman> CRYPTO=POLARSSL
[01:12] <Zeranoe> whats your prefix?
[01:12] <slackyman> i686-pc-mingw32-
[01:12] <pasteeater> Synthead: do you want to concatenate the video and audio into one long video audio and stream?
[01:12] <slackyman> export CROSS_COMPILE=i686-pc-mingw32-
[01:13] <Zeranoe> slackyman: your install prefix, not toolchain
[01:13] <slackyman> so what I can do to cross-compile librtmp
[01:13] <slackyman> ?!?
[01:13] <slackyman> i even tried mingw32-make
[01:14] <Synthead> pasteeater: yeah, that's the idea. I should have read this first: http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f I think what I need to do is encode every pair with two "-i"s (for audio and video), then concat it into a large file, right?
[01:14] <Zeranoe> slackyman: are you sudo make installing? or did you set a prefix for your other packages?
[01:14] <slackyman> for other packages I set env variables
[01:14] <slackyman> then I unset them
[01:14] <Synthead> make installs are for package building tools for your package manager
[01:14] <slackyman> each one has is hack and trick
[01:14] <Synthead> you should avoid make installing right on your root fs at all costs
[01:15] <Zeranoe> are your other packages, eg x264, located in /usr/local?
[01:16] <slackyman> nope
[01:16] <slackyman> they're all in a specific location
[01:16] <slackyman> /opt/libs
[01:16] <slackyman> I've mkdir'ed
[01:16] <slackyman> I even did a script
[01:16] <slackyman> export CC=i686-pc-mingw32-gcc
[01:16] <slackyman> export CXX=i686-pc-mingw32-g++
[01:16] <slackyman> export CPP=i686-pc-mingw32-cpp
[01:16] <slackyman> export AR=i686-pc-mingw32-ar
[01:16] <slackyman> export RANLIB=i686-pc-mingw32-ranlib
[01:16] <slackyman> export ADD2LINE=i686-pc-mingw32-addr2line
[01:16] <slackyman> export AS=i686-pc-mingw32-as
[01:16] <slackyman> export LD=i686-pc-mingw32-ld
[01:17] <slackyman> export NM=i686-pc-mingw32-nm
[01:17] <slackyman> export STRIP=i686-pc-mingw32-strip
[01:17] <slackyman> export MAKE=/usr/bin/mingw32-make
[01:17] <slackyman> export PATH="/usr/i686-pc-mingw32/bin:$PATH"
[01:17] <slackyman> at the end of it I put
[01:17] <slackyman> exec $@
[01:17] <slackyman> so i can use it with other following commands
[01:17] <slackyman> it worked with every package with a Makefile and without a configure
[01:18] <slackyman> using mingw32-make
[01:18] <slackyman> since I didn't want my packages installed system-wide I installed in another dir
[01:18] <Zeranoe> /usr/bin/make SYS=mingw CROSS_COMPILE=i686-pc-mingw32-gcc- SHARED=no
[01:19] <Zeranoe> try that
[01:19] <slackyman> /opt/libs
[01:19] <Zeranoe> if you need a prefix, add: prefix='/prefix/'
[01:19] <pasteeater> Synthead: what format is your video input? pastebin the output of
[01:19] <pasteeater> ffmpeg -i video1.avi
[01:20] <slackyman> it's f***ing working! >.<
[01:20] <slackyman> nope
[01:20] <slackyman> /usr/lib/gcc/i686-pc-mingw32/4.6.1/../../../../i686-pc-mingw32/bin/ld: cannot find -lpolarssl
[01:20] <slackyman> /usr/lib/gcc/i686-pc-mingw32/4.6.1/../../../../i686-pc-mingw32/bin/ld: cannot find -lz -static
[01:20] <slackyman> I know why, no prob
[01:21] <slackyman> i have to use CFLAGS and LDFLAGS
[01:21] <slackyman> to say to the compiler where are these packages
[01:21] <Zeranoe> slackyman: hang on
[01:21] <Zeranoe> is your include dir in /opt/libs/include ?
[01:22] <slackyman> no, CFLAGS='-I/opt/libs/include"
[01:22] <Synthead> pasteeater: http://pastebin.com/tCfuRNSB
[01:22] <slackyman> and LDFLAGS='-L/opt/libs/lib'
[01:24] <Zeranoe> /usr/bin/make SYS=mingw CROSS_COMPILE=i686-pc-mingw32-gcc- SHARED=no CRYPTO=POLARSSL INC='-I/opt/libs/include' XLDFLAGS='-L/opt/libs/lib'
[01:24] <Zeranoe> try that
[01:24] <slackyman> in this case I have to specify
[01:25] <slackyman> cannot find -lz -static
[01:26] <Synthead> can h.264 mp4 files be concatenated?
[01:26] <slackyman> now it can find polarssl but not lz
[01:26] <slackyman> i can fix easily
[01:27] <slackyman> zlib is in /usr/i686-pc-mingw32/sys-root/mingw/include/
[01:27] <slackyman> and /usr/i686-pc-mingw32/sys-root/mingw/lib
[01:28] <slackyman> I used
[01:29] <slackyman> /usr/bin/make SYS=mingw CROSS_COMPILE=i686-pc-mingw32- SHARED=no CRYPTO=POLARSSL INC='-I/opt/libs/include -I/usr/i686-pc-mingw32/sys-root/mingw/include/' XLDFLAGS='-L/opt/libs/lib -L/usr/i686-pc-mingw32/sys-root/mingw/lib'
[01:29] <slackyman> but still it cannot find -lz
[01:29] <pasteeater> Synthead: haven't seen one of those in the wild for a while
[01:29] <pasteeater> microsoft video-1
[01:29] <slackyman> maybe I have to instruct compiler about the pkgconfig path?
[01:29] <Synthead> pasteeater: yeah, came from a crappy proprietary video editing program
[01:29] <Synthead> forced to use it
[01:29] <Synthead> the files are 1-2 GB in size :p
[01:30] <slackyman> Zeranoe: are U still Here? :D
[01:31] <Zeranoe> slackyman: what is the output of: find '/usr/i686-pc-mingw32/sys-root/mingw/lib' -name 'libz.a'
[01:31] <slackyman> /usr/i686-pc-mingw32/sys-root/mingw/lib/
[01:31] <slackyman> and the include files
[01:31] <slackyman> /usr/i686-pc-mingw32/sys-root/mingw/include
[01:32] <Zeranoe> slackyman: did it find it?
[01:32] <pasteeater> Synthead: are all of the videos of the same parameters? frame size, rate, etc.
[01:32] <slackyman> yes
[01:33] <slackyman> Zeranoe: the path is /usr/i686-pc-mingw32/sys-root/mingw/lib/libz.a
[01:33] <Synthead> pasteeater: yeah
[01:33] <slackyman> there it is!
[01:34] <slackyman> maybe I can copy in /opt/libs
[01:34] <pasteeater> Synthead: what final output format(s) do you want?
[01:34] <Synthead> pasteeater: h264 would be nice. I'm looking for something I can throw up on a website and expect computer-illiterate people to play it. is that a good option?
[01:35] <slackyman> Zeranoe: I have another copy of zlib.a in /opt/libs/lib since this is the one I compiled by myself
[01:35] <Zeranoe> slackyman: run: /usr/bin/make SYS=mingw CROSS_COMPILE=i686-pc-mingw32- SHARED=no CRYPTO=POLARSS clean && /usr/bin/make SYS=mingw CROSS_COMPILE=i686-pc-mingw32- SHARED=no CRYPTO=POLARSSL INC='-I/opt/libs/include -I/usr/i686-pc-mingw32/sys-root/mingw/include/' XLDFLAGS='-L/opt/libs/lib -L/usr/i686-pc-mingw32/sys-root/mingw/lib'
[01:36] <slackyman> /usr/lib/gcc/i686-pc-mingw32/4.6.1/../../../../i686-pc-mingw32/bin/ld: cannot find -lz -static
[01:36] <slackyman> it's really strange
[01:37] <slackyman> since it HAVE to find zlib EVEN in /opt/libs
[01:37] <Zeranoe> slackyman: copy the whole output after you run that, and copy all the content to pastebin
[01:37] <slackyman> I compiled zlib in there
[01:37] <slackyman> ok
[01:39] <slackyman> Zeranoe: http://pastebin.com/h3wCSd5s
[01:40] <Ginks> ffmpeg -i hot.flv -an -vf "movie=/srv/www/vhosts/pimplicious.com/htdocs/data/watermark.png, scale=-1:720 [watermark]; [in][watermark] overlay=10:10 [out]" -f mp4 scaled.mp4
[01:40] <Ginks> Any idea why that gives me the following:
[01:40] <Ginks> [overlay @ 0x1d1cfc20] Overlay area (10,10)<->(2224,730) not within the main area (0,0)<->(320,240) or zero-sized
[01:42] <slackyman> ok
[01:42] <slackyman> I fixed
[01:42] <slackyman> it was my fault
[01:42] <Zeranoe> slackyman: Try: /usr/bin/make SYS=mingw CROSS_COMPILE=i686-pc-mingw32- SHARED=no CRYPTO=POLARSS clean && /usr/bin/make SYS=mingw CROSS_COMPILE=i686-pc-mingw32- SHARED=no CRYPTO=POLARSSL INC="-I/opt/libs/include -I/usr/i686-pc-mingw32/sys-root/mingw/include/" XLDFLAGS="-L/opt/libs/lib -L/usr/i686-pc-mingw32/sys-root/mingw/lib"
[01:43] <slackyman> Zeranoe: I succeded
[01:43] <slackyman> Zeranoe: how can I specify the DESTDR for install?
[01:43] <Zeranoe> prefix="/preifix/"
[01:44] <Zeranoe> slackyman: it was because you edited the makefile right?
[01:44] <slackyman> ok, thanks
[01:44] <slackyman> yep :P
[01:44] <slackyman> sorry
[01:45] <slackyman> I hope it will works
[01:45] <slackyman> my configure for ffmpeg is:
[01:45] <slackyman> ./configure --target-os=mingw32 \
[01:45] <slackyman> --cross-prefix=i686-pc-mingw32- \
[01:45] <slackyman> --arch=x86 --enable-memalign-hack \
[01:45] <slackyman> --enable-gpl --enable-version3 \
[01:45] <slackyman> --enable-avisynth \
[01:45] <slackyman> --enable-runtime-cpudetect \
[01:45] <slackyman> --enable-libvorbis \
[01:45] <slackyman> --enable-static --disable-shared \
[01:46] <slackyman> --enable-libmp3lame --enable-libopencore-amrnb \
[01:46] <slackyman> --enable-libopencore-amrwb \
[01:46] <slackyman> --enable-swscale \
[01:46] <slackyman> --enable-bzlib \
[01:46] <slackyman> --enable-libvpx --enable-libvo-aacenc \
[01:46] <slackyman> --postproc-version='current' \
[01:46] <slackyman> --enable-hwaccels --enable-frei0r \
[01:46] <slackyman> --enable-libopenjpeg --enable-libxvid --enable-libtheora \
[01:46] <slackyman> --enable-libx264 --enable-libfreetype --enable-libspeex \
[01:46] <slackyman> --enable-libgsm --enable-libxavs --enable-zlib --disable-w32threads \
[01:46] <slackyman> --enable-filter=frei0r
[01:46] <slackyman> as you can see I cross-compiled all that libs
[01:46] <pasteeater> Synthead: use pastebin for multiple line pastes
[01:46] <slackyman> and it was NOT so easy
[01:46] <pasteeater> oops....slackyman
[01:46] <slackyman> sorry
[01:46] <Synthead> hahaha
[01:46] <pasteeater> Synthead: maybe try something like http://pastebin.com/MbRXA128
[01:46] <Freakshow> yeah that hurt
[01:47] <Synthead> whooooooo's a critiquing my lines?!
[01:47] <Zeranoe> slackyman: get rid of --enable-memalign-hack, no need for --disable-shared
[01:47] <slackyman> ok
[01:48] <Zeranoe> other than that, looks good
[01:48] <slackyman> I have not to disable-shared?
[01:49] <Zeranoe> slackyman: ffmpeg builds statically by default
[01:49] <slackyman> ok
[01:49] <slackyman> but I need --enable-static, right?
[01:49] <Zeranoe> slackyman: no, static is the default
[01:50] <slackyman> ok
[01:50] <slackyman> do you know which was the greatest trouble?
[01:50] <slackyman> link to sdl statically
[01:50] <slackyman> :D
[01:50] <pasteeater> Synthead: and there is a typo in my paste: s/video.mp3/video.mp4/
[01:50] <slackyman> ffmpeg on windows was keeping asking for SDL.dll
[01:51] <slackyman> ok,. I have to go
[01:52] <slackyman> it's late night in Italy
[01:52] <slackyman> :D
[01:52] <slackyman> thanks and bye
[02:09] <Synthead> pasteeater: Unrecognized option 'c:v'
[02:15] <pasteeater> Synthead: your ffmpeg must be old
[02:15] <pasteeater> pastebin complete consol output
[02:15] <pasteeater> try -vcodec
[02:15] <Synthead> pasteeater: yeah, I think vcodec and vpre works, but now I'm having x264 encoder issues
[02:16] <pasteeater> what issues?
[02:16] <pasteeater> you will also have to change -q:a to -aq
[02:17] <pasteeater> actually, i don't remember if your version even has concat protocol
[02:17] <Synthead> pasteeater: omg, I think I love h264
[02:17] <Synthead> I cannot believe how fast and small this video is encoding to
[02:18] <pasteeater> msvideo1 is 20 years old
[02:29] <SIFTU> can anyone help guide me to join multiple (i.e 200+ mpg2) files togther. when I join them I the audio gets out of sync somewhere
[02:47] <Synthead> pasteeater: it looks like it's working great! why the qt-faststart line in the pastebin you posted?
[02:49] <Synthead> oooh, wait, I get it
[02:51] <Synthead> pasteeater: I can't seem to get libfaac to work, and aac sounds really bad. is there another option I can use?
[02:52] <slackyman> Zeranoe: still here?
[02:52] <slackyman> maybe it's too late
[02:53] <slackyman> i installed librtmp in /opt/libs
[02:53] <pasteeater> Synthead: qt-faststart will allow the video to start playing before it's done downloading. for example in a flash player.
[02:53] <slackyman> I kept the same configure
[02:53] <slackyman> and now ...
[02:54] <slackyman> ERROR: librtmp not found
[02:54] <pasteeater> Synthead: ffmpeg package in ubuntu repo doesn't have libfaac enabled.
[02:54] <pasteeater> Synthead: http://ubuntuforums.org/showthread.php?t=1117283
[02:54] <pasteeater> option a or option c
[02:58] <Zeranoe> slackyman: You need to edit the pkg-config
[02:58] <slackyman> I edited
[02:59] <slackyman> prefix=/opt/libs
[02:59] <slackyman> right?
[02:59] <Zeranoe> no, the private packages
[03:00] <slackyman> yes
[03:00] <slackyman> right
[03:00] <slackyman> maybe I have to add -lpolarssl
[03:00] <Zeranoe> ffmpeg doesnt support private libs, you need to copy them all into libs
[03:00] <slackyman> or what?
[03:00] <slackyman> ok
[03:02] <slackyman> so I have to copy lws2_32 lwinmm and lgdi32?!?
[03:03] <Zeranoe> slackyman: copy your pkg-config into pastebin, ill show you what i mean
[03:04] <slackyman> I have TWO pkgconfig
[03:04] <slackyman> that's the point
[03:04] <slackyman> ok
[03:04] <slackyman> one in /opt/libs/lib/pkgconfig
[03:04] <slackyman> and another in /opt/libs/usr/i686-pc-mingw32/mingw/lib/pkgconfig
[03:05] <slackyman> no, sorry
[03:05] <slackyman> /usr/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig
[03:05] <slackyman> what if I export PKG_CONFIG_PATH?!?
[03:06] <slackyman> [root at fedora ffmpeg]# echo $PKG_CONFIG_PATH
[03:06] <slackyman> /opt/libs/lib/pkgconfig:/usr/i686-pc-mingw32/sys-root/mingw/lib/pkgconfig
[03:06] <Zeranoe> slackyman: you may need to export two, PKG_CONFIG_PATH='/prefix1/:/prefix2'
[03:07] <slackyman> it's what I did
[03:07] <slackyman> but it seems to be malfunctioning :D
[03:08] <Zeranoe> slackyman: copy the pkg-config file for rtmpdump
[03:09] <slackyman> where?
[03:09] <slackyman> sorry, can you be more specific? O.o
[03:11] <slackyman> Zeranoe: where I have to copy it?
[03:12] <Zeranoe> slackyman: copy and paste to pastebin the output of: cat '/opt/libs/lib/pkgconfig/librtmp.pc'
[03:14] <slackyman> http://pastebin.com/R783Qcgn
[03:17] <Zeranoe> slackyman: change it to this: http://pastebin.com/duF9qd44 i can script it for you if your confused
[03:18] <slackyman> ok
[03:19] <slackyman> I don't have to add anything to --extra-libs?
[03:19] <Zeranoe> slackyman: you can avoid it by hacking thepkgconfig file like that
[03:21] <slackyman> librtmp not found
[03:21] <slackyman> do you want to see my configure?
[03:21] <slackyman> i pastebin
[03:22] <slackyman> http://pastebin.com/N87xVzKP
[03:22] <slackyman> see and check it, please
[03:22] <Zeranoe> slackyman: copy the config.log
[03:24] <slackyman> it's huge
[03:24] <slackyman> I copy just the interesting lines
[03:26] <slackyman> http://pastebin.com/PUq5ya51
[03:27] <Zeranoe> slackyman: grep -ir '_mpi_init' '/opt/libs/lib'
[03:28] <slackyman> Binary file /opt/libs/lib/librtmp.a matches
[03:28] <slackyman> Binary file /opt/libs/lib/libpolarssl.a matches
[03:29] <slackyman> I have to add polarssl
[03:29] <Zeranoe> --extra-libs='-lfreetype -lx264 -lspeex -lxavs -L/opt/libs/lib -lmingw32 -lSDLmain -lSDL -liconv -lm -luser32 -lgdi32 -lwinmm -lpolarssl'
[03:31] <slackyman> I'll check
[03:31] <slackyman> wait a minute
[03:32] <slackyman> librtmp not found
[03:32] <slackyman> and i check the log
[03:32] <slackyman> now it's different
[03:33] <slackyman> http://pastebin.com/Y6fVrahA
[03:34] <Zeranoe> slackyman: grep -ir '_WSAStartup at 8' '/opt/libs/lib'
[03:34] <slackyman> I was just checking
[03:34] <slackyman> Binary file /opt/libs/lib/libpolarssl.a matches
[03:35] <slackyman> uhmmm
[03:38] <Zeranoe> slackyman: that might be why i switched back to openssl
[03:38] <slackyman> you was able to use openssl with rtmp?!?
[03:39] <slackyman> ok,
[03:39] <slackyman> I think this will be a tomorrow problem
[03:39] <slackyman> it's really too late
[03:39] <slackyman> for me it's 3:40 am
[03:39] <slackyman> :D
[03:40] <slackyman> thanks anyway, I understand much more, now
[03:40] <slackyman> bye
[03:40] <slackyman> maybe I'll be back tomorrow
[03:40] <slackyman> Cya
[04:00] <Ginks> ffmpeg -i hot.flv -an -vf "scale=-1:720,movie=/srv/www/vhosts/testing.com/htdocs/data/watermark.png [watermark]; [in][watermark] overlay=10:10 [out]" -f mp4 scaled.mp4
[04:01] <Ginks> I run that, and I get:
[04:01] <Ginks> Too many inputs specified for the "movie" filter.
[04:02] <sdz> anyone happen to know command line options to simply display the info (resolution, bitrate, etc) of a video file to stdout then exit... missed it after several passes scanning through the man page
[08:36] <Ginks> ffmpeg -i hot.flv -an -vf "scale=-1:720,movie=/srv/www/vhosts/testing.com/htdocs/data/watermark.png [watermark]; [in][watermark] overlay=10:10 [out]" -f mp4 scaled.mp4
[08:36] <Ginks> I run that, and I get:
[08:36] <Ginks> Too many inputs specified for the "movie" filter.
[11:02] <grepper> Ginks: seems that the scale= creates another input, not sure what the correct syntax is though for a one-liner
[11:03] <TimNich> SO why is it when doing lib x264 encodes, ffmpeg automatically generates a sensible number of subthreads, but nices them up to 10, but it doesn't for other codecs, say dvvideo?
[11:06] <grepper> Ginks: what happens when you put the scale= AFTER the movie=...watermark.png ?
[11:17] <Ginks> grepper, I don't remember now
[11:17] <Ginks> I'll give it a ago again
[11:19] <grepper> seems you want to scale the movie BEFORE adding the watermark ?
[11:20] <Ginks> yes
[11:20] <grepper> hm, not sure what I said would work then ...
[11:20] <Ginks> ffmpeg -i hot.flv -an -vf "movie=/srv/www/vhosts/pimplicious.com/htdocs/data/watermark.png [watermark]; [in][watermark] overlay=10:10 [out],scale=-1:720" -f mp4 scaled.mp4
[11:21] <Ginks> Errors with: Not enough inputs specified for the "scale" filter.
[11:22] <grepper> ffmpeg -i hot.flv -an -vf "movie=/srv/www/vhosts/pimplicious.com/htdocs/data/watermark.png,scale=-1:720 [watermark] ...
[11:22] <grepper> that works I think, just not sure if it is accomplishing what you want now
[11:24] <Ginks> ffmpeg -i hot.flv -an -vf "movie=/srv/www/vhosts/pimplicious.com/htdocs/data/watermark.png,scale=-1:720 [watermark]; [in][watermark] overlay=10:10 [out]" -f mp4 scaled.mp4
[11:25] <Ginks> [overlay @ 0xe461c20] Overlay area (10,10)<->(2224,730) not within the main area (0,0)<->(320,240) or zero-sized
[11:26] <grepper> guess cause its not scaling 1st
[11:26] <Ginks> yah, that's what I thought too
[11:27] <grepper> dunno. Workaround would be to scale it, then output as YUV to the second ffmpeg command. Kind of a cop out though :)
[11:27] <Ginks> it should scale first anyways, otherwise the watermark will be distorted
[11:27] <ioni> hey guys
[11:27] <ioni> i have a minor problem with ffmpeg and i cannot get it to work
[11:27] <grepper> might want to wait till a dev or more experienced person is around, I tend to play with these till I get it right without really understanding the rules
[11:28] <ioni> symbol lookup error: /usr/lib/libavdevice.so.53: undefined symbol: _XGetRequest
[11:28] <ioni> i think is because of zlib 1.2.6 but i'm not sure
[11:28] <ioni> works if i use master snapshot
[11:28] <Ginks> grepper, yah, that's pretty much what I've been trying
[11:28] <ioni> does somebody know the commit that might fix this?
[11:30] <ioni> i don't really want to get a snapshot from master since it had soname bumps
[11:37] <ioni> nvm
[11:37] <ioni> i built against a libx11 that is not available
[11:56] <slackyman> Hi
[11:57] <slackyman> is there any1 here?
[11:57] <slackyman> :)
[11:59] <slackyman> How can I avoid that the configuration appear in ffmpeg?
[12:00] <slackyman> I mean: I want to avoid that configuration is shown launching ffmpeg
[12:26] <dTal> Is there a simple way to shift the color planes of all the frames in a movie by a given amount, for example to compensate for improper alignment?
[12:30] <slackyman> dTal: maybe using filter
[12:30] <slackyman> but I don't know which one
[12:31] <slackyman> http://ffmpeg.org/trac/ffmpeg/wiki/FilteringGuide
[12:33] <alex1442> Hello1What ffmpeg supports amr?
[12:34] <alex1442> my apt-get ffmpen no support amr
[12:34] <slackyman> are you using Ubuntu?
[12:36] <alex1442> 11.04
[12:37] <alex1442> ubuntu natty
[12:37] <slackyman> https://help.ubuntu.com/community/FFmpeg?action=show&redirect=FFMpeg
[12:37] <slackyman> I don't know if this is up-to-date
[12:37] <slackyman> but you have to apt-get install other packages
[12:38] <alex1442> BCB @CA:>O7KG=K5 ;N48 5ABL?
[12:39] <slackyman> ?!?
[12:39] <slackyman> I can only see cyrillic :D
[12:40] <slackyman> I don't know if here are russian people
[12:41] <slackyman> alex1442: maybe
[12:41] <slackyman> sudo apt-get install libavcodec-extra-52 libavdevice-extra-52 libavfilter-extra-0 libavformat-extra-52 libavutil-extra-49 libpostproc-extra-51 libswscale-extra-0
[12:42] <alex1442> Thanks will try
[12:42] <slackyman> or maybe
[12:42] <slackyman> apt-get update
[12:42] <slackyman> apt-cache search codec
[12:42] <slackyman> and see what you got
[12:43] <slackyman> i solved my issue :)
[12:43] <slackyman> bye everyone
[12:44] <alex1442> =)
[12:46] <alex1442> yes i'm from russia sry my englich
[13:14] <PoWeRKiLL> Hi
[13:52] <PoWeRKiLL> When I read an Apple HLS Stream with ffmpeg 0.10 after some minute I got an error
[14:29] <sacarlson> is there a way to decode this cctv file that has 8 videos incoded in h.264 with ffmpeg ? I just want them decoded into mpeg or something I can see in ubuntu
[14:34] <sacarasc> You should be able to watch H264 in Ubuntu.
[14:34] <sacarasc> (And H264 is an MPEG.)
[14:37] <iive> sacarasc: compile mplayer on your own and try to play them with ffplay
[14:38] <iive> oops mplayer/ffmpeg
[14:38] <sacarasc> Will do!
[14:38] <iive> sacarlson:
[14:38] <iive> you too
[14:38] <sacarasc> Curse these sacar* nicks!
[14:38] <iive> blah
[14:39] <sacarlson> iive I tired mplayer it does play something but it seems to multiplex between each of the 8 cams in the cctv system when viewed
[14:40] <sacarlson> it's mcv version of H264
[14:40] <iive> sacarlson: that's probably how it is encoded. I hope by multiplex you mean that the image is separated on 8 zones
[14:40] <sacarlson> yes 8 separate cams some how in one stream
[14:41] <iive> i don't think that is mvc, it is a little bit more complicated than that, and afaik supports only 3d stereo.
[14:42] <iive> sacarlson: well that's usually how multiplexing is done, even on analog cameras.
[14:43] <sacarlson> iive so how do I split the stream into 8 separate mpeg that I can view ?
[14:43] <iive> reencode it 8 times, using different -vf crop ?
[14:44] <iive> ffmpeg probably can do it at one run, as it allows multi path filter graph
[14:44] <iive> but don't ask me what the syntax is.
[14:48] <sacarlson> I just tried this ffplay -f h264 07022012170718.264 with many errors
[14:48] <sacarlson> didn't see any image that looked like anything
[15:10] <iive> sacarlson: is the -f really needed?
[15:10] <sacarlson> iive: I don't know I just got it from another link about h264
[15:11] <sacarlson> same error [h264 @ 0x9763320]pps_id out of range
[15:11] <sacarlson> [h264 @ 0x9763320]decode_slice_header error
[15:14] <sacarlson> the file comes from a hi-view H.264 DVR when I get the file downloaded with a browser
[15:19] <sacarlson> I found the file is meant to be played (viewed) with the windows program r6viewer.exe
[15:20] <iive> sacarlson: you said you were able to play it with mplayer, do you mean wmp or linux program?
[15:21] <iive> -f h264 is probably saying to ffmpeg that the file is elementary stream, but in that case the metadata of the real container could interfere with the demuxing.
[15:25] <Bermaw> hi all
[15:28] <Bermaw> Just wondering: I want to recieve several network streams and display them synchronously. However, the PTS time field is not really sufficient for this I suppose.
[15:30] <Bermaw> Any suggestions on how to get the pts field to use unix timestamps? I also came across AVFormatContext::start_time_realtime. Is that of any use?
[15:31] <Mavrik> unix timestamps?
[15:32] <Mavrik> if you manage to play video with 1ms granularity you can
[15:32] <Mavrik> you just have to set timebases correctly... it's probably not such a good idea though
[15:40] <Bermaw> Mavrik: doesn't have to be unix timestamp, that's just easy to agree on. 1ms granularity is not the actual goal either. The video sources just won't be started at the same time, so I do need some way to synchronise it
[15:40] <Mavrik> hmm, that's an interesting problem, I think you'll have to do it externally via some service
[15:44] <Bermaw> Mavrik: can't I use avpriv_set_pts_info for this? (http://ffmpeg.org/doxygen/trunk/libavformat_2internal_8h.html#ab5542950d6beb910dc9237aac99989e)
[15:45] <Mavrik> Bermaw, that looks like a private API and you have no guarantee containers/encoders will use it
[15:45] <Mavrik> not to mention the problems you'll have with PTS wrapping etc.
[15:46] <CommaCrazy> Hey all, I'm trying to conver an image JPEG (.jpg) into a video format MVI (.mvi) using ffmpeg and I always get "Requested output format 'mvi' is not a suitable output format:
[15:46] <Mavrik> what's a mvi?
[15:47] <Mavrik> CommaCrazy, it seems ffmpeg does not have a MVI muxer
[15:48] <CommaCrazy> so wait it saiz that it has support for it but it can't do the conversion??
[15:48] <Mavrik> it has a demuxer, not a muxer
[15:48] <Mavrik> - you can decode it but not encode it.
[15:49] <CommaCrazy> ah ok ty :)
[15:49] <CommaCrazy> c yaz
[16:11] <Bermaw> Mavrik: could this be what I am looking for ? http://ffmpeg.org/doxygen/trunk/structAVFormatContext.html#a5ddb5cee1df28f21739133f2e37f1c5
[16:12] <Bermaw> The ffmpeg documentation is not always that clear :)
[16:39] <Holden> Hello, I recorded a short video using "-f x11grab -vcodec copy", is there a way to see it with ffplay? http://paste.ubuntu.com/832715/
[16:48] <Mavrik> Holden, yick, Matroska doesn't support rawvideo, that's why it complains
[16:49] <kyr> hi guys, a certain x264 flag (directpred) won't work for me - I'm saving a mms webcam stream into a 3gp file. Does anyone know the problem? http://pastebin.com/k9EnjEmF
[16:50] <Holden> Mavrik, I'm pretty sure it used to work...
[16:50] <Holden> Mavrik, do you know of a format that supports rawvideo?
[16:51] <Mavrik> hmm
[16:51] <Mavrik> Holden, you can try putting -vodec rawvideo before the -i spec in ffmpeg/ffplay if it'll work
[16:52] <Mavrik> Holden, and for output it seems people just recommend dumping video in raw form with -f rawvideo
[16:52] <Mavrik> (I never did that though)
[16:57] <Holden> Mavrik, okay thanks, now I'm curious and I'll compile and older version, maybe I'm remembering wrong...
[17:21] <Holden> Mavrik, hmm, yes, it works with 0.8.10 http://paste.ubuntu.com/832785/
[17:40] <kyr> ok i got it working (install x264 wrong) but now it's not grabbing the stream at all
[17:41] <kyr> aaand wrong version. sorry, installing it on a vps
[17:44] <kyr> fml
[17:56] <wl2776> Hi all! Is it possible to remux raw h264 to MKV without re-encoding *and* specify PTS for every frame
[17:58] <slackyman> hi
[17:59] <wl2776> I have a separate file, containing timestamps, I can convert it to any format... Is it possible then to use them with command line ffmpeg?
[18:10] <sacarlson> I still haven't found a method to decode this h264 file from a cctv stand alone unit that files can be viewed in a program called r6viewer.exe for windows. I just want one of the 8 streams encoded in the file in an avi or other format to be viewe or broadcast
[18:10] <sacarlson> I normaly run ubuntu but if there is a windows alternative I'll try it
[18:14] <sacarlson> I see many different vendors of these cctv servalance systems all use this r6viewer.exe and I can't even find the software vendor that wrote it
[18:32] <mgeary> why would this give me no video output? http://dpaste.com/699090/
[18:32] <mgeary> ffmpeg -i input.mov -ac 1 -ar 22050 -vf scale=546:-1 out.flv
[18:33] <mgeary> hmm. it says it has a video track, but quicktime (perian) isn't showing anything. weird
[18:38] <slackyman> someone here is a C++ expert?
[19:07] <kelnoky> I used this "ffmpeg -i DSN_-_ST05_Epi_01_-_Eng-Dt.avi -map 0:v -map 0:1 DSN501.avi" to basically remove one of the two audio steams that the input had, but the result has *terrible* quality, what did I do wrong?
[19:08] <kelnoky> terrible video quality that is
[19:14] <kelnoky> I actually forgot to copy the video...
[19:14] <kelnoky> never mind me...
[19:20] <slackyman> I saw that error and log messages of ffmpeg are colored
[19:20] <slackyman> I'd like to reuse the code used to color messages in console
[19:20] <slackyman> where I can find it?
[19:20] <jermy> http://en.wikipedia.org/wiki/ANSI_escape_code
[19:20] <slackyman> I can't get past av_fprint_format
[19:21] <slackyman> jermy: yes, but it doesn't work in win console
[19:21] <slackyman> windows doesn't accept ANSI code
[19:22] <slackyman> ok, thanks
[19:22] <jermy> I see. Is there some stuff in liavutil/log.c specific to Windows?
[19:22] <jermy> #define set_color(x) SetConsoleTextAttribute(con, background | color[x])
[19:22] <jermy> for example
[19:23] <slackyman> thanks A LOT :D
[19:23] <jermy> you're welcome
[19:24] <kyr> hi again, I'm still getting "Unrecognized option 'directpred'" (though i fixed my other problem). can anyone tell me where did i mess up?
[19:34] <kyr> lol. my bad
[19:34] <kyr> learn something new every day i guess
[20:17] <matthiaskrgr> how do I loop/append the last frame of a video until it is of certain length?
[22:09] <amoeba> I have several terabytes of H246 MP4 video with 2 audio tracks. The 1st track contains a left and right channel. The left channel is one language. The right channel is a second language. The 2nd track is a third language in the left channel. What I need is to extract the left and right from track 1 as well as the left channel from track 2 and then save the 3 to separate tracks. is this Possible with FFMPEG?
[22:11] <amoeba> anyone know?
[22:53] <gils> @amoeba I don't know about ffmpeg, but you can split stereo to mono with sox using the "remix" option
[23:03] <mgeary> so, i've just compiled from source, using "configure --enable-libmp3lame --enable-gpl --enable-libx264", but it appears to be having problems with aac.
[23:04] <mgeary> http://dpaste.com/699210/
[23:11] <mgeary> any insights?
[23:11] <iive> mgeary: ffmpeg have its own aac encoder, that is slow and produces bad quality. that's why it is disabled by default and you have to enable it with -strict -2 option
[23:12] <mgeary> should i use mp3 instead?
[23:12] <iive> it is better if you use libfaac or ... forgot the name of the other encoder.
[23:12] <iive> for mp3 you would need libmp3lame
[23:13] <mgeary> iive: do i need to specify libfaac when compiling?
[23:13] <iive> mgeary: i think you do need to.
[23:25] <mgeary> hmm. so i'm using mp3 audio now, and it converted, but for some reason, my audio came out shifted 7 seconds. In other words, i have 7 seconds of black video, but with audio, and then no audio for the last 7 seconds of the video
[23:26] <mgeary> this is when playing back in Quicktime. Interestingly, ffmpeg says the output is 30.43 seconds, but Quicktime says it's 37.07
[23:30] <iive> the input.mov video says it starts -6.6 seconds ... that's about 7 seconds.
[23:30] <iive> can you try a newer version of ffmpeg. there must be 0.10 now too.
[23:32] <mgeary> well, i just barely did a "git pull" before compiling just now
[23:34] <iive> oh, i think i saw 0.9.1 version, so i assumed it is release
[23:34] <iive> sorry.
[23:35] <mgeary> well, it does say that
[23:35] <mgeary> is there a different git repo i should be using?
[23:36] <mgeary> is there a git equivalent to "svn info" ?
[23:37] <iive> `git status` maybe?
[23:37] <iive> it would at least tell you the current branch :)
[23:37] <tdr> mgeary, if you are looking for svn ffmpeg, there is a -9999 version in portage, but there's also a 0.10 release in portage too
[23:39] <mgeary> i'm pulling anew. Just using "git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg"
[23:39] <mgeary> will that get 0.10 ?
[23:50] <iive> mgeary: i hope so.
[00:00] --- Wed Feb 8 2012
More information about the Ffmpeg-devel-irc
mailing list