[Ffmpeg-devel-irc] ffmpeg.log.20151229
burek
burek021 at gmail.com
Wed Dec 30 02:05:01 CET 2015
[01:34:27 CET] <jafa> hi guys. I am looking ways to do graceful fallback when the cpu can't keep up with HD mpeg2 decode + deinterlacing
[01:34:47 CET] <jafa> 720p60 -> 720p30 is quick and easy
[01:35:19 CET] <jafa> looking for advice for 1080i
[01:35:47 CET] <jafa> could halve the vertical resolution to output 1920x540p30
[01:36:56 CET] <jafa> is there an easy way to do that with a filter graph or should I do a simple decimate post decode pre filter graph?
[02:58:56 CET] <pinPoint> does ffmpeg automagically encode out in 5.1 if it runs into an audio file or a video clip with 5.1 audio?
[05:03:20 CET] <digidog> hi, is it possible to ffplay (filter>grayscale) a video file on the fly or do I always need to convert the file before?
[05:08:23 CET] <venkat_330> Request some guidance in adding timestamp to to video recording that is performed by FFMPEG. When i execute the command i get "ffmpeg: unrecognized option '-vf'" as the error. http://pastebin.com/kZNTusD3
[05:23:04 CET] <furq> venkat_330: that's an ancient version of ffmpeg, i doubt you'll get much help with it
[05:34:53 CET] <venkat_330> furq: I just want the timestamp to work actually
[07:41:52 CET] <Logicgate> hey guys
[07:42:05 CET] <Logicgate> Which pre-compiled binary would be the optimal one to get at the moment?
[07:42:18 CET] <Logicgate> http://johnvansickle.com/ffmpeg/
[09:33:42 CET] <pkeuter> when i want to cut a fragmented mp4 file, the output does not start on the exact given start position. probably because it cuts in between fragments? Is there a way to force the startposition?
[10:33:23 CET] <RaMcHiP-TMP> Hello all! I just installed octoprint onto a raspberry pi and it has a timelapse video feed using ffmepg. When I preview or record I get extreme distortion in the lower 2/3- 3/4 of the screen. Here is an example of a time lapse https://www.dropbox.com/s/cn5xd02loihqdvp/svapoDockingUSBFixed_20151229091638.mpg?dl=0
[10:35:27 CET] <RaMcHiP-TMP> Anyone know what might be causing that?
[12:22:31 CET] <WongKit> Hi, does anyone know if there is an alternative AVI muxer method available in FFMPEG?
[12:27:55 CET] <relaxed> WongKit: why do you need an alternative?
[12:29:37 CET] <WongKit> thanks for your reply. a video file muxed with ffmpeg does not play back on a hdd recorder
[12:30:05 CET] <fritsch> what does mediainfo of the resulting file say?
[12:30:53 CET] <WongKit> which information of media info do you need?
[12:30:58 CET] <WongKit> it is an xvid file
[12:31:24 CET] <relaxed> paste it all at pastebin.com
[12:31:32 CET] <WongKit> if I remuxe it with xmediarecode, the hdd recorder can play it
[12:31:41 CET] <WongKit> ok, mom
[12:32:48 CET] <WongKit> http://pastebin.com/42PbrJvS
[12:36:30 CET] <relaxed> looks fine
[12:36:32 CET] <fritsch> how does the xmediarecode look?
[12:37:49 CET] <WongKit> it is format AVI with copy-mode for video and audio
[12:38:10 CET] <fritsch> can you pastebin the info never the less?
[12:38:21 CET] <WongKit> ok
[12:38:25 CET] <relaxed> pastebin the command and ffmpeg's output as well
[12:38:39 CET] <JodaZ> WongKit, did you compare the info for the file generated by ffmpeg and the one by xmediarecode?
[12:39:23 CET] <WongKit> yes, they are different at few points (hex view) and result into the same mediainfo output
[12:39:45 CET] <JodaZ> hmm
[12:39:46 CET] <JodaZ> well
[12:39:54 CET] <JodaZ> also, isn't xmediarecode just using ffmpeg, WongKit? if so, just get a good task manager and see how xmediarecode launches ffmpeg in the background
[12:39:58 CET] <ethe> Logicgate: the git one, and 32/64bit depends on your system
[12:42:23 CET] <WongKit> @fritsch: xmediarecode does not give me much I could copy to pastebin. i can only upload some screenshots that says "copy"
[12:43:56 CET] <JodaZ> WongKit, just check how xmediarecode launches ffmpeg with process explorer
[12:44:12 CET] <WongKit> it uses an dll
[12:44:24 CET] <WongKit> not the .exe
[12:44:29 CET] <JodaZ> :/
[12:45:16 CET] <bencoh> ffmpeg avix mux really misses a lot of avi options
[12:47:00 CET] <bencoh> a/v (non-)interleaving being the most obvious
[12:47:12 CET] <WongKit> output of ffmpeg http://pastebin.com/5CDKQndP
[12:47:17 CET] <WongKit> note: it also contains reencoding, but it works fine after it was remuxed by xmedia
[12:48:20 CET] <JodaZ> vtag xvid? you sure thats neccessary? aint those players usually DivX licensed?
[12:49:07 CET] <JodaZ> ew, nvm, it uses something strange otherwise
[12:49:16 CET] <WongKit> this was one of the many tries to get the file compatible with my recoder
[12:49:46 CET] <WongKit> also tried DIVX as vtag, but the problem does not seem codec related
[12:53:25 CET] <WongKit> btw, I used a self compiled ffmpeg binary in the upper pastebin, but also tried the "public" one from zeranoe
[12:55:11 CET] <JodaZ> how many changes are there in the bindiff?
[12:56:36 CET] <JodaZ> any reason you don't want mkv? player should do that too if its divx certified
[12:59:12 CET] <WongKit> there are some changes in the file (estimated 0.5%)
[12:59:40 CET] <WongKit> the player does not accept mkv files
[13:00:04 CET] <WongKit> it is very old and only allows .avi and .divx as a file extension
[13:00:33 CET] <JodaZ> .divx should be mkv
[13:00:53 CET] <WongKit> let me try it
[13:01:38 CET] <JodaZ> hmm, maybe really old .divx isn't mkv, recent is tho, so its worth a try
[13:04:13 CET] <JodaZ> bencoh, you know how to fix this?
[13:05:31 CET] <WongKit> no, the divx-mkv file is rejected with "unknown format"
[13:06:46 CET] <WongKit> the avi file produces a black screen without any play back or error message
[13:07:37 CET] <JodaZ> does it get the video length?
[13:07:50 CET] <WongKit> no
[13:12:45 CET] <bencoh> JodaZ: fix what, ffmpeg avienc.c, or WongKit's issue?
[13:16:45 CET] <bencoh> WongKit: I'd try remuxing with avi-mux and/or virtualdub and playing with the parameters as their mux is more configurable than the one in ffmpeg
[13:17:12 CET] <JodaZ> bencoh, both?
[13:19:03 CET] <bencoh> JodaZ: regarding non-interleaved avi muxing and ffmpeg, I dont know of a simple way to do it (ie without buffering in avformat and/or seeking in resulting file)
[13:19:27 CET] <bencoh> (or both, or moving data around like with the mp4 mux)
[13:19:53 CET] <JodaZ> bencoh, i doubt the interleaving is much different if WongKit says the difference between a working and a non-working mux is just 0.5%
[13:20:17 CET] <bencoh> indeed
[13:20:25 CET] <bencoh> (in his case)
[13:20:48 CET] <WongKit> @bencoh: i already remuxed it with xmediarecode and it was readable after that
[13:21:30 CET] <WongKit> however, i want to prevent using more tools than i have to :)
[13:21:48 CET] <WongKit> i can provide a sample file if it helps
[13:21:52 CET] <bencoh> WongKit: can you parse/compare the RIFF structure?
[13:23:27 CET] <WongKit> as far as i see, they are (except for the size byte) identical
[13:23:45 CET] <WongKit> ffmpeg: RIFFaÈ. AVI LIST~" hdrlavih8 ¢ ¨a
[13:23:49 CET] <WongKit> working xmedia: RIFF É. AVI LISTî" hdrlavih8 ¢ ¸!
[13:27:22 CET] <bencoh> err, that's not parsed :p
[13:29:55 CET] <WongKit> it was worth a try ^^"
[13:30:41 CET] <WongKit> i uploaded a video sample (big buck bunny, 30 sec) http://www.mediafire.com/download/w7uxyyysl1i4f4a/video-sample.zip
[13:52:42 CET] <JodaZ> lol
[14:31:54 CET] <Disturbed1_away> good morning world.... quick question... anyone else having trouble appling ffmpeg_NVIDIA_gpu_acceleration.patch?
[14:35:48 CET] <WongKit> @bencoh: is there any kind of information i could offer?
[14:50:41 CET] <Zucca> When I set video/audio bitrate in kbits, does it convert to 1000 times in bits or 1024 times?
[14:51:43 CET] <Zucca> I haven't thought this ever in case of bitrates.
[15:00:49 CET] <DHE> SI prefixes, so 1000
[15:01:21 CET] <Zucca> DHE: Ok. Thanks. :)
[15:01:59 CET] <DHE> but if you want 1024 you can use ki, Mi, Gi, etc
[15:02:23 CET] <Zucca> Ah. Of course.
[15:06:10 CET] <Zucca> DHE: since dawn of mp3 has these bitrate prefixes been SI commonly?
[15:06:35 CET] <DHE> not sure. I would assume so...
[15:08:40 CET] <Zucca> I couls just test by encoding a mp3 using 128kibit and 128kbit bitrate and see if my old mp3 player accepts which file.
[15:10:11 CET] <WongKit> Need to leave now. relaxed, fritsch, JodaZ, bencoh - thank you for your help!
[15:13:30 CET] <pkeuter> when i want to cut a fragmented mp4 file, the output does not start on the exact given start position. probably because it cuts in between fragments? Is there a way to force the startposition?
[15:27:53 CET] <pkeuter> anyone?
[15:30:01 CET] <waressearcher2> pkeuter: hallo, wie geht's es dir ?
[15:30:16 CET] <j105rob> WRT http://pastebin.com/PiJhkZNm does this message libx264 @ 0x7ff67d006a00] frame= 1 QP=13.00 NAL=2 Slice:P Poc:8 I:0 P:0 SKIP:1 size=12 bytes mean that the frame was skipped? If so, can you tell me why?
[15:30:21 CET] <pkeuter> haha i´m fine, but not from germany :-)
[15:49:07 CET] <JodaZ> pkeuter, read up on the different seeking options in ffmpeg, theres different amounts of precission, the obvious limitation for example is that if you don't re-encode you can only cut at keyframes for example
[15:49:43 CET] <pkeuter> JodaZ, thanks! I thought the keyframes would have something to do with it.
[15:50:01 CET] <pkeuter> Now I am wondering what the default keyframe setting is on x264
[15:50:46 CET] <JodaZ> you can use those showinfo filter options to get an idea about how keyframe rich your file is
[15:51:21 CET] <JodaZ> pkeuter, but if you do re-encode (instead of just remux) you can force it to a specific (even non-keyframe) frame
[15:51:46 CET] <pkeuter> That sounds nice, but that brings me to another, more complicated question
[15:51:54 CET] <pkeuter> Do you have time for that?
[15:52:04 CET] <JodaZ> someone here might
[15:53:25 CET] <pkeuter> i´ll just ask. it looks as if when i use afade, it wants to reprocess the entire file. which is an hour long.
[15:53:38 CET] <pkeuter> well only when i use afade=t=in
[15:53:43 CET] <pkeuter> afade=t=out is fine
[16:13:29 CET] <jonj> Good day. I'm trying to figure out if it's possible to feed a folder of (5) image files to FFMPEG and still use filter_complex on the individual files. Command and console output is here: http://pastebin.com/y5tQ8AS3 Thank you.
[16:16:30 CET] <c_14> No, the image2 demuxer turns all the images into a single stream. You can't operate on the individual images like that
[16:19:52 CET] <jonj> thank you for the clarification. I guess i'll need to define each input then like I did in the first place... that works :)
[17:46:43 CET] <RaMcHiP-TMP> Hello all! I just installed octoprint onto a raspberry pi and it has a timelapse video feed using ffmepg. When I preview or record I get extreme distortion in color and picture. Here is an example of a time lapse https://www.dropbox.com/s/cn5xd02loihqdvp/svapoDockingUSBFixed_20151229091638.mpg?dl=0 and my lsusb gives me Bus 001 Device 007: ID 0c45:62f1 Microdia
[18:01:28 CET] <Disturbed1_away> grrr, four days with nvidia s870 and ffmpeg... uhg still no compile... :(
[18:04:46 CET] <waressearcher2> es ist schade
[18:07:06 CET] <danjanz> hi, does anybody know if it is possible to recreate ismv files from smooth streaming Manifest and all the fragments?
[18:07:16 CET] <DonBastel> hi im currently trying to set up a ffmpeg listen http socket (-listen 1 http://<localip>:<port>) and it always streams as application/octet-stream. i tried to set the -mime_type to video/webm but that option only replies that it failed setting it to video/webm. is there any way to set the output of the http socket to video/webm for streaming?
[18:17:54 CET] <relaxed> DonBastel: try -content_type video/webm
[18:18:22 CET] <DonBastel> relaxed: already set no change
[18:21:45 CET] <DonBastel> relaxed: the current cmd: ffmpeg -user-agent 42 -i http://<input url> -vcodec vp8 -vf scale=320:240 -acodec copy -f webm -content_type video/webm -listen 1 http://127.0.0.1:9000
[18:23:00 CET] <DonBastel> that works in terms of i see data flowing but the player cant play it because the mime-type is "application/octet-stream"
[18:26:55 CET] <relaxed> which player
[18:28:19 CET] <DonBastel> vlc
[18:29:14 CET] <DonBastel> also ffmpeg on client side cant determine the streams.
[18:43:18 CET] <relaxed> tcp:// work here but http:// only works with ffplay
[18:43:32 CET] <furq> http works for me
[18:49:30 CET] <furq> looks like the difference is on the player side though, i checked in firefox and the mime type is application/octet-stream
[18:49:40 CET] <furq> but firefox and vlc play it back fine
[18:49:58 CET] <wyatt8750> Anyone got advice on decoding QDMC audio? I've got a really really old .mov file that uses it
[18:50:15 CET] <wyatt8750> I'm running linux but if it comes to a last resort I can boot into windows XP
[18:50:33 CET] <wyatt8750> ffmpeg appears to not support QDMC decoding, that's why I ask
[18:55:06 CET] <relaxed> wyatt8750: mplayer with quicktime binary codecs
[18:55:43 CET] <wyatt8750> didn't know about that
[18:55:48 CET] <wyatt8750> can that work in linux?
[18:55:57 CET] <relaxed> yes
[18:56:56 CET] <wyatt8750> where do I find/how do I install binary codecs then?
[18:57:55 CET] <wyatt8750> oh, may have found them http://www.mplayerhq.hu/design7/dload.html#binary_codecs
[19:04:52 CET] <DonBastel> ok thank you.
[19:06:19 CET] <Logicgate> Hey guys, so I have this site which provides user a way to upload videos to the Vine app. The format of Vine's videos is either 480x480 and 720x720 (1:1 ratio).
[19:06:56 CET] <wyatt8750> that worked, thanks a million. Dumped it to a .wav and now I can encode it in something slightly more modern :\
[19:07:17 CET] <relaxed> you're welcome
[19:11:20 CET] <Logicgate> Which was my last message?
[19:12:40 CET] <relaxed> vine takes square video
[19:13:01 CET] <wyatt8750> I wonder if youtube's decoder/encoder can process QDMC.
[19:13:15 CET] <wyatt8750> I feel like it is probably ffmpeg based, but I don't really know that
[19:14:38 CET] <Logicgate> Now my problem is that users uploads all kind of different formats and sizes videos and I have to make a Vine compatible video for the upload sequence to be successful
[19:14:43 CET] <Logicgate> One of the problems is that a lot of users complain about losing video quality / sound quality during the conversion process
[19:14:55 CET] <Logicgate> here is what I'm using: ffmpeg -i <input> -ss 00:00:00 -t 00:00:06 -vf 480:480 -aspect 1:1 -c:v libx264 -preset veryslow -movflags faststart <output>
[19:15:21 CET] <ChocolateArmpits> Logicgate: well you have no audio codec settings there for starters
[19:15:41 CET] <ChocolateArmpits> and scaling quality can be increased by specifying scaling flags
[19:15:53 CET] <llogan> you can stream copy the audio instead of re-encoding...as long as Vine will accept it
[19:16:10 CET] <ChocolateArmpits> I would transcode just in case
[19:16:13 CET] <Logicgate> llogan, I think that's a good idea since I don't want to preset the audio quality
[19:16:17 CET] <Logicgate> More so just leave it as is
[19:16:38 CET] <wyatt8750> logicgate: if you want to leave it as is then you aren't re-encoding it
[19:16:54 CET] <wyatt8750> and they could use any number of impossibly obscure codecs
[19:16:56 CET] <wyatt8750> (like QDMC)
[19:17:18 CET] <llogan> what is the -ss 00:00:00 for? i see this often.
[19:17:22 CET] <Logicgate> So would there be a way to transcode using the same bitrate as original audio track?
[19:17:34 CET] <llogan> that's a fallacy
[19:17:39 CET] <Logicgate> llogan, people upload videos of different length
[19:17:48 CET] <Logicgate> I need to cut it down to 6 seconds, otherwise the upload fails
[19:17:53 CET] <wyatt8750> logicgate: perhaps, but I would use a high standard, and 'same bitrate' means different things if you use different codecs
[19:18:01 CET] <wyatt8750> some codecs handle lower bitrates better than others, for instance
[19:18:07 CET] <llogan> -ss 00:00:00 does nothing
[19:18:24 CET] <Logicgate> llogan, okay so -t 00:00:06 only?
[19:18:31 CET] <llogan> yes
[19:18:35 CET] <wyatt8750> the video starts at 0, so yeah, -t 00:00:06 is what you need.
[19:18:38 CET] <Logicgate> duely noted
[19:18:51 CET] <llogan> or just "-t 6"
[19:18:52 CET] <ChocolateArmpits> well -t will only pass that many seconds, rather than stop at that timestamp
[19:18:54 CET] <wyatt8750> true
[19:19:08 CET] <Logicgate> Okay so the problem here I see is trying to handle so many different formats of video and audio codec and try to please everybody
[19:19:15 CET] <ChocolateArmpits> Also you don't have bitrate settings
[19:19:17 CET] <Logicgate> Am I doing the wrong thing by trying to please everyone?
[19:19:17 CET] <ChocolateArmpits> specified
[19:19:25 CET] <ChocolateArmpits> which results in probably low defaults
[19:19:27 CET] <wyatt8750> I'd encode all videos to webm or x264 (if patents aren't an issue)
[19:19:35 CET] <wyatt8750> use CRF
[19:19:41 CET] <Logicgate> output needs to be MP4
[19:19:48 CET] <wyatt8750> alright then, x264 probably
[19:20:03 CET] <wyatt8750> and audio in AAC (if patents aren't an issue)
[19:20:16 CET] <Logicgate> ChocolateArmpits, how do you set bitrate properly?
[19:20:32 CET] <kepstin> the problem with aac is that a lot of the encoders aren't very good... make sure you're not using vo-aacenc in particular
[19:20:36 CET] <Logicgate> AAC should be fine wyatt8750, they're not picky about the audi track so much seems like
[19:20:39 CET] <wyatt8750> I use fdk-aac
[19:20:41 CET] <ChocolateArmpits> wyatt8750: both aac and h264 are free for encoding, only distributed encoders and decoders are monetized
[19:21:04 CET] <llogan> the native FFmpeg AAC encoder has seen some big improvements recently
[19:21:10 CET] <wyatt8750> though I don't think ffmpeg usually includes fdk-aac, right?
[19:21:16 CET] <wyatt8750> I build my own :\
[19:21:16 CET] <kepstin> (the ffmpeg built-in encoder is probable the simplest option for aac encoding, just give it a bit more bitrate than you really need to workaround generation loss)
[19:21:29 CET] <wyatt8750> 128kbps is my rule of thumb for aac
[19:21:30 CET] <Logicgate> Okay, so I need to specify bitrate, use CRF and re-encode audio?
[19:21:35 CET] <kepstin> wyatt8750: not normally, since it's a non-redistributable license combination.
[19:21:46 CET] <wyatt8750> kepstin: ah, thought so.
[19:22:22 CET] Action: wyatt8750 quietly pulls his ffmpeg windows/linux binaries with static linkned libfdk_aac off his server
[19:22:29 CET] <Logicgate> lol
[19:22:48 CET] <ChocolateArmpits> it's not like you're distributing it, are you?
[19:22:56 CET] <Logicgate> Okay so could someone give me a sample of flags I should use?
[19:23:03 CET] <wyatt8750> I wasn't advertising it but it was publicly available if you were to look hard enough
[19:23:07 CET] <wyatt8750> my website was indexed :\
[19:23:11 CET] <wyatt8750> (google indexed)
[19:23:31 CET] <Logicgate> I'd be willing to pay for a couple hours of consulting on this subject
[19:23:36 CET] <Logicgate> If anyone wants to make a bit of money?
[19:23:53 CET] <llogan> does vine squish the video like yours will?
[19:24:04 CET] <llogan> (Ive never used vine)
[19:24:08 CET] <Logicgate> llogan, well they use their own recorder on their app
[19:24:18 CET] <wyatt8750> logicgate: what is 'vf 480:480'?
[19:24:19 CET] <Logicgate> the output of their video format is either 720x720 or 480x480
[19:24:23 CET] <wyatt8750> do you mean to crop it?
[19:24:23 CET] <ChocolateArmpits> Logicgate: -sws_flags lanczos or -sws_flags spline. former introduces some ringing when downscaling, spline is "softer"
[19:24:29 CET] <Logicgate> wyatt8740, yeah I have to crop it
[19:24:34 CET] <kepstin> Logicgate: the video stuff you have is mostly ok, just add a -crf flag to select a quality level (baybe around 20ish?). Then throw in "-c:a aac -b:a 140K" or so
[19:24:34 CET] <wyatt8750> not resize?
[19:25:04 CET] <ChocolateArmpits> kepstin: i'd suggest -crf 18, low bitrate needs higher crf most of the time
[19:25:06 CET] <llogan> ChocolateArmpits: use the flags option in scale instead of sws_flags
[19:25:08 CET] <ChocolateArmpits> I mean low resolution
[19:25:28 CET] <Logicgate> wyatt8750 depends what the video input is right?
[19:25:28 CET] <kepstin> I assume when vine gets the video they're probably gonna re-encode it on their end too, so spending some extra bits here is worth it
[19:25:36 CET] <wyatt8750> logicgate: sure
[19:25:40 CET] <ChocolateArmpits> llogan: does it matter really? I think it still goes through the scaling filter in the background
[19:25:51 CET] <Logicgate> I have to offer the option to the user the either add black/white bars to fill the gap and keep aspect ratio
[19:25:56 CET] <Logicgate> Or do full screen and resize.
[19:26:03 CET] <wyatt8750> logicgate: good, I was going to suggest that
[19:26:16 CET] <llogan> ChocolateArmpits: it is better because you can control which scaler flags apply to which scale if you have multiple
[19:26:18 CET] <wyatt8750> if you already are doing that, then I'll not write that part of my filter chain in
[19:26:33 CET] <ChocolateArmpits> llogan: well he's clearly not doing multiple concurrent outputs
[19:26:33 CET] <llogan> ...and i prefer to have all filtering related stuff in the filtergraph
[19:26:34 CET] <Logicgate> I have that part handled wyatt8750! Thanks
[19:27:01 CET] <llogan> ChocolateArmpits: clearly, as you put it, but it makes more sense regardless
[19:27:25 CET] <ChocolateArmpits> llogan: let's say the sws-flags is more straight forward in this scenario
[19:27:34 CET] <llogan> how so?
[19:28:28 CET] <ChocolateArmpits> llogan: less typing and generally less time spent getting to know the topic of filtering before getting results
[19:28:38 CET] <wyatt8750> what AAC codecs are includable with distributable ffmpeg?
[19:28:52 CET] <wyatt8750> logicgate: I'm assuming you aren't compiling your own ffmpeg?
[19:29:09 CET] <Logicgate> wyatt8750 I'm using the precompiled binaries
[19:29:12 CET] <Logicgate> from relaxed
[19:29:26 CET] <llogan> ChocolateArmpits: it is actually more typing
[19:29:43 CET] <ChocolateArmpits> llogan: well okay but the second part is true
[19:30:03 CET] <wyatt8750> relaxed's? or the official ffmpeg binaries?
[19:30:11 CET] <Logicgate> relaxed's
[19:30:14 CET] <wyatt8750> I don't know where relaxed keeps his
[19:30:16 CET] <RaMcHiP-TMP> Hello all! I just installed octoprint onto a raspberry pi and it has a timelapse video feed using ffmepg. When I preview or record I get extreme distortion in color and picture. Here is an example of a time lapse https://www.dropbox.com/s/cn5xd02loihqdvp/svapoDockingUSBFixed_20151229091638.mpg?dl=0 and my lsusb gives me Bus 001 Device 007: ID 0c45:62f1 Microdia
[19:30:20 CET] <ChocolateArmpits> I don't think there are any "official binaries"
[19:30:30 CET] <Logicgate> http://johnvansickle.com/ffmpeg/
[19:30:36 CET] <Logicgate> that's relaxed's binaries
[19:30:44 CET] <relaxed> not official, I just do it to be helpful
[19:31:54 CET] <Logicgate> I like your binaries, they've worked well for me :D
[19:32:18 CET] <wyatt8750> I was being helpful supplying my binaries but I apparently was violating licenses :p
[19:33:01 CET] <wyatt8750> so, what AAC codecs ARE included in your builds relaxed?
[19:33:20 CET] <relaxed> yes, but not libfdk_aac
[19:33:27 CET] <wyatt8750> which ones/
[19:33:42 CET] <relaxed> native and libvo-aacenc
[19:33:46 CET] <wyatt8750> alright
[19:33:54 CET] <wyatt8750> vo is the better of the two right now, right?
[19:33:58 CET] <llogan> no
[19:33:59 CET] <wyatt8750> I normally use fdk
[19:34:01 CET] <wyatt8750> :p
[19:34:12 CET] <wyatt8750> oh, native's that good now?
[19:34:13 CET] <wyatt8750> sweet
[19:34:13 CET] <relaxed> I should drop libvo-aacenc
[19:35:08 CET] <llogan> also it doesn't support more than 2 channels
[19:38:00 CET] <relaxed> bill gates said 2 channels was all anyone would ever need
[19:41:16 CET] <ChocolateArmpits> hey if we have only 2 ears why would we need more than 2 channels?
[19:41:52 CET] <furq> so i can spend more money on crystal-plated interconnects
[19:43:28 CET] Action: llogan uses clothes hangers
[19:47:25 CET] <furq> did you at least paint arrows on them
[21:01:12 CET] <Franciman> Hello
[21:01:33 CET] <Franciman> I am decoding a list of AVPackets
[21:01:39 CET] <Franciman> with av_decode_audio4
[21:01:47 CET] <Franciman> avcodec_*
[21:01:52 CET] <Franciman> now when I have to flush
[21:02:12 CET] <Franciman> can I use a dummy AVPacket not allocated with av_init_packet
[21:02:18 CET] <Franciman> or do I need to allocate it?
[21:02:51 CET] <Franciman> (provided that I will do packet.size = 0; and packet.data = NULL; )
[21:12:12 CET] <micechal> what is the convention for ffmpeg version numbers? ie. why is n2.6.6 newer than n2.7.4 and n2.8.4?
[21:12:28 CET] <fritsch> it was tagged later
[21:12:36 CET] <fritsch> .6 of 2.6 was tagged later
[21:13:02 CET] <micechal> so there are like three main branches?
[21:13:12 CET] <micechal> 2.6, 2.7 and 2.8?
[21:13:14 CET] <fritsch> three versions that are still supported
[21:13:18 CET] <fritsch> and receive dot updates
[21:13:31 CET] <DHE> why is windows XP up to service pack 3 but windows 7 only has service pack 1?
[21:13:35 CET] <micechal> I see. thanks
[21:35:56 CET] <aep> hi. any idea how i can get the latency down when using isml?
[21:36:03 CET] <aep> this is over local network
[21:36:58 CET] <aep> i mean, i'm testing with no network for now:
[21:37:00 CET] <aep> ffmpeg -re -f v4l2 -i /dev/video0 -g 10 -c:v libx264 -crf 22 -movflags faststart -c:v libx264 -f ismv -movflags isml+frag_keyframe - | vlc -
[21:37:27 CET] <aep> -g 10 is probably terrible, but without i get like 30 seconds lag
[21:41:09 CET] <dystopia_> can you encode as fast as realtime?
[21:41:21 CET] <aep> uuh
[21:41:41 CET] <aep> i dont see why not. but i guess i can recduce the framerate to try?
[21:41:58 CET] <dystopia_> your doing -re to limit yourself to encode at input frame rate
[21:42:16 CET] <dystopia_> so if it was 25fps you are limiting encoding to 25fps
[21:42:21 CET] <aep> yeah thats fine
[21:42:27 CET] <aep> by lag i dont mean framerate
[21:42:37 CET] <dystopia_> but if your hardware can't actually encode the video at 25fps you will get lag
[21:42:38 CET] <dystopia_> ok
[21:42:40 CET] <aep> it takes 30 seconds before the first frame is shown from 30 seconds ago
[21:42:49 CET] <aep> and then the framerate is consistent
[21:42:50 CET] <dystopia_> hmm
[21:42:53 CET] <aep> just 30 seconds behind
[21:42:59 CET] <dystopia_> yeah i see what you mean
[21:43:24 CET] <aep> also mplayer stops doing anything after another 10 seconds or so
[21:43:33 CET] <aep> i suspect about when another keyframe comes
[21:43:55 CET] <aep> since the time it takes to do both decreases witha higher -g
[21:46:42 CET] <aep> its also eating all of my 4 cores. i wonder why mjpeg is the only format that doesnt do that :/
[21:55:16 CET] <ChocolateArmpits> aep: processing requirements can be adjusted through the preset parameter
[21:55:21 CET] <ChocolateArmpits> for x264
[21:55:30 CET] <ChocolateArmpits> By default it's running at medium
[21:55:38 CET] <aep> yeh, its already pretty low quality by default :(
[21:55:39 CET] <aep> oh well
[21:55:43 CET] <aep> i'd be glad if it works at all
[21:55:57 CET] <furq> preset shouldn't affect quality (too much)
[21:56:00 CET] <ChocolateArmpits> As for reducing latency, use -analyzeduration as an input option
[21:56:10 CET] <furq> you can try -tune zerolatency but i doubt that'll help much
[21:57:17 CET] <aep> hm not sure where -analyzeduration goes
[21:57:25 CET] <ChocolateArmpits> something like -analyzeduration 500000 will tell ffmpeg only to scan the input for 0.5 seconds
[21:57:28 CET] <ChocolateArmpits> before the -i
[21:57:31 CET] <furq> "as an input option" = before -i
[21:57:31 CET] <aep> ffmpeg -r 10 -f v4l2 -analyzeduration -i /dev/video0 -g 10 -c:v libx264 -crf 22 -c:v libx264 -f mp4 -movflags frag_keyframe+faststart -
[21:57:35 CET] <aep> ah duh
[21:57:39 CET] <aep> with a number :D
[21:57:59 CET] <furq> https://www.ffmpeg.org/ffmpeg-formats.html#mov_002c-mp4_002c-ismv
[21:58:04 CET] <furq> at a guess, you want to tune some of those options
[21:58:09 CET] <aep> same thing
[21:58:20 CET] <furq> i assume the delay is down to the fragment size
[21:58:24 CET] <aep> yeah
[21:58:25 CET] <furq> i've never touched ismv before though
[21:58:36 CET] <aep> pretty sure its related to whatever -g does to fragments
[21:58:51 CET] <furq> oh you're already using frag_keyframe
[21:59:00 CET] <ChocolateArmpits> you shouldn't need the faststart flag
[21:59:13 CET] <aep> aye. was just a random try
[21:59:27 CET] <ChocolateArmpits> as the gops are already fragmented
[21:59:32 CET] <furq> i'd have thought faststart would make it worse
[21:59:49 CET] <ChocolateArmpits> it should have no effect, or actually any use at all with smoothstream
[22:00:14 CET] <ChocolateArmpits> faststart is for progressive download sources, while smoothstream is adaptive
[22:00:35 CET] <aep> makes sense
[22:01:00 CET] <ChocolateArmpits> aep: you should also try configuring the analyzeduration for vlc however I don't know the command for that there
[22:01:04 CET] <aep> i noticed when i just let it print to stdout, it also takes several seconds before it does anything
[22:01:11 CET] <ChocolateArmpits> you can try piping it to ffplay instead and using the same command there
[22:01:14 CET] <aep> aye
[22:01:28 CET] <furq> is it actually encoding at 10fps
[22:01:35 CET] <aep> ffplay dies
[22:01:39 CET] <aep> [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7fb378000920] stream 0, offset 0x3e563: partial file
[22:01:47 CET] <aep> prints that in a loop at 100% cpu
[22:01:56 CET] <ChocolateArmpits> ok
[22:04:59 CET] <aep> ocassionally it works. analyzeduration has no effect tho
[22:08:02 CET] <aep> its the same with webm
[22:08:08 CET] <aep> maybe there's some buffer?
[22:11:10 CET] <aep> hm webm only has about 5 seconds delay
[23:54:13 CET] <nani____> I want to extract from two "mostly" in sync video files the audio and video, such that video 1 has the audio from video 0. These two files might go out of sync by different amounts througout their duration. The video is identical (but out of sync), encoding quality aside, the audio is completely different.
[23:54:33 CET] <nani____> Is there an easy ffmpeg one liner for this or do I have to hack something together in python?
[00:00:00 CET] --- Wed Dec 30 2015
More information about the Ffmpeg-devel-irc
mailing list