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

burek burek021 at gmail.com
Thu Nov 14 02:05:01 CET 2013


[00:03] <llogan> pisto: does it make a difference if you change -r to -framerate? can you rule out that playback is the issue as opposed to the actual file?
[00:04] <pisto> how would I rule that out? I'm playing the file with vlc, and that works, usually
[00:05] <llogan> you can try re-encoding the lossless output to something easy for it to play
[00:05] <llogan> if it is also out of sync that my rule out playback issues
[00:06] <llogan> you may also want to test git master to see if you're experiencing a bug
[00:07] <llogan> does the lossless file play as expected with ffplay?
[00:07] <llogan> several things to test here
[00:08] <llogan> https://trac.ffmpeg.org/ticket/3045#comment:7+
[00:08] <llogan> https://trac.ffmpeg.org/ticket/3045#comment:7
[00:09] <pisto> uncompressed, out of sync in ffplay too
[00:09] <pisto> comrpessing now
[00:09] <ac_slater> Hey guys, I'd like to take some mp4 and dump a .264 file from it. Some software I'm writing requires a file with just h.264 frame dumps. Any help?
[00:10] <pisto> the synchronization change every time I create this test file. sometimes it can happen that it is in sync too
[00:10] <pisto> the two audio tracks desync independently
[00:11] <pisto> once the bad/good sync is fixed, it doesn't appear to change
[00:11] <pisto> and yes, it's out of sync with the compressed file too
[00:12] <pisto> could that be a pulseaudio bug?
[00:12] <dbro> ac_slater: ffmpeg -i input.mp4 -vcodec copy -vbsf h264_mp4toannexb -an of.h264
[00:12] <dbro> of.h264 is output, of course
[00:13] <ac_slater> dionoea: hanks!
[00:13] <ac_slater> dbro: I mean ^
[00:15] <ac_slater> What if the input is a .mov ...
[00:17] <llogan> pisto: what if you record video and audio as two separate ffmpeg processes and mux the outputs
[00:17] <llogan> or maybe 3 processes
[00:17] <pisto> ugh, then I would have to take care of starting them at the same time
[00:18] <llogan> use a script
[00:19] <llogan> or see if a reduced -framerate and/or -video_size makes a difference
[04:19] <Zeranoe> How could I take a 720p video and convert it down to 320x240 with a letterbox to maintain the aspect? I tried pad="ih*4/3:ih:(ow-iw)/2:(oh-ih)/2" but that didnt work
[04:50] <llogan> Zeranoe: you want 4:3 dar?
[04:51] <Zeranoe> llogan: Yes, maybe pixel too. I need the letterbox to be burned in
[04:52] <ramiro> hi
[04:52] <Zeranoe> ramiro: Greetings
[04:52] <llogan> maybe "scale=320:-1,pad=0:240:0:(oh-ih)/2" does what you want?
[04:53] <ramiro> what codec gives the best multithreaded decoding in FFmpeg?
[04:53] <ramiro> Zeranoe: on i686 it no longer segfaults, haven't looked into why x86_64 segfaulted
[04:53] <Zeranoe> ramiro: Weird, hope it was unrelated to the script
[04:55] <Zeranoe> llogan: It looks right
[04:56] <Zeranoe> ramiro: I'm not sure if it's decoding, but mjpeg has out preformed everything else I've tried
[04:57] <llogan> ramiro: i'm not sure, but you can test with null format
[04:57] <llogan> http://ffmpeg.org/ffmpeg-formats.html#null
[05:29] <seg> Hi there. I am currently using this cmd (http://pastebin.com/asw1J6r5)to convert home videos to digital format. Can someone with more ffmpeg experience give me some hints on how I could increase bitrate/quality?
[05:33] <relaxed> seg: ffmpeg -f alsa -i hw:1 -f video4linux2 -video_size 720x576 -i /dev/video0 -filter:v yadif -c:v libx264 -crf 16 -c:a flac output.mkv
[05:33] <seg> relaxed, great, thanks a lot--i'll try that.
[05:34] <relaxed> that will deinterlace, use h264 for the video which should be visually lossless, and flac for the audio which is lossless
[05:35] <seg> fantastic. thank you relaxed
[05:39] <relaxed> you're welcome. add "-preset veryslow" for better video compression
[06:16] <Elijah__> Hi all, having trouble building ffmpeg 2.1.  Says it can't find libx264, but I can see the library in /usr/lib
[06:16] <Elijah__> config.log --> http://pastebin.com/1ig3Jf6T
[06:16] <Elijah__> any ideas..?
[06:18] <relaxed> did you install libx264-dev?
[06:19] <relaxed> you need --extra-ldflags="-ldl"
[06:19] <Elijah__> Built x264 from one of the latest snapshots
[06:20] <Elijah__> hmm ok I'll try that...
[06:20] <Elijah__> darn, still no luck
[06:21] <Elijah__> where does it look for the x264 headers?  Or does it only link against the library
[06:21] <relaxed> where did you install libx264?
[06:22] <Elijah__> The library is in /usr/lib, the binary is in /usr/bin
[06:23] <relaxed> use used --prefix=/usr when compiling x264?
[06:23] <Elijah__> yeah
[06:23] <Elijah__> I guess it defaults to /usr/local/lib as I recall, and I read somewhere someone had a hard time getting ffmpeg to find it there lol
[06:25] <llogan> which distro?
[06:25] <relaxed> --extra-ldflags="-ldl -L/usr/lib" -extra-cflags="-I/usr/include" --enable-libx264 --enable-gpl
[06:25] <Elijah__> ubuntu server 12.04
[06:25] <relaxed> it's frowned upon to compile software to /usr
[06:25] <llogan> http://trac.ffmpeg.org/wiki/UbuntuCompilationGuide
[06:26] <Elijah__> Yeah, I suppose.. just figured it's easier than telling everything else you want to link against it where to look
[06:26] <Elijah__> still no luck with those switches though
[06:26] <relaxed> dpkg -l "*x264*" | grep ^ii
[06:27] <Elijah__> ii  libx264-120                          2:0.120.2151+gita3f4407-2    x264 video coding library
[06:27] <relaxed> that version is old.
[06:27] <Elijah__> Hmm, guess that should be uninstalled?
[06:28] <relaxed> word
[06:28] <relaxed> but since you compiled another version to the same location...
[06:29] <Elijah__> Yeah, oops
[06:30] <Elijah__> I know just enough about this to be dangerous, sorry :-)
[06:30] <relaxed> sometimes we must learn the hard way.
[06:31] <relaxed> apt-get remove it, then run: find /usr -name "*x264*"
[06:31] <relaxed> and remove the rest of the cruft by hand
[06:31] <relaxed> THEN follow the compile guide llogan pasted
[06:32] <Elijah__> Ok, so the remaining things it found would have been put there my my install from the source...
[06:32] <relaxed> correct
[06:32] <Elijah__> and then the *correct* way is to install to a local dir, and link everything else against that?
[06:34] <relaxed> correct. Run: sudo echo "/usr/local/lib" >> /etc/ld.so.conf.d/local.conf
[06:35] <relaxed> because by default ubuntu doesn't search for libs there
[06:35] <Elijah__> Right... ok yeah I had tried setting the LD_LIBRARY_PATH env variable earlier
[06:35] <relaxed> or /usr/local
[06:36] <Elijah__> so it is OK to install compiles to /usr/local
[06:36] <relaxed> Yes. /usr/local is good for things needed globally.
[06:37] <Elijah__> Yay, that makes sense
[06:42] <Elijah__> If you tell it --prefix=/usr/local will it put the libs and bins in the correct folders, or do you need to specify --libdir and --bindir explicitly?
[06:43] <relaxed> just --prefix=/usr/local
[06:44] <relaxed> which is the default prefix, by the way
[06:45] <Elijah__> ok.  And then we'll see if ffmpeg can find it this time
[06:47] <Elijah__> --extra-ldflags="-ldl -L/usr/local/lib" --extra-cflags="-I/usr/local/include" --enable-libx264 --enable-gpl
[06:47] <Elijah__> so I used that, it's still not finding it though :\
[06:47] <relaxed> make distclean
[06:47] <relaxed> and try again
[06:48] <Elijah__> from... libx264?  or ffmpeg
[06:48] <relaxed> ffmpeg
[06:48] <Elijah__> k
[06:48] <Elijah__> still no joy
[06:49] <relaxed> pastebin the output of: find /usr -name "*x264*"
[06:50] <Elijah__> http://pastebin.com/q9JGVkKi
[06:50] <relaxed> x264 --version
[06:51] <Elijah__> http://pastebin.com/uMfAsZgz
[06:52] <relaxed> the latest git is 0.140.something
[06:52] <Elijah__> Hmm, I guess I'll try that, I had grabbed a snapshot from like nov 1 or so
[06:52] <Elijah__> let's try the latest git
[06:53] <relaxed> are you floowing the guide?
[06:53] <relaxed> following*
[06:53] <relaxed> http://trac.ffmpeg.org/wiki/UbuntuCompilationGuide
[06:55] <Elijah__> Well, aside from not getting the latest git :-)
[07:03] <Elijah__> yay, got it
[07:03] <Elijah__> ./configure --prefix=/usr/local --enable-libx264 --enable-gpl --extra-cflags="-I/usr/local/include" --extra-ldflags="-L/usr/local/lib" --bindir="/usr/local/bin" --extra-libs="-ldl"
[07:03] <Elijah__> And I had to set that environment variable, PKG_CONFIG_PATH
[07:05] <Elijah__> thankyou :)
[07:25] <llogan> i forgot about that
[07:31] <kriskropd> when i run something like 'ffmpeg -ss 1234 -t 30 -i video.in.mkv video.out.mkv' it seems to always re-encode everything and ruin the quality - is it possible to pass an argument that just retains the original video and audio and simply cuts the clip as specified?
[07:44] <llogan> kriskropd: http://ffmpeg.org/ffmpeg.html#Stream-copy
[07:44] <llogan> "-map 0 -c copy"
[07:48] <llogan> and -t is an output option
[07:50] <kriskropd> llogan: thanks :)
[08:13] <HzD_Byte> ehlo
[08:14] <spaam> 502 Command not implemented
[08:55] <frogonwheels_> I'm expecting this is a FAQ -  I'm using avconv on ubuntu, and  '-af' switch is not accepted (I wanted  -af volume=-3dB   ) - should I just compile myself, is there a ppa?
[08:57] <relaxed> frogonwheels_: avconv is from the libav project, #libav
[09:00] <ffmpeg766> opus not found while installing ffmpeg , although already installed
[09:01] <JEEB> check config.log
[09:01] <JEEB> and make sure you have installed development headers and libraries as well
[09:01] <frogonwheels_> relaxed: ah thanks.
[09:02] <ffmpeg766> all headers and libraries properly installed
[09:02] <JEEB> then see config.log as I said
[09:03] <ffmpeg766> is it config.5ssl.gz?
[09:03] <JEEB> what...
[09:03] <ffmpeg766> where can i find config.log
[09:03] <JEEB> it's just config.log where you ran the configure script
[09:03] <JEEB> if you used some automated compilation system, good luck and have fun
[09:03] <JEEB> read your fine documentation
[09:04] <ffmpeg766> ok,so many lines in it..what to look for?
[09:04] <JEEB> opus?
[09:05] <ffmpeg766> last line: "ERROR: opus not found"
[09:05] <ffmpeg766> Package opus was not found in the pkg-config search path
[09:09] <relaxed> ffmpeg766: where did you install libopus?
[09:13] <ffmpeg766> ~/ffmpeg_build
[09:14] <ffmpeg766> PKG_CONFIG_PATH=$HOME/ffmpeg_build/lib/pkgconfig
[09:18] <ffmpeg766> problem solved, xt problem has come
[10:43] <prkhr4u> how to play live stream from ip camera using ffmpeg , i only have its URL,ffmpeg installed already
[10:55] <prkhr4u> anyone there?
[10:55] <zap0> yes
[10:56] <prkhr4u> need help..pl see my previous post
[14:54] <YamakasY> hi guys!
[14:54] <YamakasY> great that there is a channel for this great software
[14:55] <YamakasY> I wonder, is it possible to optimize/re-encode a .flv ?
[14:55] <EchoDev> FLV is just the container
[14:55] <EchoDev> You can always compress the video and audio tho
[14:56] <EchoDev> If you are good with it you might be able to decrease the filesize without too much loss of detail
[14:56] <EchoDev> or you can increase compatability with devices by putting it in a different container
[14:56] <EchoDev> What do you want to do with it?
[15:04] <YamakasY> EchoDev: the issue is that in combination with Red5 server not all movies are recorded well, my code is OK
[15:05] <YamakasY> so I need to cleanup video's
[15:05] <YamakasY> "cleanup"
[15:06] <EchoDev> define cleanup
[15:06] <EchoDev> also define recorded well
[15:07] <YamakasY> EchoDev: my actual movie is sometimes shorter than my player shows to me
[15:07] <EchoDev> YamakasY and you think there is more data than their should be?
[15:07] <EchoDev> there*
[15:07] <YamakasY> EchoDev: and if there are missing or truncated frames I want to see if it "fixes" it... some dev told me he uses it as a workaround
[15:08] <YamakasY> EchoDev: no, when a movie shows in a player 1 min sometimes it's just 40 sec
[15:08] <EchoDev> Hmm I don't know anything about that :> so I can't help you :)
[15:08] <YamakasY> I also have a problem I think with the startbit of the movie because it can happen in front of a movie too
[15:10] <YamakasY> EchoDev: I doubt it :)
[15:10] <YamakasY> what could I do to run a movie.flv > movie_2.flv ?
[15:13] <YamakasY> what I get now is" Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) -> 25.00 (50/2)
[15:18] <tiksa> Does anyone know how can you use same filter_complex but output multiple inputs with different sizes? Thanks.
[15:19] <tiksa> if I just index the outputs, the filter_complex is applied only to the first output.
[16:20] <DrakaSAN> Hi, I am on Ubuntu Server 12.04 LTS, I m trying to install FFMpeg from source (since ubuntu repositories give the fake ffmpeg). In the way I ve installed (all from source) yasm, x264 codec (with --enable-shared), and ffmpeg, but I m now stuck at this error:
[16:20] <DrakaSAN> error while loading shared libraries: libswresample.so.0
[16:21] <DrakaSAN> which indeed isn t in /usr/lib, but I found libswresample.a in /usr/local/lib
[16:22] <JEEB> DrakaSAN, did you run ldconfig properly?
[16:23] <JEEB> also if you built ffmpeg just for ffmpeg (the cli app), then I have no idea why you made your life miserable to yourself and built shared :)
[16:23] <DrakaSAN> I ran it after installed x264 codec, but I don t really know what does ldconfig
[16:23] <JEEB> it indexes or whatever shared libraries :P
[16:24] <DrakaSAN> I built the codec shared, ffmpeg was built only with --enable-gpl and --enable-x264
[16:24] <DrakaSAN> ah, important so
[16:24] <JEEB> it most definitely was not built static if you got a dot-so
[16:24] <JEEB> that's a shared library
[16:24] <JEEB> or you have derped something up :P
[16:24] <JEEB> as in, have a previous shared compilation in there or something
[16:25] <DrakaSAN> probably both >_>
[16:26] <DrakaSAN> I ll remake ffmpeg to be sure
[16:26] <JEEB> clean your crap our
[16:26] <JEEB> *out
[16:27] <JEEB> with out-of-tree builds it's pretty easy to reset the situation as you're no longer inside the source tree
[16:27] <DrakaSAN> is there a way to uninstall everything automatically? (apt-get remove but for build from sources app)?
[16:28] <JEEB> you didn't install it manually either :P thankfully the default prefix is /usr/local/* and you should generally be rather capable of cleaning that up
[16:28] <JEEB> uhh, s/manually/automatically with package management/
[16:30] <DrakaSAN> make install isn t supposed to install what have been compile by previous make command? (I m searching in /usr/local what I ve done in it)
[16:34] <JEEB> DrakaSAN, yes -- but in general you should never expect an uninstallation command, or expect a `make uninstall` command to work
[16:34] <JEEB> because such things have no idea of knowing what they're removing or if that what is being removed is what you have copied over
[16:35] <DrakaSAN> but it give a excuse to blame someone else if it f... everything up : p
[16:36] <DrakaSAN> I m on a VM so I can make mistakes at least
[16:36] <DrakaSAN> (hopefully)
[16:38] <DrakaSAN> should I use --enable-static and --enable-shared?
[16:38] <DrakaSAN> (for x264 codec)
[16:39] <JEEB> just create static libraries unless you are planning to build multiple things that link into something
[16:39] <JEEB> it's just simpler
[16:39] <JEEB> thus, --enable-static only
[16:39] <JEEB> also make sure you have cleaned your build trees, which most probably are the same as your source tree right now :P
[16:40] <DrakaSAN> I m planning to build ffmpeg with it so...?
[16:40] <DrakaSAN> yes, I ve removed each source folder and extract them again
[16:40] <JEEB> if you are just gonna have one thing link to it
[16:40] <JEEB> then just use static
[16:41] <JEEB> I mean, if you had a dozen things basing on that, I might have said that shared is better because it doesn't copy the library into every binary that links to it :P
[16:42] <DrakaSAN> static is good, the vm will only serve as ffmpeg test base
[16:42] <DrakaSAN> so there will be nothing else but ffmpeg : )
[16:45] <narffy> i have a question on connecting to a rtsp stream on an ip camera
[16:46] <narffy> is there any way to tell ffmpeg not to send a SETUP command to one of the tracks that the camera returns with DESCRIBE?
[17:18] <JEEB> DrakaSAN, stop pm'ing me you dimwit. thank you
[22:13] <fsimonce> hi all, do you know if there's a way to filter out frames with non-monotonic pts? (any filter?)
[23:01] <llogan> fsimonce: maybe you could do something with select and the pts or t options.
[23:01] <llogan> http://ffmpeg.org/ffmpeg-filters.html#select_002c-aselect
[23:02] <fsimonce> llogan, yes, I looked at that but I think I need something smart(er)... I need this filter in the first place because the mpegts stream is corrupted... and therefore some forward jumps might be allowed
[23:03] <fsimonce> llogan, since forward jumps are allowed... what you want to do is to "take back" a frame that you already submitted since you found later on a frame with a pts that is lower
[23:04] <fsimonce> llogan, or maybe I am just over-complicating the issue
[23:05] <llogan> i don't know what to suggest
[23:05] <fsimonce> ok thanks anyway, it's a tricky issue I suppose
[00:00] --- Thu Nov 14 2013


More information about the Ffmpeg-devel-irc mailing list