[Ffmpeg-devel-irc] ffmpeg.log.20120724
burek
burek021 at gmail.com
Wed Jul 25 02:05:02 CEST 2012
[00:24] <burek> proshot, tell your friend to install a decent media player, like vlc or ffplay :)
[00:24] <burek> not to rely on 20 years old media player classic and derivatives
[00:24] <burek> which just accumulated tons of bugs and nothing more :)
[00:25] <Mavrik_> huh.
[00:25] <Mavrik_> "20 years old"?
[00:25] <burek> ok 200 :D
[00:41] <Eraindil> chaos everyone, i have a little question about recording with ffmpeg
[00:42] <Eraindil> I would like to make screencast, so i would like to record all audio input and output
[00:42] <Eraindil> via alsa
[00:42] <Eraindil> have you got an idea how to make that?
[01:34] <retrospectacus> yo! I am recoding a video to an assortment of bit rates.. but so far they've all come out the same filesize.
[01:34] <retrospectacus> I'm varying the "-b" option but it seems to have no effect
[01:44] <retrospectacus> here's what I did and some output http://pastie.org/4309169
[01:48] <retrospectacus> what's the uh, correct way to do that?
[02:08] <retrospectacus> gonna try this "target" stuff, seems useful
[02:36] <APoulos> Hey folks, I had a question about something that I thought was interesting to bring up to the #ffmpeg community. First off, many of you know what "Cinavia" is right?
[02:37] <APoulos> Secondly - I hear it has something to do with audio watermarking, something in the audio that gets picked up and triggers it. Does anyone know what this could be that triggers it?
[02:38] <APoulos> just thought I'd bring this to light at the #ffmpeg community, considering I know many of you work with A/V encoding
[02:39] Action: APoulos is away: I'm away, highlight me if you have a message in reply to me
[03:07] <codefriar> if I have an iplImage, and I ask for a buffered image... what's the difference between them ?
[03:55] <burek> retrospectacus your ffmpeg is old
[03:56] <burek> and your ffmpeg ignores (I don't know why) your -b option
[03:56] <burek> frame= 4599 fps= 14 q=31.0 Lsize= 75298kB time=00:02:33.41 bitrate=4020.6kbits/s
[03:57] <burek> you certainly don't have 4020k in your list :)
[03:57] <burek> you might check if your cmd line is properly formed
[04:34] <c_smith> Hi, I compiled ffmpeg from source to record my desktop (with ALSA providing the input sound) on Kubuntu 12.04, and whereas the repo versions had support for ALSA, the git version I compiled doesn't seem to, is there something I should have added as a flag in the ./configure step to get ALSA support?
[04:35] <c_smith> or any part of the configure process that I may have missed.
[04:36] <juanmabc> c_smith: check the ubuntu compilation flags, ffmpeg alone should give it
[04:36] <c_smith> how do I check that?
[04:37] <juanmabc> also be sure to get the same .deb deps of the devel one
[04:37] <juanmabc> $ ffmpeg
[04:37] <c_smith> okay, what flag should I be looking for?
[04:39] <c_smith> sorry, newbie at ffmpeg, but not new at compiling.
[04:59] <juanmabc> appart from copy and adding the extra flags you like, you need to match the deps, so ./configure does detect alsa-devel or whatever
[04:59] <juanmabc> it is not just a matter of flags but of -devel packages installed
[05:00] <juanmabc> ./configure can not detect alsa, yet still build it wihout alsa support, and take pulse oss or whatever
[05:00] <c_smith> alright. so I go and install alsa-dev and recompile? simple enough.
[05:01] <c_smith> if I have that correct.
[05:02] <juanmabc> read ./configure output
[05:02] <juanmabc> checking for alsa... (yes/no)
[05:03] <juanmabc> i'd get the deb package, figure the deps list somewhere (it haves it in some file) then just install and go
[05:03] <juanmabc> if not get, check online
[05:03] <juanmabc> i'm an rpm guy, so no more detailed help from me
[05:03] <juanmabc> though i built some .deb a while ago
[05:05] <c_smith> alright.
[05:06] <juanmabc> maybe #ubuntu will tell you in a minute
[05:09] <c_smith> will do
[05:10] <c_smith> I'll recompile first to check for the alsa tag
[05:37] <rullie> hi, is transcoding dts to ac3 a cpu intensive work?
[05:37] <rullie> I'm streaming a mkv to my ps3 and top says ffmpeg is using about 98% cpu
[05:41] <juanmabc> try to nice it down
[05:41] <juanmabc> but yes transcoding eats like a fat boy
[05:41] <rullie> is it too much for say... AMD Athlon(tm) 64 Processor 3000+ AuthenticAMD
[05:42] <juanmabc> i'll say if nothing stop it...
[05:42] <juanmabc> try nice(1)
[05:42] <juanmabc> = lower priority
[05:43] <rullie> hmm ok
[06:10] <zap0> rullie, try using more threads
[06:10] <zap0> rullie, does that CPU have >1 cors?
[06:10] <zap0> cores?
[10:26] <ayad> hello team
[10:29] <ayad> can you help me to have the command line : for the IINPUTFILE.MP4 to OUTPUTFILE.FLV ineed have the advanced options
[10:37] <zap0> tell us what you have so far
[10:37] <zap0> and why you think you need each of the arguments
[10:42] <natrixnatrix89> what does this message mean when encoding subtitles: Only SUBTITLE_ASS type supported
[10:42] <natrixnatrix89> How to fix this?
[10:43] <natrixnatrix89> I was trying to transcode following: Stream #1:0 -> #0:2 (dvdsub -> ass)
[10:45] <ayad> my command line is ffmpeg -i input.mp4 -vb 1024 -s 640x480 -t 30 -vcodec flv output.flv
[10:46] <ayad> but i don't have a good resolution video
[10:46] <ayad> i need to optimize my video
[10:49] <saste> natrixnatrix89: "ass" is a subtitle format, that means that you have to use "ass" for encoding subtitles
[10:50] <saste> and i'm not sure you can do dvdsub->ass, dvdsub are hard subtitles (images overlaid on top of the video)
[10:50] <saste> but i may be wrong...
[10:50] <natrixnatrix89> I think you're right..
[10:50] <natrixnatrix89> so it's not possible to convert it to ass..
[10:51] <natrixnatrix89> I can just search for srt.. and convert that to .ass
[10:51] <Mavrik> this just sounds wrong.
[10:51] <Mavrik> saste: arent ASS subtitles also hardsubs?
[10:51] <natrixnatrix89> no
[10:51] <natrixnatrix89> ass are text
[10:51] <JEEB> well, you can hardsub them -- sure
[10:51] <JEEB> onto the picture
[10:51] <natrixnatrix89> and you can style them too
[10:51] <JEEB> but they are text-based
[10:51] <JEEB> (you can do vector shapes, but that's a whole diff. area of things)
[10:52] <JEEB> natrixnatrix89, you can use multiple apps to OCR the dvd subtitles and create text out of them
[10:52] <JEEB> not perfect, but you can do it
[10:52] <natrixnatrix89> I think it would be simpler searching net for srt.. and downloading it..
[10:52] <JEEB> possibly yes
[10:53] <ubitux> there is a vob2srt project on github iirc
[10:53] <ubitux> it's using some ocr stuff
[10:54] <ubitux> not sure how well it works
[10:54] <ubitux> (and most likely more complete projects exist)
[10:56] <JEEB> I would probably use Subtitle Edit ( http://code.google.com/p/subtitleedit/ ) for OCR by now, and Aegisub for general subtitle editing
[10:57] <JEEB> seems to handle unicode and can open DVD/BD subpictures
[11:01] <ayad> so with what option i can optimize the quality of my output
[11:06] <kaythree> hello
[11:08] <microchip_> hi
[11:15] <tapas> i wonder how difficult the following task is with ffmpeg: a] put a short image overlay over a portion of a video stream. b] assemble an audio stream to the video result from step a]
[11:17] <tapas> oh i found this: http://www.idude.net/index.php/how-to-watermark-a-video-using-ffmpeg/
[11:17] <tapas> looks simple enough :D
[11:35] <rainmaker1> anyone having problems with latest ffmpeg from git? I have segmentation fault
[11:35] <rainmaker1> http://pastebin.com/qVm862B3
[11:47] <rainmaker1> ÛAssertion ref->buf->refcount > 0 failed at libavfilter/buffer.c:147
[11:53] <kaythree> ok here's the thing
[11:53] <kaythree> i have an mp3 file (duration: 1h42) which i want to split in multiple pieces
[11:53] <kaythree> with audacity i already could split the mp3 without any problem
[11:53] <kaythree> but with ffmpeg i can't do that properly
[11:53] <kaythree> i'm using an unofficial win32 build: ffmpeg version N-42704-g85761ef - built on Jul 20 2012 20:37:16 with gcc 4.7.1 (GCC)
[11:53] <kaythree> (it's the latest downloadable from here: http://ffmpeg.zeranoe.com/builds/ )
[11:53] <kaythree> here's what i do (example):
[11:53] <kaythree> i ask the duration of each mp3 file with ffmpeg and obtain a txt file for each mp3 like this: http://pastebin.com/F3M4Mkfx
[11:53] <kaythree> then, with regular expressions i extract the audio durations from each txt file, and i obtain this: "00:02:13.38"
[11:53] <kaythree> then with an excel chart i prepare the batch file to obtain something like this: http://pastebin.com/vV4NpGPd
[11:53] <kaythree> then i replace \t with spaces to obtain this cleaned up batch file: http://pastebin.com/KKRi9662
[11:53] <kaythree> i execute the batch file to obtain the audio files
[11:53] <kaythree> but when i listen to the audio files, it looks like their duration is SLIGHTLY different from the original (i'm talking about milliseconds)
[11:53] <kaythree> the bad thing is that track after track, these milliseconds add up, so the track 40 will be few seconds late than how it meant to be intended
[11:53] <kaythree> is it a bug? is there a way to solve it?
[12:08] <pespin> hi, I'm having problems building ffmpeg 10 for android x86
[12:08] <pespin> it seems related to inline asm
[12:09] <pespin> in apply_window_mp3
[12:09] <pespin> I get: mpegaudiodec_mmx:73:5: error: can't find a register in class 'GENERAL_REGS' while reloading asm
[12:20] <burek> c_smith apt-get install libasound2
[12:25] <burek> rainmaker1, please read this and use gdb with ffmpeg_g to provide the output that can be used to debug/correct the bug: http://ffmpeg.org/bugreports.html
[12:26] <burek> kaythree, try using ffprobe to get info from a file
[12:26] <burek> it's more convenient
[12:27] <burek> kaythree, also, move your -ss after -i
[12:27] <burek> that will do what you want
[12:28] <burek> but, there is one important thing to notice there
[12:29] <burek> -acodec copy just copies the stream (encoded audio packets) from input to output
[12:29] <kaythree> sure, that's what i want
[12:29] <burek> those packets are chunks of the stream and they can't be copied from the middle
[12:29] <kaythree> oh
[12:29] <burek> either entire packet or skip the packet
[12:29] <burek> but if you re-encode your audio
[12:29] <burek> then you can pick a point in time exactly where you need
[12:30] <burek> something like keyframes with video
[12:30] <kaythree> is there a way to know when the packet ends?
[12:30] <kaythree> or how big is the packet
[12:31] <burek> try ffmpeg -i <input> -ss <x> -t <y> -acodec libmp3lame -b 320k -f mp3 <output>
[12:31] <burek> no, that's internal codec's data I guess
[12:31] <burek> the idea is that you can't just copy the encoded stuff from wherever you like
[12:31] <codefriar> I'm trying to convert an IplImage returned by ffMpeg to a bitmap on android. Apparently the key is pixel type and depth. is there a way to determine what the type / depth of the returned iplImage is ?
[12:32] <burek> you can only copy chunk by chunk
[12:32] <kaythree> i see
[12:32] <burek> audacity does re-encode it I think
[12:32] <kaythree> another question
[12:32] <kaythree> if i re-encode with the same quality/bitrate, same identical settings, will i lose quality?
[12:32] <burek> codefriar did you try ffprobe
[12:33] <burek> kaythree slightly probably
[12:33] <codefriar> burek: I'm doing this via the c api, so no ffprob executable. ..
[12:33] <burek> every re-encode process can lose some quality
[12:33] <kaythree> that's what i wanted to avoid by using audio copy
[12:33] <burek> codefriar, then take a look at ffmpeg's source code and see how it is done properly and copy that logic to your app
[12:34] <burek> kaythree you might take a loog at -f segment
[12:34] <burek> but I'm not sure is it for video only
[12:34] <burek> that makes a list of segments/chunks
[12:34] <burek> and might help you do all that without re-encodig, but I'm just guessing
[12:34] <burek> anyway, audio encoding is not that cpu intensive
[12:35] <burek> so, you might try to see how it goes
[12:43] <kaythree> ok i'll go with re-encoding
[12:43] <kaythree> thanks burek
[12:44] <burek> :beer: :)
[12:44] <kaythree> =)
[12:46] <codefriar> burek: can you help me understand the difference between a iplImage and a buffered immage? I'm just trying to convert iplImage to bitmap via javacv and banging my head against the wall
[12:49] <burek> codefriar, you might ask in #ffmpeg-devel
[12:49] <burek> but be patient, they often dont have much free time available
[12:50] <codefriar> they're quite foucsed on only developing ffmepg
[12:51] <burek> true
[12:54] <codefriar> it's frustrating because there is virtualy 0 documentation on iplImage let alone ffMpeg's use of it
[12:55] <burek> well that's ok
[12:55] <burek> it's open source
[12:55] <burek> don't expect anyone to spend his/her free time
[12:55] <burek> to make your life better..
[12:56] <burek> just read how ffmpeg handles it and copy the logic
[12:57] <burek> shouldnt be that hard
[13:07] <codefriar> lol, so if I use a deprecated ARGB_4444 pixel format, it kind of works ... everything is whacked but it doesn't die
[15:25] <arcanescu> is there a way to turn of concealing option either through code or command line?
[15:28] <arcanescu> i keep getting bottom of the screen corrupt occasionaly
[15:30] <mrn> what do you mean by concealing ?
[15:31] <mrn> do you know ffpreset files?
[15:31] <arcanescu> mrn: no let me pastebin the image im seeing
[15:31] <arcanescu> concealing: the debug output keeps saying concealing error 450 mv and weird numbers
[15:34] <mrn> may be using the -v option (-v number set ffmpeg verbosity level)
[15:35] <mrn> can disable your messages, but it can disable all messages :(
[15:35] <arcanescu_> hmmm let me just pastebin what im seeing maybe you could propose a work around
[15:38] <arcanescu_> http://dug.im/2b17f
[15:39] <arcanescu_> this keeps happening the image becomes stable for 2-3 secs but then starts behaving like that again
[15:42] <mrn> what is your command line ? Do you use threading ?
[15:42] <arcanescu_> mrn: yes
[15:42] <arcanescu_> command line : ffplay F:/test.sdp
[15:47] <mrn> I don't know the sdp format ... Have you try to play with an another software ( to be shure the file is a correctly generated ? ). Is it every time on the same frame ?
[15:48] <arcanescu_> mrn: it works fine with vlc
[15:49] <mrn> which version do you use of vlc and ffplay ?
[15:51] <arcanescu_> vlc 2.0.2
[15:51] <arcanescu_> and ffplay latest windows binary
[15:53] <arcanescu_> is there a way to increase udpbuffer size?
[15:54] <arcanescu_> through ffmpeg sources?
[15:54] <arcanescu_> and not through command line?
[15:55] <mrn> I don't know I don't use ffmpeg for streaming application...
[15:56] <arcanescu_> hmmm
[16:10] <arcanescu_> is it possible to set udp buffer receive size in SDP file?
[16:41] <k0fein_> hello everybody. I recently bumped into following problem. When I stream flv to rtmp server via ffmpeg and the server is killed (or I loose connection), ffmpeg crashes. Has anybody observed this problem ? (and found solution ? ) (+ of course, the RTMP data cannot be send since the error message is RTMP send error + winsock error code 10053. System is Windows 7 ffmpeg is SVN revision 23607)
[16:41] <k0fein_> i tried to dig on the internet for few days but nothing so far
[16:42] <burek> oh
[16:42] <burek> no need for pastebin
[16:42] <burek> your ffmpeg is ancient
[16:42] <burek> you need to update it
[16:43] <burek> the bug was probably fixed so far
[16:43] <k0fein_> ok, thanks for the info, i'll try the night build then
[16:44] <arcanescu_> is there a way to spcify udp buffer size in ffplay command line
[16:44] <arcanescu_> since im using an sdp file
[16:44] <burek> arcanescu did you check docs?
[16:44] <k0fein_> burek: you said that it is probably fixed, don't you by any chance remember whether there was similar bug reported ? (just checking)
[16:44] <burek> k0fein_ you can check on bug tracker
[16:44] <arcanescu_> burek: been over it a couple of times
[16:45] <arcanescu_> it says how to do it with udp:// protocol but not through an SDP file
[16:45] <k0fein_> burek: k, thanks
[16:45] <arcanescu_> in the SDP file ive explicity set protocol = udp
[16:45] <burek> arcanescu why exactly do you need buffer if you play it with ffplay
[16:45] <arcanescu_> burek: i have alot of packet loss playing the same stream through vlc causes me no problems
[16:45] <arcanescu_> while internally vlc is also using ffmpeg it makes no sense
[16:45] <burek> it doesn't
[16:46] <arcanescu_> ive been advised to increase the udp receive buffer size to make the problem go away
[16:46] <burek> it uses libdvbps something like that
[16:46] <arcanescu_> i get this from my stream:
[16:46] <arcanescu_> http://dug.im/2b17f
[16:48] <burek> what version of ffmpeg are you using arcanescu
[16:49] <arcanescu_> FFmpeg version git-b55dd10
[16:49] <burek> that's old
[16:49] <burek> November 2011
[16:49] <burek> try updating your ffmpeg
[16:49] <arcanescu_> im using a library AForge
[16:49] <arcanescu_> they are using this
[16:50] <arcanescu_> this was through development packages.... i jsut downloaded the windows build latest
[16:50] <arcanescu_> the problem still presists
[16:50] <burek> it doesn't matter when did you download something
[16:50] <burek> it is an old version
[16:50] <burek> find the latest if you can
[16:51] <arcanescu_> i did
[16:51] <arcanescu_> im now using
[16:51] Action: burek slaps fflogger around a bit with a large trout
[16:51] <arcanescu_> http://ffmpeg.zeranoe.com/builds/ static build from here
[16:51] <arcanescu_> okay let me show the output
[16:53] <arcanescu_> http://pastebin.com/cRAucZpa
[16:54] <burek> arcanescu complete/uncut
[16:54] <burek> not just cherry pick
[16:54] <arcanescu_> ok
[16:56] <arcanescu_> http://pastebin.com/gfWhznhP
[16:58] <burek> uh
[16:58] <burek> [h264 @ 065a4240] concealing 849 DC, 849 AC, 849 MV errors
[16:58] <burek> man, you really need to repair your network
[16:58] <burek> it makes no sense this way
[16:59] <arcanescu_> hmmm?
[16:59] <arcanescu_> meaning?
[17:00] <burek> too much packet loss
[17:00] <burek> also, why do you need sdp
[17:00] <burek> why not using direct link to the camera
[17:00] <arcanescu_> burek: how?
[17:00] <burek> and resolve the problem through udp url
[17:00] <burek> (if possible at all)
[17:00] <arcanescu_> let me check that
[17:00] <burek> due to that much loss
[17:00] <arcanescu_> it is rtp over udp
[17:00] <arcanescu_> so i needed an SDP
[17:01] <arcanescu_> to specify rtp type
[17:01] <burek> take a look in your sdp file
[17:01] <burek> oh
[17:01] <burek> rtp
[17:02] <arcanescu_> yup
[17:02] <burek> well, I don't really know if udp buffer size will be related to rtp at all
[17:02] <arcanescu_> udp:// url does not play
[17:02] <arcanescu_> rtp streams
[17:02] <burek> you might need rtp buffer (if implemented) not udp
[17:02] <arcanescu_> hmmm
[18:12] <pietro10> Hi, quick build question: I noticed ffmpeg relies on opencv for some functionality, but opencv relies on ffmpeg for optional functionality too. What's the proper way to resovle this circular dependency when building from source, preferably both from source? Thanks.
[18:13] <Mavrik> um
[18:13] <Mavrik> ffmpeg doesn't depend on OpenCV, what makes you think that?
[18:14] <pietro10> --enable-libopencv enable video filtering via libopencv [no]
[18:14] <pietro10> this configure option
[18:14] <pietro10> I'm trying to build a full featured ffmpeg, because i want to :/
[18:15] <pietro10> I installed as many of my distribution's opencv packages as I could without installing the distribution ffmpeg, but it complainis about opencv
[18:15] <pietro10> eh
[18:15] <pietro10> I guess I can disable it for now
[18:16] <Mavrik> interesting
[18:16] <Mavrik> pietro10: I'm quite sure you don't need that
[18:16] <Mavrik> pietro10: that's just to get openCV's filter into ffmpeg to be used for transcoding
[18:16] <pietro10> yeah
[18:16] <pietro10> so I'll just drop it
[18:17] <Mavrik> pietro10: if you're going to use ffmpeg IN openCV you'll already have those filters available via OpenCV :)
[18:17] <Mavrik> and you'll want to use them there to get control over them :)
[18:23] <pietro10> is the Stagefright H.264 encoder only for Android? (I wished the configure script would tell me what options were supported on which platforms...)
[18:25] <Mavrik> pietro10: yeah, that's the Android hardware encoder
[18:25] <Mavrik> pietro10: use x264 on PCs, it's way better :)
[18:25] <Mavrik> pietro10: the defaults are pretty sane btw
[18:25] <Mavrik> since you only need decoders not encoders :)
[18:26] <pietro10> yeah
[18:26] <pietro10> what if I'm interested in encoding though ;)
[18:27] <pietro10> meh
[18:27] <pietro10> maybe the defaults are fine... though I'm not sure what I would be missing after that
[18:27] <pietro10> is there a way to find out?
[18:32] <pietro10> I am interested in encoding :/
[18:32] <pietro10> meh
[18:32] <pietro10> I guess I'll just add x264
[18:35] <pietro10> here's another use question: I know i can use x11whateveritwas to record video from my screen - is there a simple way to also record the sound with it?
[18:35] <pietro10> some alsa setting?
[19:39] <TrevorBramble> Greets all. I'm having trouble keeping aspect ratio while converting to FLV from MPEG. Here's the invocation (wee Bash script):
[19:39] <TrevorBramble> ffmpeg -i "$1.m4v" -metadata title='$2' -ar 44100 -aspect 16:9 -s 720x536 -q:v 7 "$1.flv"
[19:39] <TrevorBramble> Any ideas?
[19:40] <TrevorBramble> (It spits out 4:3)
[19:42] <Mavrik> (let's see PAR/DAR) :)
[19:44] <TrevorBramble> Mavrik: http://pastebin.com/qaV6AVvg
[19:44] <TrevorBramble> I've been looking at those as well but didn't see anything to act on...
[19:44] <Mavrik> TrevorBramble, yeah, so basically
[19:44] <Mavrik> your input video is marked as 16:9
[19:45] <Mavrik> is the picture actually 4:3?
[19:45] <TrevorBramble> Doesn't appear to be.
[19:45] <TrevorBramble> (It's wide, no bars)
[19:46] <Mavrik> hm, wierd
[19:46] <Mavrik> output is also marked as (approx.) 16:9
[19:46] <Mavrik> are you sure it's not your player acting up?
[19:48] <Mavrik> TrevorBramble, ok, lets try something ugly
[19:48] <TrevorBramble> Don't think so? VLC. (Taking another look right now.)
[19:49] <Mavrik> ffmpeg -i <input> -metadata title='$2' -ar 44100 scale=iw*sar:ih,setsar=1:1,scale=720:536,setdar=16:9 -q:v 7 <output>
[19:49] <Mavrik> try this
[19:49] <Mavrik> it'll make sure you get square pixels (non-anamorphic) video first
[19:49] <Mavrik> then resize frame, then force aspect ratio to 16:9
[19:50] <TrevorBramble> Interesting. Giving it a go, thanks.
[19:50] <Mavrik> TrevorBramble, oh wait
[19:50] <Mavrik> you're forcing the image to 4:3 :D
[19:50] <Mavrik> TrevorBramble, replace scale=720:536
[19:50] <TrevorBramble> Go on.
[19:50] <Mavrik> with scale=720:-1
[19:50] <Mavrik> TrevorBramble, 720x536 is 4:3 :)
[19:51] <Mavrik> 720x404 is 16:9
[19:52] <TrevorBramble> Oh. So, I just divided both by 2.
[19:52] <Mavrik> yeah, you had anamorphic video :)
[19:53] <llogan> i haven't seen anyone use or want flv1 in a while.
[19:54] <Mavrik> true
[19:54] <TrevorBramble> Vs?
[19:54] <TrevorBramble> (I'm a programmer. Just find myself having to wade in these waters occasionally.)
[19:54] <llogan> "in the wild" (as if we're bird watchers with checklists or something)
[19:55] <Mavrik> TrevorBramble, usually now H.264 is used which is superior in pretty much every way :)
[19:55] <Mavrik> pretty much everyone has Flash 9+ now
[19:56] <TrevorBramble> If there's a better way, I'm all for it.
[19:58] <Mavrik> TrevorBramble, if your Flash player can handle H.264 go for that :)
[19:58] <Mavrik> this could help you:
[19:58] <Mavrik> https://www.virag.si/2012/01/web-video-encoding-tutorial-with-ffmpeg-0-9/
[20:00] <llogan> no crf?
[20:01] <Mavrik> llogan, for web streaming I prefer bitrate
[20:01] <Mavrik> for anything else crf
[20:01] <Mavrik> since then I know what kind of users can I target
[20:02] <TrevorBramble> Hrm. Can't find anything definitive re: the player. http://wpmarketing.org/wp-plugins/hana-flv-player/
[20:02] <llogan> i guess i'm lazy. i use crf for progressive download
[20:02] <TrevorBramble> Great post though, thanks. Exactly what I'd hoped to find when I looked into this recently and came up empty.
[20:03] <TrevorBramble> I still problems with HTML5-only videos in Webkit browsers, and unfortunately that's all most people want to talk about now.
[20:03] <Mavrik> TrevorBramble, yeah, just encode them with that and they'll work on everything except Firefox :P
[20:03] <Mavrik> and chromium on linux
[20:03] <TrevorBramble> <-- Chromium/Linux
[20:03] <TrevorBramble> =^)
[20:04] <llogan> or you could encode h.264 in flv and vp8 in webm as fallback. some players support that.
[20:04] <Mavrik> yeah
[20:05] <Mavrik> you'll need this then: https://www.virag.si/2012/01/webm-web-video-encoding-tutorial-with-ffmpeg-0-9/
[20:05] <Mavrik> (improvements welcome :) )
[20:05] <llogan> is that yours?
[20:05] <Mavrik> llogan, yea
[20:05] <Mavrik> got tired of all the identical questions :D
[20:05] <WannaBeGeekster> I am trying to duplicate these set of options from Sorenson Squeeze: http://pastebin.com/4dpG0dDd can't figure out how to set the level to 3.1 properly.
[20:06] <Mavrik> WannaBeGeekster, -level:v 3.1 ?
[20:07] <Mavrik> level is usually implied by bitrate and resolution
[20:07] <WannaBeGeekster> I tried -level:v 31, let me try that
[20:07] <Mavrik> specifying it will just make ffmpeg die if you pass invalid values
[20:08] <mikmu> Hey there, compiling ffmpeg based on https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
[20:08] <WannaBeGeekster> So far this is what I have: -vcodec libx264 -profile:baseline -level:v 31 -vpre slower_firstpass -vf scale-1:480
[20:09] <mikmu> during the configuration step for ffmpeg itself, I get this error: ERROR: librtmp not found
[20:09] <mikmu> librtmp-dev is installed. Any pointers?
[20:10] <llogan> mikmu: what's your ubuntu version?
[20:10] <Mavrik> WannaBeGeekster, that looks like you're using ancient ffmpeg :)
[20:11] <WannaBeGeekster> :) Well that is just me doing the command line improperly most likely. Yes, no problem.
[20:11] <llogan> i owe burek some beer for that fflogger
[20:11] <Mavrik> indeed :D
[20:11] <mikmu> llogan: 12.04
[20:11] <Mavrik> maybe we should just poke him to make it a trigger :D
[20:12] <llogan> mikmu: it workedforme when i tested it after i added it to the guide.
[20:13] <llogan> do you need librtmp?
[20:13] <WannaBeGeekster> qhttp://pastebin.com/iStiHJJp
[20:13] <mikmu> hmm, this is a base Ubuntu-server with nothing else installed
[20:13] <WannaBeGeekster> http://pastebin.com/iStiHJJp
[20:13] <WannaBeGeekster> sorry
[20:14] <Mavrik> ick, that's not ffmpeg :P
[20:14] <mikmu> llogan: I have librtmp-dev and librtmp0 installed with apt
[20:14] <WannaBeGeekster> lol.. I have tried both and they give me the same identical error.
[20:14] <llogan> mikmu: i'll look into it again. until then just remove --enable-librtmp if you don't need it (if you don't know, then you won't need it)
[20:14] <Mavrik> WannaBeGeekster, "-vpre" is wrong usage in new versions, use "--preset slower"
[20:14] <llogan> -preset
[20:15] <WannaBeGeekster> rtmp is for streaming stuff.
[20:15] <mikmu> llogan: I am wanting to stream to flash clients with ffserver, so I assume rtmp would be good
[20:15] <WannaBeGeekster> ahh.. That makes sense. I was actually just looking at that.
[20:15] <llogan> mikmu: can you paste the tail of your config.log on pastebin.com?
[20:16] Action: llogan knows nothing of ffserver
[20:16] <Mavrik> WannaBeGeekster, for some reason "-level 31" works for me, "-level:v 31" crashes ffmpeg :D
[20:16] <WannaBeGeekster> humm. Let me try it without it then
[20:17] <WannaBeGeekster> There has to be something else I am missing. Most likely an output filename I have a feeling
[20:17] <Mavrik> yeah, output filename helps :D
[20:17] <Mavrik> WannaBeGeekster, also
[20:17] <Mavrik> not -profile:baseline
[20:17] <WannaBeGeekster> :) Well that didn't do anything for me.
[20:17] <Mavrik> but -profile:v baseline
[20:17] <Mavrik> :)
[20:17] <WannaBeGeekster> :)
[20:18] <mikmu> llogan: http://pastebin.com/iKuaYDbj
[20:18] <WannaBeGeekster> well that fixed it all right up
[20:19] <llogan> mikmu: the you deviate from the guide at all?
[20:20] <TrevorBramble> Mavrik: llogan: Thank you! Scaling with the asserted width worked perfectly.
[20:21] <TrevorBramble> And thanks for the reading as well. I'm content to wait for things to settle down more before adopting a new best practice but it's good to stay informed.
[20:21] <llogan> s/the you/did you/
[20:21] <WannaBeGeekster> Thanks for the help guys... I do appreciate it.
[20:22] <mikmu> llogan: Nope, no deviation. It is a headless server, so I left out the --enable-x11grab as indicated
[20:22] <Mavrik> TrevorBramble, no problem :)
[20:22] <mikmu> llogan: Fresh installation of Ubuntu server 12.04
[20:23] <Mavrik> mikmu, do you actually need librtmp?
[20:23] <Mavrik> (it might be that the version in ubuntu repo is too old)
[20:24] <mikmu> marvik: I am going to be doing stuff with flash, so I'd prefer to have it in there, but it might not be necessary in the end
[20:24] <mikmu> I'm going to try building rtmpdump from source
[20:24] <Mavrik> ah
[20:25] <Mavrik> mikmu, I suggest you grab source of librtmp library
[20:25] <Mavrik> and compile it yourself
[20:25] <Mavrik> (before building ffmpeg, just like you did with x264, libvpx)
[20:26] <mikmu> Mavrik: But not using the debian package sources, correct?
[20:26] <Mavrik> correct
[20:27] <Mavrik> oh, uninstall librtmp-dev before that :)
[20:27] <Mavrik> and librtmp as well :)
[20:34] <mikmu> wierd, installing git installs librtmp0
[20:34] <mikmu> dependencies, uninstalling librtmp0 got rid of git
[20:35] <llogan> ffmpeg git head is also not finding librtmp for me as well (and i'm on arch linux).
[20:36] <Mavrik> hm
[20:36] <llogan> it was working 13 days ago, so i'll need to look at recent commits
[20:36] <Mavrik> that looks like a version mismatch
[20:37] <Mavrik> mikmu, are you using git head or a stable release of ffmpeg?
[20:37] <mikmu> Mavrik: I ran git clone --depth 1 git://source.ffmpeg.org/ffmpeg
[20:46] <mikmu> Dang, I might have found it
[20:46] <mikmu> pkg-config wasn't installed
[20:48] <mikmu> configure ran through without issues, waiting on make now
[20:49] <mikmu> looks like pkg-config isn't installed along with the specified pre-requisites
[20:57] <burek> mikmu, also type ldconfig
[20:57] <burek> to refresh ld cache
[21:02] <burek> Mavrik, cool articles :)
[21:02] <tomx> hi!
[21:04] <mikmu> looks like it all went through fine after apt-get'ing pkg-config
[21:04] <mikmu> Thanks for the help
[21:05] <tomx> i have a problem/question with generating video thumbnails for videos with multiple videostreams with fmmpeg..
[21:05] <tomx> ffmpeg -ss 15 -i video.asf -an -f mjpeg -t 1 -r 1 -y -s 320x240 1.jpg
[21:05] <tomx> works in an instant, really nice.
[21:06] <tomx> bit as soon as i put a -map command in there it takes forever because it has to dump all frames until it reaches the requested timestamp
[21:07] <tomx> allrite
[21:10] <tomx> here is the comparison of commands
[21:10] <tomx> http://pastebin.com/gX1Ubg2m
[21:10] <burek> can you give the console output of 2nd cmd
[21:11] <burek> also, avoid "-t 1 -r 1" and use "-vframes 1" instead
[21:11] <tomx> ok will try, sec
[21:13] <tomx> thats basically what the output looks like: http://pastebin.com/1hfVUD5r
[21:13] <tomx> look at the weird stream-order of that movie
[21:14] <burek> tomx, complete/uncut output please
[21:15] <tomx> what are you looking for specifically
[21:15] <burek> well, for the complete/uncut output please
[21:17] <burek> llogan :beer: :)
[21:17] <llogan> burek: that reminds me that i should bottle my scottish ale.
[21:17] <llogan> i haven't bottled for a few years (i have a kegerator).
[21:18] <burek> nice :)
[21:19] <tomx> burek: the only thing missing in the output were the headers of ffmpeg 0.11.1 :)
[21:19] <burek> tomx, why did you cut those out?
[21:19] <burek> just do ffmpeg ... 2> log.txt
[21:19] <burek> is that so hard?
[21:20] <tomx> so do you know of a different way to map video streams to mjpeg module without having to skip frame-by-frame until target-timestamp is reached?
[22:12] <PacketCollision> tomx: I don't, but if you skip to the frame before loading the video, it doesn't take as long
[22:16] <tomx> yeah! but it seems specifying the -map parameter makes the frame-skipping not work anymore
[22:18] <tomx> so as soon as i put -map 0:v:0 in there (select first video stream) it counts up from frame 0 until it reaches target instead of ffwd'ing to target right away
[22:18] <tomx> is that a bug or a feature - i dont know ;)
[22:35] Action: PacketCollision should have read the earlier messages
[22:43] <mikmu> Are we allowed to ask ffserver questions here?
[22:43] <llogan> yes
[22:43] <llogan> mikmu: did you figure out the librtmp issue?
[22:44] <llogan> i had to /quit for a while and didn't see
[22:45] <mikmu> llogan: Yup, turns out that pkg-config wasn't installed with the pre-requisites
[22:45] <llogan> oops. i was wondering about that.
[22:46] <llogan> i'll look into it later and update the guide.
[22:46] <mikmu> OK, ffserver/ffmpeg question. I want to take an h264 video stream available over rtsp from an IP camera and stream it through FFserver. I'm starting with simple configs and working my way up to more complex
[22:47] <mikmu> I'm pulling the ip camera video from the cam using ffmpeg and delivering to ffserver. Is this the correct way to go about it?
[22:48] <mikmu> My question is this. ffmpeg connects and delivers to ffserver just fine, but stops after 1024kB of data
[22:49] <mikmu> loglevel verbose says "No more inputs to read from, finishing"
[22:51] <mikmu> am I using the wrong tools? Should I be using another tool to fetch the ip camera stream and pipe it to ffmpeg?
[22:52] <mikmu> I'm not passing anything to ffmpeg other than -i to specify the input
[23:03] <mikmu> I'm just super confused by this all
[23:15] <burek> mikmu, the proper use would be ffmpeg -i input -f ffm http://localhost:8090/feed1.ffm
[23:15] <burek> but
[23:15] <burek> ffserver is kinda unstable now
[23:16] <burek> it might work for simple examples, but for anything more serious, I think you'll just waste your time and finally switch to something else anyway
[23:16] <burek> not that I don't like ffserver or something, but I'm talking out of my experience with it
[23:16] <burek> it's just not as finished/stable as it should be for the stable streaming
[23:19] <mikmu> burek: any suggestions for alternatives?
[23:21] <mikmu> Nothing seems to crash, Loglevel debug just seems to indicate that the souce is finished
[23:22] <burek> I don't know really, it didn't work out for me in any way, so I finally gave up
[23:22] <burek> try with vlc, wowza, etc
[23:22] <mikmu> vlc on widows just wasn't working out for me, but I'll try vlc on linux
[23:22] <burek> what version
[23:22] <mikmu> and wowza is commercial...just not an option for this project
[23:23] <burek> there was some serious bug fixing recently, so you might want to check the latest one
[23:23] <mikmu> burek: it was working find for getting the streams. I just had lots of problems transcoding them to flv for web streaming, etc
[23:24] <mikmu> I originally wanted to transcode into webm and mp4 for html5 video and flash, but streaming mp4 via http doesn't work with vlc
[23:24] <burek> well
[23:25] <burek> mp4 is not meant for streaming
[23:25] <mikmu> I've pretty well given up, and if I can get an flv stream going, then good enough, and screw non flash users for now :)
[23:25] <burek> try flv container
[23:25] <burek> or ts
[23:25] <mikmu> yeah, was just looking at something supported by the <video> html5 tag in IE9
[23:26] <burek> webm?
[23:27] <mikmu> apparently not. IE9 supports webm only with a plugin
[23:28] <burek> :)
[23:28] <burek> why do you "solve" one dependency (flash player) issue with another (html5)
[23:28] <mikmu> IE9 is h.264 only
[23:29] <mikmu> and with h.264, I assume an mp4 container
[23:29] <burek> NO
[23:29] <burek> oops
[23:29] <burek> no
[23:29] <burek> try flv container with h264 inside
[23:34] <mikmu> Will play around with it. I'm trying just using the vlc GUI to setup streaming. Setup an HTTP destination with transcoding to h264 with FLV container. I can connect to the stream, but nothing shows on my client until I shutdown the stream at the server
[23:34] <mikmu> I assume that I have to do some fancy ffmpeg mux stuff in the sout to get progressive streaming to work
[23:35] <burek> update vlc to the latest
[23:35] <burek> and it will work
[23:35] <burek> you'll need ffmpeg support in vlc too
[23:35] <burek> to be able to mux in flv
[23:35] <burek> because vlc does not support it natively
[23:35] <mikmu> already on 2.0.3, but this is the Windows version, so I imagine that it's pretty difficult to get vlc with ffmpeg support in windows
[23:36] <burek> I was using 2.2.0 i think
[23:36] <burek> no 2.1.0
[23:39] <mikmu> ahh, hadn't found the nightly builds
More information about the Ffmpeg-devel-irc
mailing list