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

burek burek021 at gmail.com
Sat Jan 6 03:05:01 EET 2018


[05:00:11 CET] <illegal> can ffprobe show the size of the streams for .mkv's?
[05:04:04 CET] <DHE> if the information isn't part of the metadata (and it doesn't always have to be) then the only way to know is to scan the whole file. which isn't something ffprobe does by default. and I don't think there's such a summary option available without calculating it yourself
[05:05:42 CET] <illegal> oh well, thanks homie
[05:58:22 CET] <TAFB> I'm trying to stream my 4k ip camera with ffmpeg but it's super unreliable :( After somewhere between 15 seconds and 1 hour it'll just "stop" and begin using 100% of one of my CPU cores (uses less than 2% normally). If I open another copy of ffmpeg the ip camera stream is working fine, and it can stream to youtube fine. Need serious help :( https://pastebin.com/SrA9Lasc
[06:43:48 CET] <Fyr> guys, players sometimes freeze for a few seconds on certains moments when playing the video file I muxed with FFMPEG. it looks like those places a new segments.
[06:44:16 CET] <Fyr> is it possible to avoid those lags using some options, like +genpts?
[07:01:10 CET] <kazuma_> are you cutting/merging on i-frames?
[07:04:51 CET] <Fyr> I'm copying video and audio without re-encoding.
[07:05:25 CET] <Fyr> freezing appears only when using certain audio channel.
[07:05:44 CET] <Fyr> when playing with other channels, it doesn't take place.
[07:06:04 CET] <Fyr> when muxing I get "Starting new cluster due to timestamp"
[07:06:19 CET] <Fyr> too often, than usual.
[08:02:08 CET] <ItWasntMe2013> does anyone have an idea how I could detect audio in a frame, similar to how video filter blackdetect works, but I want to detect say high volume or even a certain frequency?
[09:26:45 CET] <vincent-vlk> Hello dear Community, first of all, Happy new Year and thank you for this wonderful software package *ffmpeg*. Have a quick qustion: Is there any possibility do measure CC Errors (Continuity err.) of IP-Multicast/UDP/MPEG streams? Thank you very much!
[09:27:47 CET] <vincent-vlk> Forgot to write, I'm expecting to use *ffprobe*, or am i wrong? Thanks in advance.
[09:55:01 CET] <phw> I am trying to write chapters into mp3 files; That needs a TLEN frame in the file; ffmpeg does not seem to produce those. What can I do about it?
[12:08:24 CET] <bencc> I'm trying to convert mp3 to hls playlist with this command:
[12:08:27 CET] <bencc> ffmpeg -i in.mp3 -c:a aac -b:a 128k -hls_time 2 -hls_playlist_type vode -hls_flags single_file playlist.m3u8
[12:09:13 CET] <bencc> the duration is wrong in the playlist and I think also in the .ts file
[12:09:14 CET] <bencc> https://pastebin.com/PW39Fbs7
[12:09:28 CET] <bencc> do I need to add fake video stream?
[12:43:29 CET] <arcamargo> hello people. someone have some clue about why this 'non-monotonous dts' happen? https://pastebin.com/haW7ERLH
[13:33:09 CET] <thm> I have a trp file (basically a ts, iiuc), and my ffmpeg wrongly detects the videotext stream as mp3 with 0 channels. is there a way to manually overwrite that from the commandline?
[14:01:56 CET] <TAFB> I'm trying to stream my 4k ip camera with ffmpeg but it's super unreliable :( After somewhere between 15 seconds and 1 hour it'll just "stop" and begin using 100% of one of my CPU cores (uses less than 2% normally). If I open another copy of ffmpeg the ip camera stream is working fine, and it can stream to youtube fine. Need serious help :( https://pastebin.com/SrA9Lasc
[15:20:35 CET] <esc-reality> Can someone maybe help me with this question? :) https://superuser.com/questions/1282809/is-ffmpeg-able-to-read-multiple-values-in-an-id3v2-4-tag
[15:45:54 CET] <InTheWings> wth is pkt.dts/pts rewinding in middle stream of a solid mp4 with ffmpeg. that's nonsense
[15:47:05 CET] <InTheWings> dts=17117709 pts=17284709
[15:47:13 CET] <InTheWings> dts=4104701 pts=4271701
[15:47:18 CET] <InTheWings> H264 track...
[15:47:43 CET] <pos> I'm doing -vcodec copy of an rtsp stream (which I have no control over) and ffmpeg is printing:
[15:47:46 CET] <pos> [mp4 @ 0x22bcea0] pts has no value
[15:47:49 CET] <pos> [mp4 @ 0x22bcea0] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
[15:47:52 CET] <pos> [mp4 @ 0x22bcea0] Non-monotonous DTS in output stream 0:0; previous: 1, current: 0; changing to 2. This may result in incorrect timestamps in the output file.
[15:48:21 CET] <InTheWings> pos: because something is borked since rtsp only sends PTS
[15:48:23 CET] <pos> the resultant file is playable in mpv/mplayer but ffplay just displays the first frame and thinks the video is 40 minutes long
[15:48:54 CET] <pos> is there anything i can pass to ffmpeg to make it fix this on the fly? i've tried -fflags +genpts
[15:49:01 CET] <pos> also, -vsync drop
[15:49:30 CET] <titou> hey
[15:49:43 CET] <pos> InTheWings, please explain?
[15:49:49 CET] <kepstin> pos: does it work if you re-encode the video rather than copy? What about with a different container (mkv, nut?)
[15:49:57 CET] <pos> yes, re-encode works
[15:50:22 CET] <pos> but i'd rather avoid doing that, several multi-megapixel streams plus x264 is not lossless
[15:51:10 CET] <titou> I'm trying to stream video from three different V4L2 cameras.. The only solution I found is to launch three instances of ffserver and three instances of ffmpeg.. It works when I have 2 instances of ffmpeg+ffserver but when I add the third one, I lost the two first streams..
[15:53:29 CET] <pos> vlc2 borks when trying to read the resultant file, vlc3rc behaves much the same way as mpv/mplayer
[15:53:49 CET] <pos> no way/flag/option/whatever to make ffmpeg fix this on the fly?
[15:57:45 CET] <pos> pulling the same rtsp stream through vlc2 also works/displays ok, but it is clear that there are timestamp issues
[16:01:47 CET] <pos> i was disconnected right after <titou> I'm trying to stream vide....
[16:01:51 CET] <pos> anyone come up with anything?
[16:05:46 CET] <pos> i was reading through a lot of doc trying to solve this on my own, isn't it possible for ffmpeg to just generate its own timestamps based on when the stream was initiated instead of using the borked ones from the source?
[16:08:40 CET] <SortaCore> genpts flag I think
[16:09:25 CET] <pos> i tried -fflags +gentps
[16:10:00 CET] <SortaCore> tps?
[16:10:07 CET] <pos> pts ofc
[16:11:29 CET] <pos> and igndts, ignidx
[16:15:11 CET] <pos> ffplaying the source directly also works
[16:15:19 CET] <pos> no complaints
[16:19:28 CET] <pos> pts ofc
[16:19:30 CET] <pos> ffplaying the source directly also works
[16:19:32 CET] <pos> no complaints
[16:34:36 CET] <pos> playing the source directly in mpv: Invalid video timestamp: -0.000000 -> -0.000000
[16:49:23 CET] <thm> in mpegts, the streams have hex identifiers, like 0x136 in "Stream #0:1[0x136]: Video: mpeg2video (Main)" - can I use those somehow as arguments to the -map option?
[16:51:02 CET] <furq> thm: -map i:0x136
[16:51:08 CET] <furq> bear in mind that the pids might change though
[16:51:57 CET] <thm> problem is, that those trp files lack the pat (?), and streams appear in random order, and also streams are misidentified
[16:56:10 CET] <thm> (subtitles as mp3)
[17:31:41 CET] <ze0n> hi, someone know why i get this error ? https://pastebin.com/01fT7p6X if i already have installed the version 388.71 of the controller ?
[17:32:40 CET] <BtbN> have you rebooted?
[17:33:17 CET] <BtbN> The error is just printed as a generic hint, it does not mean you neccesarily have a too old driver. It just means it failed to load the named dll
[17:35:44 CET] <ze0n> mmm i am looking the that dll on my sistem but can't found
[17:37:35 CET] <BtbN> Is this some super old GPU or an Optimus Laptop?
[17:39:33 CET] <ze0n> gtx 550 ti
[17:40:09 CET] <BtbN> that plain does not have nvenc. So the driver won't install the dll
[17:40:20 CET] <ze0n> mm i found it on /system32
[17:41:11 CET] <BtbN> First gen to have nvenc is Kepler. 500 series is Fermi. No nvenc
[17:42:41 CET] <ze0n> oh  The gtx 550 ti won't support NVENC(it only on 600 series that use kepler\maxwell or newer
[17:42:54 CET] <ze0n> fuck my life then
[17:43:19 CET] <ze0n> thanks anyway BtbN
[18:03:05 CET] <pos> i'm getting [mp4 @ 0xa60880] pts has no valu
[18:03:12 CET] <pos> [mp4 @ 0xa60880] Non-monotonous DTS in output stream 0:0; previous: 0, current: 0; changing to 1. This may result in incorrect timestamps in the output file.
[18:03:21 CET] <pos> [mp4 @ 0xa60880] Non-monotonous DTS in output stream 0:0; previous: 1, current: 0; changing to 2. This may result in incorrect timestamps in the output file.
[18:03:53 CET] <pos> when doing ffmpeg -vcodec copy manually of an rtsp stream, the resultant file plays ok, however. thing is, the application usually doing this does not seem to adjust this on the fly. is there any way to specify it, setting it manually to 2?
[19:56:47 CET] <Mrbriareos> hi
[19:57:39 CET] <Mrbriareos> I want to download a video from a site I have to login to (I have an account there so I have my own username and password) is there a command I can use with ffmpeg to allow me to download video from this site?
[20:21:10 CET] <kepstin> Mrbriareos: not really in scope for ffmpeg directly. Look into the 'youtube-dl' project, it has plugins to download from a bunch of sites
[21:16:06 CET] <SortaCore> when I pass metadata to AVFormatContext, do I do it before avio_open2, before av_write_header, after streams are added, etc?
[21:17:15 CET] <SortaCore> A lot of the documentation states if a person should set the field during encoding/decoding, but if there's a function before or after it should be
[21:35:18 CET] <SortaCore> right now all my metadata seems to be getting eaten
[22:29:44 CET] <lomancer1> hello I am trying to initialize a hw_accel_context and am unable to. I detailed my question here https://stackoverflow.com/questions/48070827/initializing-hwaccel-context-in-libavcodec Does anyone know how to correctly initialize a hw_accel_context? Thanks for the help!
[23:23:37 CET] <aokfire> Hi, I'm trying to crop and resize a video from 1080 to 720, and remove some bars on the top/bottom of the video. Not sure what to do properly to get this result. thanks
[23:24:11 CET] <aokfire> -vf "scale=1280:720, crop=1280:718" and other similar attempts have not worked. Either outputs 720, or 1080
[23:30:01 CET] <relaxed> it would be more efficient to crop first
[23:31:41 CET] <relaxed> did you read https://ffmpeg.org/ffmpeg-filters.html#crop ?
[23:32:23 CET] <aokfire> so crop from 1080 source first, then resize to '720'?
[23:32:30 CET] <relaxed> yes
[23:33:01 CET] <aokfire> crop=1920:1078, scale=1280:718 ?
[23:33:18 CET] <aokfire> as an example, to remove 2px
[23:34:07 CET] <aokfire> and this would remove it from the top down yes?
[23:34:16 CET] <aokfire> since i only need it gone on the top
[23:36:32 CET] <relaxed> correct, add "-t 5" to get a small sample
[23:37:46 CET] <furq> aokfire: scale to 1280:-2 and it'll work out the correct height for you
[23:54:39 CET] <relaxed> aokfire: sorry, for the top two lines you need crop=1920:1078:0:0 . It defaults to /2
[23:54:51 CET] <aokfire> sorry, Was away for a second. I will try this in a second
[23:55:03 CET] <aokfire> what does -t 5 do, trim 5s?
[23:55:15 CET] <relaxed> stop after 5 seconds
[23:55:20 CET] <aokfire> ah
[00:00:00 CET] --- Sat Jan  6 2018


More information about the Ffmpeg-devel-irc mailing list