[Ffmpeg-devel-irc] ffmpeg.log.20120228

burek burek021 at gmail.com
Wed Feb 29 02:05:02 CET 2012


[00:45] <aixenv> hey gang - whats wrong with this line it worked a week ago, now im seeing unknown -vf ; whats the substitute?
[00:45] <aixenv> .    /usr/bin/ffmpeg -y -i "$file" -vcodec libx264 -r 30000/1001 -vf "yadif,scale=1024:576" -crf 21 -maxrate 2M -bufsize 6M -preset slow -threads 0 -acodec libfaac -ar 48000 -ab 128k ${file%.*}-1.mp4 >> "${file%}"-encoding.out 2>&1
[00:45] <aixenv> well maybe not a week, but around Christmas it worked
[00:46] <aixenv> FFmpeg version SVN-r0.5.6-4:0.5.6-3
[00:46] <aixenv> ah i found it
[00:46] <aixenv> ffmpeg -y -i "$file" -vcodec libx264 -r 30000/1001 -deinterlace -s 1024x576 -crf 21 -maxrate 2M -bufsize 6M -vpre slow -threads 0 -acodec libfaac -ar 48000 -ab 128k ${file%.*}-1.mp4 >> "${file%}"-encoding.out 2>&1
[00:47] <aixenv> disregard :)
[00:49] <aixenv> bah or not
[00:50] <aixenv> that one fails too
[00:50] <tiglionabbit> I need to drop the audio channels on my video to to 1 or 2 so it'll work on android.  Unfortunately, when I do this, the audio comes out all squeaky beepy and terrible.  What can I do about this?
[00:51] <tiglionabbit> here is the command: ffmpeg -i pipe:0 -vcodec libx264 -vpre fast -vpre baseline -vpre ipod320 -acodec libfaac -ac 1 -vf scale='320:trunc(ow/a/2)*2' -threads 0 -f mpegts pipe:1
[01:13] <aixenv> figured it out, debian broke my custom ffmpeg, bleh - :P
[05:29] <darkstarbyte> Is there an ATI card that competes with cuda?
[05:30] <darkstarbyte> (in encoding)
[07:58] <overflow_0f8b> darkstarbyte<< try ati x550 pro
[07:58] <overflow_0f8b> in PCI-E version, that is a good card
[07:59] <overflow_0f8b> though the cheapest integrated will beat that on the current motherboards...
[08:33] <thresh> michaelni: hey. do you have plans on removing libpostproc from ffmpeg.git ?
[08:51] <michaelni> if i would do that we would loose fate testing it :(
[08:54] <thresh> you mean compiling it?
[09:05] <funman> !logs
[09:30] <TimNich> If I use ffmpeg to capture from a device to a file, how can I cleanly stop the process so the file gets closed properly, or do I need to chose a format that doesn't mind abrupt truncation?
[09:31] <Tjoppen> TimNich: just press q? I also think ffmpeg listens to ^C
[09:31] <Tjoppen> IIRC mkv is more tolerable than say mov/mp4
[09:35] <TimNich> q sounds possible ^C is listened to but I thought sounded more drastic. mov/mp4 need to do tidying up after finishing the data stream which is why I was wondering what recommendations there were..
[09:37] <Tjoppen> I've had MKVs work even though I ran out of disk space, meaning there was no room for a footer. however, I'm not sure whether MKV uses a footer at all
[09:47] <TimNich> Tjoppen:  Thanks I will have a play in that area.
[10:07] <TimNich> Just looking at the matroska spec, it does have a footer which includes, amongst other things, the cueing data and tags. However it can live without these, at the expense of poor seek performance if the cueing info is missing.
[11:57] <kriegerod> what should i do with demuxed RTMP/FLV stream which gives me a lot of packets timestamped with 0? They result in that many outgoing frames&packets with same pts, which offend encoder and muxer.
[14:57] <b0ot> Is there a way to take in a rtp or rtsp video stream in with ffmpeg and restream it out to your network in a very low latency format via multicast?
[16:03] <kriegerod> isn't that wrong that FLV demuxer does not automatically set streams codecs, thus requiring av_find_stream_info?
[16:32] <bgmarete> Hello. I am looking for interlaced video sequences to test the yadif filter. Any down-loadable ones from the web? With varying field parity? Or how can I use FFmpeg to create such? Thanks!
[16:45] <b0ot> Is there a way to take in a rtp or rtsp video stream in with ffmpeg and restream it out to your network in a very low latency format via multicast?
[17:00] <TimNich> bgmarete:   as you left devel  Compn: remarked "there are some interlaced mpeg2's on sample repo"
[17:26] <mystica555_> TimNich: he left both at the same time ;)
[17:33] <TimNich> mystica555_:  Hmmm I saw it logged on devel but not ffmpeg....
[18:53] <u42p> googling for "ffmpeg gamma" only gives me ancient things. is it possible to alter gamma when encoding with ffmpeg nowadays?
[18:55] <u42p> sweet, seems like i can try mp for that
[18:55] <u42p> thanks you awesome manpage!
[18:57] <u42p> example for anyone else who might find this at any time in the future: -filter mp=eq2=1.0:2:0.5 (and check the manpage)
[19:27] <b0ot> Any idea on how I could take as an input rtp or rtsp video and restream it out my network with as low latency as possible and view it with an end device with as low latency as possible.
[19:42] <Pranav> hey Guys, I needed direction in solving the issue in converting a .mov file to .mp4
[19:43] <Pranav> the version of ffmpeg is FFmpeg version SVN-r26402, Copyright (c) 2000-2011 the FFmpeg developers   built on Feb 28 2012 10:43:12 with gcc 4.2.1 (Apple Inc. build 5664)   configuration: --enable-libmp3lame --enable-gpl --enable-pthreads --enable-nonfree --enable-avfilter --enable-filters
[19:44] <Pranav> the real issue is "decoding prores with ffmpeg" and from online resources I read the proposed solution was to enable "gpl version 2"
[19:45] <Pranav> but with the latest release the "enable-version2" does not work with the new ffmpeg build
[19:45] <Pranav> is there a workaround?
[19:46] <Mavrik> --enable-version3?
[19:47] <JEEB> --enable-gpl is what enables gpl2, --enable-version3 is for (l)gpl3
[19:47] <JEEB> also the current ffmpeg code is in a git repository
[19:47] <JEEB> not in the svn
[19:48] <Pranav> ok thanks
[19:48] <Mavrik> (afaik ffmpeg was re-licensed GPLv3)
[19:50] <JEEB> ...
[19:50] <JEEB> ffmpeg is generally LGPL
[19:50] <JEEB> it has some things under the GPL, which is why there's --enable-gpl
[19:50] <JEEB> and then there are some libraries etc. that need --enable-version3
[19:51] <burek> ffmpeg itself is even more than lgpl :) but the linked libs are not :)
[19:51] <burek> anyway, I finally managed to create static build of ffmpeg with a lot of libs
[19:51] <burek> statically built
[19:52] <burek> and now that server went offline and I didn't do any backup... :idiot:
[19:52] <b0ot> Why do IP cameras have such low latency when viewing the video where as when I stream with vlc there is lots of latency... and is there any way ffmpeg could help me stream extremly low latency video?
[19:53] <burek> b0ot, how do you stream your video
[19:53] <b0ot> I use vlc, and I specify an rtp ts stream
[19:53] <b0ot> and then I view the video with vlc
[19:53] <burek> the minimum latency you'll have to live with is the encoding time
[19:53] <b0ot> which is about 2 seconds of lag
[19:53] <burek> I don't know about rtp
[19:53] <b0ot> even if I don't transcode
[19:53] <burek> never used it
[19:53] <burek> but udp is the fastest
[19:54] <b0ot> rtp is a form of udp
[19:54] <burek> also, if you use vlc, you'll have to play around with caching params
[19:54] <burek> there are a lot of them
[19:54] <burek> and you'll need to tweak each of them to get your desired result
[19:54] <b0ot> yeah... is there something better to view it with so there is less latency
[19:54] <b0ot> maybe through the web?
[19:54] <b0ot> different player?
[19:54] <b0ot> It is all on a private network
[19:54] <b0ot> not through the net
[19:54] <burek> try ffplay
[20:01] <b0ot> couldn't get it to open it
[20:02] <burek> do you have any specific reason to use rtp
[20:02] <b0ot> besides it being supposidly better than udp which is mostly considered legacy for programs like vlc
[20:02] <b0ot> no
[20:03] <burek> well just try udp and see if it works faster
[20:03] <burek> I have like 0.5 seconds delay
[20:03] <burek> from webcam to displayed video
[20:03] <burek> over 2 hops
[20:04] <b0ot> what command line did you use
[20:04] <burek> ffmpeg?
[20:04] <b0ot> could you output your actual line
[20:04] <burek> well ffmpeg -i ... -f mpegts udp://target:port
[20:04] <burek> not a rocket science :)
[20:05] <burek> and play it in vlc like: vlc udp://@:port
[20:07] <b0ot> lol it streamed it at like 30x speed
[20:09] <b0ot> and how would I do my webcam which is v4l2
[20:11] <burek> i dont understand
[20:11] <burek> are you streaming a live event
[20:11] <burek> or a file
[20:11] <burek> if you are streaming a file, you need to read it not as fast as possible but in "real time", so add the option -re, like this:
[20:12] <burek> well ffmpeg -re -i ... -f mpegts udp://target:port
[20:13] <b0ot> i have ffmpeg -f video4linux2 -i /dev/video0 -f mpegts udp://127.0.0.1:50010
[20:13] <b0ot> where would I add the re tag
[20:14] <burek> if you are capturing a live event (camera) you don't need -re
[20:14] <burek> what do you mean by "30x speed"
[20:15] <burek> try something more realistic, like ffmpeg -f video4linux2 -i /dev/video0 -vcodec libx264 -crf 20 -f mpegts udp://127.0.0.1:50010
[20:15] <burek> because your cmd didn't use encoding at all, it streamed raw video
[20:16] <b0ot> unknown encoder
[20:16] <b0ot> libx264
[20:16] <burek> hm
[20:16] <burek> did you apt-get install ffmpeg or compiled
[20:17] <burek> type ffmpeg -codecs to see all possible (V)ideo codecs
[20:17] <burek> and try with i dunno, something like -vcodec mpeg1v or something
[20:17] <burek> i never use anything beside h264
[20:17] <burek> it's really supreme
[20:18] <b0ot> I still see like .75 second lag
[20:18] <b0ot> maybe 0.5 sec
[20:18] <b0ot> can I get it lower?
[20:20] <burek> the encoding takes that long
[20:20] <burek> so I guess no
[20:20] <burek> unless you are on fiber optic
[20:20] <burek> and you can stream raw video
[20:20] <burek> or try lowering the complexity of the encoder
[20:21] <b0ot> i haven't done any encoding
[20:21] <burek> like, choose lower quality options / faster encodings
[20:21] <burek> can you please use pastebin.com, to show your command line and its output?
[20:21] <b0ot> still without vcodec
[20:21] <burek> i think ffmpeg used some "default" video encoder
[20:21] <burek> i really doubt it left it as raw video
[20:27] <b0ot> is it 2>&1 ?
[20:31] <DynamicFail> burek, (b0ot here) http://paste2.org/p/1919249
[20:31] <b0ot> looks like it used yuv420p
[20:42] <burek> DynamicFail, Stream #0.0: Video: mpeg2video, yuv420p, 640x480, q=2-31, 200 kb/s, 90k tbn, 30 tbc
[20:42] <burek> ffmpeg uses -vcodec mpeg2video
[20:42] <burek> as a default
[20:47] <b0ot> lol adding -re
[20:47] <b0ot> causes the remote vlc to crash every time i open it
[21:07] <burek> why would you add -re :)
[21:07] <burek> it's a live stream
[21:07] <burek> it cannot physically read the input faster
[21:07] <burek> anyway, why do you need even lower lag than 0.5 seconds?
[21:08] <burek> you can also try changing q for mpeg2video
[21:09] <burek> from 2-31
[21:09] <burek> i don't know exactly which one is faster, but you can play around
[21:23] <rainmaker1> Hi, are there any tools that can help in audio/video beeing out of sync?
[21:23] <rainmaker1> Basicaly I am looking for a tool that will allow me to compare the original and transcoded file...
[21:24] <rainmaker1> timestamps and so on
[21:28] <burek> avisynth
[21:29] <burek> kdenlive
[21:29] <burek> i guess you are looking for a video editor
[21:30] <rainmaker1> burek: Ah :)
[21:30] <rainmaker1> burek: I saw that you have reported some issues with audio/video beeing out of sync..
[21:31] <rainmaker1> burek: So I was wondering how come that ffmpeg can actually generate out of sync files when input file is perfect?
[21:31] <burek> it's magic :D
[21:31] <rainmaker1> burek: I belive so :)
[21:31] <rainmaker1> s/belive/believe
[21:32] <burek> :)
[21:32] <rainmaker1> burek: yes yes magic like abracadabra, but is it ffmpeg bug or it has something with outside libs?
[21:33] <Halexander9000> Greeting gentlehumans! I'm desperately trying to make sense of things here. I have this .ogv file that uploads and plays without a problem in youtube. Because it's recorded with RecordMyDesktop, with absolutely no editing done. Now, I want to edit said file. Surprize, surprize, OpenShot video editor can't even play the file without video errors, much less export it into a similar or different format without the same video errors. I tried to convert
[21:34] <Halexander9000> Does it get cut off?
[21:38] <burek> rainmaker1, did you create video with ffmpeg
[21:38] <burek> it does
[21:39] <burek> if you like essays you can use pastebin.com :)
[21:39] <burek> just narrow it down to the problem :)
[21:39] <rainmaker1> burek: well it's a live stream that I have recorded to a file without transcoding
[21:41] <rainmaker1> burek: now I want to transcode that file to h264 because of the circular buffer overun problem in udp.c you know.. the bug that nobody want to fix :D
[21:41] <Halexander9000> burek: Are you talking to me or rainmaker1?
[21:42] <rainmaker1> Halexander9000: to you and to me ;)
[21:43] <Halexander9000> Greeting gentlehumans! I'm desperately trying to make sense of things here. I have this .ogv file that uploads and plays without a problem in youtube. Because it's recorded with RecordMyDesktop, with absolutely no editing done. Now, I want to edit said file.
[21:43] <Halexander9000>  Surprise, surprise, OpenShot video editor can't even play the file without video errors, much less export it into a similar or different format without the same video errors. I tried to convert it using this guy's tutorial http://www.youtube.com/watch?v=ChgTqsZM6UM . Same result.
[21:43] <Halexander9000> Then I tried this guy http://www.markandey.com/2010/09/how-to-fix-ogv-file-to-upload-on.html . Exactly the same video errors. Those same tetris pieces of scrambled video data covering the text and edges of objects contained within the video. I really need some advice on how to convert it properly. Help please?
[21:44] <sacarasc> Halexander9000: If you use ffmpeg instead of recordmydesktop, you won't have to reencode and lose more quality.
[21:45] <Halexander9000> Um... So, I need to record that session again?
[21:46] <sacarasc> Or, if you don't want to do that and just want to reencode, it would be good to know what your editing program supports.
[21:46] <Halexander9000> I don't want that, it's a game session. I want to convert the recording into something managable by openshot or kdenlive.
[21:46] <burek> rainmaker1, decode your streams to uncompressed versions (raw audio/video) and combine them (also correcting the sync) and recompress them
[21:46] <Halexander9000> sacarasc: I tried to reencode into avi. No matter what I try, I get the same video artifacts.
[21:46] <burek> heck dont do that
[21:47] <burek> what i wanted to say is just extract both streams without touching them
[21:47] <rainmaker1> burek: why should I do that, when my streams are perfect?
[21:47] <burek> -vcodec copy and -acodec copy (also -vn and -an)
[21:47] <burek> well if you want to fix sync issues?
[21:48] <rainmaker1> burek: jel zabranjeno ovde na srpkom da se prica? mislim ono nije lepo i to?
[21:48] <Halexander9000> sacarasc: I even tried to open the .ogv file in the respective video editing software. It doesn't even play properly in the preview window, much less render without the same bloody tetris mishmash of hellish chaos.
[21:48] <burek> Halexander9000, can you just type ffmpeg -i yourfile.ogv
[21:48] <burek> can you please use pastebin.com, to show your command line and its output?
[21:48] <Halexander9000> burek: That I can. Stand by.
[21:49] <burek> rainmaker1, please speak in english, because the channel is being logged
[21:50] <rainmaker1> burek: ok, my input stream is perfectly in sync, then I don't know why should I edit it, it's the ffmpeg transcoded stream that's have sync issues
[21:50] <Halexander9000> burek: There you go. http://pastebin.com/0KmrsrDG
[21:51] <burek> rainmaker1, what is your overall goal? just to transcode?
[21:52] <burek> Halexander9000, did you try to remux that into .mkv ?
[21:52] <rainmaker1> burek: yes
[21:52] <Halexander9000> burek: I would if I knew how.
[21:52] <burek> ffmpeg -i test.ogv -f mkv output.mkv
[21:52] <burek> or it is -f matroska
[21:52] <burek> type ffmpeg -formats
[21:52] <Halexander9000> burek: On it.
[21:52] <burek> to make sure
[21:52] <burek> and yes
[21:52] <burek> wait
[21:52] <Halexander9000> Yes?
[21:52] <burek> ffmpeg -i test.ogv -vcodec copy -acodec copy -f matroska output.mkv
[21:53] <burek> something like that will do
[21:53] <Halexander9000> I see. Let me see.
[21:53] <burek> rainmaker1, can you do ffmpeg -i yourvideo
[21:53] <burek> can you please use pastebin.com, to show your command line and its output?
[21:53] <burek> and what format/codec do you want to transcode your video to?
[21:54] <Halexander9000> burek: http://pastebin.com/QP2fV9Jv
[21:55] <burek> Halexander9000, well it did it
[21:55] <burek> try opening the video in video editor
[21:57] <rainmaker1> burek: http://pastebin.com/XtSDFX54
[21:57] <Halexander9000> burek: close, but now dice. The audio is pulsing on and off every half-second. It's more noticeable when there's no sound playing.
[21:57] <rainmaker1> burek: h264 using libaacplus if possible
[21:57] <Halexander9000> burek: I'll see what it does to a biggerfile.
[21:58] <burek> Halexander9000, try -f mp4 instead of matroska
[21:58] <burek> and set out.mp4
[21:59] <burek> rainmaker1, ffmpeg -i hbo.mpg -vcodec libx264 -crf 20 -acodec libaacplus -ar 32k -ac 2 -f mp4 out.mp4
[22:00] <Halexander9000> burek: http://pastebin.com/c6CLXfvr
[22:00] <Halexander9000> burek: outputs an empty file.
[22:00] <burek> i guess mp4 cannot hold theora/vorbis
[22:01] <Halexander9000> I'll try that other thing with the larger file and see what it does. It will take a while, that I'm sure of.
[22:01] <burek> well, remuxing the media doesn't change it's quality
[22:02] <burek> streams stay the same, i.e. not reencoded
[22:02] <burek> so you can type ffmpeg -formats
[22:02] <burek> and try various -f ...
[22:02] <burek> to see which ones your video editor support
[22:04] <Halexander9000> burek: This is starting to get ridiculous.
[22:04] <Halexander9000> Alright, how can I use ffmpeg as a screen recorder?
[22:04] <burek> Halexander9000, what OS do you use
[22:04] <Halexander9000> Ubuntu latest?
[22:04] <burek> install kdenlive
[22:04] <burek> and try loading video in that editor
[22:05] <Halexander9000> burek: Tried it, trust me, it doesn't even play it properly in the preview window, let along render anything of use.
[22:05] <Halexander9000> alone*
[22:05] <rainmaker1> burek: what is -crf option (docs are pretty mystic)? and why should I set a number of channel when by default is set to the number of input audio channel anyway?
[22:06] <rainmaker1> burek: sorry to bother if you have no time, I'll try to google around
[22:07] <burek> crf is x264's option
[22:07] <burek> just type x264 --help
[22:07] <burek> and remove -ac 2 then
[22:07] <burek> if it bothers you :)
[22:08] <burek> crf is something like quality measure for x264
[22:08] <rainmaker1> burek: I found and reading :)
[22:08] <burek> like constant rate factor
[22:08] <burek> constant quality
[22:09] <burek> rather then using -cqp which is constant quantization parameter
[22:10] <mystica555_> Halexander9000: i had a bug in ffmpeg that caused ogvs to play back horribly too.. i either upgraded or downgraded the version
[22:10] <mystica555_> forget which
[22:10] <rainmaker1> burek: thanks :)
[22:10] <burek> :beer: :)
[22:11] <rainmaker1> burek: :)
[22:11] <rainmaker1> burek: and.. can I ask now a million dollar question? :)
[22:11] <Halexander9000> mystica555_: Well, it has to be a downgrade, cause I have all the latest versions on my computer.
[22:12] <Halexander9000> mystica555_: So how do I do that?
[22:12] <mystica555_> from where? the distro? ffmpeg git source?
[22:13] <burek> :)
[22:13] <burek> Halexander9000, did you compile your ffmpeg?
[22:13] <Halexander9000> burek: I used the Ubuntu Software Center for most is not all my software needs.
[22:13] <burek> then you most probably have an old version, because distros do not update ffmpeg frequently
[22:13] <Halexander9000> Sometimes I follow tutorials and add ppa sources.
[22:14] <burek> multimedia projects change very fast
[22:14] <burek> so your best bet is to compile your ffmpeg if you can and have time/will
[22:14] <rainmaker1> burek: ok then, cheers :)
[22:14] <burek> rainmaker1, go ahead ask :)
[22:14] <Halexander9000> burek: Can you issue the commands and let me follow you blindly?
[22:14] <burek> don't ask to ask, just ask :)
[22:15] <burek> Halexander9000, just a sec
[22:15] <burek> first uninstall your ffmpeg
[22:15] <Halexander9000> Hold on.
[22:15] <Halexander9000> I'll use USC for that.
[22:15] <bartus> hello.. I have a problem with compiling ffmpeg against dependencies installed in non default location. Tried PKG_CONFIG_PATH without results.
[22:16] <rainmaker1> burek: :) Ok, didn't understand.. any idea how to troubleshoot circular buffer overun error? I think you maybe saw that already, or I already ask you?
[22:16] <burek> Halexander9000, do: apt-get install libtheora-dev libvorbis-dev
[22:16] <Halexander9000> burek: Now kdenlive got uninstalled as well.
[22:16] <burek> what circ. buf. err?
[22:16] <burek> kdenlive requires ffmpeg?
[22:16] <Halexander9000> Yup
[22:16] <burek> oh
[22:17] <burek> ^^
[22:17] <burek> isn't life fun :D
[22:17] <rainmaker1> bartus: which dependencies?
[22:17] <Halexander9000> burek: It's certainly not boring.
[22:17] <burek> rainmaker1, what circ. buf. err?
[22:17] <burek> nice..
[22:17] <burek> peace at last :D
[22:18] <bartus> rainmaker1, x264 and frei0r
[22:19] <burek> bartus, did you read ./configure --help and greped for extra-ldflags
[22:19] <rainmaker1> burek: this one http://ffmpeg.org/trac/ffmpeg/ticket/1017
[22:20] <bartus> rainmaker1, now i see ;)
[22:21] <rainmaker1> bartus: I believe that burek answered your q :)
[22:21] <Halexander9000> Burek, I'm done. Now what?
[22:21] <bartus> rainmaker1, sorry ;] may bad !
[22:21] <rainmaker1> bartus: np :)
[22:21] <bartus> burek, thanks !
[22:21] <burek> Halexander9000, do you know how to compile things?
[22:22] <burek> rainmaker1, just a sec
[22:22] <burek> bartus, :beer:
[22:22] <Halexander9000> ./config
[22:22] <Halexander9000> make
[22:22] <Halexander9000> make install
[22:22] <Halexander9000> ?
[22:22] <burek> yes, do also apt-get install yasm
[22:22] <burek> and then go here
[22:22] <burek> http://www.videolan.org/developers/x264.html
[22:22] <burek> grab the source and compile it
[22:22] <Halexander9000> On it.
[22:22] <burek> rainmaker1, did you read latest comments
[22:23] <rainmaker1> burek: sure
[22:23] <burek> did you do "top" while encoding
[22:24] <rainmaker1> burek: but, first, it's not true that system is to slow, and second, the problem is fixed so ffmpeg dont crash, just exit, but with the same error
[22:24] <rainmaker1> burek: sure
[22:24] <burek> I see
[22:25] <rainmaker1> burek: and the best of all is that ffmpeg stops after random period .. sometime after 30 min, sometime after 8 hours, sometime after 15 and so on...
[22:25] <burek> hm you didnt use any of x264 options
[22:25] <burek> so it just defaulted
[22:26] <rainmaker1> burek: what?
[22:26] <rainmaker1> burek: it's not my ticket
[22:26] <burek> try setting some tighter options like -crf 25 (to speed it up a little)
[22:26] <burek> or -preset ultrafast
[22:26] <burek> oh I see
[22:26] <burek> well, try to speed it up
[22:26] <burek> just to make sure it's not a speed related issue
[22:26] <rainmaker1> burek: it's another user that has the same problem
[22:26] <burek> I understand that
[22:27] <burek> I'm telling you to rule out that possibility by using these options above
[22:27] <rainmaker1> burek: sure, I will try, it bugs me so long that now I don't know what I have used...
[22:27] <burek> I know the feeling.. :)
[22:28] <rainmaker1> :D
[22:29] <burek> also, dont use -re when your input is already in real time
[22:29] <burek> like streaming or a webcam
[22:29] <burek> its only useful with files, so that ffmpeg doesn't rush with encoding
[22:29] <burek> it usually rushes to encode things as fast as possible
[22:30] <burek> so you need to tell it to slow down for it to be "watchable" :) that's the purpose of -re
[22:30] <rainmaker1> burek: I learned that  few days ago when ffmpeg crashed every few minutes :)))
[22:30] <burek> :)
[22:30] <Halexander9000> Burek: Cannot install
[22:30] <burek> cannot install what
[22:30] <Halexander9000> Burek: I'll give you the log.
[22:31] <burek> rainmaker1, when using -i udp://... it is usually a good idea to prefix that with -f telling ffmpeg what container it is
[22:31] <burek> like -f mpegts -i udp...
[22:31] <burek> Halexander9000,
[22:31] <burek> can you please use pastebin.com, to show your command line and its output?
[22:31] <rainmaker1> burek: I did that also in the latest iteration
[22:31] <Halexander9000> I was doing just that.
[22:31] <burek> ok
[22:32] <burek> rainmaker1, also try using -an instead of c:a libfaac
[22:32] <burek> to remove audio, just to see if the problems come from the syncing
[22:32] <rainmaker1> burek: does it make sense to use maxrate or -b ?
[22:32] <Halexander9000> burek: http://pastebin.com/RySt91g3
[22:33] <burek> it does if you want to control your output using bandwidth limitation :)
[22:33] <Halexander9000> it wont make install
[22:33] <burek> usually -b is what you want rainmaker1
[22:33] <burek> :)
[22:33] <burek> its not config
[22:33] <burek> oh you got that
[22:34] <Halexander9000> Doesn't matter.
[22:34] <Halexander9000> I tried sudo make install. So far, I think it worked.
[22:34] <Halexander9000> How can I check that?
[22:34] <burek> No command 'instal' found, did you mean:
[22:34] <burek>  Command 'install'
[22:34] <rainmaker1> burek: I mean between those two -b or -maxrate ?
[22:34] <burek> try sudo make install
[22:35] <Halexander9000> burek: I think I figured it out.
[22:35] <burek> install: cannot create regular file `/usr/local/bin/x264': Permission denied
[22:35] <Halexander9000> burek: Read what I just said.
[22:35] <burek> rainmaker1, http://ffmpeg.org/ffmpeg.html
[22:35] <Halexander9000> burek: I got it, on my own.
[22:35] <burek> Halexander9000, ok
[22:36] <Halexander9000> burek: Now how do we move on, or would you like to issue a command to check my work?
[22:36] <Halexander9000> Now do we move on*
[22:36] <burek> ok now, you have x264
[22:36] <burek> theora, vorbis
[22:36] <burek> what else do we need
[22:36] <Halexander9000> Kdenlive?
[22:37] <burek> we'll get to that later
[22:37] <rainmaker1> burek: -maxrate is vbr and -b is cbr or ?
[22:37] <burek> maybe we won't even need it
[22:37] <burek> Halexander9000, http://ffmpeg.org/download.html
[22:37] <Halexander9000> I might need it later when I add audio clips to the file.
[22:37] <burek> now if you want to be always at the bleeding edge with ffmpeg
[22:37] <burek> you'll naturally want to use git
[22:38] <VooDooNOFX_> Where can I read up on cuda/ffmpeg progress/testing/implementation, etc?
[22:38] <Halexander9000> Every time it updates?
[22:38] <burek> and when you like, you just make uninstall older ffmpeg make distclean and git pull for new version
[22:38] <burek> if not
[22:38] <Halexander9000> Isn't there a script or something to make that automatically?
[22:38] <burek> just download the current snapshot and compile it
[22:38] <burek> it is automatically :)
[22:38] <burek> rainmaker1, just a sec
[22:39] <Halexander9000> I'll download the git then...
[22:39] <burek> rainmaker1, can you ask that on #ffmpeg-devel
[22:39] <burek> just apt-get install git
[22:39] <burek> when it is finished: git clone git://source.ffmpeg.org/ffmpeg.git
[22:39] <burek> it will create a directory named ffmpeg in your current dir
[22:40] <burek> VooDooNOFX_, cat CHANGES ? :)
[22:40] <rainmaker1> burek: sure I hope they don't get angry about it
[22:40] <Halexander9000> burek: Guess I should move back to the home directory.
[22:40] <burek> rainmaker1, me too ^^
[22:40] <burek> Halexander9000, what ever you find suitable for you
[22:40] <burek> that directory will hold the ffmpeg's source code with all the history
[22:41] <rainmaker1> burek: then I wont ask, I'll try to find out :)
[22:41] <burek> when it is done you'll just type: ./configure --enable-gpl --enable-nonfree --enable-libx264 --enable-libtheora --enable-libvorbis
[22:41] <burek> make  and  make install
[22:41] <burek> and that's it
[22:41] <burek> rainmaker1, clever idea :D
[22:41] <Halexander9000> burek:50%...
[22:42] <Halexander9000> Wait, did you just say that my home directory with have all those files dumped into it?
[22:42] <Halexander9000> burek: ?
[22:43] <rainmaker1> burek: yeah :)
[22:44] <burek> no Halexander9000
[22:44] <burek> git clone will create a sub-directory
[22:44] <Halexander9000> burek: Hallelujah!
[22:44] <Halexander9000> So, I take it I need to move into that subdirectory.
[22:44] <burek> :)
[22:45] <burek> and type that configure line above
[22:45] <Halexander9000> Sure.
[22:45] <Halexander9000> burek: I can't even begin to thank you for your time so far.
[22:46] <Halexander9000> ERROR: libx264 not found
[22:46] <Halexander9000> If you think configure made a mistake, make sure you are using the latest
[22:46] <Halexander9000> version from Git.  If the latest version fails, report the problem to the
[22:46] <Halexander9000> ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
[22:46] <Halexander9000> Include the log file "config.log" produced by configure as this will help
[22:46] <Halexander9000> solving the problem.
[22:46] <Halexander9000> Whoops...
[22:46] <Halexander9000> Yeah, pastebin. On it.
[22:47] <Halexander9000> burek: http://pastebin.com/uCL9hNWj
[22:47] <rainmaker1> Halexander9000: where is your x264 command located?
[22:47] <burek> hmh
[22:47] <Halexander9000> rainmaker1: I haven't the slightest idea.
[22:47] <rainmaker1> which x264
[22:47] <burek> did you do make install in libx264
[22:48] <Halexander9000> I did a sudo make install, remember?
[22:48] <burek> did it throw any error
[22:48] <Halexander9000> burek: http://pastebin.com/Jt98FUXz
[22:48] <Halexander9000> burek: Is that usefull?
[22:48] <Halexander9000> useful*
[22:49] <rainmaker1> if you type "which x264" you can see where is it (if it's compiled)
[22:49] <burek> Halexander9000, type ldconfig
[22:49] <Halexander9000> rainmaker1: /usr/local/bin/x264
[22:49] <burek> and try again with ffmpeg
[22:50] <Halexander9000> Same configure command like you told me, same error.
[22:51] <burek> let me think
[22:51] <Halexander9000> burek: Hold on. I'll try sudo ldconfig.
[22:51] <Halexander9000> burek: Don't worry.
[22:51] <burek> try this
[22:51] <burek> go back into x264 dir
[22:51] <burek> make uninstall
[22:51] <burek> make distclean
[22:52] <burek> ./configure --enable-shared --enable-static
[22:52] <Halexander9000> burek: hold on, please.
[22:52] <burek> make && sudo make install
[22:52] <burek> ok :)
[22:52] <burek> and ldconfig after that :D
[22:52] <Halexander9000> Sudo ldconfig did nothing.
[22:53] <burek> i think you might need sudo make uninstall too
[22:53] <burek> -too
[22:53] <burek> :)
[22:53] <Halexander9000> So, how do I go higher within the file structure?
[22:53] <Halexander9000> I tried cd /usr/local/bin/x264 but it says it's not a directory
[22:53] <burek> cd ..
[22:54] <burek> cd <space> <dot> <dot>
[22:54] <Halexander9000> I went as far as it could go. It still won't accept my cd /usr/local/bin/x264
[22:55] <burek> why would you go there
[22:55] <burek> where did you download x264 source
[22:55] <burek> go there
[22:55] <Halexander9000> Oh...
[22:55] <burek> sudo make uninstall; make distclean
[22:55] <Halexander9000> Ok ok.
[22:56] <burek> it might be a good idea to use git repos for x264 too, just to keep up with the latest version if you like
[22:57] <Halexander9000> So, I'll leave it at that and go do the same thing with x264 as I did with ffmpeg?
[22:57] <burek> just go 1 folder up
[22:57] <burek> remove x264 folder
[22:57] <burek> and downloaded tar.gz file
[22:57] <burek> and do this:
[22:57] <burek> git clone git://git.videolan.org/x264.git
[22:57] <burek> then cd x264
[22:57] <burek> ./configure --enable-static --enable-shared
[22:57] <burek> make; sudo make install
[22:58] <Halexander9000> Wait, I need to go two folders up, then up again so git downloads the subfolder into my user directory like ffmpeg.
[22:59] <burek> x264 doesnt have to be in the same place as ffmpeg
[22:59] <burek> you can put it wherever you like
[22:59] <Halexander9000> Why not? I like to keep things tidy.
[23:00] <lucas^> I'm confused, I have ffmpeg version 0.8.5.git-9719f25 on one machine, and it accepts -c as an option
[23:00] <lucas^> I have ffmpeg 0.8.9 on another machine, and it refuses to recognize -c
[23:00] <burek> lucas^, that's normal
[23:00] <burek> you probably have used repos on one of those machines
[23:00] <burek> to install ffmpeg
[23:00] <burek> (that one doesn't recognize -c)
[23:01] <burek> because it's a new option
[23:01] <lucas^> okay. how can I tell what sorts of options ffmpeg does recognize?
[23:01] <burek> ffmpeg --help ?
[23:03] <VooDooNOFX_> lucas^, define "options"
[23:04] <lucas^> well, I'd like to support both the recent git builds, and the builds most commonly found on various Linux distributions
[23:04] <burek> then use "deprecated" options
[23:05] <lucas^> apparently the newer builds reject options like -newaudio and such, preferring -map 0:a
[23:05] <burek> well, then it's obviously a model of the app that is changed
[23:05] <burek> so you can't really influence that
[23:05] <burek> maybe you could use grep with --help
[23:05] <burek> to detect what is what
[23:06] <lucas^> I guess that's what I'm going to have to do
[23:06] <burek> but.. if I were you I would create a specific version for a specific version of ffmpeg
[23:06] <lucas^> figured there'd be a changelog of what command-line versions were added when
[23:07] <lucas^> I intend to use this program on Windows as well as Linux/BSD, and most people on Windows will just fetch the latest binaries from zeranoe.com
[23:07] <burek> you are creating a wrapper?
[23:07] <lucas^> of sorts.
[23:08] <burek> well create diff versions of it :) say v1.1 is for ffmpeg until that date
[23:08] <burek> v1.2 is for ffmpeg of the newer date, etc
[23:08] <lucas^> unacceptable
[23:08] <lucas^> hell I'm keeping it all in one gigantic file just to avoid confusion of 'where do I put these other files' or 'which one do I run'
[23:09] <burek> i see
[23:09] <burek> well --help | grep :)
[23:10] <lucas^> one other question. -video_br, -video_crf apparently were deprecated long ago
[23:10] <lucas^> are there any boilerplate recommendations of what bitrate to pass to libx264 / libvpx?
[23:11] <burek> it gets even better
[23:11] <lucas^> for one-pass encoding
[23:11] <burek> as i told you, the model has completely changed as far as i can tell
[23:11] <burek> those params not only are not used anymore
[23:11] <burek> but new params are introduced, which are actually natural params for the given lib
[23:11] <burek> for example -vpreset is no more
[23:12] <lucas^> yeah, now it's just -pre
[23:12] <burek> it used files with options and stuff
[23:12] <burek> no
[23:12] <burek> not even that
[23:12] <burek> its -preset now
[23:12] <burek> and it gets the preset directly from x264
[23:12] <burek> its own presets, which you can list with x264 --help
[23:12] <burek> so, the model has changed a lot and i think you will have a really big headache soon :D
[23:13] <lucas^> well, ffmpeg 0.7.x doesn't even honor -video_br
[23:13] <burek> we will try to make a static build of ffmpeg
[23:14] <burek> with only GPL libs linked
[23:14] <burek> and make it something like "regular" or official download
[23:14] <lucas^> I wouldn't suppose there's a way to get version numbers of libx264, libvorbis, libfaac, etc. from a static build?
[23:14] <burek> and you might reference your wrapper to that
[23:14] <burek> why would you need that
[23:14] <lucas^> encoder tag in video metadata
[23:15] <burek> i dont get it
[23:15] <lucas^> my 'wrapper' also automatically tags video, and one of the tags is a list of the tools used to encode the video
[23:16] <burek> ok
[23:16] <burek> well we can version those static builds with the current date
[23:17] <Halexander9000> burek: In case you're wondering, the make command for ffmpeg is still processing. In other words, it's working so far.
[23:17] <lucas^> well, no big deal if there's no easy way, just curious
[23:17] <burek> Halexander9000, ok :)
[23:18] <burek> lucas^, Im just saying that this way you don't have to keep all those back compatibilities
[23:18] <burek> just change your script/wrapper as ffmpeg changes
[23:18] <burek> and on your download page just refer to those latest builds
[23:18] <burek> that way you are always safe
[23:19] <lucas^> the problem with that is that people don't generally like having to reinstall a new version of ffmpeg over the top of the one their distribution already includes
[23:19] <burek> this is not reinstallation, it's a static build
[23:19] <burek> like windows exe file
[23:20] <burek> download and run
[23:21] <lucas^> that could work
[23:21] <lucas^> I'll go with that, thanks for the suggestion. will make things much easier
[23:21] <burek> i agree :)
[23:29] <burek> Halexander9000, are you alive :)
[23:29] <Halexander9000> Yes.
[23:29] <Halexander9000> It's still making the thing...
[23:29] <burek> how does it progress?
[23:30] <burek> hm, on my machine it finished in 4 minutes
[23:30] <Halexander9000> Do keep in mind that this is a 2008 netbook. A stock ASUS EEE PC 904 HD.
[23:30] <burek> ok :)
[23:32] <Halexander9000> It's a 1Ghz, 1GB, and Intel onboard video chip computer.
[23:34] <burek> ok :)
[23:34] <burek> it will take around 10-15 minutes :)
[23:34] <Halexander9000> It's getting there...
[23:38] <Halexander9000> It's at the s category.
[23:42] <Halexander9000> v...
[23:42] <burek> :)
[23:42] <burek> :beer: :)
[23:42] <Halexander9000> :hotcocoa: :D
[23:43] <burek> or that :)
[23:45] <Christophe_v_E> Hi, I have no experience at all with FFmpeg but I was told it could serve to my purpose. I'm trying to split up .flv files located in a folder into pieces between 6 to 13 seconds. In a seperate action/trigger these would be randomly put together to create a 2 minute movie file (.flv, .avi, .mov) - doesn't matter. I understand it has something to do with using command lines .. however I'm having a hard time reading the manual t
[23:45] <Halexander9000> x...
[23:46] <Halexander9000> It cuts off after "hard time reading the manual t..."
[23:47] <Christophe_v_E> .. however I'm having a hard time reading the manual to understand how it works at all.          - I really don't understand how to get started with it.
[23:49] <Christophe_v_E> There's no specific language this has to be done with. It's a small school project I decided to start, I'm not getting any grades on it. (Just to say I'm not trying to leech anybody for grades)
[23:49] <VooDooNOFX_> Christophe_v_E, you can do this in almost any language you're comfortable with, including bash/windows shell scripting
[23:51] <Christophe_v_E> Yes, but I don't understand how I even run everythin
[23:51] <Christophe_v_E> g
[23:52] <Christophe_v_E> All I have right now is what I downloaded yesterday. I don't know how to set it up let alone make it do anything. I'd love some pointers on that :s
[23:53] <Halexander9000> burek: Now I'mma "sudo make install" this think.
[23:53] <Halexander9000> Or, thing*
[23:54] <burek> :)
[23:55] <Halexander9000> burek: I think I'm done.
[23:55] <Halexander9000> burek: Now what?
[23:55] <burek> Christophe_v_E, just a little bit of patience please
[23:56] <burek> Halexander9000, now
[23:56] <Christophe_v_E> Certainly, I'm not trying to push :)
[23:56] <burek> does it work
[23:56] <burek> did you try ffmpeg
[23:56] <Halexander9000> burek: Not yet. I'll scroll back an look at the commands again. Hold on.
[23:56] <Halexander9000> and*
[23:56] <burek> just type ffmpeg
[23:56] <burek> does it work
[23:57] <burek> Christophe_v_E, you can run an ffmpeg command like this
[23:57] <burek> ffmpeg -i input.flv -ss 10 -t 20 -vcodec copy -vcodec copy output.flv
[23:57] <burek> that will produce output file output.flv
[23:57] <burek> which starts at 10th second of the original
[23:58] <burek> and has a duration of 20 seconds (until 30th second)
[23:58] <burek> so you basically need a loop to change -ss param and output file name
[23:58] <Halexander9000> burek: ffmpeg: error while loading shared libraries: libx264.so.120: cannot open shared object file: No such file or directory
[23:58] <Christophe_v_E> I see, and I would put this code in my CMD? I'm running Windows.
[23:58] <burek> ldconfig
[23:59] <Halexander9000> burek: On it.
[23:59] <burek> Christophe_v_E, Start - run - cmd
[23:59] <burek> to open command prompt
[23:59] <burek> navigate to ffmpeg directory using CD command
[23:59] <burek> http://www.cs.princeton.edu/courses/archive/spr05/cos126/cmd-prompt.html
[23:59] <burek> if you are new to the command prompt
[00:00] --- Wed Feb 29 2012


More information about the Ffmpeg-devel-irc mailing list