[Ffmpeg-devel-irc] ffmpeg.log.20140730
burek
burek021 at gmail.com
Thu Jul 31 02:05:01 CEST 2014
[05:21] <pnpbios> hello, is there a definitive example of using ffmpeg with x11grab and ffserver? I can never seem to configure my params right.
[05:22] <pnpbios> http://pastebin.com/d8MhRNni -- this is what I am using to call ffmpeg
[05:26] <pnpbios> can anybody help me, please?
[05:56] <sec_> i want to hear some frames in mp3 file, how do that?
[05:58] <pnpbios> you mean slice an mp3?
[06:06] <sec_> pnpbios: yep
[06:07] <pnpbios> have you looked at cutmp3?
[06:08] <sec_> pnpbios: it is not showing frame no.
[06:08] <pnpbios> @sec_ what do you mean by frame?
[06:09] <sec_> struct MPEG_FRAME mf[0] 0h 180h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[1] 180h 240h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[2] 3C0h 1E0h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[3] 5A0h 150h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[4] 6F0h 180h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[5] 870h 180h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[6] 9F0h 180h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[7] B70h 240h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[8] DB0h 150h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[9] F00h 180h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[10] 1080h 1E0h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[11] 1260h 1E0h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[12] 1440h 1E0h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[13] 1620h 120h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[14] 1740h C0h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[15] 1800h F0h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[16] 18F0h 1E0h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[17] 1AD0h 1E0h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[18] 1CB0h 150h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[19] 1E00h 180h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[20] 1F80h 180h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[21] 2100h 240h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[22] 2340h 180h Fg: Bg:
[06:09] <sec_> struct MPEG_FRAME mf[23] 24C0h 180h Fg: Bg:
[06:09] <pnpbios> ok
[06:10] <sec_> struct MPEG_FRAME mf[24] 2640h 1E0h Fg: Bg:
[06:10] <sec_> struct MPEG_FRAME mf[25] 2820h 180h Fg: Bg:
[06:10] <sec_> struct MPEG_FRAME mf[26] 29FCh 121h Fg: Bg:
[06:10] <sec_> struct MPEG_FRAME mf[27] 2B5Eh 6C0h Fg: Bg:
[06:10] <sec_> struct MPEG_FRAME mf[28] 3222h B7h Fg: Bg:
[06:10] <sec_> struct MPEG_FRAME mf[29] 3341h 241h Fg: Bg:
[06:10] <sec_> struct MPEG_FRAME mf[30] 3676h 4h Fg: Bg:
[06:10] <sec_> struct MPEG_FRAME mf[31] 36C0h 180h Fg: Bg:
[06:10] <sec_> struct MPEG_FRAME mf[32] 3840h 1E0h Fg: Bg:
[06:10] <sec_> struct MPEG_FRAME mf[33] 3A20h 150h Fg: Bg:
[06:10] <sec_> struct MPEG_FRAME mf[34] 3B70h 240h Fg: Bg:
[06:10] <sec_> struct MPEG_FRAME mf[35] 3DB0h 1E0h Fg: Bg:
[06:10] <sec_> struct MPEG_FRAME mf[36] 3F90h 1E0h Fg: Bg:
[06:10] <sec_> struct MPEG_FRAME mf[37] 4170h 180h Fg: Bg:
[06:10] <sec_> struct MPEG_FRAME mf[38] 42F0h 180h Fg: Bg:
[06:10] <sec_> struct MPEG_FRAME mf[39] 4470h 240h Fg: Bg:
[06:10] <sec_> ops
[06:10] <sec_> sorry
[06:10] <sec_> pnpbios: that is showing with 010 editor
[13:13] <termos> why is my mpegts not constant for all bitrates? I can't see any reason why the header overhead from the ts segments should be any different for another bitrate.
[13:13] <termos> All my segments are around 3s long
[13:17] <Mavrik> what is not constant?
[13:21] <termos> ah, the overhead that is calculated by apples mediastreamvalidator for my hls stream
[13:22] <termos> Average segment structural overhead: 92.47 kbits/sec (16.76 %) for one of my streams, while for the other one it's 13.52 %
[13:22] <feliwir> hey, has someone a code example where i get the bitmap from a avsubtitle as bitmap? (if type== SUBTITLE_BITMAP). I really have no clue how that palletized thing is supposed to work
[13:22] <Mavrik> termos, of course, because the rate of insertion for PAT/PMT and other packets is constant
[13:22] <Mavrik> and the packets are of constant size
[13:23] <Mavrik> so if you lower the bitrate of actual video/audio the overhead in % will rise, right? basic maths :)
[13:23] <Mavrik> feliwir, hmm, weren't you the guy I've pasted the conversion code awhile ago? :)
[13:25] <Mavrik> fling, you have a pallette of colors of size rect->nb_colors on data[1] plane
[13:25] <Mavrik> er, feliwir
[13:25] <termos> hmm I don't quite get it still... each mpegts packet is 184 bytes or something where 4 bytes is the header
[13:25] <Mavrik> and you have actual rect with just indexes of colors from the palette in data[0] plane.
[13:25] <feliwir> ye i was that
[13:25] <feliwir> but i didnt make any progress
[13:25] <feliwir> it still looks like crap :D
[13:26] <feliwir> the example in ffplay.c is so confusing :(
[13:26] <termos> i can not understand why the overhead is more than those 4 bytes, which is the header data
[13:26] <Mavrik> termos, yes?
[13:26] <Mavrik> termos, read up on MPEG2-TS spec
[13:26] <Mavrik> termos, you don't have ONLY video and audio packets
[13:26] <Mavrik> termos, you also have packets carrying information about what's in the stream that have to be transmitted periodically
[13:27] <termos> aha okey
[13:27] <termos> guess i'll look up the spec :) so those extra packages are inserted more frequently for lower bitrates?
[13:49] <feliwir> mavrik how do i use that palette of colors?
[17:05] <kaotiko> hi
[17:33] <Mista_D> any way to map PID values from input file to output please?
[17:34] <naprac> how to simply record video and audio running on screen? with good quality no pixelation nor drag
[17:34] <CrashSys> I have a bunch of jpegs in 1920x1080 format that i'm trying to generate a 480x270 (1/4 scale) video of. Is the best use of ffmpeg going to be this: ffmpeg -r 5 -s 480x270 -i 'jpeghere' -y 'mpeghere'? I'm trying to make the conversion as quick as possible. It's all CCTV footage so it doesn't need to be the highest playback quality just resonable.
[17:36] <naprac> CCTV? isn't that like UK police surveillanca cameras?
[17:36] <CrashSys> This is for a business
[17:36] <CrashSys> they record to 1080p for a month, then want it archived to something more manageable storage wise after that
[17:37] <CrashSys> It's internal security cameras of their jewelry store
[17:37] <c_14> You'll want the -s after the -i
[17:38] <CrashSys> ok
[17:39] <CrashSys> should I specify anything for bitrate or will it figure out an optimal one on it's own?
[17:40] <c_14> It'll use the defaults which are usually 'shitty but watcheable'.
[17:41] <CrashSys> Works for me then :)
[17:41] <naprac> c_14, you know about howto record video and audion from video running on screen?
[17:41] <CrashSys> They do a full inventory every week so in their mind if they don't know they've been stolen from in a month then that's just what they get, or everyone is in on it and the manager probably deleted the video anyways
[17:43] <c_14> naprac: https://trac.ffmpeg.org/wiki/Capture/Desktop
[17:43] <Mavrik> CrashSys, you should always specify bitrate
[17:43] <Mavrik> since ffmpeg defaults to something awfully terrible
[17:43] <naprac> yes i tried that and it doesn't work
[17:43] <Mavrik> you should also explicitly set a video codec or ffmpeg will probably choose something very dumb :D
[17:44] <CrashSys> ok, i'm open to suggestions. Something that compresses quickly and is relatively supported on media players
[17:44] <c_14> Mavrik: If you have ffmpeg built with libx264 it'll usually default to that with a crf of around 24 or so. Which is not _that_ bad.
[17:45] <Mavrik> mhm, if it decides libx264 is a good choice which IIRC depends on extension... old experience makes me a bit vary always tho D
[17:45] <c_14> CrashSys: https://trac.ffmpeg.org/wiki/Encode/H.264 <- always helpful
[17:45] <Mavrik> CrashSys, ffmpeg -r 5 -i 'jpegs' -codec:v libx264 -crf 24 -vf scale=480:270 output.mp4
[17:46] <Mavrik> H.264 in MP4 container is pretty much playable everywhere
[17:46] <CrashSys> portability is goog :) Now to see what kind of speed that gets
[17:47] <Mavrik> CrashSys, you can always use -preset medium/fast/faster/veryfast/ultrafast to control the speed
[17:47] <Mavrik> (with tradeoff of quality of course=
[17:47] <CrashSys> Is that just modifying the crf? or is there more to it?
[17:48] <Mavrik> CrashSys, no, that's modifying everything except crf/bitrate
[17:48] <CrashSys> ahh, just got to that part on the webpage
[17:48] <Mavrik> it controls speed vs. quality tradeoff
[17:48] <CrashSys> ok :)
[17:48] <Mavrik> target bitrate/quality doesn't change :)
[17:48] <CrashSys> preset would be after the -i option?
[17:49] <naprac> c_14, does that example work with ffmpeg version 0.8.7?
[17:49] <Mavrik> CrashSys, yes, everything that sets encoding settings has to go after -i
[17:49] <naprac> well, i mean it doesn't but maybe it's ment to newer one
[17:49] <c_14> Mavrik: the tradeoff is speed vs filesize
[17:49] <Mavrik> everything before -i sets INPUT properties
[17:49] <c_14> not quality
[17:49] <c_14> naprac: ehh, that ffmpeg version is probably too old
[17:50] <Mavrik> c_14, depending on settings of course, in CRF mode is that indeed filesize, in vbv target bitrate mode it's quality
[17:50] <CrashSys> ok cool
[17:50] <c_14> yes
[17:50] <Mavrik> but you are right, in this case it's filesize
[17:50] <CrashSys> My ffmpeg is 2.2.4 for what that's worth
[17:52] <naprac> ic, well it's the newest available ffrom slackbuilds
[17:52] <c_14> You might want to build from source.
[17:54] <CrashSys> when I try that command I get a warning about the jpg image already existing and it asks if I want to overwrite. I'm using this command: ffmpeg -r 5 -i ./00/*.jpg -codec:v libx264 -crf 24 -vf scale=480:270 /root/test.mp4
[17:55] <naprac> c_14, thats gonna take ages, if even works right?
[17:56] <c_14> Nah, compiling shouldn't take that long. Depends what you activate and your pc of course, but it's not that bad.
[17:56] <c_14> CrashSys: You'll probably want -f image2
[17:56] <c_14> https://ffmpeg.org/ffmpeg-formats.html#image2-2
[17:56] <naprac> configure, make, make install or should i set something?
[17:58] <c_14> You'll at very least need to enable x11grab and pulse or alsa.
[17:58] <c_14> Depending on what codec you want you'll need to make sure to enable that as well.
[17:58] <Mavrik> CrashSys, that looks like something gets misparsed by your shell
[17:58] <naprac> hmm configure didn't even run
[17:58] <Mavrik> CrashSys, also I'm not sure if that's the correct syntax for multiple jpegs -_-
[17:59] <CrashSys> I'm looking at the -f image2 webpage
[17:59] <c_14> That isn't the correct syntax, you'll either need the concat demuxer or the image2 demuxer.
[17:59] <CrashSys> Here we go: ffmpeg -r 5 -f image2 -i %03d-capture.jpg -codec:v libx264 -crf 24 -preset fast -vf scale=480:270 /root/test.mp4
[18:00] <CrashSys> that seems to be working. The images are zero padded up to 3 spaces
[18:00] <CrashSys> so %03d should have given me 3 zero padding in the sequence
[18:00] <naprac> isn't thre something like sane-defaults option?
[18:01] <Mavrik> there's no such thing as sane defaults for what people do with ffmpeg
[18:01] <Mavrik> also, video encoding is hard :/
[18:01] <naprac> lol
[18:01] <CrashSys> ^
[18:01] <naprac> is there -all?
[18:02] <c_14> naprac: Most things are enabled by default unless they need external libraries.
[18:02] <c_14> Or are under gpl etc.
[18:02] <c_14> Check ./configure --help
[18:02] <naprac> why didny' the configure then run withput any options?
[18:03] <CrashSys> Hmmm, the images are zero padded for 3 digits, but actually go up to 4 digits sequentially :|
[18:03] <c_14> You can use the glob option.
[18:03] <c_14> -pattern_type glob
[18:04] <CrashSys> duration looks right according to ffmpeg -i though
[18:04] <c_14> naprac: what was the error?
[18:05] <naprac> no erro, it just hanged
[18:05] <naprac> what wast the alsa option , cam't find it
[18:06] <c_14> It might take a while.
[18:07] <naprac> well i founf x11grap and it's no
[18:07] <c_14> alsa might be on by default, it should be an indev
[18:07] <naprac> so i need that, but can't find alsa, maybe using different name?
[18:07] <c_14> --enable-indev=alsa or something
[18:07] <c_14> But I think it's enabled by default.
[18:08] <c_14> Yeah, it's an indev, it should be on by default.
[18:09] <naprac> well x11 needed gpl, sigh well see if that was enough
[18:09] <naprac> it doesn't run
[18:10] <c_14> configure?
[18:10] <c_14> Might take a few seconds.
[18:11] <naprac> ok, now it gave at last lines: License: GPL version 2 or later Creating config.mak, config.h, and doc/config.texi...
[18:11] <naprac> wonder if it finished went real fast though
[18:12] <naprac> shouldn't it say that configured ok or somesuch?
[18:13] <saste> anyone has experience with live streaming from ffserver to web browsers?
[18:13] <saste> tried several combinations only very few seems working
[18:13] <naprac> well it starts compiling
[18:13] <c_14> As soon as it says creating it should be done
[18:14] <naprac> lots of warning and depracated lines, doesn't look normal but no errors yet
[18:15] <c_14> warnings and deprecations are normal
[18:18] <naprac> is there a gui for ffmpeg?
[18:18] <c_14> Probably, but I wouldn't know of one.
[18:19] <CrashSys> Hmmm. The test video from that ffmpeg command looks good until I try to seek in windows media player, then I get green artifacts all over the place
[18:20] <c_14> How about something that isn't windows media player?
[18:21] <CrashSys> I guess it does that til it hits a keyframe or something?
[18:21] <CrashSys> Yeah, loading up MPC
[18:21] <c_14> Might be.
[18:23] <CrashSys> yeah MPC works fine
[18:23] <CrashSys> Although the jpegs are supposed to be 10 minutes long and the mp4 is 9m30s
[18:24] <CrashSys> so not sure if that's just the whole thing getting shortened or what
[18:25] <c_14> You might want to set the output fps, also switch from -r to -framerate on the input side. (it probably isn't breaking anything, but it's good practice)
[18:25] <CrashSys> ok
[18:26] <CrashSys> so specify -framerate 5 after -i?
[18:27] <c_14> before -i, instead of -r 5
[18:27] <CrashSys> ok
[18:29] <naprac> takes time to compile, went to a coffe and still isn't finished
[18:30] <CrashSys> Oh nevermind it's right
[18:30] <CrashSys> Thanks for all the help guys :)
[19:18] <naprac> doesn't work with the new version either
[19:20] <FrEaKmAn_> hi all...
[19:21] <naprac> it started whining: Unrecognized option 'crf' then when i removed that from command Unrecognized option 'preset' remove that it says Unknown encoder 'libx264'<sigh>
[19:21] <FrEaKmAn_> is there a different if I run ffprobe and one file reports Stream #0.0(und): Video: h264 (High), yuv420p, 640x360, 522 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc and other Stream #0.0(und): Video: h264 (High), yuv420p, 640x360 [PAR 1:1 DAR 16:9], 750 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc
[19:21] <FrEaKmAn_> so no PAR and DAR
[19:21] <c_14> naprac: You didn't compile with libx264 support (probably)
[19:21] <FrEaKmAn_> because I'm trying to figure it out why if I concat these 2 files, it does not work
[19:21] <naprac> probably and probably whatever else
[19:22] <FrEaKmAn_> ok
[19:22] <naprac> is there any *sure* way to record video and audio with this config i only enabled x11grab?
[19:24] <c_14> Use a built in codec.
[19:25] <c_14> ffmpeg -codecs
[19:26] <naprac> that shows --enable-libx264 as configuration option?
[19:27] <c_14> Can you pastebin your output?
[19:27] <naprac> wait no
[19:28] <FrEaKmAn_> c_14: http://pastie.org/private/8okpiwcu60khgtcqccglq
[19:29] <naprac> now i have two ffmpegs, so it printet the old verions config
[19:29] <naprac> okay, now with new one -codecs param what am i looking from this?
[19:30] <FrEaKmAn_> c_14: the point is that video_flv.mp4 and video_mp4.mp4 work
[19:30] <FrEaKmAn_> only when concat it fails and flv fails
[19:30] <naprac> whats the name of builtin codecs?
[19:32] <naprac> mpeg4?
[19:33] <FrEaKmAn_> + I get Non-monotonous DTS in output stream 0:1; previous: 7561013, current: 5646397; changing to 7561014. This may result in incorrect timestamps in the output file.
[19:33] <c_14> naprac: Just pick one you like in that list.
[19:34] <FrEaKmAn_> it's looks like a bug https://trac.ffmpeg.org/ticket/3553
[19:35] <naprac> it doesn't accept anything i tried -vcodec mpeg4 and flv1
[19:35] <c_14> FrEaKmAn_: you can't just concat flv with h264, if that's what you're trying to do
[19:35] <c_14> naprac: Just pastebin your whole cammand and output please
[19:35] <FrEaKmAn_> c_14: but I converted it to mp4
[19:36] <c_14> mp4 is a format, not a codec
[19:36] <FrEaKmAn_> with libx264 codec
[19:36] <naprac> how do i recognice what is a codec from ffmpeg -codecs output?
[19:37] <naprac> i.e. what is correct parameter to -vcodecs
[19:42] <naprac> mayde if i reconpile it with old versions configure parameters?
[19:52] <c_14> naprac: everything with an E and a V
[19:53] <c_14> FrEaKmAn_: can you paste the comulete commandline and full output of the concat command
[19:53] <naprac> i alrady started to recompile with options copied from old versions -codecs output ;)
[19:56] <naprac> well mpeg4 has both e and v but -vcodec mpeg4 didn't work
[19:57] <FrEaKmAn_> c_14: http://pastie.org/private/bzhc0jblbqdu169focq54g
[19:57] <c_14> It doesn't look like it's erroring out, what's the problem.
[19:57] <c_14> s/\./?
[20:06] <naprac> what is the most simple form of command to record video and audion from screen? just using defaults something
[20:09] <c_14> ffmpeg -f x11grab -i :0.0 out.mkv
[20:10] <naprac> that takes audio too?
[20:10] <c_14> No
[20:10] <c_14> ffmpeg -f x11grab -i :0.0 -f alsa -i hw:0 out.mkv
[20:10] <c_14> should
[20:11] <c_14> But it depends on the hardware device you want to record
[20:12] <TD-Linux> if you use pulse you want to record from a loopback device
[20:13] <naprac> Unrecognized option 'i:0.0'.
[20:13] <TD-Linux> you forgot a space
[20:15] <davis> hello
[20:15] <davis> i'm reading a book and trying to use it to learn ffmpeg. it has the following example usage: ffmpeg -f lavi -i rgbtestsrc -pix_fmt yuv420p -f sdl Example
[20:16] <davis> it appears -f sdl no longer works. any workaround?
[20:16] <sfan5> ffplay -f lavfi -i rgbtestsrc does the same
[20:16] <sfan5> except that it doesn't convert to yuv420p pixel format before displaying
[20:18] <davis> sfan5: i get an error with ffplay, it says unknown input format: lavfi
[20:18] <sfan5> your ffmpeg might be outdated
[20:19] <sfan5> I just tested using -f sdl
[20:19] <sfan5> and "ffmpeg -f lavfi -i rgbtestsrc -pix_fmt yuv420p -f sdl -" works fine
[20:19] <FrEaKmAn_> c_14: isn't Non-monotonous DTS in output stream an error?
[20:20] <c_14> An error is something that causes ffmpeg to stop running.
[20:20] <c_14> Everything else is a warning.
[20:20] <davis> hmm. i just tried to update it. i guess this distro's stable version is old. I'm the latest version for this distro. i'll try to get a custom built one working. thanks.
[20:21] <FrEaKmAn_> c_14: makes sense.. but output video is not playable
[20:21] <FrEaKmAn_> at least the part where flv is
[20:24] <c_14> The one from the flv is concated second?
[20:24] <naprac> okay, this sort of works but the video is not good quality
[20:25] <naprac> btw, why an earth isn't that command in the example page instead of the cryptic one that doesn't even work?
[20:25] <FrEaKmAn_> c_14: first, second, in the middle
[20:25] <FrEaKmAn_> everywhere same error
[20:25] <FrEaKmAn_> when playing
[20:25] <c_14> But only the one from flv doesn't play correctly?
[20:26] <FrEaKmAn_> if flv is included in concat, then video is not playable
[20:26] <c_14> naprac: because the one on the wiki shows all the options you can use with the format, and the quality - what codec did you use?
[20:26] <FrEaKmAn_> actually, the other parts is
[20:27] <FrEaKmAn_> and flv part is only few seconds
[20:27] <FrEaKmAn_> so it's really confusing
[20:27] <FrEaKmAn_> other parts are*
[20:27] <naprac> i assume it uses mpeg4 i didn't specify any
[20:27] <c_14> The only difference I can see in the ffprobes between the video from mp4 and the other ones is that the one from flv doesn't have a sar/dar listed. You might want to try setting that manually.
[20:28] <naprac> Metadata: ENCODER : Lavf55.48.100
[20:28] <FrEaKmAn_> c_14: actually I updated the convert parameter and added -scala 16:9
[20:28] <FrEaKmAn_> only different I see is audio and I'm trying to convert to same bitrate and samplerate
[20:28] <FrEaKmAn_> -scale*
[20:29] <c_14> FrEaKmAn_: Do you mean -aspect or -s, I don't know of a -scale.
[20:29] <FrEaKmAn_> yes sorry, -aspect 16:9
[20:29] <c_14> naprac: that's just the libavformat library version, either ffprobe the output file or do a ffmpeg -h muxer='whatever muxer you used)
[20:29] <c_14> And that doesn't help?
[20:29] <FrEaKmAn_> I'm getting confused with all of these parameters :)
[20:30] <naprac> c_14, thats from ffprobe, i just don't know what to get from there ;) there is also Stream #0:0: Video: mpeg4 (Simple Profile), yuv420p, 1300x736 [SAR 1:1 DAR
[20:31] <c_14> >mpeg4, it says right there
[20:31] <FrEaKmAn_> c_14: is was audio problem.. it works now
[20:31] <naprac> thats what i said in first place
[20:31] <FrEaKmAn_> only problem is there is no sound
[20:31] <FrEaKmAn_> :(
[20:31] <naprac> so i assume mpeg4 compresses alot and therefor the video is blurry?
[20:31] <naprac> which codec makes best quality?
[20:32] <c_14> naprac: Something along those lines, yes. mpeg4 is not that great a codec.
[20:32] <c_14> 'best quality' would technically be a lossless codec, but h.264 is usually considered a good choice for most video encoding if you don't want something lossless.
[20:32] <FrEaKmAn_> naprac: I'm using libx264 with -crf settings
[20:33] <naprac> that doesn't work for me it whines -crf not recogniced
[20:33] <naprac> i need to use builtin codecs
[20:33] <naprac> whuch one is best of those?
[20:36] <FrEaKmAn_> naprac: are you using latest version of ffmpeg?
[20:36] <naprac> yes
[20:36] <naprac> but i didn't know what to compile in so i only have x11grab and cpl
[20:36] <JEEB> if you want to compress, just get a binary that can use libx264 :P
[20:36] <JEEB> nothing comes close
[20:37] <c_14> JEEB: static builds don't have x11grab
[20:37] <JEEB> yes, then he has to build himself
[20:37] <JEEB> x264 is not exactly hard to compile
[20:37] <naprac> i have it recompiling with libx264 in another window, but it takes time
[20:37] <JEEB> --enable-static methinks for a static library to be installed in addition to the x264 command line app
[20:37] <JEEB> for x264, that is
[20:37] <JEEB> and then just --enable-libx264 --enable-gpl needed from ffmpeg
[20:38] <JEEB> anyways, you can just put all of the lavc internal lossy encoders as something that won't get you a good compression ratio, and none of them have anything close to x264's preset system
[20:40] <naprac> i used conf options from the old install not sure if all those are needed anymo: --disable-debug --enable-shared --disable-static --enable-pthreads --enable-libtheora --enable-libvorbis --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-x11grab --enable-avfilter --arch=i486 --enable-libmp3lame --enable-libx264
[20:41] <JEEB> lol
[20:41] <naprac> not good?
[20:42] <JEEB> sounds like the usual "I copied this off of a compilation guide ages ago"
[20:42] <FrEaKmAn_> any ideas why there is no sound? I'm using -ar 22050 -ab 32 when converting (full at http://pastie.org/9432258)
[20:42] <JEEB> or well, reads like :P
[20:42] <JEEB> and that's not even mingw, where you used to need some weird-ass parameters
[20:43] <JEEB> let's just say that start from a clean slate, and then enable the things you need :P
[20:43] <JEEB> also are you really running this on a 486?
[20:44] <naprac> well thats from old versions ffmped -codecs output so i guess so, it was a version that came with os, it's old too
[20:44] <c_14> FrEaKmAn_: Maybe try using a bitrate larger than 32bit/s ?
[20:44] <naprac> this is an old puter too
[20:44] <JEEB> yes, but is it a 486?
[20:45] <naprac> what was the command to get cpuinfo?
[20:45] <FrEaKmAn_> c_14: I need specify as {number}k
[20:45] <JEEB> lscpu
[20:45] <FrEaKmAn_> otherwise its just bits
[20:46] <c_14> yes
[20:46] <FrEaKmAn_> after so much work I think I solved it :)
[20:46] <naprac> Architecture: i686
[20:46] <JEEB> yeah, I would be surprised if you had a 486 there :P
[20:47] <JEEB> and most compilers either default to 686 or 586
[20:47] <JEEB> (32bit)
[20:47] <naprac> well i don't think that means alot, or does it?
[20:47] <JEEB> you can't use SSE f.ex.
[20:47] <JEEB> heck, you can't use goddamn pentium instructions :P
[20:47] <naprac> so i should change that to i686?
[20:47] <JEEB> just leave it out
[20:47] <JEEB> that's what I'm trying to say
[20:48] <JEEB> basically start off a clean sheet
[20:48] <JEEB> and enable the stuff you need
[20:48] <naprac> what else to leave out? or even better what is a prober line for conf?
[20:48] <JEEB> tell me what you need
[20:48] <JEEB> from the build
[20:48] <JEEB> other than "runs on my computer"
[20:48] <onyx> Hey guys, I have an IP camera that has no audio, and Im feeding it into wowza to restream, it works fine in desktop but not im mobile, do you think I can transcode the video from the IP camera with FFmpeg and feeding that into wowza would work?
[20:49] <naprac> record video from screen with audio and sometimes crab images from video or edit size of video or crab audio out of video to flac and increase volume of flac files
[20:50] <naprac> hmm i think thats pretty much what i ever do with ffmpeg ;)
[20:50] <JEEB> let's make it like this: most of the things internal are enabled by default, except for the GPL parts (of which there are very little in general)
[20:50] <JEEB> GPL is generally needed by external libraries
[20:51] <JEEB> most external libraries are encoders
[20:51] <naprac> i was happy with the old ffmpeg until i today tried to record a video with audion from screen which instantiated all this ;)
[20:52] <naprac> okay now i have new compilation ready
[20:52] <JEEB> I will guess that you will want something like --enable-gpl --enable-x11grab --enable-libx264 for the screen capture and lossy video coding, and if you already have libvorbis and libmp3lame installed you might as well enable those too
[20:53] <JEEB> everything else I see in that configuration is pretty much useless
[20:53] <JEEB> esp. if you only want the ffmpeg command line app
[20:54] <JEEB> postproc is not really used, avfilter and swscale are enabled by default. No idea about x11grab's license, but unless it is GPLv3 you don't need --enable-version3 (because all it does is switch you from GPLv2 to GPLv3 - mostly needed for apache v2 licensed things, as only GPLv3 is compatible with it)
[20:54] <naprac> this is the current conf: --disable-debug --enable-shared --disable-static --enable-pthreads --enable-libtheora --enable-libvorbis --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-x11grab --enable-avfilter --arch=i486 --enable-libmp3lame --enable-libx264
[20:54] <naprac> how would you change it?
[20:54] <JEEB> what I just said
[20:55] <naprac> no, can you edit that one
[20:55] <JEEB> I did
[20:55] <JEEB> those three for screen capture, and enable mp3lame and vorbis if you already have them installed as libraries
[20:56] <JEEB> and if x11grab will fail at configuration, then maybe enable-version3. But I would be surprised if it needs GPLv3.
[20:56] <onyx> Hey guys, I have an IP camera that has no audio, and Im feeding it into wowza to restream, it works fine in desktop but not im mobile, do you think I can transcode the video from the IP camera with FFmpeg and feeding that into wowza would work?
[20:56] <FrEaKmAn_> c_14: btw, thanks!
[20:56] <naprac> this is good?: --enable-libvorbis --enable-gpl --enable-x11grab --arch=i686 --enable-libmp3lame --enable-libx264
[20:57] <JEEB> leave the arch out
[20:58] <naprac> you sure i don't need that other stuff libtheoras etc?
[20:58] <JEEB> I've explained the uselessness of some of those
[20:58] <JEEB> and theora is a case of "no-one but hardcore freetards uses this"
[20:59] <JEEB> there's a theora decoder in lavc internally, and thus you only gain the encoder from it
[20:59] <naprac> ic, ok, i compile third...and hopefully a final time ;)
[20:59] <naprac> but lets 1st try with this one if it can do the example
[21:02] <naprac> https://trac.ffmpeg.org/wiki/Capture/Desktop does the last example work with your install?
[21:03] <naprac> it doesn't work with new with old options including libx264 either
[21:03] <JEEB> I'm going to bet on the shared libraries
[21:03] <naprac> yes
[21:03] <naprac> error while loading shared libraries: libavdevice.so.55: cannot open shared object file: No such file or directory
[21:03] <JEEB> just build with the settings we discussed
[21:03] <naprac> okay
[21:03] <JEEB> ffmpeg by default builds static libraries
[21:04] <JEEB> you SPECIFICALLY disabled those and enabled shared library usage
[21:04] <JEEB> shared libraries are nice when multiple apps use those libraries, and when they are installed to a globally available directory (default library loading path)
[21:05] <JEEB> shared libraries are not nice when you "Just Want To Compile A Binary And Run It In Its Directory"
[21:05] <naprac> beast of a program, have to say ;)
[21:05] <JEEB> also don't forget to do make distclean between the compiles to clean the build directory up :P
[21:05] <JEEB> clean up -> configure -> build
[21:06] <naprac> now tou saying ;)
[21:07] <naprac> well done, now 4th conf
[00:00] --- Thu Jul 31 2014
More information about the Ffmpeg-devel-irc
mailing list