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

burek burek021 at gmail.com
Wed Dec 7 02:05:02 CET 2011


[01:01] <bbeattie> is there any way to extract an m4a's coverart with either ffmpeg or ffprobe? Google doesn't give something so I'm guessing no but before I give up or start digging through code I thought I'd see if anyone knew off the top of their head first.
[01:02] <bbeattie> m4a/aac
[02:42] <raven> ffmpeg where to find .ffpresets files? x264 presets (veryslow, ...) missing
[02:55] <relaxed> raven: ffmpeg now uses libx264 internal presets with -preset.
[02:56] <relaxed> So you don't need the *ffpresets. Run `ffmpeg -h | less` and scroll down to "libx264 AVOptions:"
[02:57] <raven> relaxed, ok tnx
[03:42] <rynop> what is the best (fastest in terms of speed/min resources) way to add a png overlay (watermark) when encoding a video from 1 format to another?
[03:43] <rynop> im piping output of glc-play to mencoder, wondering if i can hook in-between those 2, and not have to do a 2nd pass just to add watermark
[04:23] <relaxed> why are you using mencoder?
[04:24] <relaxed> rynop: glc-play -> ffmpeg (adding watermark -> output
[04:25] <rynop> relaxed, only reason i'm using mencoder is to get access to the gamma (eq2=) option. I'm a total ffmpeg noob, couldn't figure out how to do what i needed with straight ffmpeg.
[04:26] <relaxed> I believe you can use any mplayer filter in ffmpeg with "-vf mp:$filtername=options".
[04:27] <rynop> ok cool. is the benefit of going right to ffmpeg that i'll encode faster?
[04:27] <relaxed> yes, see http://ffmpeg.org/libavfilter.html#mp
[04:27] <relaxed> eq2 is listed
[04:27] <rynop> coo
[04:27] <rynop> thx
[04:28] <relaxed> The benefit is mencoder is unmaintained, buggy and can't mux into any recent containers.
[04:28] <rynop> okay thanks.
[04:31] <relaxed> it's -vf mp=$filtername=options
[04:32] <rynop> relaxed, ok thanks
[04:34] <rynop> relaxed, would you mind taking a look at http://pastebin.com/Emk0dSw8 when you get a chance. its 2 lines, want to see if the ffmpeg cmd i created is equivalent to the mencoder one i had before...
[04:35] <rynop> if ur not familiar with mencoder then nevermind
[04:36] <relaxed> I am. What codec do you want for the output?
[04:36] <hi117> for video editing, do i want to work with a lossless codec then transcode back to lossy or keep it lossy? the source file is already lossy
[04:36] <rynop> hah so again im a freaking noob w/ this stuff. I just want to output an mp4 for youtube. Was thinking h264...
[04:37] <rynop> relaxed, unless u have a better recommendation (I dont really care about quality that much). Its a 1280x720, replay of a video game.
[04:38] <rynop> I'm gonna be encoding alot of these .glc files, so want to be able to encode them pretty fast.
[04:38] <rynop> but not be effin huge cuz i have to upload to youtube (or another vid hosting site i find)
[04:39] <relaxed> try glc-play "${filename}" -o - -y 1 | ffmpeg -i - -an -vcodec libx264 -preset fast -crf 18 -vf mp=eq2=1.3 -y "${OUT}"
[04:39] <rynop> i'll give it a try, thank you so much.
[04:40] <relaxed> slower presets give you better the compression. lower the crf value to increase quality
[04:42] <relaxed> hi117: If the source is lossless then stick with lossless. If it's lossy it doesn't make much difference, right?
[04:43] <rynop> cool. as for the watermark overlay, is doing it the -vf "movie=..." the right path to go down?
[04:43] <relaxed> rynop: add -threads 0 after -vcodec libx264
[04:43] <hi117> ok ty, i was wondering if repeated encodes would mess with quality much
[04:43] <rynop> relaxed, ok
[04:44] <hi117> heh, im playing with watermarks too right now
[04:44] <rynop> hi117, if i figure it out (i just want to add a single transparent .png to every frame), i'll post back here.
[04:44] <relaxed> hi117: I mean, as long as you can import the lossy format. If not, then lossy -> lossless for the import makes sense.
[04:45] <hi117> rynop i believe its the overlay filter
[04:45] <hi117> http://ffmpeg.org/libavfilter.html#overlay-1
[04:45] <rynop> thanks
[04:46] <hi117> np
[04:46] <hi117> im using to to cover my name in a video i have :D
[04:46] <rynop> haah im kinda doing the opposite :)
[04:46] <hi117> such a useful filter :P
[04:47] <hi117> also does anyone know if the 'transparent' color is alpha or 808080, i heard in a video it had to be 808080 gray
[04:48] <rynop> relaxed, when i run that ffmpeg command i get "Unrecognized option 'preset'" - that cuz im on an old ffmpeg ver?(0.6-4)
[04:49] <relaxed> rynop: yes. replace it with -vpre fast
[04:50] <rynop> relaxed, thx. same error now with -vf . I should prob just upgrade ffmpeg. Was trying to just use pkgs in ubuntu and avoid compile.
[04:51] <relaxed> rynop: 64bit linux?
[04:51] <rynop> y
[04:52] <relaxed> I have 64bit linux builds. https://sites.google.com/site/linuxencoding/builds
[04:53] <relaxed> or there's https://sites.google.com/site/linuxencoding/install-script
[04:54] <rynop> relaxed, awesome
[04:58] <sam2> hi guys, is there  #ffmpeg-devel?
[04:59] <relaxed> indeed there is
[04:59] <sam2> thanks  relaxed 
[04:59] <hi117> ty, works like a charm
[05:00] <sam2>  hi all, i want to build ffmpeg invs 2010 ,is there a doc?
[05:00] <relaxed> what is invs?
[05:09] <hi117> how do i join videos? i tried the mpg method mentioned in the faq but the intermediate video is very pixelated....
[05:10] <relaxed> ffmpeg -i concat:1.mpg\|2.mpg -vcodec copy -acodec copy output
[05:11] <hi117> oh ty they improved on the very bad method in the faq
[05:11] <rynop> relaxed, thx for this static build. its great. if project im working on ever makes $ i'll be donating for sure.
[05:12] <relaxed> you're welcome
[05:13] <hi117> someone should probably change that, mpg isnt compatible with h264 and quality takes a real hit converting to and fro
[05:14] <hi117> like 720p video turns into cheap cellphone quality
[05:17] <hi117> er, nvm
[05:17] <hi117> i forgot to add the -sameq
[05:22] <rynop> hi117, that overlay worked like a charm. thx.
[05:22] <hi117> np :3
[05:50] <alyawn> I feel like I'm missing something. Is there a way to determine the src video framerate from within a filter?
[06:10] <relaxed> alyawn: you can get it using `ffprobe -show_streams INPUT`
[06:10] <relaxed> example, r_frame_rate=24000/1001
[06:11] <alyawn> thanks relaxed, but I'm trying to get the rate from within a filter I'm writing
[06:12] <alyawn> I have access to the time_base, but it's usually set to 1/1000000
[11:02] <kriegerod> hi. Anyone from libavcodec hackers, could you please help me investigate the problem i reported here http://trac.videolan.org/vlc/ticket/5620
[11:02] <kriegerod> The specific broken media file triggers abort() in libavcodec
[11:02] <kriegerod> in last ffmpeg release, 0.8.7
[11:03] <kriegerod> when used through vlc
[13:42] <zawapete> hi
[13:47] <zawapete> pastebin links:
[13:47] <zawapete> http://pastebin.com/cgTqSC91 and http://pastebin.com/K3FSNp37
[13:48] <zawapete> i've the macports build of 0.8.5.git-38a444e on a macpro
[13:49] <zawapete> and i built the 0.8.5 tag checkout from git natively on an armv5te (synology 410j)
[13:49] <zawapete> as you can see from the link the arm version miss -c/-codec cli param
[13:50] <zawapete> i need "pure transmuxing", just to copy streams from a format to another, supported by my dlna client
[13:53] <zawapete> i tried obtaining the same on the synology using -vcodec copy -acodec copy -scodec copy, but then i get a "Number of stream maps must match number of output streams" error
[13:54] <zawapete> i'd link to start ffmpeg with autodetected full streaming mapping as transcoding script from mediatomb
[13:54] <zawapete> *i'd like to
[13:54] <kriegerod> zawapete: what about just '-vcodec copy -acodec copy', without '-scodec copy'
[13:54] <zawapete> same error kriegerod
[13:55] <kriegerod> could you give your full command with '-vcodec copy -acodec copy', sample file piece, and output of command?
[13:56] <zawapete> with -map 0 all works fine
[13:56] <zawapete> *without -map 0, i mean
[13:56] <kriegerod> and you certainly need -map?
[13:56] <zawapete> as far as i read from the man it's the only way to map all the input streams
[13:57] <zawapete> if they're more the one for type (video/audio/subs)
[13:57] <kriegerod> by default it'll save all streams
[13:57] <kriegerod> ah
[13:57] <kriegerod> not sure then
[13:58] <zawapete> if i can't make -map 0 work i have to write a bash script to parse the input streams and then launch ffmpeg with the needed params
[13:58] <zawapete> i'd like to avoid that
[13:58] <zawapete> ;)
[13:59] <kriegerod> strange. just tested -map0 -vcodec copy -acodec copy with file that has two audio streams. worked
[13:59] <kriegerod> ffmpeg 0.8.7 from git
[14:01] <zawapete> which platform?
[14:04] <zawapete> on mac it works for me also
[15:07] <chrome> michaelni: Hello! I am a GCI student.. Would it be possible for you to give me more details about this task? http://goo.gl/hV2JY Thank you!
[15:13] <ubitux> oh that's a nice task :)
[15:17] <chrome> ubitux: Is it so hard to find someone from ISO willing to provide specifications for free? (They are indeed expensive...)
[15:18] <ubitux> i guess it requires some special authorizations from a high level
[15:18] <ubitux> so the person you might contact will need to negociate for you with the person able to give the "ok"
[15:19] <ubitux> i never tried myself though, so this is just some guessing
[15:22] <chrome> ubitux: thanks for your suggestions. I might try to do this.. but it's rather hard to obtain an authorization from a high level.. 
[15:23] <ubitux> do you know someone working there?
[15:23] <ubitux> or someone who know someone who ...
[15:24] <chrome> it's something along someone who knows someone who.. 
[15:25] <chrome> would it hurt to just contact them directly (by phone, e-mail)? or that's just impossible..
[15:26] <ubitux> i can't say myself
[15:26] <ubitux> btw, you should join #ffmpeg-devel
[15:27] <ubitux> it's somewhat related to ffmpeg dev :)
[15:27] <chrome> oh, ok.. i've tried #ffmpegdev, but it seems rather empty(?)
[15:28] <ubitux> it was an old special channel
[15:28] <ubitux> #ffmpeg-devel is the official one
[15:36] <twid> ffplay  example.avi  gitve error Header Damaged.... what does it mean by that?  thx...
[15:54] <hi117> hello, im trying to add audio to a video, this is a pastebin of the command run and the output http://pastebin.com/w6XuxqBz
[16:19] <kuberan> Got this error when I ran FFMPEG http://pastebin.com/h284fkTE
[16:19] <kuberan> can somebody help
[16:19] <kuberan> WARNING: The bitrate parameter is set too low. It takes bits/s as argument, not kbits/s
[16:19] <kuberan> Unknown encoder 'libfaac'
[16:22] <hi117> can you post the output of ffmpeg -codecs?
[16:23] <kuberan> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2, Copyright (c) 2000-2009 Fabrice Bellard, et al.
[16:23] <kuberan>   configuration: --extra-version=4:0.5.1-1ubuntu1.2 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --disable-stripping --disable-vhook --enable-runtime-cpudetect --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
[16:23] <kuberan>   libavutil     49.15. 0 / 49.15. 0
[16:23] <kuberan>   libavcodec    52.20. 1 / 52.20. 1
[16:23] <kuberan>   libavformat   52.31. 0 / 52.31. 0
[16:23] <kuberan>   libavdevice   52. 1. 0 / 52. 1. 0
[16:23] <kuberan>   libavfilter    0. 4. 0 /  0. 4. 0
[16:23] <kuberan>   libswscale     0. 7. 1 /  0. 7. 1
[16:23] <kuberan>   libpostproc   51. 2. 0 / 51. 2. 0
[16:23] <kuberan>   built on Sep 16 2011 17:08:44, gcc: 4.4.3
[16:23] <kuberan> ffmpeg: missing argument for option '-codecs'
[16:23] <kuberan> sorry pasted it here.
[16:24] <hi117> .... it should print something like this: http://pastebin.com/f21yTHGm
[16:27] <kuberan> so whatz the issue ?
[16:29] <hi117> i dont think you have faac installed
[16:30] <kuberan> ok i ll check
[16:34] <iive> just look at the year... soon it would be 3 years old :P
[16:41] <kuberan> iive: are you talking to me ?
[16:42] <kuberan> this is the package that is available as a part of bitnami EC2 AMI
[16:44] <kuberan> iive: built on Sep 16 2011 17:08:44, gcc: 4.4.3
[16:46] <iive> check the copyright... you can rebuild the source every day and it won't make it any newer.
[16:46] <iive> it won't fix a bug and won't add a single feature.
[16:49] <kuberan> makes sense :)
[16:49] <kuberan> FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1.2
[16:50] <kuberan> What is the latest version ?
[16:50] <ubitux> 0.8.7
[16:51] <kuberan> great.
[16:51] <kuberan> I will download and build it then.
[16:55] <kuberan> To support conversion of avi,mov,wmv,flv,mpg,mpe,mpeg,3gp,mp4 files to FLV.. what is the ideal config script ?
[17:09] <kuberan> anybody there to help ?
[17:15] <JEEB> kuberan, note: flv is a container
[17:16] <kuberan> Does that mean there are difference encodings for FLV itself ?
[17:16] <JEEB> the contents of some of those things you've mentioned can be put into flv as-is
[17:16] <JEEB> yes, you can put multiple different things into flv >_>
[17:16] <hi117> JEEB why does ffmpeg -i videoM.mkv -i audio.aac -acodec copy -vcodec copy videoC.mkv fail?
[17:17] <JEEB> no idea
[17:17] <JEEB> I usually use mkvmerge for matroska muxing anyways
[17:17] <JEEB> VP62, that old old H.263 sorenson thing, H.264 at the very least video wise > kuberan 
[17:17] <hi117> says  Application provided invalid, non monotonically increasing dts to muxer in stream
[17:17] <kuberan> But still to make those conversions, I can use FLV rite ?
[17:17] <JEEB> ...
[17:17] <kuberan> So for FFMPEG to support all those conversions what is my ideal config script
[17:18] <kuberan> I mean to make those conversions I can use FFMPEG rite ?
[17:18] <JEEB> you usually want the output to be of single type
[17:18] <JEEB> you've set the container
[17:18] <JEEB> now set video and audio tracks' formats
[17:18] <hi117> aac....
[17:18] <hi117> and h264
[17:19] <JEEB> hi117, he _might_ have some dumb reason to use something older, not like we know :V And might be that even he doesn't know
[17:19] <JEEB> thus, let's make him think a bit first shall we
[17:19] <hi117> :3
[17:19] <hi117> forums says its an ancient issue
[17:19] <kuberan> ??
[17:20] <hi117> ty JEEB, mkvmerge worked
[17:20] <JEEB> unsurprisingly
[17:20] <hi117> :3
[17:20] <JEEB> kuberan, you haven't limited yourself to one thing with just telling us you want to output stuff into the flv container
[17:21] <JEEB> think with those little brain cells and seek information
[17:21] <JEEB> what is it that you exactly need?
[17:24] <kuberan> I want to make this command work
[17:24] <kuberan> ffmpeg -i 263.mov -vcodec flv -r 28 -b 96000 -ab 64 -acodec libfaac -ac 1 -ar 44100 263.flv
[17:24] <kuberan> sorry
[17:24] <JEEB> ok
[17:24] <kuberan> ffmpeg -i 263.mov -vcodec flv -r 28 -b 96k -ab 64 -acodec libfaac -ac 1 -ar 44100 263.flv
[17:24] <JEEB> so you want to use that sorenson H.263 crap
[17:24] <JEEB> and use faac for AAC
[17:24] <kuberan> ok :)
[17:25] <JEEB> interesting combination
[17:25] <JEEB> is there any reason you'd not use H.264?
[17:26] <kuberan> A website setup of my friend is breaking because of wrong FFMPEG installation.
[17:26] <kuberan> Just needed to fix it.
[17:26] <kuberan> to make that command work.
[17:26] <JEEB> is there any reason you're not using libx264 instead of flv?
[17:27] <JEEB> I'll stop asking if you just want that to work
[17:27] <kuberan> We will be using it to stream
[17:27] <kuberan> using Flash plugin.
[17:27] <kuberan> stream it on a website.
[17:27] <JEEB> (just saying that libx264 will get you generally much more quality per the same bitrate)
[17:27] <JEEB> (and flash supports H.264 as well as Sorenson's H.263 look-a-like)
[17:28] <kuberan> thats great :)
[17:28] <kuberan> would love to try that out.
[17:28] <JEEB> anyways
[17:28] <JEEB> build and install current x264 and faac
[17:28] <JEEB> first
[17:29] <kuberan> ok.
[17:29] <kuberan> then how do i build ffmpeg ? using what config options ?
[17:29] <JEEB> tell me when you've got faac and x264 built and installed first
[17:29] <kuberan> sure. thanks :)
[17:31] <JEEB> ./configure --enable-gpl --enable-nonfree --enable-libx264 --enable-libfaac will be the command line then pretty much
[17:33] <kuberan> great thanks :)
[17:33] <kuberan> is it ok to build x264 with ASM disabled ?
[17:34] <JEEB> no
[17:34] <JEEB> install current yasm
[17:34] <JEEB> http://yasm.tortall.net/Download.html
[17:34] <JEEB> 1.2 is newest
[17:34] <kuberan> fine thanks.
[17:34] <JEEB> x264 with asm = LOL SLOW
[17:34] <kuberan> oh.
[17:35] <JEEB> I meant
[17:35] <JEEB> without
[17:35] <JEEB> >_>
[17:35] <JEEB> with asm it gets fast
[17:35] <JEEB> it's one of the fastest encoders around
[17:36] <kuberan> you mean x264+yasm is one of the fastest rite ?
[17:36] <JEEB> yes
[17:36] <JEEB> ffmpeg uses yasm as well, but doesn't necessarily need as new version of it
[17:37] <JEEB> so having the newest yasm is always a good idea :3
[17:39] <kuberan> great.
[17:46] <kuberan> I am installing x264 with ./configure --enable-shared
[17:46] <kuberan> mkae fails with error
[17:47] <kuberan> common/x86/cabac-a.o: could not read symbols: Bad value
[17:47] <JEEB> Works For Me
[17:47] <kuberan> fails with error http://pastebin.com/fFjAfDhw
[17:47] <JEEB> current git?
[17:47] <kuberan> yes.
[17:48] <JEEB> and uh
[17:48] <JEEB> make distclean once?
[17:48] <JEEB> then re-configure and rebuild?
[17:48] <kuberan> ok :)
[17:48] <kuberan> thanks a lot.
[17:48] <JEEB> if it still does it you'll have to add -fPIC
[17:48] <JEEB> just like the message says >_>
[17:50] <TomCat2> hey guys - I'm using avcodec as a library to an app that needs h.264 decoding capabilities.  Ideally, avcodec's functionality will be invoked via Java through JNI.  Just as a test, I have a function in C that requires no parameters - it loads an .h264 (previously created with x264) off of disk and feeds it to avcodec_decode_video2().  If I call it just using C, all works fine.  If I invoke my 
[17:50] <TomCat2> function via JNI, I get output to my console which looks like: [h264 @ 18db0a80] get_buffer() failed (-1 0 0 00000000) [h264 @ 18db0a80] get_buffer() failed (-1 0 0 00000000) [h264 @ 18db0a80] get_buffer() failed (-1 0 0 00000000)
[17:52] <TomCat2> This is using Windows 7 as the OS - I'm suspecting that maybe a different flavor of h264 decoder is getting used while using JNI due to maybe some DLL is not being found under that context to deal with hardware acceleration, just a wild theory - but don't have any idea how to check that.  Any ideas?
[17:58] <kuberan> looks like youtube uses H.263
[17:58] <kuberan> JEEB: 
[17:59] <kuberan> thats what the wikipedia page says.
[18:00] <JEEB> kuberan, no -- they use H.264
[18:00] <JEEB> they use libx264 actually :P
[18:00] <kuberan> thats great :)
[18:00] <JEEB> they used to use H.263 a long time ago
[18:00] <kuberan> oh ok :)
[18:00] <kuberan> thanks..
[18:00] <kuberan> Is there any advantage for H.263 than H.264..
[18:01] <kuberan> something like lower bitrate or something ?
[18:01] <JEEB> H.263 is much older and worse off than H.264
[18:01] <JEEB> don't use H.263 if you only can help it
[18:02] <JEEB> pretty much: if you need to support random bad phones from the beginning of the 2000s, then H.263 might get useful
[18:02] <JEEB> but I don't think flv is used or that those phones could use Flash :P
[18:03] <kuberan> ok :)
[18:03] <kuberan> makes sense :)
[18:03] <kuberan> Getting this error when I run ffmpeg -codecs now
[18:03] <kuberan> http://pastebin.com/G83BzrX5
[18:04] <JEEB> it can't load the binary you built for x264 then >_>
[18:04] <JEEB> s/binary/library/
[18:04] <JEEB> I would just recommend building everything as static
[18:04] <kuberan> oh..
[18:04] <JEEB> and then there would be no such problem :P
[18:04] <kuberan> ok :)
[18:04] <JEEB> now you have to tell the system where to load the libs
[18:05] <JEEB> which is a gigantic PITA
[18:05] <kuberan> I know where the shared object is
[18:05] <kuberan> can i provide the path to the binary ?
[18:06] <JEEB> LD_LIBRARY_PATH was it?
[18:06] <JEEB> I don't remember
[18:06] <kuberan> I will better build it as static.
[19:18] <alyawn> In my little test filter, I always seem to get "*** 1 dup!" on the very first frame no matter what. Is this because the pts of my first input is 0?
[19:23] <DX099> hello , how do i copy input file name to output file name ?
[19:26] <alyawn> ok, so I found out that ffmpeg.c:1270 reports a duration of 2 for the first frame. I was expecting to find a duration of 1
[20:12] <bf4648> Got a question...I need to start ffmpeg from php...how do I do that?  I've tried <?php exec("ffmpeg -i myvid.avi");...anybody know?
[20:13] <bf4648> Anybody there?
[20:15] <pasteeater> kuberan: see the ubuntu ffmpeg compile guide if you want instrucitons
[20:15] <pasteeater> http://ubuntuforums.org/showthread.php?t=786095
[20:16] <kuberan> thnx a lot :)
[20:16] <kuberan> will check
[20:22] <alyawn> I suspect this may be my problem: parser not found for codec huffyuv, packets or times may be invalid.
[20:22] <alyawn> is there a better container for huffyuv other than AVI?
[20:24] <relaxed> alyawn: matroska
[20:25] <relaxed> also, ffvhuff may be faster than huffyuv
[20:42] <bf4648> Alright, I've got several videos .mp4s that need to be combined together so that they can play on a DVD...do you all know how I could do this?
[20:44] <relaxed> you mean as different titles on the dvd or one long stream of video?
[20:45] <bf4648> no...I just got clips of a videos that need to be all combined together..
[20:47] <relaxed> 1) Encode the mp4s to mpeg2/ac3 in the vob containerwith the same settings. 2) ffmpeg -i concat:1.vob\|2.vob\|3.vob -vcodec copy -acodec copy combined.vob
[20:48] <bf4648> ok...I see 
[20:48] <bf4648> do it's just piped 
[20:49] <relaxed> it's not piped
[20:49] <bf4648> delimited by the |
[20:49] <relaxed> right
[20:49] <bf4648> or \|
[20:50] <bf4648> or is the "\" part of the \| just the slash for the file location?
[20:51] <relaxed> no, it's escaping the | so as not to be treated like a pipe by your shell
[20:51] <relaxed> you could also use -i 'concat:1.vob|2.vob|3.vob'
[20:52] <bf4648> Oh I'm glad I asked...this will be running inside php exec call...
[20:52] <bf4648> so I will have to escape the | delimiter right?
[20:52] <relaxed> yes
[20:52] <bf4648> Alright...thank you very much for your help 
[20:55] <alyawn> thanks, relaxed
[20:59] <relaxed> you're welcome
[21:01] <bf4648> relaxed...I got another question...
[21:03] <bf4648> I've got this web app that is storing the start and offsets for interesting clips...it's actually not storing the actually clips just the point @ which the videos are to play....the videos are stored via paths in the database...would I have to call ffmpeg @ the offsets as input values?
[21:11] <bf4648> Does anyone here know how to load ffmpeg @ an offset?
[21:11] <relaxed> so you need ffmpeg to encode certain sections of videos?
[21:11] <bf4648> well, I need to have ffmpeg go to the server get the video...load up @ an offset to a certain length in the video and then combine all the clips into 1 big file that is playable on an DVD
[21:12] <bf4648> sounds like a lot of work 
[21:12] <bf4648> lol
[21:12] <blez> I think it can't load the video from offset
[21:12] <relaxed> Look at -t and -ss in the man page
[21:12] <blez> only seconds
[21:13] <bf4648> no way...hold on
[21:15] <bf4648> ‘-itsoffset offset (input)’
[21:15] <DX099> hello , how do i copy input file name to output file name ?
[21:16] <bf4648> DX099...huh?
[21:17] <pasteeater> bf4648: you probably want -ss, as relaxed mentioned, not -itsoffset
[21:17] <bf4648> what is -itsoffset then? ..
[22:10] <DX099> I want the output file name to be the exact copy of the input file name, is there a way to do that ?
[22:13] <bf4648> yes... ffmpeg -i output.avi output.mp4
[22:19] <TomCat2> can someone who's familiar with using JNI and avcodec take a look please?  This is boggling me:  http://pastebin.com/7S0uLmHL
[22:22] <TomCat2> basically - 1 DLL, 1 Java app, 1 C app.  The C app can call functionality in the DLL just fine, but the Java app calls the same thing via a pretty plain JNI function, and it doesn't work, as shown in the pastebin post
[22:23] <TomCat2> we're getting other stuff (swscale, x264) working just fine with JNI otherwise
[22:24] <TomCat2> here in this minimalist example, we've narrowed the problem down to it just being whether or not JNI fires it - so we've ruled out any issues with using ByteBuffer, etc., as being the problem
[22:41] <DX099> you mean i've to enter it manually ?
[22:57] <teratorn> TomCat2: seen xuggle?
[22:58] <TomCat2> yes - but for our purposes, we'll have major distribution issues
[22:59] <TomCat2> plus it just adds an extra layer that we don't really need
[23:00] <TomCat2> applets... the fewer DLL's you're trying to ship with it, the better
[23:04] <Zeranoe> If -threads 0 is used and no threads are found will it default to 1? I know it is supposed to use the max, what about only 1?
[23:05] <Zeranoe> or will FFmpeg complain and fail?
[23:09] <TomCat2> "Can I use Xuggler with Java Webstart or as an Applet?"
[23:09] <TomCat2> A: "No, not today. We're interested in approaches to solving this problem, and if you have experience with making native libraries work in webstart (especially ones that have runtime dependencies you can't know in advance) we'd like to hear from you. "
[23:11] <relaxed> Zeranoe: With libx264, yes (former). I think it will fail if you use any other codec.
[23:24] <pasteeater> '-threads 0' is now aotumatically applied when using libx264, IIRC
[23:28] <pasteeater> relaxed: i meant to say, "pkgconfig is _not_ installed on CentOS 6 minimal" in the email, but again, the "tip" should cover that
[23:41] <JEEBsv> there's actually two -threads nowadays, no? First before the -i (decoder threads, zero tends to take the decoder to a moonlight cruise), and the second for the encoder, where at least with libx264 zero is both default as well as 'auto'
[23:52] <relaxed> JEEBsv: Yes. I assumed he meant threads for encoding.
[23:54] <relaxed> pasteeater: I have it checking for pkg-config. Need to make some more changes before uploading version 2.
[00:00] --- Wed Dec  7 2011


More information about the Ffmpeg-devel-irc mailing list