[Ffmpeg-devel-irc] ffmpeg.log.20170220
burek
burek021 at gmail.com
Tue Feb 21 03:05:01 EET 2017
[01:50:00 CET] <kam187> hi guys
[01:50:22 CET] <kam187> Right now i'm saving raw h264 and aac into a mp4 file using libavformat
[01:50:39 CET] <kam187> does anyone know how I can send it as a rtmp stream?
[01:51:17 CET] <kam187> I've tried setting the format to .flv and making the filename the rtmp url, and it seems to start but the far end (youtube) says the data is too slow and doesn't show anything
[02:08:36 CET] <pzich> !paste kam187
[02:09:18 CET] <kam187> i'm using libavformat not the ffmpeg binary
[02:10:38 CET] <pzich> Ah hmm, haven't used that directly before, sorry
[02:47:44 CET] <DHE> you'll have to send the data in realtime
[04:15:33 CET] <TheXzoron> can someone tell me what I did wrong exactly in my batch convert command? https://dpaste.de/7Q3k
[05:07:15 CET] <pzich> TheXzoron: you need to quote your "$(basename "${i/.flac}").mp3"
[05:08:18 CET] <relaxed> TheXzoron: use "${i%.*}".mp3
[05:11:02 CET] <relaxed> i="audio file.mp3"; echo "${i%.*}".flac
[05:17:20 CET] <TheXzoron> ok I got it now thank you
[05:28:08 CET] <Madd_the_Sane> Is there a way to not use clock_gettime?
[05:29:05 CET] <Madd_the_Sane> Im trying to resurrect Perian a little bit and the configure script found the function but the Macs Im targeting dont have it.
[07:57:22 CET] <Darrel12> Hi guys, Can anyone help me with rtp streaming from a an ubuntu 16.04 AWS EC2 server to my computer? I can't figure out how to do the streaming to an external server. I tried to set up a ssh connection with port forwarding also so I could just use localhost on both, but to no avail. Mind taking a look at the commands I'm using?
[09:00:50 CET] <waits_> Hello
[09:01:07 CET] <waits_> Does anyone know how to get video length information with ffmpeg/ffprobe in version 0.6.5?
[09:01:21 CET] <waits_> Can't seem to find the docs
[09:27:19 CET] <xeche> Hello guys, getting a build error in MSVC 2015 when using AVStream::codec;
[09:27:43 CET] <xeche> it's deprecated and says use "codecpar" instead, but the rest of the API doesn't seem to know what AVCodecParameters is
[09:31:54 CET] <Darrel12> My computer shut down earlier after I made my post, so if anyone replied, send me an IM please. Thanks
[09:55:16 CET] <xeche> "user is required to call avcodec_close() ..."
[09:55:50 CET] <xeche> avcodec_close lists "do not call this function"
[09:55:56 CET] <xeche> i think it's warranted to be a little confused here
[09:56:17 CET] <xeche> can somebody point me to an example of correct clean up of FFMPEG resources?
[09:59:19 CET] <xeche> nevermind. misread avformat_free_context and avcodec_free_context
[10:22:50 CET] <xeche> still looks like avformat_free_context has a leak somewhere
[10:46:00 CET] <xeche> yup. avformat_new_stream
[11:53:54 CET] <xeche> is it mandatory to do manual cleanup before calling av_frame_free(AVFrame**) ?
[11:54:13 CET] <xeche> I get a leak if not calling av_freep(AVFrame::data)
[11:54:15 CET] <xeche> 3.2.2
[11:54:16 CET] <xeche> windows
[11:54:40 CET] <xeche> calling av_freep(AVFrame::data) first seems to resolve the issue
[11:54:48 CET] <Mavrik> Did you look at the source of av_free_frame?
[11:54:56 CET] <Mavrik> Also afaik the frame data is reference counted
[11:55:03 CET] <Mavrik> And you might be messing up by allocating it yourself.
[11:55:13 CET] <xeche> i am calling av_image_alloc
[11:55:58 CET] <xeche> Mavrik: will FFMPEG handle the backing buffer allocation itself if I don't do manual allocation?
[11:56:18 CET] <Mavrik> If you call the right thing yes.
[11:56:42 CET] <Mavrik> (Don't remember what the right call for 3.x is, can you check examples?)
[11:57:34 CET] <xeche> http://ffmpeg.org/doxygen/trunk/decoding__encoding_8c-source.html suggests freep is indeed necessary
[11:58:15 CET] <xeche> I suppose "the right thing" depends on my use case. I'm encoding still images to 264
[11:59:19 CET] <xeche> bah. dated documentation
[11:59:23 CET] <xeche> uses avcodec_free_frame
[12:04:25 CET] <xeche> well, as long as it doesn't leak, i'm fine doing it manually, so i guess it's alright now
[12:34:20 CET] <LameName123> How can I build ffmpeg with msvc? It always gives me this error message: "libavutil/file_open.c(26): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory"
[12:38:34 CET] <llelbo> Bonour has you, I need help. I would like to send two sets of games on a linux server, with nginx and rtmp and FFmpeg. I would like to show my two streams in one out on youtube / twitch. I do not know how to do.
[12:44:01 CET] <LameName123> Never mind, I found a solution.
[12:44:37 CET] <llelbo> Bonour has you, I need help. I would like to send two sets of games on a linux server, with nginx and rtmp and FFmpeg. I would like to show my two streams in one out on youtube / twitch. I do not know how to do. 2 In for 1 out tank
[13:32:57 CET] <llelbo> I need help. I would like to send two sets of games on a linux server, with nginx and rtmp and FFmpeg. I would like to show my two streams in one out on youtube / twitch. I do not know how to do. 2 In for 1 out
[13:49:22 CET] <testtesttest> I try to screencast Warzone2100. I followed instructions from https://trac.ffmpeg.org/wiki/Capture/ALSA#Recordaudiofromanapplicationwhilealsoroutingtheaudiotoanoutputdevice
[13:50:15 CET] <testtesttest> `ffmpeg -video_size 1280x800 -framerate 40 -f x11grab -i $DISPLAY -f alsa -ac 2 -ar 44100 -i loopout -c:a flac -c:v libx264 -qp 0 -preset ultrafast game.mkv`
[13:50:27 CET] <testtesttest> Yet sound does not get recorded across applications.
[13:50:38 CET] <testtesttest> Mplayer works, Firefox and Warzone2100 do not.
[13:57:12 CET] <wodim> maybe those two don't use alsa but pulse?
[14:03:12 CET] <testtesttest> wodim: So, is there a tutorial for pulseaudio and ffmpeg you can recommend?
[17:06:41 CET] <nohop> Hey guys. libavcodec is telling me "No NVENC capable devices found" when i use hevc_nvenc, while nvenc_h264 works fine. I'm using a GPU based on the pascal arch (GTX 1060) and pixel format YUV420P
[17:12:04 CET] <JEEB> nohop: does the driver export HEVC?
[17:13:35 CET] <nohop> It's the latest driver from nvidia.com
[17:33:26 CET] <nohop> It's version 376.51 (windows).
[17:33:38 CET] <nohop> driver bug? ffmpeg bug? or am i missing something ?
[18:42:01 CET] <nohop> hah, figured it out :) I was using b-frames which, i gues, hevc doesn't support :)
[18:43:10 CET] <nohop> is there a way, in libavcodec, to 'detect' if a selected codec supports b-frames ?
[18:48:24 CET] <JEEB> nohop: hevc does, no idea about nvenx
[18:48:28 CET] <JEEB> *nvenc
[18:57:55 CET] <nohop> ok
[19:02:37 CET] <BtbN> nohop, increase the log level and it should tell you why exactly.
[19:02:52 CET] <BtbN> Most likely one of the capability checks failing.
[19:52:10 CET] <nohop> BtbN: Yeah. I guess I was setting max b-frames to 1 somewhere. I'm doing that only for the appropriate codecs now
[19:52:36 CET] <nohop> next issue is that, with my code, using nvenc_hevc, I'm creating a video that only has black frames in it :)
[19:53:19 CET] <nohop> when i'm using ffmpeg's muxing.c example, and I set the codec to nvenc_hevc, it creates a video file that even ffplay won't play (invalid buffer sizes etc)
[19:54:11 CET] <nohop> is there libavcodec example code somewhere that works with nvenc_hevc ?
[20:31:11 CET] <kam187> i'm going crazy trying to put inband SPS/PPS into the stream to change resolution
[20:31:30 CET] <kam187> with a AVCC/mp4 container putting the AVCC in the extradata works fine
[20:31:41 CET] <kam187> extracting SPS and PPS and putting it inline doesn't work though
[22:09:41 CET] <benzrf> hey! is there a way - maybe not using ffmpeg itself, but i'm not sure what other software might be relevant - to pass a video through a shader and save the output?
[22:21:11 CET] <nolaan> Hello I'm trying to use the FFMPEG API, can you tell me how to force key frames for h264 videos?
[22:25:37 CET] <jkqxz> nolaan: Set AVFrame.pict_type to AV_PICTURE_TYPE_I before giving it to the encoder.
[22:36:45 CET] <BtbN> that reminds me...
[23:03:14 CET] <darrel12> Is is just me, or does http://ffmpeg.pastebin.com/ redirect you to regular http://pastebin.com/ too?
[23:15:47 CET] <furq> i'm pretty sure pastebin got rid of that a while back
[23:57:03 CET] <llogan> where is that URL mentioned?
[00:00:00 CET] --- Tue Feb 21 2017
More information about the Ffmpeg-devel-irc
mailing list