[Ffmpeg-devel-irc] ffmpeg.log.20141014
burek
burek021 at gmail.com
Wed Oct 15 02:05:01 CEST 2014
[00:23] <llogan> voip_: i don't know. i was trying to help you isolate the issue. i'm not very experienced with streaming stuff.
[00:56] <voip_> llogan, who can help me ?
[01:03] <llogan> voip_: maybe the ffmpeg-user mailing list.
[01:05] <voip_> thank you, llogan
[01:48] <anshul__> I am making segments of subtitle, in case there is no dialog in some time period I want to create empty files with nothing in it
[01:48] <anshul__> what parameter of segmenter should be passed in my case to segmenter
[02:57] <anshul__> In AVsubtitles is there any thing that set PACKET as key element
[08:22] <jaggz-> anyone successfully convert to a video format that'll play in safari (osx and ipads and stuff)?
[08:25] <jaggz-> I tried for hours.. read tons of pages.. nothing worked
[08:26] <jaggz-> just returned to it after a couple days rest :/
[09:20] <yoyowinwin> Hi,All. I feed a rtmp stream input to ffmpeg tool, and output a http feed stream for the ffserver, it turns out that the memory leak over night is 1-2G bytes. that's horrible.
[09:21] <yoyowinwin> the command line I use is: ./ffmpeg -y -override_ffserver -i rtmp://192.168.14.170/live/rtsp1 -flags +global_header -codec copy http://192.168.14.170:8000/feed1.ffm
[09:22] <spaam> yoyowinwin: make a bug ticket about it :)
[09:22] <ztane> my ffmpeg (?) started spewing out hexdumps without asking, in cyan color?
[09:22] <spaam> okey
[09:23] <ztane> now what's this :D
[09:23] <ztane> embedded device and I cannot get any logs
[09:24] <yoyowinwin> help
[09:24] <yoyowinwin> -_-
[09:24] <yoyowinwin> anybody see me here ?
[09:25] <spaam> yoyowinwin: no, we didnt see messeage you sent about a memoryleak and i told you to make a bug ticket about it :(
[09:26] <ztane> yes
[09:26] <ztane> so anyone know any reason why ffmpeg would be spitting out hexdumps without asking
[09:26] <ztane> a sec for command line...
[09:28] <ztane> too much scrollback, guess I need to log into a file
[09:48] <pekman> hey all
[09:49] <pekman> I'm trying to make a command to capture my Linux desktop and my alsa device. But nothing I've tried works.
[09:50] <pekman> Managed to capture the video and separate audio. But campturar both at the same time can not
[09:51] <pekman> ffmpeg -f x11grab -s 1280x800 -i :0 -vcodec libx264 -preset ultrafast -qp 0 -y screencast-`date +%d-%m-%Y_%H:%M:%S`.mkv
[09:51] <pekman> with this command line I capture the video
[09:52] <pekman> and this I managed to capture the audio
[09:52] <pekman> ffmpeg -f alsa -ac 1 -ar 44100 -i hw:0 -t 30 out.wav
[09:52] <pekman> but I can not put things things to make a screencast with audio
[09:53] <pekman> would that be the way?
[09:53] <pekman> ffmpeg -f alsa -i ac 2 -ar 44100 -i hw:0 -t 30 -f x11grab -s 1280x800 -i :0 -vcodec libx264 -preset ultrafast -qp 0 -y screencast-`date +%d-%m-%Y_%H:%M:%S`.mkv
[09:53] <pekman> ?????
[10:23] <c_14> pekman: get rid of the -i ac 2 and put -ac 2
[10:23] <c_14> Also, get rid of the -t 30, when you put it there it probably won't do what you think it does.
[10:27] <yoyowinwin> -_-
[10:28] <c_14> ztane: did you by any chance press 'h' ?
[11:15] <hitori> Hi. I can't get to work ffmpeg with ffserver. Here's my ffserver.conf: `http://ix.io/eL2`, ffserver log:`http://ix.io/eL3` and ffmpeg error when I'm trying to send video from ip camera to ffserver: `http://ix.io/eL4`
[11:35] <c_14> Add VideoBitRateRange 500-500 to your ffserver.conf
[11:36] <c_14> That, or add a Qscale
[11:38] <c_14> Hmm, Qscale doesn't seem to be working.
[11:38] <c_14> The VideoBitRateRange thing works though.
[11:39] <c_14> Tested it myself.
[11:39] <c_14> Not sure why setting only a bitrate works on the commandline but not with ffserver.
[11:39] <c_14> ffmpeg probably defaults to a value and ffserver to 0 or something invalid, could be it
[11:39] <c_14> no clue
[11:47] <hitori> c_14: it works :)
[11:52] <hitori> c_14: Oh Almost forgot, thank you!
[12:12] <ztane> c_14: ah :D very much possible
[12:12] <ztane> c_14: that's it
[12:13] <ztane> I was testing that keyboard works on the same console that ffmpeg was running
[12:15] <ztane> c_14: I guess I would want to direct stdin from devnull...
[12:15] <yoyowinwin> Hi,All. I feed a rtmp stream input to ffmpeg tool, and output a http feed stream for the ffserver, it turns out that the memory leak over night is 1-2G bytes. that's horrible.
[12:15] <yoyowinwin> the command line I use is: ./ffmpeg -y -override_ffserver -i rtmp://192.168.14.170/live/rtsp1 -flags +global_header -codec copy http://192.168.14.170:8000/feed1.ffm
[12:17] <c_14> So the problem is a memory leak? Can you run the command under valgrind and pastebin the output?
[15:45] <termos> I have a file with moov atom not found, how can I run ffmpeg on this file to fix it so that it plays?
[16:00] <termos> I tried to run qtfaststart on the file but it just tells me that moov atom is not found as well
[16:09] <ubitux> termos: the moov is the header describing the whole file
[16:09] <ubitux> like, which streams are in, the timestamps, offsets, etc
[16:09] <ubitux> it's really not trivial to reconstruct
[16:19] <termos> hmm I see
[16:25] <termos> so there is no way of fixing the file?
[16:26] <Baked_Cake> u need a moov gui
[16:28] <termos> where can I get that?
[16:29] <MindSpark> hi, does anyone know how to do conversion for libx264 using aac in an mp4 format preserving source quality?
[16:29] <Baked_Cake> i dunno i just made it up
[16:30] <Baked_Cake> :p
[16:30] <Baked_Cake> have you used ffmpeg before
[16:31] <BtbN> MindSpark, what you just said doesn't make sense.
[16:31] <termos> yes i've used it
[16:31] <Baked_Cake> i meant mindspark
[16:31] <termos> i thought I could run ffmpeg on my file with -movflags faststart, but it won't read my file
[16:32] <termos> I know the files number of streams (one video and one audio) and I know their bitrates etc.
[16:32] <MindSpark> Baked_Cake: I used ffmpeg before
[16:33] <MindSpark> BtbN: ok, maybe I didnt express myself correctly. I need to convert videos into h264 and aac but I am looking for an option that would keep the same bitrate
[16:33] <MindSpark> of the source file
[16:33] <BtbN> convert from what?
[16:33] <Baked_Cake> termos ur problem is above my skill level
[16:33] <MindSpark> from whatever, basically anything a user uploads into my system
[16:34] <BtbN> That's not easily realy possible. You can only tell it to encode in a certain bitrate/quality.
[16:34] <BtbN> Or to copy the input video without touching it.
[16:34] <BtbN> But not to keep the bitrate, which isn#
[16:34] <BtbN> 't very usefull to have anyway
[16:36] <Baked_Cake> you can copy the vid and the audio and change the container
[16:36] <MindSpark> BtbN: ok, I have a simple cronjob that goes through the uploaded videos and converts them to an html5 video playable format
[16:36] <Baked_Cake> but you have te change the input container each time it changes
[16:36] <MindSpark> the command is: ffmpeg -i inputfile -vcodec libx264 -acodec libvo_aacenc outputfile
[16:37] <Baked_Cake> oic you want te chang ethe codec
[16:38] <Baked_Cake> could just go with crf 15 for xtreme bloat
[16:38] <MindSpark> Baked_Cake: no, the thing is, I was testing on a 2 second file that is 4 megs big.
[16:38] <MindSpark> and it took like almost half an hour and didnt even finish, creating a 23 megabyte file
[16:38] <MindSpark> until I decided to kill the process
[16:38] <Baked_Cake> heh
[16:39] <MindSpark> do you have any idea what could be causing this? and how to fix it?
[16:39] <Baked_Cake> iyou need to specify the bit rate
[16:40] <Baked_Cake> otherwise libx264 defaults to one thats really shitty
[16:40] <Baked_Cake> same with the audio
[16:40] <MindSpark> Baked_Cake: so whats an accepted bitrate for online video?
[16:40] <MindSpark> like what should I use as a generic bitrate?
[16:41] <Baked_Cake> you can try something like ffmpeg -i inputfile -vcodec libx264 -crf 20 -acodec libvo_aacenc -b:a 190k outputfile
[16:42] <Baked_Cake> i personally use upwards of crf 25 which is right on the edge of thier recomended lowest quality setting
[16:42] <Baked_Cake> but im used to watching 700mb avi files
[16:44] <MindSpark> Baked_Cake: alright, Ill give this a shot
[16:44] <Baked_Cake> the thing with libx264 is it works best when you target a quality, then it decides the bit rate all on its own
[16:45] <Baked_Cake> 2 pass works just as well but i think it takes a lot longer
[16:49] <MindSpark> Baked_Cake: its currently converting at 438342.6kbits/s
[16:49] <MindSpark> using crf 20
[16:49] <MindSpark> its a 2 second video :/
[16:49] <Baked_Cake> lol
[16:50] <Baked_Cake> what file
[16:50] <MindSpark> h264 (Baseline), yuv420p, 1920x1080, 16624 kb/s, PAR 65536:65536 DAR 16:9, 29.72 fps, 90k tbr, 90k tbn, 180k tbc
[16:50] <MindSpark> aac, 48000 Hz, mono, s16, 96 kb/s
[16:51] <Baked_Cake> hmm
[16:53] <MindSpark> exactly my thoughts :P
[16:53] <Baked_Cake> do you have a new version of ffmpeg
[16:56] <Baked_Cake> that or try cranking up the crf and see how it goes, or try a new file
[16:56] <MindSpark> ffmpeg version 0.8.9-6:0.8.9-0ubuntu0.13.04.1
[16:56] <MindSpark> built on Nov 9 2013 19:09:48 with gcc 4.7.3
[16:57] <Baked_Cake> that should be recent enough to work fine on x264
[16:58] <Baked_Cake> its possible you need some dependancies since linux
[16:58] <Baked_Cake> im a windows user so im not sure on that part
[16:59] <MindSpark> without the right deoendencies Id get an error
[16:59] <MindSpark> frame= 3883 fps= 20 q=33.0 size= 1893kB time=0.04 bitrate=363352.4kbits/s dup=3881 drop=0
[16:59] <MindSpark> I explicitiy specified -b:v 18k
[16:59] <MindSpark> and this is what I get
[17:01] <MindSpark> sacarasc: roght, sorry about that
[17:01] <sacarasc> Also, 18k is REALLY small. It's like 2kB/s.
[17:02] <MindSpark> so what should I use?
[17:03] <Baked_Cake> ive never tried using -b:v with libx264
[17:03] <sacarasc> What resolution is your video?
[17:04] <MindSpark> 1920x1080
[17:04] <Baked_Cake> MindSpark: h264 (Baseline), yuv420p, 1920x1080, 16624 kb/s, PAR 65536:65536 DAR 16:9, 29.72 fps, 90k tbr, 90k tbn, 180k tbc
[17:04] <sacarasc> Then you're going to want at least 2.5M I would think.
[17:04] <MindSpark> should I use qscale instead of crf? but thats for mpeg4 not h264&? right?
[17:05] <MindSpark> sacarasc: what do I base that on? I need a generic configuration which I can use for any uploaded file...
[17:05] <sacarasc> But, I would like to see your full command.
[17:05] <sacarasc> It was half based on the awful YouTube video encoding. :D
[17:07] <MindSpark> sacarasc: http://pastie.org/private/ju8tqslv7t2xno4wkg09a
[17:08] <MindSpark> sacarasc: including output: http://pastie.org/9647331
[17:09] <sacarasc> You're not even using ffmpeg, but the fork, libav.
[17:09] <sacarasc> But anyway... 18k is almost nothing. It's about 1/4 of what a 56kbps modem can download.
[17:09] <MindSpark> so what is a good bitrate for online video?
[17:10] <kepstin-laptop> you're giving your video less bitrate than your audio by a factor of almost 10...
[17:10] <Baked_Cake> i might be going crazy but those lines oof text look slightly crooked
[17:10] <Baked_Cake> yeah i think im just going crazy
[17:10] <sacarasc> MindSpark: For that resolution, at least 2.5M. Though you might wanna go closer to 8-10.
[17:11] <kepstin-laptop> MindSpark: unless you have explicit bandwidth requirements, you should probably just use -crf to set a quality level on x264 and not use any bitrate settings
[17:12] <kepstin-laptop> (and you might want to consider a better aac encoder, libvo_aacenc is ... not particularly good.)
[17:12] <MindSpark> kepstin-laptop: yes, that;s what I tried earlier on with -crf 20. The thing is, I have a 2 seconds video that takes ages to convert& I killed the process after half an hour of conversion and found an output file that is 5 times as big as the source
[17:13] <sacarasc> MindSpark: Could you try using real ffmpeg? There are some static builds here:
[17:13] <MindSpark> oh wow, thanks. Do these include most codecs?
[17:13] <sacarasc> Yes.
[17:14] <sacarasc> I think the only thing missing from either that gets brought up often is x11 grab.
[17:16] <Baked_Cake> if they have them you should use the libfdk_aac encoder
[17:17] <sacarasc> Oh, yeah, it won't have that because of licensing.
[17:19] <MindSpark> sacarasc: thanks a lot! works with this static version!
[17:20] <gcl5cp> how do "translate" this to ffmpeg? https://support.google.com/youtube/answer/1722171?hl=en
[17:21] <Baked_Cake> woah does utube use 5.1 now
[17:25] <Baked_Cake> you can probly use the basic setup for most of that
[17:25] <gcl5cp> i am interested in AAC-LC mono 44khz 64 Kbps, 480p (854x480) 2500 Kbps,
[17:27] <gcl5cp> H.264: High Profile, 2 consecutive B frames, GOP(Closed) of half the frame rate, CABAC, Chroma subsampling: 4:2:0, Variable bitrate
[17:28] <Baked_Cake> ffmpeg -i input.??? -vcodec libx264 -b:v 2500k -acodec aac -ac 1 -s:a 44khz output.mp4
[17:29] <Baked_Cake> probly easier to just point to the wiki
[17:29] <kepstin-laptop> might as well throw a -movflags faststart in there too, since google seems to want that for youtube.
[17:29] <Baked_Cake> https://www.ffmpeg.org/ffmpeg.html
[17:29] <batasrki> kestin-laptop, what does -movflags do?
[17:30] <kepstin-laptop> the "-movflags" option just passes some advanced settings to the mov/mp4 muxer
[17:30] <Baked_Cake> also https://trac.ffmpeg.org/wiki/Encode/H.264 and https://trac.ffmpeg.org/wiki/Encode/AAC
[17:31] <kepstin-laptop> in this case, the 'faststart' option tells the muxer to move the moov atop to the front of the file.
[17:31] <kepstin-laptop> moov atom*
[17:41] <gcl5cp> thank Baked_Cake, and Profile Bframes CABAC?
[17:45] <kepstin-laptop> gcl5cp: assuming you're not doing anything silly, x264 defaults to high profile with cabac enabled.
[17:47] <gcl5cp> ok kepstin-laptop, GOP and Chroma subsampling?
[17:47] <kepstin-laptop> pretty much all videos are 4:2:0 subsampling; it should be easy to tell by reading the ffmpeg output if you need to do something different. And you can set the gop with ffmpeg's "-g" option (they appear to recomment 1/2 of the input video framerate)
[18:45] <batasrki> Would someone be able to explain a few warnings I see in ffmpeg output?
[18:45] <batasrki> I'll post a gist or a pastie
[18:47] <batasrki> I am attempting to composite 2 rtmp streams into a third one based on some parameters
[18:47] <batasrki> I see these errors often, but could not find what they mean
[18:47] <batasrki> https://gist.github.com/batasrki/6ac9858929ec08cff932
[20:02] <batasrki> is anyone able to help?
[20:41] <ac_slater_> hey all, I have a 600x512 video that I'd like to scale to 1920x1080 but center it. Im sure scale/pad can do this. Any hints?
[20:52] <kepstin-laptop> ac_slater_: use the scale filter to scale to 1920x1080 with force_original_aspect_ratio=decrease, then do a pad filter after. Some of the examples in the docs show how to center an image with pad.
[20:55] <batasrki> Hey, kepstin-laptop, can you give me any insight on these warnings? https://gist.github.com/batasrki/6ac9858929ec08cff932
[20:56] <kepstin-laptop> batasrki: dunno; what command are you running to get those? And that output looks trimmed.
[20:57] <ac_slater_> kepstin-laptop: awesome thanks!
[20:57] <batasrki> kepstin-laptop: I'm updating the gist with the command
[20:57] <ac_slater_> kepstin-laptop: the aspect part was killing me
[20:58] <batasrki> kepstin-laptop: updated the gist with the command
[20:59] <batasrki> the output is trimmed due to the fact that these are RTMP streams so I didn't think it'd be possible to include all of it
[20:59] <kepstin-laptop> batasrki: you might just need to rewrite the pts by throwing some setpts=PTS-STARTPTS after the inputs in your filter_complex chain, not sure.
[21:00] <kepstin-laptop> if the pts are resetting in the middle of the stream, I dunno what you could do about that.
[21:00] <batasrki> OK, cool, I can try that kepstin-laptop
[21:01] <batasrki> so, add it to the end of the filter_complex command?
[21:02] <kepstin-laptop> no, on the inputs (immediately before each of the scale filters)
[21:07] <voip_> How to play stream with ffplay in linux without video output and depug stream ?
[21:09] <batasrki> thanks, kepstin-laptop, I will try that
[21:11] <voip_> hi guys, How to play stream with ffplay in linux without video output and depug stream ?
[21:19] <ChocolateArmpits> voip, -nodisp to disable the video popup
[21:19] <ChocolateArmpits> Look in the documentation
[21:24] <voip_> ChocolateArmpits, dosent play with -nodisp
[21:26] <ChocolateArmpits> What do you mean doesn't play, don't you want the video display disabled ?
[21:28] <voip_> ChocolateArmpits, a neeed to play, but witout display, for see debuging info
[21:29] <kepstin-laptop> voip_: if you just want to decode a file with ffmpeg and see the output, maybe use something like "ffmpeg -i inputfile.mpg -f null -" ?
[21:29] <kepstin-laptop> and see the log/debug output
[21:30] <batasrki> kepstin-laptop: just to run it by you, is this what you meant for the setpts part? Updated the gist at https://gist.github.com/batasrki/6ac9858929ec08cff932
[21:31] <kepstin-laptop> batasrki: yeah. No idea if it would help, but you're getting some funny pts there, so it might.
[21:33] <batasrki> kepstin-laptop: it fails with the "Could not write header..." error. I've updated the gist with the full output
[21:33] <batasrki> any ideas?
[21:35] <kepstin-laptop> batasrki: "[flv @ 0x316a120] at most one video stream is supported in flv" is your keyword there. for some reason, multiple video streams are being output. You might want to use -map to select a specific one (e.g. label the output of the overlay, then use that name as the -map parameter)
[21:36] <kepstin-laptop> did that work before?
[21:37] Action: kepstin-laptop can't figure out how adding the setpts filters would have changed that
[21:37] <batasrki> without the setpts parameters, that message isn't output
[21:37] <batasrki> and things do work
[21:37] <kepstin-laptop> hmm, if things are working then just don't bother with it.
[21:38] <batasrki> the thing is that while it works without the setpts, we keep running into issues of audio/video being desynchronized, as well as a variance in latency between composited shots
[21:40] <kepstin-laptop> hmm. my guess from the timestamps is that the media server is attempting to preroll the video to a point sometime between two keyframes, rather than starting the video at a keyframe
[21:40] <kepstin-laptop> I have no idea how that's supposed to work with rtmp, it might be that the ffmpeg implementation gets it wrong
[21:41] <batasrki> interesting, haven't thought about that
[21:42] <batasrki> if keyframes for each stream were synced to be close together, there would be a less chance of this happening?
[21:42] <kepstin-laptop> all the streams I've seen wait until a keyframe then send that as the first frame with non-negative pts, but I've only done stuff with red5. This is wowza?
[21:43] <kepstin-laptop> a bit out of my depth, whatever's going on :)
[21:47] <batasrki> it is wowza, shelling out to ffmpeg
[21:47] <batasrki> ffmpeg then sends the composite back to wowza
[21:52] <voip_> kepstin-laptop, actualy a am usinf ffmpeg, but ffmpeg frequetli hangs, so i want to play stream with ffplay for udersanding situation , why ffmpeg hangs, is it inpit stream problem or oter
[21:53] <kepstin-laptop> voip_: the ffmpeg command I gave reads the input stream and does nothing else, so it can help identify if the problem is due to the input stream.
[22:08] <batasrki> kepstin-laptop: thanks for your help, though
[22:09] <voip_> kepstin-laptop, i tryed "ffmpeg -i http://StreamIP -f null" it gaves me stram info, not realtime debug
[22:10] <voip_> any way i have : negative number of zero coeffs at 58 32
[22:10] <voip_> [h264 @ 0x33ff800] error while decoding MB 58 32
[22:10] <voip_> [h264 @ 0x33ff800] concealing 4311 DC, 4311 AC, 4311 MV errors in I frame
[22:10] <voip_> is it problem ?
[22:46] <anshul_mahe> is there anything similar in webvtt to mpegts resend_headers
[23:09] <JaviSRK> I'm trying to use the -report in a windows command line into a different directory. I get a 'Unable to find a suitable output format for 'C:\test\test.log' . What gives?
[23:13] <c_14> -report doesn't take an argument
[23:14] <c_14> If you want to control which file is used as a log, you need to set the FFREPORT environment var
[23:14] <c_14> Not sure if/how that works in Windows.
[23:21] <ChocolateArmpits> Wouldn't "cd"ing to the directory you want the report saved work ?
[23:22] <c_14> sure, but it'll always be named report-date.log or something
[23:24] <ChocolateArmpits> Doesn't seem like JaviSRK would care about that
[23:24] <ChocolateArmpits> He only wants it saved in a different place
[23:25] <c_14> Are you sure test.log isn't a descriptive name of the conversion he's trying to accomplish? :P
[23:49] <JaviSRK> the log will be a bit more descriptive
[23:49] <JaviSRK> but it will be temporary at best. I want to use the file to measure progress.
[23:50] <JaviSRK> I was also looking into the -vstats_file parameter, that seems to work fine, but I'm not sure how the time parameter works.
[23:51] <JaviSRK> I get something like 'frame= 3452 q= 31.0 f_size= 401 s_size= 6707kB time= 87475.000 br= 192.5kbits/s avg_br= 0.6kbits/s type= P'
[23:51] <JaviSRK> frame= 3452 q= 31.0 f_size= 129 s_size= 6708kB time= 87500.000 br= 61.9kbits/s avg_br= 0.6kbits/s type= P
[23:53] <JaviSRK> Is it the time that it's taken to encode so far, or is it based on the length of the video being encoded?
[23:53] <c_14> Time is where it is in the video.
[23:54] <c_14> Ie 00:30:00.00 means it's encoded 30 minutes worth of video.
[23:54] <JaviSRK> But based on -vstats; I don't get a format like you specified
[23:54] <c_14> Then it's probably time in seconds.
[23:55] <JaviSRK> Unfortunately, it's not. I'm trying to encode a video that's 2 minutes, 10 seconds.
[23:56] <c_14> According to the source code, it's the PTS value for the last encoded frame.
[23:57] <c_14> mhm
[23:57] <c_14> Try value / time_base
[23:57] <c_14> That should be in seconds.
[23:57] <JaviSRK> time_base?
[23:58] <c_14> The tb= in the output video stream info
[00:00] --- Wed Oct 15 2014
More information about the Ffmpeg-devel-irc
mailing list