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

burek burek021 at gmail.com
Mon Apr 24 03:05:02 EEST 2017


[02:25:16 CEST] <faLUCE> hello. If I want to publish a library which uses libav, 1) can I choose a GPL license?  2) Do I have to specify the license for EACH file of my library which uses libavstuff ?
[02:27:08 CEST] <furq> yes to 1
[02:27:14 CEST] <furq> probably yes to 2 although i'm not entirely sure what you mean
[02:28:09 CEST] <furq> if you mean putting the copyright notice etc in the file header then no
[02:29:02 CEST] <faLUCE> furq: I mean putting the copyright notice etc. in each .h or .c file of the library
[02:29:09 CEST] <furq> yeah you don't need to do that
[02:29:38 CEST] <iive> imho, it is good idea to do it.
[02:29:52 CEST] <faLUCE> iive: why ?
[02:29:59 CEST] <furq> a single LICENSE/COPYING file in the root is fine
[02:30:01 CEST] <furq> but it's up to you
[02:30:53 CEST] <iive> it's good idea to put copyright notice in each source file of your project, and a info about the license
[02:30:54 CEST] <faLUCE> now: my library uses both libav and libevent. Libevent is bsd license. Can I choose gpl for all the project?
[02:30:59 CEST] <furq> yes
[02:31:06 CEST] <furq> or lgpl
[02:31:55 CEST] <faLUCE> furq: in my case libav uses x264 too. Then I can't use lgpl
[02:32:25 CEST] <furq> i don't think that matters unless your lib explicitly requires x264
[02:32:31 CEST] <furq> and even then i'm not entirely sure if it matter
[02:32:31 CEST] <furq> s
[02:32:45 CEST] <faLUCE> furq: yes, it explicitly requires x264
[02:32:51 CEST] <furq> never mind then
[02:33:55 CEST] <faLUCE> but I don't understand one thing: can BSD be "absorbed" by gpl?
[02:34:09 CEST] <furq> sure
[02:34:16 CEST] <faLUCE> and what about vice-versa?
[02:34:32 CEST] <furq> no
[02:35:06 CEST] <faLUCE> I see
[02:36:46 CEST] <iive> i think there was some clash between gpl and bsd with advertise clause
[02:37:10 CEST] <furq> i don't think anyone uses the original bsd license any more
[02:37:23 CEST] <iive> libevent does have advertise clause
[02:37:52 CEST] <furq> well that's fun
[02:37:59 CEST] <furq> yeah bsd 4-clause is technically gpl incompatible
[02:38:12 CEST] <furq> i've never actually seen a project which uses it
[02:38:40 CEST] <furq> wait
[02:38:46 CEST] <furq> https://github.com/libevent/libevent/blob/master/LICENSE
[02:38:50 CEST] <furq> that doesn't have the advertising clause
[02:39:03 CEST] <furq> https://en.wikipedia.org/wiki/BSD_licenses#4-clause_license_.28original_.22BSD_License.22.29
[02:39:07 CEST] <furq> the advertising clause is #3
[02:41:13 CEST] <iive> https://www.gnu.org/licenses/license-list.html
[02:41:36 CEST] <iive> yeh, seems I might be wrong, or confusing clause #2 for #4
[02:41:44 CEST] <furq> yeah libevent is bsd 3-clause
[02:41:47 CEST] <furq> that's definitely gpl compatible
[02:42:54 CEST] <furq> https://en.wikipedia.org/wiki/ISC_license
[02:42:59 CEST] <furq> in case you were wondering, this is the best license
[02:43:56 CEST] <iive> nah, gpl is the best license :P
[02:44:13 CEST] <tdr> "best" depends on the need its being used for
[02:45:03 CEST] <furq> no, it depends on which one i like the most
[03:01:27 CEST] <Soni> is it a good idea to run ffmpeg as sudo?
[03:01:33 CEST] <c_14> probably not
[03:09:02 CEST] <petecouture> @Soni The only time I've had to run it as root is when using it in an embedded device and you needed root to access the devices camera
[03:09:16 CEST] <c_14> It would have probably been bettor to just chmod/chown the device node
[03:09:18 CEST] <c_14> just saying
[03:09:57 CEST] <petecouture> Sorry?
[03:10:34 CEST] <petecouture> c_14 were you referring to my statement?
[03:11:08 CEST] <c_14> yep
[03:11:20 CEST] <c_14> "everything is a file"
[03:11:32 CEST] <c_14> so just change the permissions on the file so a non-root user can read from it
[03:11:52 CEST] <petecouture> It was apart of the firmware requirement that only root could interface with hardware I/O on the board I was using
[03:12:06 CEST] <c_14> oh
[03:12:08 CEST] <c_14> ok
[03:12:19 CEST] <c_14> how does the firmware know you're root?
[03:12:44 CEST] <petecouture> Beyond my pay grade
[03:13:14 CEST] <petecouture> I just know you could call the camera application and the I/O command but it would throw an error if it wasn't root
[03:14:36 CEST] <c_14> might have been a restricted kernel ioctl I guess
[05:46:21 CEST] <damdai> can you people tell the difference between crf 20 and crf 23
[07:41:14 CEST] <Raku> I'm trying to encode a video, having some troubles with some errors that google isn't really being any help with, the command I'm using is https://ptpb.pw/FnUa and the output is https://ptpb.pw/7pkg
[11:58:28 CEST] <hanetzer> jello. working with shinobi (a cctv management software) which makes use of ffmpeg. I was wondering about the proper ordering of options to 1. consume a rtsp stream (h264); encode it with hvec_vaapi. This is what I currently got going on:
[11:58:32 CEST] <hanetzer> ffmpeg -loglevel warning -analyzeduration 1000 -rtsp_transport tcp -vaapi_device /dev/dri/renderD128 -hwaccel vaapi -hwaccel_output_format vaapi -i rtsp://admin:Lester0321@192.168.0.102:554/ch01/0 -an -vf 'format=nv12|vaapi,hwupload' -threads 1 -vcodec hevc_vaapi -r 15 -s 1920x1080 -f segment -segment_atclocktime 1 -reset_timestamps 1 -strftime 1 -segment_list pipe:2 -segment_time 900
[11:58:35 CEST] <hanetzer> /home/marty/Shinobi/videos/2Df5hBE/2h4kKrdQw7/%Y-%m-%dT%H-%M-%S.mkv -preset ultrafast -crf 15 -an -c:v hevc_vaapi -r 15 -f hls -s 1920x1080 -x265-params keyint=1:ref=1:no-open-gop=1:weightp=0:weightb=0:cutree=0:rc-lookahead=0:bframes=0:scenecut=0:b-adapt=0:repeat-headers=1 -tune zerolatency -g 1 -hls_time 2 -hls_list_size 3 -start_number 0 -hls_allow_cache 0 -hls_flags +delete_segments+omit_endlist
[11:58:37 CEST] <hanetzer> /dev/shm/streams/2Df5hBE/2h4kKrdQw7/s.m3u8
[12:00:54 CEST] <JEEB> hanetzer: x265_params do not work outside of libx265
[12:01:19 CEST] <JEEB> not to mention that I'm not sure if that tuning is in hevc_vaapi either
[12:01:36 CEST] <JEEB> *x265-params , but same thing :P
[12:01:55 CEST] <hanetzer> JEEB: ah, I came across that in googling for an error about lack of a profile
[12:02:24 CEST] <JEEB> it clearly has the name of an encoder in the option :P
[12:02:40 CEST] <JEEB> it would be weird as hell if any other encoder would be able to process an option clearly specific to some encoder
[12:04:11 CEST] <hanetzer> ah, gotcher.
[12:05:31 CEST] <hanetzer> how would one go about resolving this error, then: Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
[12:05:45 CEST] <hanetzer> Encoding profile not found (17).
[12:05:46 CEST] <JEEB> the actual error is usually further up in the log
[12:09:13 CEST] <JEEB> so that encoding profile not found thing is found in the generic vaapi encoding code
[12:09:19 CEST] <jkqxz> You haven't supplied a specific profile and it defaults to main, so I would guess that that device doesn't support it.  What hardware are you using?
[12:09:51 CEST] <JEEB> yea, since it queries the profiles available from the HW, then loops over trying to find them
[12:10:01 CEST] <JEEB> *find the one you've picked
[12:10:14 CEST] <hanetzer> jkqxz: its a fairly recent laptop. how would you like the hardware described?
[12:10:16 CEST] <JEEB> and since HEVC has nothing less than main effectively :P
[12:10:28 CEST] <JEEB> that means that your hw or driver just cannot encode HEVC
[12:10:41 CEST] <hanetzer> model name : Intel(R) Core(TM) i3-3110M CPU @ 2.40GHz << proc/cpuinfo
[12:10:56 CEST] <JEEB> not even close to being able to do HEVC in HW
[12:11:10 CEST] <JEEB> that's ivy bridge or so?
[12:11:31 CEST] <jkqxz> Yeah, that's like three generations too old.
[12:11:33 CEST] <hanetzer> yeah, vainfo says so.
[12:11:38 CEST] <hanetzer> gotcher.
[12:12:46 CEST] <jkqxz> You need Skylake or newer.  You will have H.264 only for encode on that hardware.
[12:14:40 CEST] <JEEB> and pre-haswell the AVC one wasn't really great, either
[12:15:16 CEST] <hanetzer> gotcha. I'm not really trying hard with this laptop, its mostly being used as a demo for the sake of coercing better hardware :)
[12:18:07 CEST] <JEEB> also I'd say using ffmpeg.c is a Bad Idea for anything specific :) it can work awfully well until some point, but then you enter the point where the random hacks and "features" of it require you either to badly hack on it, or just work on your own API client
[12:25:32 CEST] <hanetzer> JEEB: maybe so, but what the vendor provides is horrid anyways :P
[12:33:47 CEST] <baphomet`> What is the command to determine where in the mp4 i will start to convert the video?
[12:39:24 CEST] <dystopia_> -ss start_time_in_seconds
[12:40:20 CEST] <baphomet`> ok
[12:41:24 CEST] <RavingRabbits> hi
[12:41:44 CEST] <dystopia_> hi
[12:43:31 CEST] <RavingRabbits> I have a video clip that I made years ago I want to re-render into mp4... it's as an avi & wmv3 I think? however there's something wrong with it... most video tools I've tried say it's invalid & it actually crashes a couple
[12:44:13 CEST] <RavingRabbits> the only tool that's  converted at all has been xmedia recode which is a windows front end to ffmpeg & x264
[12:45:22 CEST] <RavingRabbits> however when it converts it it clips the 1st 4 or 5 frames somehow & then show up as a  green screen for about 1 second... I don't really want to clip it off.. was wondering if anyone would have an idea what setting in ffmpeg could be doing that
[12:45:41 CEST] <dystopia_> use ffmpeg directly
[12:46:38 CEST] <RavingRabbits> yeah but I don't know what settings which is why I'm asking
[12:46:44 CEST] <dystopia_> ffmpeg -i yourclip.avi -c:v libx264 -preset slow -profile:v high -acodec copy out.mp4
[12:49:25 CEST] <RavingRabbits> the basic x364 profile would just be -profile:v basic ?
[12:49:30 CEST] <RavingRabbits> errr... x264
[12:49:52 CEST] <dystopia_> main and high are the options
[12:49:54 CEST] <dystopia_> use high
[12:50:02 CEST] <RavingRabbits> doesn't need high :-)
[12:50:06 CEST] <RavingRabbits> it's like 10 years old
[12:50:13 CEST] <RavingRabbits> barely vhs quality
[12:50:36 CEST] <RavingRabbits> only want a new format for media players cause not many support the codec I used
[12:51:33 CEST] <RavingRabbits> hmm... yep no green flash
[12:51:50 CEST] <RavingRabbits> so why would just running it through the front end make a difference?
[12:52:32 CEST] <RavingRabbits> I also see  Video uses a non-standard and wasteful way to store B-frames ('packed B-frames'). Consider using the mpeg4_unpack_bframes bitstream filter without encoding but stream copy to fix it. in the log
[12:52:46 CEST] <RavingRabbits> which is beyond my understanding
[12:56:39 CEST] <hanetzer> question: how many concurrent vaapi/hwaccel'd ffmpeg process can be ran at once?
[13:26:24 CEST] <RavingRabbits> well thanks
[14:16:07 CEST] <baphomet`> What am I doing wrong if i get this error message "Error opening file ffmpeg2pass-0.log." and "Error reading log file 'ffmpeg2pass-0.log' for pass-2 encoding"?
[14:21:42 CEST] <c_14> does that file exist in your cwd?
[14:23:19 CEST] <tdr> wrong path to them or you dont have permissions on them
[14:36:01 CEST] <MrZeus> Does anyone know why in most x265 videos I watch, there is a green line at the bottom of the screen? Incorrect border block processing or something?
[14:40:28 CEST] <MrZeus> Aha. It *does* disappear when I change output to OpenGL: https://forum.videolan.org/viewtopic.php?t=130655
[14:46:07 CEST] <tdr> MrZeus, on linux?
[14:46:59 CEST] <MrZeus> tdr, nope, Win10, latest VLC 2.2.4
[14:48:47 CEST] <tdr> k, cant speak for what works well on windows, i've built vlc for it, but i rarely use it
[15:00:58 CEST] <bencc> what needed for mp4 to be able to use in hls with byterange?
[15:01:12 CEST] <bencc> using one big file without creating multiple chunk files
[15:41:44 CEST] <c3r1c3-Win> bencc: You have to have a server that can read and parse and handle byte-request ranges and rechunk on the fly while generating the manifest file.
[15:50:27 CEST] <bencc> c3r1c3-Win: I need to have m3u8 with all the ranges ready?
[15:51:06 CEST] <c3r1c3-Win> that or create one on the fly.
[15:51:09 CEST] <bencc> ok. each chunk might have different number of bytes
[15:51:38 CEST] <bencc> how can I create the playlist? not on the fly
[15:51:55 CEST] <c3r1c3-Win> I guess by hand.
[15:52:09 CEST] <bencc> I'm using nginx that can handle range requests
[15:52:18 CEST] <c3r1c3-Win> I mean there are most likely tools out there that do such.
[15:52:18 CEST] <bencc> what about this:
[15:52:31 CEST] <bencc> I can use ffmpeg to create multiple chunks
[15:52:57 CEST] <bencc> I'll loop the files, generate playlist
[15:53:06 CEST] <bencc> and at the end concatenate the files
[15:53:09 CEST] <bencc> will this work?
[15:53:11 CEST] <c3r1c3-Win> I'll be brutally honest: The only reason I know of such is because I use Akamai as my CDN, and that's what they do. I know some of the details, but not all.
[15:53:42 CEST] <c3r1c3-Win> As to how they do it, or what software they use, I can't say fully.
[15:54:06 CEST] <bencc> https://github.com/kaltura/nginx-vod-module can do it on the fly
[15:54:31 CEST] <bencc> ffmpeg probably can do it
[15:55:46 CEST] <bencc> ffmpeg -i sample.mp3 -hls_time 20 -hls_flags single_file out.m3u8
[15:55:47 CEST] <bencc> ok
[15:55:55 CEST] <bencc> c3r1c3-Win:  ^^
[15:55:58 CEST] <bencc> http://stackoverflow.com/questions/23497782/how-to-create-byte-range-m3u8-playlist-for-hls
[16:07:20 CEST] <c3r1c3-Win> bencc: That was a good couple of redas. Thanks for sharing!
[16:07:25 CEST] <c3r1c3-Win> *redas=reads
[16:11:23 CEST] <bencc> thank you :)
[16:39:42 CEST] <gordon__> Anyone know any audio sample files that contain embedded cover art? Not finding any on samples.ffmpeg.org and I want to write a test verifying the image file is extracted properly
[16:42:29 CEST] <gordon__> nm found some
[16:59:24 CEST] <LongChair> is it just me or the recent changes in ffmpeg broke the hwdec APIs ? like there is no more send_packet ?
[17:01:23 CEST] <JEEB> pretty sure hwdecs still work
[17:01:44 CEST] <JEEB> so it might have been an API change, which should be documented in the related docs under docs/
[17:01:58 CEST] Action: JEEB hasn't keep an eye on hwdec stuff
[17:07:18 CEST] <bencc> what is the correct command to generate hls from a video file?
[17:07:22 CEST] <bencc> for example this file http://vjs.zencdn.net/v/oceans.webm
[17:07:51 CEST] <bencc> I know about -segment_time and -segment_list options
[17:08:13 CEST] <bencc> do I also need to specify keyframe interval using -force_key_frames expr:gte(t,n_forced*60) or -g ?
[17:08:47 CEST] <bencc> or maybe this is enough?
[17:08:54 CEST] <bencc> ffmpeg -i oceans.webm -hls_time 20 -hls_flags single_file out.m3u8
[17:10:18 CEST] <c3r1c3-Win> Can Webm files be used for HLS? I though you had to use h264/MP4/MP3/AAC files/codecs?
[17:10:30 CEST] <JEEB> he's transcoding anyways
[17:12:14 CEST] <bencc> I think I have to transcode to put keyframes
[17:14:13 CEST] <c3r1c3-Win> YEs, that much I do know.
[17:14:56 CEST] <bencc> another option I found: -keyint_min 30 -x264opts "keyint=30:min-keyint=30:no-scenecut" -g 30
[17:15:00 CEST] <bencc> not clear what to use
[17:15:13 CEST] <thebombzen> c3r1c3-Win: afaik HLS is only h.264/aac/mpegts
[17:15:50 CEST] <furq> it technically supports mp4 now but not practically
[17:16:07 CEST] <bencc> forq: why not practically?
[17:16:13 CEST] <furq> nothing supports it yet
[17:16:43 CEST] <furq> maybe new iOS does but i expect you're not just targeting that
[17:17:12 CEST] <bencc> I don't mind supporting latest iOS release and hls.js
[17:17:35 CEST] <furq> oh apparently hls.js does support fmp4 now
[17:17:42 CEST] <furq> no idea about old iOS or android though
[17:17:56 CEST] <bencc> how do I generate fmp4 with a playlist?
[17:18:05 CEST] <furq> it's better to just stick with mpegts unless you have some compelling reason not to, like using the same fragments for mpeg-dash
[17:18:36 CEST] <furq> also yeah i have no idea if the ffmpeg hls muxer will let you do that
[17:19:13 CEST] <bencc> ok, I'll use mpegts
[17:19:27 CEST] <bencc> do you know what command I should use for best compatibility?
[17:19:46 CEST] <bencc> is this enough or do I need more parameters?
[17:19:46 CEST] <bencc> ffmpeg -i oceans.webm -hls_time 20 -hls_flags single_file out.m3u8
[17:38:32 CEST] <LongChair> JEEB: yeah looks like send_packet is gone now
[17:38:55 CEST] <LongChair> you need to call ff_decode_get_packet from receive_frame
[17:39:07 CEST] <LongChair> the new API is not so new anymore :)
[20:32:36 CEST] <llwu> Anyone know why the following command would generate PNGs 5 times as large (but look the same and same res) on OSX(brew) than Ubuntu? ffmpeg -ss $var -i "$infile" -vf ass=subs2.ass -vframes 1 "$outfile $var.png"? does OSX libpng just not compress?
[20:41:41 CEST] <furq> ffmpeg doesn't use libpng
[20:44:04 CEST] <furq> the png encoder depends on zlib so maybe that's to blame
[20:44:07 CEST] <furq> although i'm not sure how
[20:45:17 CEST] <johnjay> hi I'm trying to stream my desktop to my phone with ffmpeg under windows.
[20:45:44 CEST] <johnjay> Right now I'm trying ffmpeg -i file.mp4 -vcodec libx264 -f flv udp://192.168.1.15:1234 (the addr of my phone). Any ideas what I'm doing wrong?
[20:53:20 CEST] <nyuszika7h> I was recording a HLS live stream with youtube-dl, remuxing to mp4, but ffmpeg just froze after the stream ended and pressing 'q' or Ctrl-C once didn't help, so now I have an mp4 file with no moov atom, is there any way to make it playable?
[21:48:09 CEST] <johnjay> hey nyuszika7h you're using youtube-dl correct?
[21:48:19 CEST] <johnjay> is there a way to stream a youtube vid to ffmpeg and from there to my phone?
[21:48:26 CEST] <johnjay> that's what i've been trying to figure out all day
[22:36:57 CEST] <Threads> what better when extracting something using 0:3 or 0:3[0x14d]
[23:30:38 CEST] <thebombzen> johnjay: how are you going to stream it on your phone?
[23:30:45 CEST] <thebombzen> why not just go to youtube and view the video
[23:31:06 CEST] <thebombzen> if you're trying to "stream your desktop to your phone" why don't you just use a vnc client
[23:32:24 CEST] <thebombzen> what kind of latency are you looking for?
[23:42:44 CEST] <johnjay> hey thebombzen
[23:42:59 CEST] <johnjay> idc about latency at the moment, just trying to get something that works
[23:43:25 CEST] <johnjay> ultimately i want to do gaming over my LAN if that's possible
[23:43:51 CEST] <johnjay> To answer your question I need to screenshare to a "DLNA" device in an adjacent room
[23:44:05 CEST] <johnjay> VLC on phone just added the capability to receive DLNA broadcasts
[23:44:23 CEST] <johnjay> so i'm trying baby steps here
[23:44:51 CEST] <johnjay> I think I tried vnc before, it's rdp I believe
[23:57:17 CEST] <johnjay> anyway gtg. if  you know a way to stream youtube-dl's output to ffmpeg to vlc let me know
[23:57:32 CEST] <johnjay> i'm on windows but have a linux laptop if tha'
[23:57:37 CEST] <johnjay> ts necessary
[00:00:00 CEST] --- Mon Apr 24 2017


More information about the Ffmpeg-devel-irc mailing list