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

burek burek021 at gmail.com
Wed Aug 13 02:05:01 CEST 2014


[06:41] <hotwings> any idea why i would get "libswresample.so.1: cannot open shared object file: No such file or directory" when /usr/local/lib/libswresample.so.1 exists?
[06:42] <klaxa> try running ldconfig as root
[06:43] <klaxa> basically, it's not indexed by the linker
[06:43] <klaxa> as far as i understand
[06:43] <klaxa> might be wrong on the terminology
[06:43] <hotwings> that fixed it, thanks for the help klaxa.
[06:44] <klaxa> glad i could help :)
[06:44] <hotwings> i didnt have that problem before but i did update my gcc packages earlier, and then grabbed a new git
[06:44] <hotwings> ffmpeg git that is
[07:00] <surge> anyone get ffmpeg working on CentOS 7 yet?
[08:40] <hunterp> I would like to delay only ONE of the two input files. But, even with a value of 5, itsoffset is not working....why??  ffmpeg -itsoffset 5 -i one.m4a -i five.m4a -strict -2 -filter_complex "[0:a][1:a]amerge,pan=stereo:c0<c0+c2:c1<c1+c3[aout]" -map "[aout]" out.m4a
[08:50] <relaxed> hunterp: place ii in front of the input you want delayed, not both inputs.
[08:50] <relaxed> it*
[08:51] <hunterp> i only show one usage, im not sure what you mean
[08:52] <relaxed> ffmpeg -i first_input -itsoffset 5 -i delayed_input ...
[08:52] <hunterp> thats what I showed you,except reversed. i dont see how that makes any meaningful difference
[08:53] <relaxed> you have it before both inputs.
[08:53] <hunterp> no i dont. not in the buffer
[08:59] <termos> I keep getting Operation not permitted on av_interleaved_write_frame but I have write access to the harddisk and the RTMP stream. What could be the issue here?
[08:59] <relaxed> hunterp: you're wrong, try it.
[09:00] <Mavrik> termos, where are you writing your output to? and in which format?
[09:00] <relaxed> That's like saying in the string "1 2 3", "1" doesn't come before "3".
[09:02] <termos> I'm writing it to a cdn and and a an s3fuse mount, I keep getting the message for both of them though. I run multiple threads doing the exact same thing and some of them keep getting Operation not permitted
[09:39] <termos> Okey after more testing it seems to be only related to my s3fuse mount, I need to check if the problem is with the mount or something.
[11:08] <valder> wondering if anybody could help me with this code.  I'm trying to extract audio via ffmpeg from a video.   I couldn't find a Java solution otherwise I would have done that.  but any help would be appreciated.  The output file can't be played by any player I can find.  I think it may have to be the encoding part of the process but I'm not sure.  This isn't my original code but something I found on SO, I've tweaked it to fit my situati
[11:32] <gabriel_> Hi all! Anybody familiar with building ffmpeg for Nemo (Mer project)? Is it actually possible?
[12:44] <termos> I keep getting "Current profile doesn't provide more RBSP data in PPS, skipping", should I be worried?
[13:04] <phil4000n> http://ffmpeg.gusari.org/static Why the static builds for linux do not contain as for Windows all codecs such as libOpus, nor ffplay and ffprobe? Licence issue???
[13:12] <zloy> hello guys, I want to capture my screen with audio using the following command: ffmpeg -f alsa -ac 2 -i pulse -f x11grab -framerate 10 -s 1920x1200 -i :0.0 -acodec libmp3lame -vcodec libx264 -b:v 500k -bufsize 1024k -crf 10 -b:a 92k -preset ultrafast  -threads 0 -y Test.mkv
[13:12] <zloy> everything works find, but I have the audio sync issue
[13:12] <zloy> it's not sycnronized with video
[13:14] <phil4000n> try to add -async 1
[13:16] <zloy> phil4000n: while capturing the screen?
[13:16] <phil4000n> try
[13:18] <zloy> hm, ok
[13:24] <zloy> phil4000n: unfortunately, it didn't help :-(
[13:26] <phil4000n> maybe it's too heavy x264 @1920x1200 for your CPU, try to capture as mpeg4 to see if it helps
[13:49] <relaxed> zloy: try changing -framerate to 60 and put "-r 25" after "-i :0.0"
[14:14] <zloy> relaxed: thank you
[14:40] <vladtv> hello whether there is a network buffering in ffmpeg for incoming stream?
[14:43] <vladtv> in vlc - network-caching
[16:31] <Katharsis> i'm using `for name in *.ogg; do ffmpeg -i "$name" -ab 128k -map_metadata 0:0,s0 "${name/.ogg/.mp3}"; done;` for convering all mp3 to ogg file
[16:32] <Katharsis> the problem is that the ogg lost some information like timestamp
[16:32] <Katharsis> any ideas how to keep the timestamp?
[16:38] <Katharsis> ok, i used `ffmpeg -i in.ogg -acodec libvorbis -aq 6 out.ogg` and it works
[16:42] <nicktrandafl> Hi. I followed this howto https://trac.ffmpeg.org/wiki/CompilationGuide/MSVC and everything went ok. I used this configuration "./configure --toolchain=msvc --arch=x86 --enable-hwaccels --enable-dxva2 --enable-shared --disable-static --prefix=/c/ffmpeg_build". I got ffmpeg 2.3 binaries. I searched information how to use dxva2 api, but i didn't find any up to date information. I tried use this function avcodec_find_decoder_by_na
[16:42] <nicktrandafl> Quastions:
[16:42] <nicktrandafl> 1) how to check if I have builded ffmpeg correct(if my ffmpeg binaries support dxva2)?
[16:42] <nicktrandafl> 2) please, give me an example of usage of dxva2 api?
[16:43] <nicktrandafl> sorry for my english
[16:51] <brontosaurusrex> where are nightly gusari builds?
[16:53] <nicktrandafl1> Is this quastion for my?
[16:54] <brontosaurusrex> nah, i see this are linux only
[16:54] <brontosaurusrex> I need a fresh mac ffmpeg build
[17:17] <relaxed> brontosaurusrex: http://www.evermeet.cx/ffmpeg/
[17:18] <relaxed> ^^ listed on the download page
[17:45] <brontosaurusrex> well, just build my own
[17:45] <brontosaurusrex> but thanks relaxed
[17:45] <brontosaurusrex> i have a problem thought with adobe premiere, 1st frame of my x264 encode is missing, any cures?
[17:45] <brontosaurusrex> x264 encoding settings doesn't seem to matter either
[17:49] <relaxed> pastebin.com the command and all output
[17:50] <brontosaurusrex> any command, also tested ffmpeg from 2013 and current build from git
[17:51] <brontosaurusrex> relaxed, so your using adobe and have not seen anything like that?
[17:52] <relaxed> I do not use premiere.
[17:54] <JohnBergqvist> Hi, i'm trying to create a screenshot from a video, at the resolution the video is encoded at, however when taking the screenshot, it appears to ignore the Aspect ratios, so that the screenshot appears stretched slightly. is there any way to compensate for this (ideally in a manner that's not specific to each individual video)?
[17:54] <JohnBergqvist> The command i'm using is: "fffmpeg -ss 00:10:00 -t 1 -i Video.ts -f mjpeg 101.jpg" and the video's properties are: "Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p, 720x480 [SAR 8:9 DAR 4:3], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc"
[17:54] <JohnBergqvist> the aspect ratio of the screenshot I want is 4:3
[17:55] <JohnBergqvist> when taking a screenshot with VLC (which gives me the correct aspect ratio) the resolution is: 720x540, yet the screenshot i'm getting from ffmpeg is 720x480
[17:59] <relaxed> so use, ffmpeg -ss 00:10:00 -i Video.ts -vf scale=w=720:h=540 -f mjpeg 101.jpg
[17:59] <JohnBergqvist> yes, but "in a manner that's not specific to each individual video".
[18:00] <JohnBergqvist> I might not always know the ideal resolution it should be.
[18:01] <JohnBergqvist> Also, trying that still gives me the same stretched screenshot :/
[18:03] <relaxed> -vf scale=w=720:h=540,setsar=1:1
[18:04] <JohnBergqvist> no, I can't specify the fixed resolution by hand
[18:05] <JohnBergqvist> is there no way to calculate it from the resolution that ffmpeg's picked up (720x480)?
[18:06] <relaxed> the math is --> bc -l <<<"480*(9/8)"
[18:07] <relaxed> anamorphic video is stored as 720x480 but played back differently on a computer because the pixels aren't square.
[18:07] <JohnBergqvist> yeah.
[18:08] <JohnBergqvist> is there no way for ffmpeg to compensate for that difference though?
[18:08] <JohnBergqvist> without hard-coding any final resolution?
[18:08] <relaxed> try -vf scale=w=720:h=-1
[18:09] <JohnBergqvist> again, i can't use actual numbers.
[18:09] <JohnBergqvist> is there a way to specify the width that ffmpeg has reported instead of manually using 720?
[18:09] <relaxed> iw
[18:10] <JohnBergqvist> ok
[18:10] <relaxed> read about the scale filter in the manual
[18:10] <JohnBergqvist> using -vf scale=iw:-1 does't have any effect
[18:11] <relaxed> you can probably do it using the varible names
[18:11] <relaxed> with math including the sar
[18:12] <JohnBergqvist> im crap at maths :(
[18:15] <JohnBergqvist> if I use "-vf scale=iw*sar:ih" I get a resolution of 640x480 which corrects the aspect ratio, but that doesn't give me the max 720x540 though.
[18:16] <relaxed> try -filter:v "scale=iw:ih*ow/sar/iw"
[18:17] <JohnBergqvist> Oooh, that's done it! lovely, thanks ^_^
[18:17] <JohnBergqvist> lemme just test it with other videos
[18:17] <relaxed> \o/
[18:17] <JohnBergqvist> would it mess up a non-anamorphic video?
[18:17] <JohnBergqvist> *screenshot
[18:19] <JohnBergqvist> Ahh, it appears it is :(
[18:20] <JohnBergqvist> have a 16:9 file this time which is 720x480 according to ffmpeg, yet 853x480 according to vlc
[18:21] <JohnBergqvist> ffmpeg's screenshot gives me 720x405
[18:21] <kaotiko> hi
[18:22] <relaxed> write a script that checks the sar
[18:23] <JohnBergqvist> ffmpeg gives me the sar: [SAR 32:27 DAR 16:9] can I not use that directly in a scale command?
[18:24] <JEEB> yes
[18:24] <JEEB> they are available as variables
[18:24] <JohnBergqvist> ok
[18:24] <JEEB> it's all in the documentation :)
[18:24] <JohnBergqvist> what were you going to say after that relaxed?
[18:24] <JEEB> you can get width/height/sar/dar etc
[18:26] <JohnBergqvist> im confused, whats the difference between SAR and DAR? and how do they relate to the actual video size reported by FFMPEG (720x480) vs the size that's being played for the file (16:9 - 853x480)?
[18:26] <JEEB> SAR is the aspect ratio of a single sample
[18:26] <JohnBergqvist> I don't really understand it from what i've read
[18:26] <JEEB> DAR is the aspect ratio of the whole final picture
[18:26] <JohnBergqvist> ok
[18:26] <JohnBergqvist> so how do they relate to those 2 resolutions?
[18:27] <JEEB> 720x480 is the actual video frame coded
[18:27] <JEEB> then it has information "this picture has a SAR like this, show it like that2
[18:27] <JEEB> and the player then scales when playing
[18:27] <JohnBergqvist> so what about this 853x480 resolution vlc gives me? how does it get that?
[18:27] <JEEB> it applies SAR to the actual video size
[18:28] <JohnBergqvist> OK. Can I do this in ffmpeg then? and therefore get that 853x480 pic myself?
[18:28] <JEEB> you scale it so that you get 1:1 SAR
[18:29] <JohnBergqvist> wait
[18:29] <JohnBergqvist> I think i've found a solution
[18:30] <JohnBergqvist> oh no.
[18:30] <JohnBergqvist> someone suggested I try: -vf scale=w=(sar*iw):h=ih but that gets me the correct resolution for the 16:9 vid, but for the 4:3 vid earlier, it gives me 640x480, not 720x540
[18:30] <JohnBergqvist> OK, so how do I scale it to get 1:1 SAR then?
[18:30] <JEEB> uhh
[18:31] <JEEB> that thing you have there only modifies width
[18:31] <JohnBergqvist> yeah
[18:31] <JohnBergqvist> ignore what i typed then
[18:31] <JEEB> so no wonder it scales it down :P
[18:31] <JEEB> you basically need to make it a bit less simple, and actually check which side has to be scaled in order to not downscale anything
[18:31] <relaxed> JohnBergqvist: the math is $(bc -l <<<"(16/9)*480")
[18:31] <JEEB> I think I had something similar scripted once
[18:32] <JEEB> but I'm not going to go through my archives of lulzy crap for it :P
[18:32] <JohnBergqvist> ok
[18:32] <JohnBergqvist> so in a non-specific form, that would be (bc -l <<<"(DAR)*iw") then?
[18:33] <relaxed> No. Because the answer is 853.333
[18:33] <JohnBergqvist> i've also been told that apparently that 720x540 VLC is giving me for the 4:3 vid is wrong, and that the "correct" size should be 640x480?
[18:33] <JEEB> uhh
[18:33] <JEEB> what is correct depends on what you want
[18:33] <JohnBergqvist> god this is confusing :(
[18:34] <JEEB> if you want to only modify width then it's "correct" to do so, if you never want to downscale either width or height, then it's not "correct"
[18:34] <JEEB> some players do it the latter way, some the former way
[18:34] <JEEB> the main thing is that the aspect ratio is applied
[18:34] <JohnBergqvist> What do you think I should go on? bearing in mind this needs to apply to any video of any type, resolution & aspect?
[18:35] <JohnBergqvist> should I do it via width or height?
[18:35] <JEEB> I generally don't convert anamorphic (SAR is not 1:1) content to non-anamorphic at all
[18:35] <JEEB> if I have to (for plastic boxes and such)
[18:36] <JohnBergqvist> so what does that mean? :$
[18:36] <JEEB> then I do it so that I check which side I have to scale up to match the aspect ratio
[18:36] <JEEB> it means that in most cases I keep anamorphic stuff anamorphic :P
[18:36] <JEEB> and just keep the aspect ratio flag
[18:36] <JohnBergqvist> so which of those two scalings i've suggested (doing it via width or height) does that apply to?
[18:37] <JohnBergqvist> bearing in mind there, these images are meant to be displayed in a web browser, if that helps?
[18:38] <JEEB> if whatever you are aiming at is a dumb shit that cannot handle anamorphic, then as I said I usually do it so that I scale either one up depending on the picture ratio and the final aspect ratio
[18:38] <JEEB> I remember actually forcing flash to a specific aspect ratio years ago :P although that probably didn't work for full screen
[18:39] <JohnBergqvist> argh
[18:40] <JEEB> also you cannot encode 4:2:0 YCbCr with non-mod2 resolutions, so you will probably want to account the horizontal/vertical subsampling in your resize :P
[18:40] <JohnBergqvist> which method does your one apply to then?
[18:40] <JEEB> what?
[18:40] <JohnBergqvist> "scale either one up depending on the picture ratio" is that:  -vf scale="w=(sar*iw):h=ih"?
[18:41] <JEEB> it means that you do one or the other depending on the input aspect ratio and the final aspect ratio
[18:41] <JEEB> you can do simple if-else stuff
[18:43] <JohnBergqvist> ah ok
[18:51] <JohnBergqvist> well I don't mind settling for 640x480 for the 4:3 stuff for now, so i'll keep it to: -vf scale="w=(sar*iw):h=ih"
[18:51] <JohnBergqvist> as that gives me the max resolution for 16:9 stuff
[18:53] <JEEB> scale=trunc(if(gte(a\,873/480)\,720\,873/a)/hsub)*hsub:trunc(if(gte(a\,873/480)\,480/(a/(873/480))\,480)/vsub)*vsub
[18:53] <JEEB> modify this according to your needs :P
[18:54] <JEEB> (or actually, just take it as an example of using if structures and other stuff :P)
[18:55] <JEEB> also another line I had commented in the same file was scale=trunc(sar*iw/(ih/oh)/hsub)*hsub:trunc(min(ih\,272)/vsub)*vsub
[18:55] <JEEB> just read the fine documentation and make your own line ÖP
[18:56] <JEEB> :P
[18:57] <JohnBergqvist> Thanks very much, but i'll stick to what i've got
[18:57] <JEEB> yes
[18:57] <JEEB> take what is spoonfed to you and don't even try to learn things
[18:57] <JohnBergqvist> No need to act like that
[18:57] <JohnBergqvist> im already confused enough as it is.
[19:00] <JEEB> just wait until you learn how SD aspect ratios can be "fun" (as in, not what most applications tell you). Compared to trying to understand that mess, this is simple :P
[19:01] <JohnBergqvist> yes...
[19:01] <JohnBergqvist> well what i'm using this for is a local media manager application
[19:02] <JohnBergqvist> so god knows what crazily-resolution/aspected files the user could load in...
[19:03] <JEEB> well, for example DVDs
[19:03] <JEEB> most applications will give you the general "flag" those MPEG-2 streams have
[19:03] <JEEB> which is supposed to mean "16:9", for example
[19:03] <JEEB> yet, for NTSC DVDs (as an example), that "16:9" is actually 40:33 SAR
[19:04] <JEEB> see if you can calculate what that ends up with when the picture size is 720x480
[19:05] <JohnBergqvist> I can't calculate anything. I'm 22 and I can still barely add up
[19:05] <JohnBergqvist> Trust me on this. I have tried many times to improve :P
[19:05] <JEEB> 720 * 40 / 33
[19:05] <Mavrik> *grumble*
[19:05] <Mavrik> we should just go back in time and shoot the person that made anamorphic video
[19:06] <JEEB> anyways, what I've learned with this stuff is that you can't just automate that crap unless it's a container or video stream that contains the exact aspect ratio
[19:06] <JohnBergqvist> ok thanks
[19:06] <JohnBergqvist> and yes, yes we should. and PAL vs NTSC...
[19:06] <Mavrik> JEEB, not caring about exact ratio helps as well
[19:07] <JEEB> Mavrik, or you just handle DVDs and SD DTV according to the spec :D
[19:07] <JEEB> and don't care if that was actually how it was mastered
[19:07] <JEEB> which means applying 40:33 SAR instead of 16:9 DAR
[19:07] <Mavrik> I've mostly dealt with random crap being uploaded from cameras, etc.
[19:07] <JEEB> (with 16:9, NTSC)
[19:08] <Mavrik> also internets, so knowing what came from DVD wasn't as easy
[19:08] <JEEB> naturally
[19:08] <JEEB> if it's a vob, that's kind of obvious, or MPEG-2 video in TS or PS
[19:08] <Mavrik> mhm
[19:08] <JEEB> (in theory, as in you should be able to follow the spec)
[19:08] <JEEB> but H.264 already has specific aspect ratio capabilities
[19:09] <JEEB> so lörs lärä
[19:09] <Mavrik> but I just had the honor of parsing AFD flags from SDI which was also very fun
[19:09] <Mavrik> especially since local stations don't use it for widescreen signaling properly :P
[19:09] <JEEB> yes, broken shit everywhere
[19:09] <JohnBergqvist> Also i'm glad that blu-rays are finally killing off PAL speedup
[19:10] <JohnBergqvist> although admittedly that's not always the case.... :(
[19:10] <Mavrik> PAL speedup?
[19:10] <JEEB> yes, since 25i is still available there are some mastering companies still doing it
[19:10] <JEEB> Mavrik, simply speeding up 24(/1.001) content to 25
[19:10] <JEEB> most common way of doing PAL releases of NTSC stuff
[19:11] <Mavrik> hmmm
[19:11] <JEEB> PAL telecine is also done but much less frequent
[19:11] <Mavrik> yeah, that sucked ass
[19:11] <Mavrik> half of the movies here looked terrible
[19:11] <Mavrik> (I'm from PAL area :P )
[19:15] <JohnBergqvist> pretty much any every PAL DVD of an NTSC tv show or film is PAL sped-up
[19:15] <JohnBergqvist> so pitch & speed is up half a semi-tone essentially
[19:15] <JohnBergqvist> *a semi-tone, pitch wise
[19:16] <JohnBergqvist> although you can correct it so that both a PAL & NTSC DVD will match, if you bother, but it's quite time consuming, so most people only do it for music DVDs?
[19:17] <JohnBergqvist> it does't affect video quality, just speed.
[19:17] <JohnBergqvist> it's only noticable once you watch a lot of it at the original speed
[19:17] <JohnBergqvist> for instance, in the UK, sideshow bob's voice never sounds like Kelsey Grammer to me, cos it's sped up a little :/ v. weird
[19:18] <vladtv> hi, my command: avconv -threads 8 -i http://127.0.0.1:8888/udp/238.0.0.1:3001 -i ls.png -i /media/F/ad.png -filter_complex 'overlay=1:main_h-overlay_h-1,overlay=1:1,yadif=1:0' -metadata service_name=LIVESPORT.WS -metadata service_provider=vladimir29 -s 1280x720 -vcodec libx264 -b 3500k -maxrate 3700k -b-pyramid 1 -keyint_min 1 -subq 1 -refs 1 -pass 1 -fastfirstpass 1 -g 25 -bufsize 1M -level
[19:18] <vladtv> 32 -acodec libmp3lame -ab 96000 -ar 44100 -f mpegts udp://238.0.0.2:3001       but more errors [h264 @ 0x90b6240] mmco: unref short failure
[19:18] <vladtv> [mpegts @ 0x84a2d20] Continuity check failed for pid 17 expected 6 got 7
[19:18] <vladtv> Continuity check failed for pid 301 expected 5 got 148 bitrate=3751.1kbits/s
[19:18] <vladtv> [mpegts @ 0x84a2d20] Continuity check failed for pid 401 expected 5 got 10
[19:18] <vladtv> [mpegts @ 0x84a2d20] Continuity check failed for pid 0 expected 12 got 15
[19:18] <vladtv> [mpegts @ 0x84a2d20] PES packet size mismatch
[19:18] <vladtv> [h264 @ 0x9013ae0] number of reference frames (0+6) exceeds max (4; probably corrupt input), discarding one
[19:18] <vladtv>     Last message repeated 1 times
[19:18] <vladtv> [mp2 @ 0x84ac600] Header missing
[19:18] <vladtv> Error while decoding stream #0:1
[19:18] <vladtv> what is problem?
[19:20] <vladtv> this stream is online now http://46.105.179.221:8090
[19:22] <JohnBergqvist> Does h264 video not have a bitrate?
[19:22] <JohnBergqvist> because ffmpeg doesn't seem to be reporting one fo rit
[19:22] <JohnBergqvist> *for it
[19:24] <vladtv> help me please...
[20:20] <cbsrobot-> vladtv: as you are using avconv, does it work with ffmpeg ?
[23:16] <ConnorM> the ffmpeg.org website is impressive :D
[23:27] <fajung> i've compile ffmpeg according the ffmpeg ubuntu's guide, but now I'm getting "Internal error, IDCT permutation not set"
[23:31] <fajung> this: http://pastie.org/9468199
[23:32] <fajung> do u want to see the log?
[23:35] <sacarasc> The complete output, yeah.
[23:36] <sacarasc> But you should be using x264, not h264.
[23:44] <fajung> in pastebin.com id= tp2x7QC6
[23:49] <fajung> if I use x264, Unknown encoder 'x264', with libx164 the same msg
[00:00] --- Wed Aug 13 2014


More information about the Ffmpeg-devel-irc mailing list