[Ffmpeg-devel-irc] ffmpeg.log.20161104
burek
burek021 at gmail.com
Sat Nov 5 03:05:01 EET 2016
[00:00:12 CET] <misterhat> and it does say it's recording at 25 FPS, but it also spams [mp4 @ 0x55c1400c25a0] Non-monotonous DTS in output stream 0:0; previous: 1237, current: 0; changing to 1238. This may result in incorrect timestamps in the output file.
[00:01:45 CET] <jkqxz> Paste the output now somewhere?
[00:02:25 CET] <misterhat> besides that message, the only other one was: [libx264 @ 0x55c1400c3c20] non-strictly-monotonic PTS
[00:02:54 CET] <misterhat> jkqxz: https://paste.debian.net/892190/
[00:05:46 CET] <jkqxz> Odd. I have no idea why the timestamps are so broken there.
[00:07:14 CET] <jkqxz> You could try adding "-r 25" as well as "-framerate 25"?
[00:10:53 CET] <misterhat> yeah jkqxz that worked lol
[00:10:55 CET] <misterhat> what a pain though
[00:11:02 CET] <misterhat> i never needed all those extra flags in the past
[00:11:04 CET] <misterhat> thanks
[00:11:13 CET] <misterhat> here is what ended up working
[00:11:15 CET] <misterhat> ffmpeg -f x11grab -framerate 25 -r 25 -i :0 -s 1920x1080 -vsync 0 test.mp4
[00:11:46 CET] <misterhat> well the -s should be moved in front of the -f
[00:11:49 CET] <misterhat> but then it works fine
[00:11:49 CET] <llogan> that will upscale 640x480 to 1920x1080
[00:11:53 CET] <misterhat> yeah lol
[00:11:55 CET] <misterhat> sorry
[00:12:03 CET] <llogan> use -video_size as input option
[00:14:03 CET] <jkqxz> You might be able to remove the -vsync now you have -r.
[00:14:44 CET] <jkqxz> Still, something weird is going on to break the timestamps. (-r is totally overriding them, you shouldn't need to do that.)
[00:16:10 CET] <llogan> misterhat: try a build from from git master branch
[00:17:06 CET] <llogan> (there was even an xcb related commit today)
[00:26:06 CET] <misterhat> kk llogan i will shortly
[02:28:57 CET] <calexil> hello
[02:29:08 CET] <calexil> I need halp
[02:29:10 CET] <calexil> anyone here
[02:34:00 CET] <SchrodingersScat> hello
[02:34:08 CET] <SchrodingersScat> it's doubtful I can help, but don't ask to ask, just ask
[02:35:11 CET] Action: klaxa is not here
[02:35:57 CET] <calexil> hmm
[02:36:05 CET] <calexil> well I sped up a video by changing the pts
[02:36:12 CET] <calexil> by about 20x
[02:36:24 CET] <calexil> and it's metadata still thinks its 5.5 hours long
[02:36:30 CET] <calexil> when its really like 6 minutes
[02:36:40 CET] <calexil> how do I fix it
[02:37:08 CET] <klaxa> are there other streams beside video in the file?
[02:37:23 CET] <calexil> there was audio
[02:37:29 CET] <calexil> but the speed up killed it
[02:37:31 CET] <calexil> I think
[02:37:35 CET] <calexil> its silent now
[02:38:12 CET] <calexil> im converting it to mkv to see if that fixes it
[02:38:18 CET] <calexil> its currently mp4
[03:10:35 CET] <Sashmo> does anyone know why I get a start time added to my transcodes? Duration: 23:17:30.63, start: 11677.213522
[03:52:39 CET] <fling> Is 'best' the default compression level for flac?
[05:11:11 CET] <fling> Why is avi bigger than mov and mkv bigger than avi?
[05:12:01 CET] <fling> Why is creation_time converted to Zulu time? >:[
[05:16:50 CET] <fling> Do I need external tools for rotating mjpeg for real?
[08:25:05 CET] <fling> What does language mean for video streams?
[08:35:31 CET] <kerio> fling: sometimes the language of the text in the video?
[08:36:27 CET] <fling> ahh! right, thanks.
[08:43:08 CET] <kerio> which containers can contain raw gray16 video?
[08:46:32 CET] <kerio> apparently avi is not one of them :\
[08:51:03 CET] <fling> How do I have offset/timezone in creation_time ?
[08:51:19 CET] <fling> I don't like my timestamps getting converted to Zulu time!
[12:11:37 CET] <bwe> thebombzen: I've solved my problem: https://vimeo.com/forums/topic:115188 says under point 4 that QuickTime adds multiple edit list entries. That happened in the course of glueing together a couple of videos. So, I've thought, let ffmpeg do the job to no avail! The output was unusable. So, I uploaded the video parts to YouTube and concatenated them in the VideoEditor together. That worked. A/V-sync is in
[12:11:43 CET] <bwe> place.
[12:30:36 CET] <matteo> hi all
[12:30:45 CET] <matteo> I'. streaming a live video to facebook
[12:30:53 CET] <matteo> I'm streaming since half an hour
[12:31:08 CET] <matteo> my PC is encoding at 70-100 FPS
[12:31:29 CET] <matteo> but the video is played at 30 fps, how can I limit it?
[12:32:51 CET] <matteo> maybe -re?
[12:35:56 CET] <kerio> if you're streaming from a source that doesn't rate limit, you should use -re yes
[12:41:05 CET] <matteo> but it won't work with -stream_loop -1
[12:41:36 CET] <fling> Audio: flac, 8000 Hz, mono, s16 (default)
[12:41:40 CET] <fling> What does s16 mean? ^
[12:41:58 CET] <matteo> signed
[12:42:10 CET] <fling> what about 16?
[12:42:14 CET] <matteo> 16 bit
[12:42:26 CET] <fling> ok, thanks.
[12:44:40 CET] <fling> I have a damaged videofile which is out of sync from some point. This was caused because of too high bitrate while recording.
[12:44:58 CET] <fling> Is it possible to fis/sync it somehow?
[12:45:03 CET] <matteo> dunno
[12:45:17 CET] <matteo> kerio: can I use -re with -stream_loop -1?
[12:45:31 CET] <kerio> idk
[12:45:48 CET] <fling> For example by saving all the frames as images with timestamps/framenumbers, then putting dummy images where are missing frames and them muxing everything back?
[12:46:09 CET] <fling> The problem is idk how to convert to images _without_ skipping
[12:51:31 CET] <fling> I mean the numbers of skipped frames should be skipped too somehow
[12:53:16 CET] <kerio> how do you know which frames have been skipped?
[12:54:04 CET] <fling> kerio: this is an avi container, there might be markers in the streams
[14:48:59 CET] <fling> Which file format to use for pcm files?
[14:50:21 CET] <furq> wav
[14:53:23 CET] <ikevin> is it possible to generate an infinite video from a jpg file, and get the jpg file read at every loop?
[14:57:39 CET] <fling> ikevin: infinite? loop?
[14:57:44 CET] <fling> furq: thanks
[14:58:36 CET] <fling> Which codec to use for lossless?
[15:00:41 CET] <furq> lossless audio?
[15:00:42 CET] <furq> flac
[15:04:21 CET] <fling> furq: no, for lossless video. ffv1?
[15:05:15 CET] <fling> I have a broken video with huffyuv and pcm in an avi container. The video got broken by too high bitrate while encoding.
[15:05:51 CET] <furq> what does broken by too high bitrate mean
[15:06:12 CET] <fling> I saved audio as a wav file and I also saved each frame as a png image and surprisingly all the corrupted frames got saved as dupes and not dropped! (probably)
[15:06:39 CET] <fling> Atleast the first minute of the video I got from muxing images with sound back to a container is perfectly in sync now!
[15:07:30 CET] <fling> furq: not sure, they say the computer was to slow to record 50Mbps video but they tried anyway :P
[15:07:48 CET] <furq> unless it was from a live source then that shouldn't matter
[15:07:58 CET] <furq> but yeah ffv1 is good
[15:08:18 CET] <furq> depending on what you need to decode it with
[15:08:45 CET] <furq> i don't think there's a vfw or quicktime ffv1 so if you need to use it with a commercial nle then that's probably not going to work
[15:08:52 CET] <fling> shouldn't matter? It looks like it is from x11grab or something
[15:09:02 CET] <fling> The video will be used with mpv
[15:09:08 CET] <furq> use ffv1 then
[15:09:19 CET] <furq> if it's from a live source then it'll drop frames if the disk can't keep up
[15:09:24 CET] <furq> otherwise the encoding will just slow down
[15:09:41 CET] <fling> omg ffmpeg is smart!
[15:10:00 CET] <fling> does x11grab count as a live source?
[15:10:17 CET] <furq> yes
[15:10:30 CET] <fling> I always thought things will just go wrong. Was this smart behavior always the case?
[15:11:08 CET] <furq> if you mean for live sources then i doubt it will do anything reliably
[15:12:55 CET] <fling> will not dupes take a lot of bitrate when encoding with ffv1? For example in comparison of 30fps video to 60fps video with every second frame being a dupe?
[15:13:06 CET] <kepstin> the reason ffmpeg's x11grab slows down when it can't keep up is because ffmpeg is single-threaded, not because it's doing anything smart.
[15:13:22 CET] <fling> smart
[15:13:42 CET] <furq> fling: test it and find out
[15:13:46 CET] <furq> ffv1 is pretty fast
[15:13:53 CET] <fling> Then I don't get how they managed to capture this out of sync video
[15:14:26 CET] <fling> furq: I'm now in the middle of encoding a low quality h264 for confirming everything is in sync.
[15:15:12 CET] <furq> like i said, if you run out of buffer with a live source then things will go wrong
[15:15:18 CET] <ikevin> fling, yes, looping a jpg and pipe it to make a stream
[15:15:19 CET] <fling> [image2 @ 0x56019c039650] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[15:15:20 CET] <furq> i imagine all bets are off at that point
[15:15:26 CET] <fling> Will this speedup things? ^
[15:15:41 CET] <furq> if your cpu isn't being fully utilised then yes
[15:15:53 CET] <fling> ikevin: you can create a single-frame video.
[15:15:58 CET] <furq> you can often ignore that message though
[15:16:14 CET] <ikevin> fling, i can do that with vlc, so vlc problem is jpg is not refresh
[15:16:20 CET] <furq> ikevin: if you want to change the jpg in the middle of encoding then there's no way of doing that without ugly hacks
[15:16:35 CET] <ikevin> i need jpg file to be re-read at every fram
[15:16:41 CET] <fling> ikevin: you need to put something in the middle of your jpeg and ffmpeg
[15:16:56 CET] <furq> 02:03:38 ( klaxa) does something like this work? (while true; cat image.gif; done) | ffmpeg -f image2pipe -i - <stuff> ?
[15:17:22 CET] <ikevin> i cam make a program who generate mjpem streal
[15:17:26 CET] <ikevin> stream*
[15:17:30 CET] <ikevin> can*
[15:17:59 CET] <ikevin> mjpeg*
[15:18:45 CET] <fling> which*, I*, &
[15:19:50 CET] <ikevin> lol, sorry, i've a bad english :x
[15:20:47 CET] <ElAngelo> i have a video that ffmpeg doesn't seem to be able to render
[15:20:51 CET] <ElAngelo> Stream #0:0(eng): Video: rawvideo (AV1x / 0x78315641), uyvy422(pc), 720x486, 212630 kb/s, 29.97 fps, 29.97 tbr, 29970 tbn, 29970 tbc (default)
[15:20:58 CET] <ElAngelo> encoder : Avid MXF1:1
[15:21:01 CET] <ElAngelo> it's a mov
[15:21:13 CET] <ElAngelo> is that possible?
[15:22:01 CET] <ElAngelo> encoder : Avid MXF1:1
[15:22:04 CET] <ElAngelo> sorry
[15:23:37 CET] <ElAngelo> http://pastebin.com/9W28kM2H
[15:23:40 CET] <ElAngelo> this is the full info
[15:24:15 CET] <kepstin> ElAngelo: so, what's the problem?
[15:24:51 CET] <ElAngelo> if i play it with ffplay i only get a black screen
[15:24:52 CET] <ikevin> fling, does ffmpeg can be used to create de mjpeg stream from 1 jpg file (who is updated)
[15:25:01 CET] <ElAngelo> can't take stills from it
[15:25:05 CET] <ElAngelo> can't re encode it
[15:25:24 CET] <kepstin> ElAngelo: ok, so what is the COMPLETE output of ffplay or ffmpeg when trying to do that?
[15:26:08 CET] <ikevin> fling, like ffmpeg --loop -1 <jpg file> ...
[15:27:54 CET] <kepstin> ElAngelo: from that ffprobe output, it looks like ffmpeg has detected the audio and video codecs correctly - so if something's not working, the ffmpeg re-encode command should be printing some messages that say why.
[15:29:00 CET] <fling> ikevin: do what klaxa said ^
[15:29:30 CET] <ElAngelo> http://pastebin.com/ixFJrztH
[15:29:46 CET] <ElAngelo> kepstin: ^^ output of ffmpeg reencoding to mp4
[15:29:47 CET] <fling> furq: no the video starts to go slower after some time. ~30 seconds shift to the end of the video.
[15:29:48 CET] <ikevin> klaxa?
[15:29:50 CET] <ElAngelo> i get an output movie
[15:30:01 CET] <ElAngelo> the sound comes through ok
[15:30:04 CET] <fling> furq: there are multiple freezes here an there, not sure how to fix
[15:30:10 CET] <ElAngelo> the image is just black
[15:30:38 CET] <kepstin> ElAngelo: I believe the problem is that your input video is black...
[15:30:45 CET] <furq> i take it you can play it in another player
[15:30:46 CET] <kepstin> ElAngelo: does it show anything in a different player?
[15:30:51 CET] <ElAngelo> it plays in quicktime
[15:31:02 CET] <ElAngelo> but it tells me it needs to download something extra
[15:31:08 CET] <ElAngelo> which it does
[15:31:44 CET] <ElAngelo> haven't found any other movieplayer that seems to be able to play it
[15:32:11 CET] <kepstin> huh. so maybe this isn't actually a video file, but rather a sort of playlist that plays the media from a remote server? :/
[15:32:17 CET] <furq> can you remux it into another container
[15:32:30 CET] <ElAngelo> with ffmpeg?
[15:32:34 CET] <kepstin> ElAngelo: how big is the file? (MB?)
[15:32:34 CET] <furq> -i foo.mov -c copy -map 0:0 -map 0:1 out.nut
[15:32:45 CET] <ElAngelo> the file is 1.8 GB
[15:32:55 CET] <furq> that should probably be more than a minute long then
[15:33:08 CET] <ElAngelo> yeah that's what i don't understand about it too
[15:33:21 CET] <kepstin> that file size is consistent with the raw video codec ffprobe says it has
[15:34:02 CET] <ElAngelo> remuxing it does give me something
[15:34:11 CET] <ElAngelo> but it's completely bogus
[15:34:30 CET] <ElAngelo> but it's no longer black
[15:34:45 CET] <ElAngelo> it's brownish with some multi colored stripes through it
[15:35:04 CET] <ElAngelo> that change every now and then
[15:35:20 CET] <furq> do you remember what you had to download to get quicktime to play it
[15:35:24 CET] <furq> maybe it's some kind of drm or something
[15:35:30 CET] <ElAngelo> it did it by itself
[15:35:35 CET] <ElAngelo> i'm thinking drm too
[15:35:50 CET] <ElAngelo> is there any way to figure this out?
[15:35:56 CET] <furq> if it is drm then you're out of luck with ffmpeg
[15:36:00 CET] <kepstin> ElAngelo: other than double-checking that you're running with a recent ffmpeg, you might need to open a bug (preferably providing a sample) to see if someone there can figure it out :/
[15:36:10 CET] <furq> it's 3.2, so that shouldn't be a problem
[15:36:28 CET] <ElAngelo> yeah i'm running whatever archlinux has in stable right now... should be fairly new
[15:36:43 CET] <ElAngelo> tried it on windows with a zeranoe build of yesterday too
[15:37:04 CET] <ElAngelo> obviously i can't provide the sample movie, it's from a customer
[15:40:45 CET] <maziar> hello all , i'm using ffmpeg to convert RTMP to M3U8, when my network gets packet lost ffmpeg will discontinued the converting, how can i set timeout for this issue, to let the network back ?
[17:00:08 CET] <pyBlob> Using current ffmpeg 3.2 on arch. When playing any file (s3m, mod, mp3, mp4, ...) using ffmpeg, it always cuts off the last seconds of the audio, even for video files. Is there a way, so that this audio gets played? I have this issue for quite some time now and it gets annoying ^^
[17:00:31 CET] <pyBlob> *using ffplay
[17:33:25 CET] <kepstin> pyBlob: you probably want to use a more complete video player, 'mpv' is probably a good choice.
[17:54:37 CET] <pyBlob> kepstin: this is one option, however do you have any idea, how to solve that issue with ffplay?
[17:56:25 CET] <cluelessperson> Can someone help me determine a pipeline to simply record the entire desktop at a low framerate, overlay a clock, and save to a video file?
[17:56:32 CET] <cluelessperson> encoded
[17:56:43 CET] <cluelessperson> I've no success and i'm very frustrated
[18:01:34 CET] <klaxa> cluelessperson: have a look at the drawtext filter
[18:01:48 CET] <klaxa> https://ffmpeg.org/ffmpeg-filters.html#drawtext-1
[18:01:48 CET] <cluelessperson> klaxa, the drawtext hasn't been the difficult part
[18:01:52 CET] <klaxa> oh
[18:01:58 CET] <cluelessperson> klaxa, but thank you. :)
[18:02:35 CET] <klaxa> well to me that appears the hardest part, the rest is just: ffmpeg -f x11grab -framerate 5 -s 1920x1080 -i :0.0 <overlay stuff> output.mp4
[18:03:25 CET] <cluelessperson> "https://www.amazon.com/s/ref=nb_sb_noss_2?url=search-alias%3Daps&field-keywords=decibel+meter"
[18:03:28 CET] <cluelessperson> wrong
[18:03:31 CET] <cluelessperson> "
[18:03:31 CET] <cluelessperson> 52
[18:03:31 CET] <cluelessperson> down vote
[18:03:31 CET] <cluelessperson> Debian Jessie and later no longer include the ffmpeg"
[18:03:43 CET] <cluelessperson> I'll stop. -_-;
[18:04:10 CET] <klaxa> afaik ffmpeg is back in debian 8
[18:04:13 CET] <klaxa> aka jessie
[18:04:34 CET] <klaxa> oh, it's in backports
[18:07:22 CET] <cluelessperson> klaxa, well I can install from backports
[18:07:27 CET] <cluelessperson> just package management is a bitch
[18:08:12 CET] <dl2s4> it is in the new debian, and i thought it was mentioned in this topic here
[18:10:15 CET] <klaxa> i thought so too, my source for it being in backports is: https://wiki.debian.org/ffmpeg
[18:10:30 CET] <dl2s4> but if you want a great ffmpeg you should compile it by yourself anyway
[18:11:38 CET] <cluelessperson> klaxa, when I run your pipeline I see drop counter is increasing
[18:11:49 CET] <cluelessperson> klaxa, the output.mp4 is empty
[18:11:55 CET] <klaxa> huh
[18:12:58 CET] <cluelessperson> http://paste.debian.net/892405/
[18:13:19 CET] <jkqxz> Add "-r 5" to go with "-framerate 5".
[18:13:46 CET] <klaxa> that doesn't include the output
[18:14:16 CET] <cluelessperson> huh, the original pipeline works on my ubuntu machine
[18:14:17 CET] <klaxa> also -r and -framerate do different things, i'm not sure what, but -framerate is generally preferred over -r
[18:14:33 CET] <klaxa> in most cases, and also in this one
[18:14:38 CET] <klaxa> i have been told numerous times
[18:14:40 CET] <jkqxz> Yes, but the timestamps are somehow broken if it's dropping all the frames. That's why I say add "-r" as well.
[18:14:55 CET] <klaxa> well i would like to see some console output first
[18:15:18 CET] <klaxa> usually when x11grab drops frames it's because the frames are not delivered fast enough
[18:15:25 CET] <jkqxz> (Somebody asked pretty much exactly this question yesterday; I'm still wondering why the timestamps coming out of x11grab are broken.)
[18:15:35 CET] <klaxa> oh? interesting
[18:16:49 CET] <cluelessperson> klaxa, sorry, it's difficult to retrieve from the desktop. paste.debian.net/892406
[18:17:13 CET] <cluelessperson> jkqxz, testing with -r
[18:17:19 CET] <cluelessperson> next
[18:18:42 CET] <cluelessperson> jkqxz, klaxa NICE, it works with -r
[18:19:16 CET] <klaxa> wtf
[18:19:40 CET] <klaxa> i'm gonna go read some code...
[18:20:37 CET] <cluelessperson> how can I make a timelimit on the length of the recording?
[18:20:53 CET] <klaxa> -t <seconds>
[18:21:10 CET] <klaxa> or -t HH:MM:SS.xxx
[18:21:37 CET] <cluelessperson> klaxa, thanks! :)
[18:21:47 CET] <cluelessperson> how about a file segment for every hour? ;)
[18:22:02 CET] <klaxa> there's an option for that
[18:22:07 CET] <klaxa> but i have never used it
[18:23:01 CET] <klaxa> https://www.ffmpeg.org/ffmpeg-formats.html#segment_002c-stream_005fsegment_002c-ssegment
[18:26:49 CET] <klaxa> what kind of spying system are you setting up? :^)
[18:27:21 CET] <dl2s4> lol
[18:31:55 CET] <levo_> i tried to convert an aa file to mp3, it does finish and it converts the file to mp3 but gives this error: Error while decoding stream #0:0: Invalid data found when processing input, the problem i have is with the duration that the player shows like the player (audacious) shows x minutes but after x minutes the file continues playing
[18:33:05 CET] <klaxa> you can remux the mp3 and see if that fixes it: ffmpeg -i input.mp3 -c copy output.mp3
[18:33:19 CET] <klaxa> this will not influence the audio quality
[18:44:27 CET] <oxguy3> Hey, I was wondering if someone could help me. I have a bunch of video where the audio track language is 'undefined' and I want to set it. I tried `ffmpeg -i "$f" -metadata:s:a:0 language=jpn -codec copy "out/$f"` to add the language tag, and it worked, but it also seems to have removed the subtitles that were present in the file. Any ideas what I'm doing wrong?
[18:45:31 CET] <klaxa> add: -map 0
[18:45:57 CET] <klaxa> that should copy all streams (including attachments, such as fonts)
[18:46:26 CET] <oxguy3> oh awesome thanks, trying that now...
[18:49:30 CET] <blue_misfit> hey guys, any thoughts on IMF support?
[18:49:35 CET] <oxguy3> yay, that fixed it! thanks klaxa! :)
[18:49:50 CET] <blue_misfit> looks like FFMPEG can read the J2K video MXF just fine, but the audio MXFs for some reason don't work
[18:50:12 CET] <blue_misfit> mxf @ 0000000000d369a0] OPAtom misinterpreted as OP1a? KLV for edit unit 0 extending into next edit unit is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[18:50:12 CET] <blue_misfit> [mxf @ 0000000000d369a0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel at ffmpeg.org)
[18:50:12 CET] <blue_misfit> Guessed Channel Layout for Input Stream #0.0 : stereo
[18:50:18 CET] <blue_misfit> oops, sorry for the spam there lol
[19:09:52 CET] <SouLShocK> hm is max_muxing_queue_size not supported in 3.1.4? http://pastebin.com/8N9Mghtd is what I get when I try to use it
[19:18:27 CET] <SouLShocK> I'm trying to get ffmpeg to queue up a large enough byte size (500kb) before writing anything to output
[19:18:27 CET] <SouLShocK> right now it's writing in 500 byte segments
[21:01:58 CET] <teratorn> does anyone know, off hand, if it's possible to re-mux from an RTSP stream to HLS without transcoding?
[21:02:36 CET] <teratorn> I get an interesting crash when I try it, http://hastebin.com/ejiwuhunif.txt
[21:02:51 CET] <teratorn> but if you remove "-c:v copy" from the command line it transcodes just fine
[21:14:52 CET] <kerio> teratorn: well, nginx-rtmp does remux rtmp into hls without transcoding
[00:00:00 CET] --- Sat Nov 5 2016
More information about the Ffmpeg-devel-irc
mailing list