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

burek burek021 at gmail.com
Tue Sep 9 02:05:01 CEST 2014


[00:24] <Lac3rat3d> okay i figured out that -strict 2 is supposed to enable the  use of the experimental encoder 'aac'
[00:24] <Lac3rat3d> but it never lets me use it, even if i put -strict 2
[00:24] <Lac3rat3d> it always complains to use the strict 2 switch or use libvo_aacenc
[00:45] <c_14> -strict -2
[00:48] <Lac3rat3d> cool, i also found that -strict experimental worked
[00:48] <Lac3rat3d> thanks :)
[00:49] <Mavrik> Lac3rat3d, make sure you're really running the newest build
[00:49] <Lac3rat3d> i just downloaded a new windows build :)
[00:52] <Lac3rat3d> Mavrik: i noticed the wiki says libfdk_aac is better than the native ffmpeg aac encoder
[00:52] <Lac3rat3d> but it's not free?
[01:02] <Hello71> that's why there's a native ffmpeg aac encoder.
[01:02] <Lac3rat3d> ya im just curious how much better the other one is. and how it compares to the ac3 one too
[01:06] <Hello71> !tias
[04:14] <rule_2> Is -qscale 0 the only option I would need to include to get lossless encoding with mpeg2video as my codec?
[04:14] <rule_2> or is there anything else?
[04:14] <rule_2> I am getting 5 mbps with that option which seems far too low for mpeg2 video
[04:23] <sacarasc> I didn't think that MPEG2 could do lossless.
[04:28] <blockh34d> hello
[04:28] <blockh34d> i'm on a raspberry pi and i recently went through the upgrade process
[04:28] <rule_2> what would you say is the easiest to encode lossless codec? bitrate/performance isn't the most important thing
[04:28] <blockh34d> afterwords, ffmpeg no longer seemed to have ffprobe
[04:28] <rule_2> just low cpu utilization
[04:28] <blockh34d> now other stuff is broken please help
[04:29] <blockh34d> is it included with something else now maybe?
[04:32] <blockh34d> is there something else i can use like ffprobe instead?
[04:35] <rule_2> would Huffyuv or ffv1 be better for realtime lossless compression of a 1080p rawvideo output from a camcorder?
[04:36] <rule_2> better being defined as more likely to encode at realtime on my processor
[04:38] <blockh34d> anyone else having any problems using ffprobe?
[04:46] <blockh34d> looks like ffprobe is now avprobe
[04:47] <blockh34d> i've been trying to stick with ffmpeg over avconf cause i can't figure out whats going on there
[04:47] <aphid> sounds like someones using libav
[04:47] <blockh34d> seems like some sort of conflict
[04:47] <blockh34d> i'm trying to use ffmpeg
[04:47] <blockh34d> maybe rpi has other plans but ffmpeg is what i installed
[04:48] <blockh34d> its worked for most a year so far
[04:48] <aphid> ive never used either probe, so Im no help
[05:14] <Nosomy> ffplay don't supports matroska with hevc stream?
[05:16] <sacarasc> What errors are you getting.
[05:23] <Nosomy> sacarasc http://pastie.org/9535179
[05:23] <Nosomy> for raw hevc stream is fine, but mkv (matroska) fails
[05:27] <Nosomy> sacarasc, did you see?
[05:30] <Nosomy> http://pastebin.com/xRVmaCV3
[05:45] <Nosomy> need a sample for test?
[06:07] <rule_2> if i could turn back time
[06:07] <rule_2> i would find a way
[06:30] <Nosomy> the problem remains: http://pastebin.com/EATHes2b
[07:33] <Zeranoe> Holy cow the ads on pastebin
[09:45] <roughana> hi, i'm back with a problem compiling on ARM
[09:46] <roughana> Last time, I received assistance with setting up configure parameters as so:
[09:46] <roughana> ffmpeg version N-66094-gbb8b752 Copyright (c) 2000-2014 the FFmpeg developers
[09:46] <roughana> built on Sep 6 2014 21:10:09 with gcc 4.2.3 (GCC)
[09:46] <roughana> configuration: --arch=armv5te --cpu=armv5te --prefix=/opt --extra-cflags=-I/opt/include --extra-ldflags='-L/opt/lib -Wl,-rpath=/opt/lib' --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-libmp3lame --enable-rpath --disable-neon
[09:46] <roughana> I tried the following:
[09:46] <roughana> ffmpeg -i "03 Desire.m4a" -vn -ab 320k -ar 44100 Desire.mp3
[09:46] <roughana> and received this output:
[09:47] <roughana> ffmpeg version N-66094-gbb8b752 Copyright (c) 2000-2014 the FFmpeg developers
[09:47] <roughana> built on Sep 6 2014 21:10:09 with gcc 4.2.3 (GCC)
[09:47] <roughana> configuration: --arch=armv5te --cpu=armv5te --prefix=/opt --extra-cflags=-I/opt/include --extra-ldflags='-L/opt/lib -Wl,-rpath=/opt/lib' --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-libmp3lame --enable-rpath --disable-neon
[09:47] <roughana> libavutil 54. 7.100 / 54. 7.100
[09:47] <roughana> libavcodec 56. 1.100 / 56. 1.100
[09:47] <roughana> libavformat 56. 4.100 / 56. 4.100
[09:47] <roughana> libavdevice 56. 0.100 / 56. 0.100
[09:47] <roughana> libavfilter 5. 0.103 / 5. 0.103
[09:47] <roughana> libswscale 3. 0.100 / 3. 0.100
[09:47] <roughana> libswresample 1. 1.100 / 1. 1.100
[09:47] <roughana> Illegal instruction
[09:48] <roughana> Perhaps I should go back to using --arch=arm --enable-armv5te instead of --arch=armv5te --cpu=armv5te ?
[09:53] <roughana> although, I wonder if there is something wrong with the libmp3lame library.
[09:53] <roughana> Is there a way to check for illegal instruction usage in a library?
[10:17] <pantra> hi
[10:24] <pantra> I'm currently upgrading a dll-project from ffmpeg 0.87 to 2.3.3
[10:24] <pantra> quite a big jump, but until now it went pretty smoothly. Only now I can't seem to find information how to set what was once AVCodecContext::partitions (or "crf" and "cqp", too)
[10:24] <pantra> does someone have a hint for me?
[11:53] <wintershade> hey guys. I'm fiddling with mpeg4-ASP again (converting some videos for my parents and my gf to watch on their oldish home theaters). from your experience, what would yield better video quality - mpeg4 or libxvid? (speed is less important to me atm) thanks!
[12:10] <wintershade> okay, another question... if someone can answer this - I've set -codec:v mpeg4 and -vtag DX50, -f avi. however, when I open the video with MPlayer, it detects video format as MP4V, rather than divx50 or something. what gives?
[12:48] <wintershade> hey again :) another question, if anyone would know. what does the -preme option do? Some articles suggest using it, others don't. how high can it go, and what impact will it have on speed/quality? tia
[13:07] <sfan5> wintershade: https://trac.ffmpeg.org/wiki/Encode/MPEG-4 read that?
[13:15] <wintershade> sfan5: yes, and a few more. I cannot find anything about the -preme option, however. any ideas?
[13:16] <sfan5> no, never heard of -preme
[13:17] <wintershade> sfan5: it's mentioned here https://wiki.archlinux.org/index.php/Ffmpeg#Two-pass_MPEG-4_.28very_high-quality.29
[13:17] <sfan5> the arch wiki likely has good recommendations
[13:17] <wintershade> sfan5: and while this guide (with a few obsolete parameters removed) will give rather good results, I would still like to know what are they for.
[13:17] <sfan5> I'd suggest you to just try and see what changes
[13:18] <c_14> >  -preme             <int>        E..V.... pre motion estimation (from INT_MIN to INT_MAX) (default 0)
[13:18] <wintershade> sfan5: well, I've fiddled with the -preme option, and raising it above 2 gives me a few more FPS (or so it seemed in one particular run). what I'd like to know is how it impacts the video quality now.
[13:18] <wintershade> c_14: okay, and what are INT_MIN and INT_MAX? what values are considered sane?
[13:18] <K4T> I have Intensity Pro video card. I can preview video from that card in VLC using DirectShow. I can also get preview in ffplay. But in both I dont have sound, only video. Any ideas?
[13:19] <sfan5> INT_MIN is about -2 000 000 and INT_MAX about 2 000 000
[13:19] <wintershade> sfan5: and yes, I know archwiki has good recommendations. thanks to that and the Gentoo handbook I've learned to use Linux :D
[13:19] <sfan5> but I don't think those are sane values
[13:19] <wintershade> sfan5: ...no, I wouldn't say they are either.
[13:19] <K4T> If I run Media Express I can see that bars from audio signal are alive... so sound should be there... but why I am getting only video?
[13:23] <c_14> wintershade: I guess the larger the value the more time FFmpeg spends guessing at where in the movie there's a lot of motion that needs more bitrate.
[13:24] <c_14> K4T: https://trac.ffmpeg.org/wiki/DirectShow
[13:24] <wintershade> c_14: so I should put it as high as I can?
[13:25] <K4T> c_14 I rwad it already
[13:25] <K4T> read*
[13:25] <c_14> wintershade: It's probably just overkill. I wouldn't increase it above like 5. The default should be relatively sane.
[13:25] <K4T> c_14: http://forum.blackmagicdesign.com/viewtopic.php?f=18&t=27038&p=167818#p167818 you can also see more detailed post here
[13:26] <wintershade> c_14: but the default is 0... lol
[13:26] <c_14> wintershade: Since the value can be negative, 0 is probably a half-way point.
[13:26] <wintershade> c_14: ahh... makes sense.
[13:27] <wintershade> well thanks :)
[13:27] <wintershade> btw, any ideas on my previous question? MPlayer doesn't seem to recognise the -vtag option anymore...
[13:27] <wintershade> also, -tag:v makes no difference.
[13:27] <sfan5> mplayer?
[13:28] <wintershade> sfan5: mplayer. as in, the movie player. on Linux. frontended by SMPlayer as well.
[13:28] <c_14> K4T: are you specifying an audio device as well as a video device in your ffmpeg/ffplay command?
[13:28] <sfan5> why not use ffmpeg?
[13:29] <wintershade> sfan5: for playing video?
[13:29] <wintershade> hmm...
[13:29] <mistawright_> hi guys i have a created a video from images and have two png's overlayed. I need to set the video size and can not as it is taking the size of the input images. how can i set the resolution and have it display the image in its native size with black border if necessary?
[13:29] <sfan5> <wintershade>  [...] (converting some videos for my parents and my gf to watch on their oldish home theaters)[...]
[13:30] <wintershade> sfan5: indeed. I'm using ffmpeg to convert them, but I'm also using mplayer on my laptop to test if they work. so far, when mplayer's info looked good, it worked on the home theater as well.
[13:30] <c_14> mistawright_: look at the pad filter
[13:31] <sfan5> wintershade: mplayer does not have the same options as ffmpeg
[13:31] <wintershade> mistawright_: try crop, pad and scale filters. not necessarily in that particular order.
[13:31] <sfan5> and vtag sets the codec tag
[13:31] <sfan5> when just playing video the codec tag doesn't matter anyway
[13:31] <wintershade> sfan5: I know, and until now, whenever I set -vtag DX50 or -vtag XVID, mplayer recognised them properly.
[13:31] <wintershade> sfan5: it doesn't? don't the old HT players check this tag?
[13:32] <sfan5> the codec tag does matter, but it doesn't matter if you set it while just playing a video with mplayer
[13:33] <wintershade> sfan5: I see. thanks for that too :)
[13:33] <mistawright_> wintershade: I believe i need to set the video output size. I am using jpg and pngs and creating a video with overlayed pngs. the video takes the size of the jpg. How do I force it to 854x480 not sure where I should be scaling or if I should be
[13:34] <wintershade> mistawright_: try vf scale=854:480
[13:35] <sfan5> scale does not add a black border, does it?
[13:35] <wintershade> mistawright_: be careful about the aspect ratio, though. if your images are of varying sizes, you might want to process them with imagemagick or something first.
[13:35] <mistawright_> ive tried that and failed
[13:35] <mistawright_> still uses the size of the input images
[13:35] <wintershade> mistawright_: are all your images of the same size?
[13:35] <K4T> c_14: here is my commands and devices: http://pastebin.com/8xutyizS
[13:36] <wintershade> sfan5: he said add black borders if necessary...
[13:36] <wintershade> sfan5: but yeah, one could assume he needs them.
[13:36] <mistawright_> yes except the ovelrays the overlays are 854x480
[13:36] Last message repeated 1 time(s).
[13:36] <wintershade> mistawright_: and what size are other images?
[13:36] <wintershade> mistawright_: you might want to use imagemagick first, to scale all your images to the same size.
[13:37] <mistawright_> 640x480
[13:37] <wintershade> mistawright_: that's what I do when I need to do something like that, at least. I don't know if ffmpeg can do it on it's own (I'm sure it can), but I prefer to use this.
[13:37] <wintershade> mistawright_: you should pad your 640x480 images with black borders first.
[13:37] <c_14> K4T: hmm, no clue. You might have to wait around until someone with more Windows knowledge shows up. You can also try the mailing list.
[13:37] <wintershade> mistawright_: try this...
[13:38] <wintershade> mistawright_: convert <input_image.jpg> -gravity center -background black -extent 854:480 <output_image.jpg>
[13:38] <wintershade> mistawright_: or even better...  <output_image.png>
[13:38] <wintershade> mistawright_: so you don't lose quality with jpeg
[13:39] <wintershade> mistawright_: I'm assuming you're on Linux... right?
[13:39] <mistawright_> yeah
[13:39] <wintershade> mistawright_: cool. chances are that you already have imagemagick installed.
[13:39] <mistawright_> let me whip up quick bash script to process the images
[13:39] <wintershade> mistawright_: good luck
[13:40] <wintershade> mistawright_: try with one image first, see if it will give you what you need.
[13:41] <wintershade> mistawright_: ...or you could crop the overlays to 640x480 :D
[13:41] <wintershade> if there's one thing I've learned, then it's that it's always best to work with all frames/layers of the same size, regardless of whether you're ffmpeg'ing or gimp'ing or anything else.
[13:42] <wintershade> anyway... I'll be going soonish. thanks to sfan5 and c_14 for help :)
[13:43] <wintershade> mistawright_: also... if you're working with png's, this might do the trick...
[13:43] <wintershade> convert <input.png> -bordercolor black -border 107x0 <output.png>
[13:44] <wintershade> mistawright_:  -border 107x0 will add borders on left and right, each of 107px width, which will add up to 854x480 as a resulting image
[13:44] <mistawright_> it gave me an error about invalid geometry `854:480'
[13:45] <mistawright_> ill look into that though
[13:45] <wintershade> mistawright_: what did?
[13:45] <wintershade> mistawright_: imagemagick? try the border I mentioned just now.
[13:45] <wintershade> anyway, I've offtopicked enough, and need to go back to work. bye all!
[13:47] <pmarty> what is the difference between ipod and mp4 output formats? they both claim compliance with MPEG-4 part 14
[13:48] <roughana> resend: Is there a way to check for illegal instruction usage in a library?
[13:49] <roughana> ie to answer the question, is the library built appropriately for the target architecture
[13:50] <K4T> c_14: look http://stackoverflow.com/questions/16618686/directshow-capture-source-and-ffmpeg that is my problem
[13:51] <BtbN> Capturing with DirectShow is incredibly painfull. It's nearly impossible to write a generic solution that works with everything.
[13:51] <BtbN> Every vendor implements it however it likes, you'd have to write vendor specific code for every single card in existence
[13:53] <K4T> :(
[14:02] <roughana> does ffmpeg include library to decode m4a or do i need to compile FAAD as well?
[14:09] <roughana> I want to pyTivo to convert m4a (iTunes library) into m3 for playback on TiVo.
[14:09] <roughana> I had to link LAME for mp3
[14:10] <roughana> Do I need to do anything for m4a?
[14:10] <pmarty> roughana: ffmpeg is able to decode aac by itself (no external libs)
[14:10] <pmarty> ffmpeg -decoders | grep aac
[14:16] <pa> hello
[14:18] <pa> i have a weird question: i was reading the trac page about streaming using ffserver and i was wondering whether this method of streaming supports transconding with seeking ?
[14:22] <K4T> can someone give me advice how to calculate value for rtbufsize? I am taking input from directshow device.
[14:23] <K4T> and where that buffer will be stored? In RAM?
[14:46] <roughana> thanks pmarty
[14:49] <joules> hi, with mcdeint is the parity the same as what I select for yadif
[14:58] <roughana> ffmpeg 0.6.7 configure does not appear to support the --enable-rpath option
[14:59] <roughana> any idea when that option was first supported?
[15:10] <pmarty> while i was transcoding with libx264 -crf 23 i've noticed q=29.0 in ffmpeg output? is it normal, i.e. it shows quantization value in some other scale?
[15:16] <Mavrik> yes
[15:16] <Mavrik> also it chooses the highest quantization it can for the quality... so you'll see high values for "slow" input
[15:16] <Mavrik> or simple input
[15:17] <JEEBsv> pmarty: CRF is the rate factor you set, the quantizer value can be completely differnt (and variable)
[15:18] <JEEBsv> thus that ends up being some kind of average or whatever of what quantizers the encoder used
[15:19] <pmarty> okay, now i get it. two different things but one influences the other
[15:20] <someone-noone> hi. How can I capture microphone on OS X?
[15:49] <sky3> im on mint mate 17
[15:50] <sky3> im trying to convert a video which is .mov into a 3gp
[15:50] <sky3> i ran the command "cd ~/Desktop && ffmpeg -i 142306432.mov 142306432.3gp
[15:51] <sky3> terminal output is " The specified picture size of 480x360 is not valid for the H.263 codec.
[15:51] <sky3> Valid sizes are 128x96, 176x144, 352x288, 704x576, and 1408x1152. Try H.263+.
[15:51] <sky3> so how to fix this..
[15:51] <sky3> can any one pls help me...
[15:52] <c_14> ffmpeg -i 142306432.mov -c:v h263p 142306432.3gp
[15:52] <sky3> the last two lines on the TERMINAL are " Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[15:52] <sky3> "
[15:53] <c_14> Or scale the video to one of the sizes supported by standard H.263.
[15:53] <sky3> ok c_14
[15:54] <sky3> the file is on Desktop ..so i should start with " cd ~/Desktop && ffmpeg -i .." is that ok?
[15:54] <c_14> yeah, that's fine
[15:54] <sky3> ok
[15:55] <sky3> let me try again
[16:00] <sky3> nope
[16:00] <sky3> no
[16:00] <sky3> did not succeed
[16:00] <sky3> c_14
[16:02] <sky3> ok
[16:03] <sky3> fflogger:  iw ill use dapste.com
[16:03] <sky3> dpaste*
[16:03] <sky3> sorry
[16:04] <klaxa> you don't have to apologize for typos :)
[16:05] <sky3> not for typos ..as i used ffmpeg command so i did
[16:05] <sky3> but i hope i can put ffmpeg command ghere
[16:05] <sky3> here
[16:05] <sky3> for output i will use dpaste.com
[16:06] <termos> I'm trying to convert an AVFrame from YUV420P into RGB24 and back again to YUV420P using sws_scale but I get a very green and noisy frame where there seems to be thee copies of the original frame next to each other.
[16:08] <termos> https://dl.dropboxusercontent.com/u/28287972/distorted_video.png this is what it looks like
[16:09] <FunnyLookinHat> Hey guys - I've been out of the encoding scene for a while...  is the current best tool for encoding H264 / WebM / Ogg videos FFMPEG or Libav?
[16:10] <FunnyLookinHat> I'm more familiar with FFMPEG - so if there is negligible difference I'd prefer to stick with that.
[16:10] <saste> FunnyLookinHat, !fork
[16:10] <FunnyLookinHat> hehe
[16:11] <FunnyLookinHat> saste, thanks!
[16:15] <roughana> I built ffmpeg 0.6.7 with the LAME library and now m4a to mp3 works, but pyTivo streaming to the TiVo is jittery. I think the transcoding on the QNAP is taking longer than what the TiVo needs for smooth playback. I really don't want to convert my iTunes library to MP3. Perhaps a later version of ffmpeg would provide a better experience. Any ideas which version to try?
[16:15] <sky3> i want to convert an .mov file into a .3gp.. i sued the command 'cd ~/Desktop $$ ffmpeg-i 142306432.mov -c:v h263p 142306432.3gp"
[16:15] <sky3> used*
[16:16] <sky3> nothing happened
[16:17] <Mavrik> roughana, the encoding is done by LAME library and the LAME library is the one that has to be fast, not ffmpeg.
[16:17] <Mavrik> so updating ffmpeg probably won't do much.
[16:19] <fajung> how can I do to encode with 265 codec? I have recompiled ffmpeg following this: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
[16:19] <sky3> sorry i typed 'cd ~/Desktop &&  ffmpeg-i 142306432.mov -c:v h263p 142306432.3gp"
[16:20] <sky3> thats the CMD i ran on term with 0 result
[16:20] <sky3> can some one pls guide
[16:20] <klaxa> can you pastebin the output of ffmpeg?
[16:21] <Mavrik> fajung, did you add Multicoreware libx265 support?
[16:22] <fajung> what do you mean?
[16:22] <sky3> klaxa: sure
[16:24] <fajung> here is the output: http://pastebin.com/C8MQHwXb
[16:26] <sky3> klaxa: were u asking me for the output via pastebin?
[16:26] <c_14> fajung: You didn't build with x265 support.
[16:26] <fajung> I think I'll have to recompile ffmpeg using the --enable-lib265, right ?
[16:26] <c_14> ye
[16:26] <c_14> And you'll need to install x265
[16:26] <fajung> but from where I download the 265 ?
[16:27] <klaxa> sky3: yes
[16:27] <c_14> https://bitbucket.org/multicoreware/x265/wiki/Home
[16:27] <sky3> klaxa: ok
[16:28] <sky3> klaxa: here it is : http://pastebin.com/PrML9Udm
[16:29] <fajung> I have to recompile ffmpeg, but adding the "Linux instruction" in the process, and then add the --enable-lib265 to the configuration part ?
[16:29] <Fjorgynn> I :)
[16:29] <fajung> sorry I'm new
[16:30] <Fjorgynn> I would ask JEEB
[16:30] <klaxa> sky3: put cd ~/Desktop and the ffmpeg command line into two commands or separate them with a semocolor (;)
[16:30] <sky3> ok
[16:31] <c_14> fajung: --enable-libx265 is the option
[16:34] <sky3> klaxa: i seperated 2 commands as u said & ran it ..
[16:34] <sky3> should I pastebin the output?
[16:35] <klaxa> yes
[16:36] <sky3> klaxa: here it is : http://pastebin.com/gERX71gW
[16:37] <klaxa> sky3: try: ffmpeg -i 142306432.mov -c:v h263p -ar 8000 142306432.3gp
[16:37] <sky3> klaxa: ok
[16:39] <sky3> klaxa: again im gonna pastebin the output
[16:40] <sky3> klaxa: here it goes : http://pastebin.com/j53Uka3M
[16:41] <klaxa> sky3: try: ffmpeg -i 142306432.mov -c:v h263p -ar 8000 -ac 1 142306432.3gp
[16:41] <sky3> klaxa: ok
[16:41] <klaxa> -ar sets the sampling rate, -ac sets the number of audio-channels
[16:41] <sky3> ok
[16:42] <klaxa> ffmpeg's output tells you what is wrong, see: [libopencore_amrnb @ 0x974a960] Only 8000Hz sample rate supported and [libopencore_amrnb @ 0xa25c960] Only mono supported
[16:42] <sky3> i see
[16:43] <sky3> but it was converted earlier using ffmpeg klaxa ..but i lost the command:(
[16:44] <sky3> im gonna pastebin output klaxa
[16:45] <kaotiko> hi3
[16:45] <sky3> klaxa: here its :http://pastebin.com/kztuJRty
[16:48] <klaxa> sky3: change h263p to h263, h263p (h263+) is not supported in 3gp apparently
[16:48] <sky3> ok
[16:49] <sky3> everything else should remain unchanged?
[16:49] <klaxa> yes
[16:49] <sky3> ok
[16:53] <sky3> klaxa: here is the output: http://pastebin.com/qcYGBAEZ
[16:54] <klaxa> you will have to use one of the resolutions listed by the output
[16:54] <klaxa> you can set the resolution with -s
[16:54] <sky3> ok
[16:54] <klaxa> so add -s 352x288 or -s 704x576 to the command
[16:54] <sky3> where to add?
[16:55] <klaxa> so the whole command would be: ffmpeg -i 142306432.mov -s 352x288 -c:v h263 -ar 8000 -ac 1 142306432.3gp
[16:55] <klaxa> for example
[16:55] <sky3> ok
[16:55] <sky3> let me try that out
[16:56] <sky3> wow
[16:56] <sky3> klaxa: SUCCESS
[16:56] <sky3> done
[16:57] <sky3> klaxa: Many thanks..Humbled:)
[17:02] <sky3> really was wondering for the right command klaxa
[17:04] <pa> is there any way to enable forward seeking on a ffmpeg input, with ffserver?
[17:11] <c_14> No.
[17:12] <c_14> If you're thinking of live seeking, that is.
[17:12] <c_14> You can do static initial seeks.
[17:13] <pa> c_14, essentially what i want is a free and decently working version of plex that works over the internet (= no DLNA)
[17:13] <pa> so i thought that maybe with ffmpeg/ffserver this could be possible.. i found some posts of people adding seeking capability to ffserver
[17:13] <pa> but all very fuzzy
[17:17] <c_14> I don't think ffserver is the way to go for that.
[17:18] <pa> c_14, do you have anything in mind that would allow that?
[17:20] <c_14> Honestly, what I'd do is just host the file directly via http, or netcat or whatever and then just use my video player to access the file directly. You'll be able to seek forward as fast as your download connection/the "server"s upspeed and seek backwards as far as your local cache size.
[17:21] <pa> c_14, but in theory http allows forward seeking without having to download everything up to there, no?
[17:21] <pa> my problem is that i'd like to transcode the file, too..
[17:23] <c_14> FFmpeg supports tcp output
[17:25] <c_14> ffmpeg -i file [options] tcp://[own_ip_that_other_computer_will_access]:[port_number]?listen
[17:26] <c_14> Not sure how well seeking will work if you're also reencoding though...
[17:27] <pa> but then if this works/should work, why shouldnt it work also together with ffserver?
[17:28] <c_14> Because ffserver provides output in real time, the equivalent of using -re as an ffmpeg input option.
[17:29] <pa> (btw i found mod_h264_streaming for apache, but it has like 0 documentation)
[17:29] <pa> ah i see
[17:29] <c_14> ffmpeg by default provides output as fast as it can
[17:29] <c_14> Which is why you can (kind of) seek.
[17:32] <pa> c_14, i try, let see :)
[17:47] <pa> i'm trying to encode something, i found the settings online, but i get an error.. what do i do wrong?  pastebin.ubuntu.com/8291442/
[17:47] <JEEB> pa, [libvorbis @ 0x11280a0] encoder setup failed is your actual error
[17:48] <JEEB> also holy fuck
[17:48] <JEEB> vorbis in mp4
[17:48] <JEEB> gg and have fun
[17:48] <pa> well i dont have anything else decent..
[17:48] <pa> can try mp3..
[17:48] <Keshl> pa: Vorbis won't work with MP4. Just don't set -acodec and it'll pick a sane one, oÉo.
[17:48] <pa> aac only experimental
[17:48] <JEEB> -c:a aac -strict experimental
[17:48] <JEEB> just use it and give it some bit rate
[17:48] <JEEB> if needed, downmix to stereo
[17:49] <JEEB> (so you can make it need less rate)
[17:50] <pa> ah right! mono audio. how do i do that with ffmpeg?
[17:51] <sfan5> -ac 1
[17:52] <pa> ah thanks
[17:52] <pa> ok it works with a file output, but it moans with a tcp:// output..
[17:52] <pa> i guess it cant be used with that?
[17:52] <JEEB> tcp output has to have a server there
[17:53] <JEEB> and mp4 can't by default be streamed
[17:53] <JEEB> it has to be MPEG-TS or something
[17:53] <JEEB> (you can stream mp4 theoretically with movie fragments, but oh so many demuxers don't support that shit)
[17:53] <pa> ah i see..
[17:53] <pa> what does it mean i have to have a server?
[17:53] <pa> cant it listen?
[17:53] <sfan5> it can
[17:54] <pa> so it's only about the right container
[17:54] <pa> i try mpeg-ts
[17:54] <pa> lets see
[17:55] <pa> but that means i can't use h264, i guess?
[17:55] <JEEB> no
[17:55] <JEEB> sfan5, no - ffmpeg cannot serve shit to clients via HTTP
[17:56] <JEEB> you need a streaming server like icecast or whatever you want for that
[17:56] <c_14> JEEB: He's using plain tcp, not http.
[17:56] <sfan5> ^
[17:56] <JEEB> why the fuck did I read that as http
[17:56] <JEEB> :V
[17:57] <sfan5> you use http to much
[17:57] <sfan5> ;)
[17:57] <JEEB> I don't really, I've been beating the hell out of unix sockets lately
[17:58] <pa> i could use another decent codec, if it would work.. donno, vp8 or webm
[17:58] <JEEB> > implying using vp8 or so would be more efficient
[17:58] <sfan5> 1) webm is not a codec 2) does vp8 work in mpeg-ts?
[17:58] <c_14> mpeg-ts can use h264, you might just need the annexb filter thingy.
[17:59] <c_14> s/use/contain
[17:59] <JEEB> no, you don't need anything unless your input has AVCc style H.264
[17:59] <JEEB> ok, it's matroska
[17:59] <JEEB> so it's AVCc
[17:59] <JEEB> I think it converts automagically, not sure tho
[17:59] <JEEB> one way it does, the other it doesn't
[18:00] <pa> c_14, but how do i force mpeg-ts output ? i guess ffmpeg by default uses mp4 or something?
[18:00] <c_14> -f mpegts
[18:00] <c_14> as an output option
[18:00] <JEEB> ffmpeg by default uses whatever your extension would imply
[18:00] <pa> "Unable to find a suitable output format"
[18:00] <JEEB> :P
[18:00] <JEEB> after -i
[18:00] <JEEB> or if you have multiple outputs, in the right point :P
[18:01] <pa> ok now it does not complains :)
[18:01] <pa> let me see if i manage to play it with vlc
[18:02] <pa> yes it works! but seeking doesnt
[18:03] <Keshl> How can it? You're streaming. o.O
[18:03] <c_14> You can seek at whatever rate ffmpeg can produce output.
[18:04] <c_14> If that is 2x realtime, that is your seek limit.
[18:04] <c_14> Though it's more like fast-forwarding than seeking.
[18:04] <c_14> Kind of like with good old video cassetes.
[18:04] <c_14> *cassettes
[18:05] <pa> so there's nothing like this that enables real seeking? i would assume something that accept some sort of command for partial retrieval of content, and handles it appropriately in the encoding
[18:05] <Keshl> pa: No, since it has to reencode the video.
[18:05] <Keshl> If the video was fully written to a file, then /maybe/. But since you're converting /while/ streaming, no.
[18:06] <pa> well it could seek the local file and start the reencoding there
[18:06] <Keshl> That still requires decoding, and the keyframes may be different in the encoded vs original file.
[18:06] <pa> the server i mean
[18:07] <c_14> The only way to accomplish that, is to send special commands to some server process which then kills the ffmpeg process and restarts it with a seek set.
[18:07] <Keshl> Since they can be different, it'd still have to decode the original video and you'd still be fast-forwarding, and I'm fairly sure that that's not implemented either.
[18:07] <pa> well i mean, it doesnt have to be accurate.. but if by any reason you want to restart a video half way, it would be a solution
[18:07] <Keshl> pa: See c_14's solution then, oÉo.
[18:07] <pa> c_14, that's what i was thinking too
[18:07] <pa> a twisted wrapper that does that
[18:08] <pa> but then i would have to pipe the output of ffmpeg into twisted
[18:08] <pa> Keshl, do you mean seeking is not supported in local files?
[18:09] <Keshl> pa: It's totally supported.
[18:09] <pa> why would you still need to decode the original video doing fast forwarding?
[18:09] <Keshl> Where did you get the notion that it's not? o.O If anything, I implied it /is/ supported.
[18:09] <Keshl> There's two ways to seek -- Keyframed-based, and accurately.
[18:09] <Keshl> Keyframe means you can only jump to keyframes. If you have keyframes every 5 seconds, you can't jump to 1:23. You can only do 1:20 or 1:30.
[18:10] <Keshl> Accurate means that it plays the video as fast as it can (by decoding it), and ending up exactly where it's told to, regardless of keyframes.
[18:10] <c_14> Or 1:25
[18:10] <Keshl> c_14: Yes, my bad. x.x Thought I said 10 seconds.
[18:10] <Keshl> pa: When streaming, let's pretend that the input keyframes are at 3 seconds, and the stream's at 5.
[18:11] <Keshl> Now, you can't seek via keyframes, period. Ffmpeg won't know when they'll match up, and certainly, the receiving application has zero way of knowing.
[18:11] <Keshl> This means the only way to seek is by decoding the entire input stream and sending that as fast as it can to the client until the client tells it to resume normal playback.
[18:12] <pa> Keshl, but since i'm transcoding, wouldnt it be an option to seek via keyframes to the 2nd keyframe, and decode only 2secs of video before restart transcoding?
[18:12] <pa> in the serving ffmpeg i mean
[18:12] <Keshl> Yes, type "-ss (seconds)" as an output filter.
[18:12] <Keshl> -ss as an input makes it to accurate seeking.
[18:13] <Keshl> (I don't have that backwords, right? I'm 90% sure I got it right..)
[18:14] <c_14> As of FFmpeg (version number here), they're both accurate.
[18:14] <pa> well, if that's the only way, i'll try to do that.. It will probably be a bit of a hassle to figure out when to kill ffmpeg instancees after someone stops playing, but i guess closing connections would be a good candidate event
[18:14] <c_14> But before said version, it would have been backwards, yes.
[18:15] <Keshl> c_14: Thank'ya. -É-.
[18:15] <pa> well anyway, thanks guys. I'll do some more thinking, and then come back when i start writing this server,as i will surely need some more help :)
[18:15] <Keshl> pa: Connection closed, connection reset, new connection opened (Just do it /every/ time someone connects).. Third one's probably the best option as for when to actually seek.
[18:34] <dada_> hi there. I'm working on a script that turns a single png/jpg into a movie of a certain duration. right now I'm using '-loop 1' and an fps of 1. but perhaps there's a way to entirely avoid multiple frames being encoded? the duration that my movies need to be will always be an int
[18:38] <c_14> ffmpeg -r 1 -i picture -r 1/[duration_in_seconds] video maybe?
[18:41] <dada_> I just modified it (as a test) as -framerate "1:60" and -t "60", which seems to work as it generates one frame, but then VLC can't open it properly anymore. but, that might be a problem due to other settings so I'm going to investigate
[18:41] <dada_> basically the plan is to make a command for generating picture+music that also uploads to youtube, so that's why I'm working on this
[18:42] <someone-noone> hi. How can I capture microphone on OS X?
[19:12] <dada_> seems x264 in yuv444p would work well for me
[19:13] <c_14> someone-noone: https://ffmpeg.org/ffmpeg-devices.html#openal
[19:14] <someone-noone> c_14, thanks. Are you sure that it works on OS X?
[19:15] <c_14> >OpenAL is part of Core Audio, the official Mac OS X Audio interface.
[19:15] <c_14> I don't have an OSX system, so I don't know, but it sounds promising.
[19:18] <someone-noone> c_14, unfortunately I got "ERROR: openal not found"
[19:19] <dada_> your ffmpeg must be compiled with --enable-openal
[19:22] <someone-noone> dada_, I do it and configure ends with next error: "ERROR: openal not found"
[19:22] <someone-noone> looks like it's not supported on OS X
[19:23] <dada_> aw I was gonna do e.g. 0.1fps for a 10 second movie (1 frame) but it looks like youtube gets confused by that
[19:24] <c_14> someone-noone: You might need the openal sdk.
[19:24] <someone-noone> c_14, it's a part of OS X SDK
[19:25] <someone-noone> it's a part of Core Audio
[19:25] <someone-noone> so it's already installed
[19:25] <someone-noone> https://trac.ffmpeg.org/ticket/314
[19:26] <c_14> Ok, then just modify the configure script.
[19:28] <someone-noone> c_14, it will not work. If you see there will be malloc-checksum errors. Do you know how to fix it?
[19:28] <c_14> Oh, didn't read that.
[19:36] <ac_slater_> hey all. I'm writing some plugins for ffmpeg. Curious, is it possible to manually decode data from an AVStream? ie - I have an AVStream that points to some data... for debugging, I want to traverse the data. Any clues?
[19:36] <ac_slater_> (I'm working on a decoder... so I cant do av_decode_video2 for example)
[19:37] <ac_slater_> ah, av_read_frame ... thanks!
[19:48] <dirkson> Hey all. Trying to use ffmpeg to send to ffserver.... But the fps don't really match up all that well. The videos quite frequently get out of sync with reality. If the FPS is set to 15, why does it go up to 25?
[19:49] <ac_slater_> dirkson: maybe relevant, ffmpeg has the `-re` option which kinda solves that for non-ffserver stuff
[19:49] <ac_slater_> dirkson: maybe ffserver has a "sync input with output" mode to avoid buffering
[20:01] <t4nk360> hi, when doing rtmp to rtmp i get random "[rtmp @ 0x9f032e0] Server error: Play advert call". Does anyone know what this relates to?
[20:20] <stefkos> I want to compile ffmpeg/mplayer with visualstudio
[20:20] <stefkos> how I can create visual studio project?
[20:28] <benbro> when capturing audio and video with ffmpeg, the video is ahead of video and the difference increases all the time
[20:28] <benbro> is there a way to fix it?
[20:33] <benbro> this is what I'm using to convert from mkv to mp4
[20:33] <benbro> ffmpeg -ss 00:05:00 -t 01:00:0 -i input.mkv -c:v libx264 -preset medium -crf 23 -vf crop=iw:ih-120:y=0,format=yuv420p -c:a aac -strict experimental -b:a 96k -movflags +faststart output.mp4
[20:39] <benbro> the drift is with the original capture file not the conversion
[21:10] <jelle__> wow, ffmpeg really did a good job converting my 1fps 4 days long mkv into a proper time lapse mp4 of 5 minutes! Thanks for the help here.
[21:15] <khali> jelle__: you're welcome, I'm glad you made it!
[21:15] <jelle__> yes, and it is much faster and better quality than my workaround
[21:55] <anshul_mahe> clear
[21:56] <anshul_mahe> is there any way to add sei frame after every frame using libx264 codec through ffmpeg cmd
[22:36] <gcl5cp> vo-aacenc vs fdk-aac?
[22:36] <c_14> fdk-aac > vo-aacenc
[22:52] <gcl5cp> is there a ffmpeg installer(register path) for windows? not a compiled-zipped.
[23:04] <Suchiman> gcl5cp: i don't know an installer but you can easily add ffmpeg to the path yourself
[23:07] <anshul_mahe> how to check supported image data type of perticular codec
[23:08] <anshul_mahe> like I want to RGB format supported by which and which codec and RGBA format supported by which codec
[23:13] <benbro> how can I extract audio and video streams from mkv and merge them back again?
[23:16] <BillyZane> gyokuro is best made in one of these... http://3.bp.blogspot.com/-r33t-RGA99E/TZyq1zeR7rI/AAAAAAAAAEY/fMvg_PkPKJA/s1600/TeaPot.jpg
[23:16] <BillyZane> i'm sure you've seen them in anime
[23:16] <BillyZane> it's the one they use in haruhi and a bunch of others
[23:16] <gcl5cp> mkvtoolnix is a way
[23:16] <BillyZane> it's called a kyosu
[23:20] <roughana> ffmpeg 0.6.7 configure does not appear to support the --enable-rpath option
[23:20] <roughana> Any idea when that option was first supported?
[23:24] <Mavrik> O.o
[23:24] <Mavrik> Why are you using ffmpeg from the stone age?
[23:26] <wodim> because of debian i guess
[23:26] <Mavrik> Debian packages libav anyway.
[23:40] <pzich> So I'd like to take three videos: background, foreground and mask, and composite them so that the foreground is applied where it's not masked in the video stream. Is that possible? I've been searching around but haven't found much about how to do the masking.
[23:54] <onyx> I been tryin to do a time lapse from a live stream
[23:55] <onyx> I set it to create thumbnails every 10 seconds
[23:55] <onyx> and it works just fine
[23:55] <onyx> but Im running into an issue, that for whatever reason the thumbnails stop creating and it get stuck
[23:56] <onyx> how can I get around this issue?
[23:56] <c_14> Does it show any output?
[23:56] <onyx> what do you mean?
[23:57] <c_14> ffmpeg, does it say why it stopped?
[23:57] <onyx> oh, no it doesnt
[23:57] <onyx> because Im running it with a cron job
[23:57] <onyx> so I have a cron job to run the command at 5am
[23:58] <onyx> the ffmpeg command creates one thumbnail every 10 seconds
[23:58] <onyx> for 15 hours
[23:58] <onyx> but it stops randombly
[23:58] <c_14> Try piping the FFmpeg output into a file somewhere.
[23:58] <sacarasc> You didn't make it log?
[23:58] <c_14> 2&>file
[23:59] <onyx> I figure I just make the cron job repeat itself every min and lower the ffmpeg command to run for 1 min at it time
[00:00] --- Tue Sep  9 2014


More information about the Ffmpeg-devel-irc mailing list