[Ffmpeg-devel-irc] ffmpeg.log.20141114
burek
burek021 at gmail.com
Sat Nov 15 02:05:01 CET 2014
[00:19] <Rexor> hi. wanted to ask about support for tiled openEXR ...
[00:20] <Rexor> is it a planned feature ?
[00:26] <llogan> Rexor: if a contributor or a developer is interested in implementing it, then I guess it may be planned
[00:26] <llogan> you could submit a feature request on the bug tracker if ffmpeg does not currently support this (I know nothing of tiled exr)
[00:27] <llogan> you can even offer a bounty to get it implemented
[00:32] <Rexor> thanks llogan
[00:32] <Rexor> maybe I can ask this on #ffmpeg-devel ?
[00:33] <Rexor> most 3d rendering software produces tiled EXRs
[00:33] <Rexor> so they're a standard in animation and VFX
[00:36] <danomite-> What is the pause before ffmpeg starts publishing a stream called and how can I reduce it?
[01:11] <randomNumber> I have tried every think I can think of after pouring over the documentation in order to do what I thought would be a simple task: Extract mulitple segments from a .mp4 file. It contains trailers footers and commercials I want to eliminate. I used ffprobe to find the breaks but I'm just not getting how to specify the start and stop times. I can do a single segment with "-ss 60 -to 120" for
[01:11] <randomNumber> instance. I want to put multiple segments into the output. any help greatly appreciated.
[01:16] <llogan> randomNumber: you can output each segment then use the concat demuxer to concatenate them, or use the trim and concat filters if you want to re-encode.
[01:56] <randomNumber> thanks. I did try that but for some reason the 2,3,4th segments seem to hang the program. It just sits there (NOT) blinking at me. eg no status updates for progress. do you know if the program takes a while to read the file up to the various entry points?
[01:57] <randomNumber> here are the lines I am using
[01:57] <randomNumber> ff -y -i tlr.mp4 -ss 37.72900 -to 386.8130 tlr1.mp4
[01:57] <randomNumber> ff -y -i tlr.mp4 -ss 448.4490 -to 741.3250 tlr2.mp4
[01:57] <randomNumber> ff -y -i tlr.mp4 -ss 833.3030 -to 1158.035 tlr3.mp4
[01:57] <randomNumber> ff -y -i tlr.mp4 -ss 1188.252 -to 1595.430 tlr4.mp4
[01:58] <randomNumber> maybe I'll look at the concat filter some more.
[02:04] <relaxed> randomNumber: -ss after the input decodes to that point instead of seeking, so it takes longer
[02:53] <RedHat> good morning guys
[02:55] <RedHat> is it posible to detect and overlay a moving objects on Live Stream ??
[02:58] <c_14> afaik, not without diving into the api and implementing it yourself
[03:03] <RedHat> if someone can make a easy to use solution for me, i will pay the work !
[03:04] <kevmitch> probably opencv
[03:10] <RedHat> yes I 've heard about it, but if some one can make a solution, if will pay the work for that, please contact me on skype: pro-tech-ex
[03:24] <pentanol> RedHat maybe this can help http://www.lavrsen.dk/foswiki/bin/view/Motion
[03:34] <RedHat> pentanol thank for link, but this doesn't work for me
[03:35] <RedHat> this is a simple motion detection...
[04:30] <pentanol> RedHat do you want change live stream?
[05:21] <xieyi> I am trying to call avconv from another program. avconv complains that
[05:21] <xieyi> Error initializing filter 'select' with args 'eq(pict_type\,I),setpts=N/(25*TB)'
[05:21] <xieyi> Error opening filters!
[05:21] <xieyi> but the command can executed without problem directly in the console
[05:22] <xieyi> what cause the difference
[05:22] <xieyi> the command I am using is
[05:23] <xieyi> avconv -i news.avi -vf select='eq(pict_type\,I),setpts=N/(25*TB)' -q 1 news/%09d.bmp
[05:27] <relaxed> xieyi: for avconv support ask in #libav
[05:29] <xieyi> ok
[08:19] <Aartsie> Hi all
[08:21] <Aartsie> i was wondering is it possible to get RAW H264 data from a camera received by a socket and decode it on the server side ?
[12:59] <bencc> it possible to live stream a video to html5 video in desktop browsers?
[12:59] <bencc> mobile has HLS. does desktop has something similar?
[13:10] <jonaslund> Trying to compile ffmpeg 2.4.3 with the "new?" MSVS 2013 community edition (The one that was made free the other day)
[13:10] <jonaslund> just installed MSYS
[13:10] <jonaslund> and getting "cl is unable to create executable file"
[13:11] <jonaslund> config.log says in the end
[13:11] <jonaslund> link -o ./ffconf.QPprqeef.exe ./ffconf.LGVmgfGf.o
[13:11] <jonaslund> link: invalid option -- o
[13:11] <jonaslund> Try `link --help' for more information.
[13:11] <jonaslund> C compiler test failed.
[13:14] <jonaslund> It should be /out:XXX.exe even if i think -out:XXX.exe will work (It's specified in the latter way in probe_cc in the configure script)
[13:18] <jonaslund> hah
[13:18] <jonaslund> it's assuming it's the shell link
[13:20] <jonaslund> (ie making a file link)
[13:23] <jonaslund> ok
[13:23] <jonaslund> setting ld_default="cl" fixed it seemingly
[13:25] <jonaslund> (Under the toolchain detection)
[13:52] <jonaslund> argh
[13:52] <jonaslund> now linking dll's fails
[13:52] Action: jonaslund deletes msys link
[13:54] <jonaslund> and revert configure change
[14:28] <martyj-o> Is there a ffmpeg command line option to make the program pause after the output on errors? Whenever there is an error, it flashes by and disappears and I never know what was wrong.
[14:28] <martyj-o> ffmpeg appears to fail to convert a 56 MB PNG to JPEG. Other, smaller PNGs can be converted with the exact same command. Why does it fail at 56 MB? (Latest stable)
[14:28] <martyj-o> (I don't want this to happen when it has success, though, but I can't find a way to get either to happen.)
[14:52] <relaxed> martyj-o: ffmpeg halts on errors, but you can send all its output to stderr if you need to review it. ffmpeg input output 2>ffmpeg.log
[14:53] <relaxed> er, the console output is sent to stderr
[14:59] <relaxed> pastebin what you're doing for more help
[15:07] <flavioberetti> hi. is there support for the quicktime hap codec (https://github.com/Vidvox/hap-qt-codec), maybe in development? does anyone know of any other means of hap compression using linux?
[15:15] <martyj-o> relaxed: Well, I just run a ffmpeg.exe command through a Windows context menu shortcut, and it usually works, but if it fails, it just flashes by (command prompt that doesn't pause).
[15:16] <kepstin-laptop> flavioberetti: that code looks like it's all 3- or 2- clause msd or mit licensed, should be ok to use to to make an ffmpeg codec from. But I haven't heard about anyone doing it...
[15:17] <jonaslund> martyj-o: either wrap the windows command through an batch file or add the pipe relaxed described to the launch command
[15:17] <jonaslund> that way you'll get the output in another file
[15:17] <jonaslund> in the batch file you can end it with a pause command
[15:17] <martyj-o> No batch file possible in this context.
[15:18] <flavioberetti> kepstin-laptop: ok thanks. i will ask the ffmpeg-devel list then in case noone else has an idea.
[15:18] <martyj-o> And it must not pause on success.
[15:18] <jonaslund> you can write a batch file that only pauses on error
[16:54] <jesusabdullah> GOOD morning!
[16:54] <jesusabdullah> I'm experimenting with using ffmpeg to resize animated gifs, and if I read and write to disk it works just fine
[16:54] <jesusabdullah> BUT
[16:55] <jesusabdullah> I'm trying to do it over stdio and I'm getting CRYPTIC FAILURES https://gist.github.com/jesusabdullah/551889ce44bb4e112ec4
[16:55] <jesusabdullah> ideas for troubleshooting?
[17:00] <iive> i'm not familiar with gif or avformat it general, but
[17:01] <iive> some formats need seeking backward and you can't do that over pipe
[17:01] <iive> also using stdin/out is quite bad idea, ffmpeg have a bad habit of reading input and printing stuff..
[17:02] <iive> you might try a named pipe `mkfifo`
[17:03] <jesusabdullah> yessch
[17:03] <jesusabdullah> that won't do at all
[17:05] <jesusabdullah> my instinct is that gif does not need seeking
[17:05] <jesusabdullah> but that's just instinct
[17:08] <jonaslund> jesusabdullah: windows ?
[17:08] <jonaslund> ah no
[17:08] <jonaslund> nvm then
[17:10] <jesusabdullah> jonaslund: osx
[17:11] <jesusabdullah> I *wish* I could blame windows
[17:11] <jesusabdullah> FUCKING WINDOWS 98 GET BILL GATES IN HERE
[17:12] <beastd> jesusabdullah: Your commandline works for me. For 2 random gifs.
[17:13] <jesusabdullah> hmm
[17:13] <jesusabdullah> interesting
[17:13] <beastd> jesusabdullah: Could depend on your input or on your platform
[17:13] <jesusabdullah> yeah
[17:13] <jesusabdullah> now I'm wondering which
[17:13] <beastd> you might want to file a bug report if you can provide the input sample
[17:14] <jesusabdullah> hmmm
[17:14] <jesusabdullah> yeah maybe
[17:14] <jesusabdullah> you know where the bug tracker is offhand?
[17:14] <jesusabdullah> also, completely unrelated: what's the difference between ffmpeg and avconv?
[17:15] <beastd> jesusabdullah: https://ffmpeg.org/bugreports.html
[17:16] <Mansor> hello, Can anyone point me to where I can find out what is "fd" in the ffplay output? google&documentation gave me no info :-x
[17:17] <jesusabdullah> thanks c_14
[17:19] <c_14> Mansor: is->frame_drops_early + is->frame_drops_late
[17:19] <c_14> https://git.videolan.org/?p=ffmpeg.git;a=blob;f=ffplay.c;h=f79161dd00601c4e1f20892fa07a73ce1ae2db3c;hb=HEAD
[17:20] <Mansor> cool thanks!
[17:24] <jesusabdullah> beastd: what's your version? Maybe whatever comes with homebrew is different
[17:31] <kaotiko> hi
[18:36] <_Vi> How do I `setpts` without transcoding (i.e. with `-vcodec copy`)?
[18:37] <c_14> you don't
[18:38] <_Vi> What tool to use instead?
[18:38] <c_14> You can't speed up or slow down a video stream without reencoding. (that I know of)
[18:39] <_Vi> I want to make slow and long 1 FPS video from usual one, without transcoding? I.e. multiply each PTS by 20 without changing the encoded data.
[18:40] <_Vi> Workaround way: 1. Convert to matroska (without transcoding); 2. Convert matroska to XML (using my tool); 3. Fix timestamps using textual tools; 4. Convert back to matroska; 5. Process matrosksa with FFmpeg to mux it normally.
[18:40] <Luigi12_work> if any ffmpeg developers are here, I was wondering if you could cut a new 2.0.x release with the CVE-2014-527[12] fixes. We need to do a security update for Mageia 4 and it would be much better to have a new release.
[18:44] <c_14> _Vi: you can try changing the container level timestamps/frame rate, but that won't always work. The best choice for something like that would be mkvtoolnix or mp4box depending on your format
[18:44] <c_14> Luigi12_work: Try asking in #ffmpeg-devel if someone can backport the commits to the 2.0.x release branch
[18:46] <Luigi12_work> c_14: thanks. The commits may very well be in the 2.0 git branch already (I haven't checked), so it might be as easy as cutting a new release. I asked in #ffmpeg-devel though.
[18:47] <Luigi12_work> c_14: ok I just checked, no commits in 4 months, so yes they need to be backported too
[19:09] <MatthiasF> Hi, does anyone know how to record 32bit audio from alsa with ffmpeg ?
[19:11] <c_14> As far as I'm aware, the same way you'd record audio with a different bit depth from alsa.
[19:12] <MatthiasF> I tried to set acodec pcm_s32le but that still records 16bit, and -sample_fmt did not work either :/
[19:23] <MatthiasF> c_14: ran some tests again, so with "avconv -acodec pcm_s32le -f alsa -i hw:1,0 test.wav" I get "[pcm_s32le] invalid PCM packet"
[19:23] <c_14> Maybe it's big endian?
[19:24] <MatthiasF> c_14: actually, I was not getting this before. If I add -ar 96000 it was just silently recording 16bit
[19:24] <MatthiasF> c_14: arecord works with the little endian
[19:33] <c_14> ffmpeg -f alsa -c:a pcm_s32le -i loopout -c:a pcm_s32le out.wav <- works for me
[19:33] <c_14> loopout is my device name
[19:34] <c_14> If that doesn't work for you, try compiling ffmpeg: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu and then try again with that
[20:09] <MatthiasF> c_14: This does not work on the laptop (libav) but works here on my workstation, so that might be an error introduced by the fork
[20:25] <martyj-o> ffmpeg appears to fail to convert a 56 MB PNG to JPEG. Other, smaller PNGs can be converted with the exact same command. Why does it fail at 56 MB? (Latest stable)
[20:26] <martyj-o> Is there a ffmpeg command line option to make the program pause after the output on errors? Whenever there is an error, it flashes by and disappears and I never know what was wrong.
[20:26] <martyj-o> (I don't want this to happen when it has success, though, but I can't find a way to get either to happen.)
[20:26] <martyj-o> I just run a ffmpeg.exe command through a Windows context menu shortcut, and it usually works, but if it fails, it just flashes by (command prompt that doesn't pause).
[20:33] <diegoviola> hrm
[20:33] <diegoviola> I wonder if old DVD players will play 16:9?
[20:33] <diegoviola> or just 4:3?
[20:38] <danomite-> https://trac.ffmpeg.org/ticket/3797 was this bug only fixed for hls output?
[20:43] <c_14> It would appear so. Can you reproduce the issue on git master HEAD with something else?
[20:54] <danomite-> i can reproduce it with 2.4.3 with flv output
[20:55] <danomite-> I'm gonna try to get master HEAD to build
[21:05] <MatthiasF> c_14: It works with recent ffmpeg, thanks for the hint
[21:22] <llogan> martyj-o: are you using a recent build?
[21:32] <xanal0verlordx> Hello again.
[21:33] <xanal0verlordx> Can somebody say me that what's wrong with AAC? License, patent or what prevents it to be included into binaries?
[21:37] <c_14> Mainly licensing issues.
[21:37] <danomite-> c_14, i've got the test running, hopefully it shows up
[21:37] <c_14> The native encoder is incnluded though.
[21:38] <c_14> *included
[21:43] <xanal0verlordx> Linux streaming is easy.
[21:43] <xanal0verlordx> Any ideas about what can I stream?
[21:44] <xanal0verlordx> Dota 2 is everywhere, so it's bad choice.
[21:46] <c_14> Dota 3 :P
[21:47] <xanal0verlordx> Gaben does not know what is "three". IceFrog still makes DotA.
[21:47] <xanal0verlordx> We will never see it.
[21:50] <xanal0verlordx> Visual novels.
[21:50] <xanal0verlordx> Yes.
[21:56] <MadTBone> I'm getting segfaults when trying to burn timecode with -filter_complex drawtext ... works well on plain text ( text="foo" ), and the same filter graph used to work well in previous versions of ffmpeg.
[21:56] <MadTBone> anyone else see this issue?
[22:01] <c_14> What version are you running? What version did it work with? What's your commandline and complete output (pastebin)? Can you run a git bisect?
[22:09] <MadTBone> Doesn't work with version 2.4.1, worked previously with 2.2.1, http://pastebin.com/D5DzuvT1, can't run git bisect at the moment (but will be able to later tomorrow)
[22:11] <MadTBone> c_14: updated pastebin to include output: http://pastebin.com/Fq4AfskW
[22:12] <c_14> Hm, probably a bug.
[22:12] <c_14> Can you make an issue with the output from that pastebin, the core and if you can the commit where it breaks (using a git bisect).
[22:13] <danomite-> c_14 the warning occurred with head, i'm going to prepare a paste
[22:15] <danomite-> sorry, false start here, i didn't capture the commandline
[22:17] <HSD> Question: Using avcodec, I'm reading in an audio media file. I'm trying to get seconds elapsed. Using AVPacket.pos returns the byte position in the stream. I tried using AVPacket.pos / frame->sample_rate but it is inaccurate. What am I missing and or overlooking?
[22:20] <JEEB> HSD, all packets have timestamps
[22:20] <JEEB> pts
[22:21] <JEEB> you will have a timescale (aka how many ticks is one second), as well as an X/Y timestamp
[22:23] <HSD> ah, so I'm reading the wrong thing?
[22:24] <HSD> I noticed on AVStream->time_base is a very small number. 1/1441..... I forget
[22:24] <HSD> is that what you mean by timescale?
[22:26] <HSD> checking doxygen for pts doesn't give much info. (unless I'm looking in the wrong spot)
[22:26] <HSD> via the AVPacket Struct Reference
[22:29] <danomite-> c_14 here's the build script i made and used using git master/head: http://dpaste.com/1811QR2
[22:30] <danomite-> c_14 here's the ffmpeg command line and output: http://dpaste.com/2VCNT54
[22:31] <martyj-o> llogan: Latest stable, as mentioned.
[22:34] <c_14> danomite-: do those warnings appear when outputting to a file?
[22:35] <danomite-> c_14, i'll give it a whirl, should I do file only or file and stream publishing?
[22:36] <c_14> do file only
[22:52] <HSD> JEEB, thanks! I got it figured out. packet.pts * av_q2d(container->streams[stream_id]->time_base)
[22:53] <JEEB> :)
[22:54] <danomite-> c_14 if the error never happens with a file what does it mean?
[22:55] <c_14> That the error is in this case (assuming you used an flv output file) in the rtmp protocol implementation. You used the same commandline with exception of the output file, right?
[22:56] <danomite-> correct -f flv -vcodec copy -an out.flv
[22:57] <c_14> Right, if you use that output file as the input for your stream to rtmp, do you get the error?
[22:57] <danomite-> will test that now,
[23:05] <martyj-o> Is there a ffmpeg command line option to make the program pause after the output on errors?
[23:06] <c_14> martyj-o: not internally, no. if ffmpeg throws an error it dies
[23:06] <danomite-> I'm not sure why but the stream does not want to play properly: http://dpaste.com/3K0FSX2
[23:06] <martyj-o> :(
[23:07] <danomite-> *file
[23:07] <martyj-o> ffmpeg appears to fail to convert a 56 MB PNG to JPEG. Other, smaller PNGs can be converted with the exact same command. Why does it fail at 56 MB? (Latest stable)
[23:08] <c_14> martyj-o: do you have such a png I can test with?
[23:12] <martyj-o> c_14: Not feasible to share it.
[23:12] <martyj-o> It's year 2014 and no secure way to send files still
[23:12] <martyj-o> Also, it's kind of private.
[23:13] <c_14> I can try upscaling something... let me see
[23:30] <danomite-> c_14, would it be worth filing a bug report at this point?
[23:31] <c_14> yep, and if you can upload the out.flv you used as input for the 3K0FSX2 command so the devs can test
[23:32] <danomite-> c_14, I'm not even sure that video has the problem but i'll give it a whirl
[23:32] <c_14> It says failed to update header with correct duration, so at the very least something is wrong
[23:33] <danomite-> yep, thanks
[23:49] <danomite-> c_14, what could I use to host the video file?
[23:49] <c_14> Either upload it directly to the tracker, or to the ffmpeg ftp
[23:49] <c_14> https://ffmpeg.org/bugreports.html
[23:49] <c_14> See submitting sample media
[23:53] <danomite-> I'm not sure that the 10MB would be useful, i'll put it on my google drive
[23:58] <c_14> They'll much prefer it on the ftp, if it isn't useful they can always delete it.
[23:59] <danomite-> I'll try to get it on there after I make the bug report intelligible.
[00:00] --- Sat Nov 15 2014
More information about the Ffmpeg-devel-irc
mailing list