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

burek burek021 at gmail.com
Fri Dec 16 03:05:01 EET 2016


[00:14:26 CET] <blue_misfit> hi friends, I'm having issues with consistency when reading input files from S3 over https
[00:14:34 CET] <blue_misfit> sometimes I end up with truncated outputs
[00:14:36 CET] <blue_misfit> any suggestions?
[07:11:04 CET] <ferdna> anyone has the book... http live streaming a practical guide?
[08:37:53 CET] <llamapixel> Looks like it is special for $12 at the moment ferdna http://hlsbook.net
[08:38:13 CET] <ferdna> llamapixel, dont they have free? =\
[08:39:03 CET] <llamapixel> There is a forum associated with it
[08:42:20 CET] <llamapixel> How much is a Big Mac where you live ferdna ?
[08:42:39 CET] <ferdna> 6 bucks
[08:43:08 CET] <llamapixel> Sounds like a bargain at the moment then.
[08:46:32 CET] <ferdna> :(
[08:48:02 CET] <llamapixel> Why sad? Just save up and buy it
[08:50:21 CET] <markvandenborre> ferdna: just read through the nginx rtmp module docs
[08:50:35 CET] <markvandenborre> it's rather simple really
[08:50:42 CET] <ferdna> llamapixel, i could get two big macs with that =|
[08:50:47 CET] <ferdna> markvandenborre, cool thanks
[09:37:37 CET] <ferdna> markvandenborre, i am reading on the docs... but everything seem that is built into ngnix module
[09:37:46 CET] <ferdna> i am not going to be able to get it working on apache
[09:41:06 CET] <markvandenborre> don't know about doing this on apache, sorry
[09:41:36 CET] <ferdna> markvandenborre, i just need the settings
[09:41:46 CET] <markvandenborre> "the settings"?
[09:42:02 CET] <ferdna> markvandenborre, yeah the ffmpeg parameters to achieve what i need
[09:42:07 CET] <ferdna> this is what i need:
[09:42:29 CET] <ferdna> record 60mins segments and live stream at the same time
[09:42:53 CET] <ferdna> i can do all of it...
[09:43:11 CET] <markvandenborre> so where is the problem then?
[09:43:21 CET] <ferdna> but... the live streaming doesnt play at the end of the m3u8... it starts at the begining of the playlist
[09:43:25 CET] <ferdna> instead of the end of it
[09:43:45 CET] <markvandenborre> and you want to do this using apache, right?
[09:43:48 CET] <ferdna> please let me know if i dont explain my self...
[09:43:54 CET] <ferdna> markvandenborre, it doesnt matter what webserver
[09:44:04 CET] <markvandenborre> then _read_ the nginx rtmp module docs
[09:44:06 CET] <ferdna> as longest i can get the functionality
[09:44:18 CET] <markvandenborre> it's possible to do it with that
[09:44:22 CET] <markvandenborre> we do something very similar
[09:44:33 CET] <ferdna> markvandenborre, it has to be independet webserver independent..
[09:44:34 CET] <ferdna> i mean
[09:45:01 CET] <ferdna> that ffmpeg parameters can be used with any webserver it doesnt even have anything to do with the webserver
[09:46:15 CET] <markvandenborre> ah, so you mean you don't want to use the functionality of the nginx rtmp module that gives you most of this?
[09:46:21 CET] <ferdna> yeah
[09:46:23 CET] <ferdna> i dont
[09:47:22 CET] <markvandenborre> well, I guess you'd have to look for ways to do hls in a different way then, yourself
[09:47:41 CET] <ferdna> markvandenborre, ive been looking... but i havent been able to do it... =(
[09:48:01 CET] <markvandenborre> the rest of the equation should be relatively trivial with ffmpeg -f tee
[09:48:01 CET] <ferdna> i dont know if getting that book will help me
[09:48:12 CET] <markvandenborre> so let me get this straight...
[09:48:25 CET] <markvandenborre> you don't want to use the solution that will work (almost) out of the box
[09:48:43 CET] <markvandenborre> you don't want to spend a tiny bit of money on a book
[09:48:54 CET] <markvandenborre> that might contain some hints
[09:49:18 CET] <ferdna> i will give you even 50 dllrs if you come with the solution
[09:49:20 CET] <markvandenborre> I thought you were having to work around a pointy haired boss
[09:49:31 CET] <ferdna> markvandenborre, is not for anyone
[09:49:32 CET] <ferdna> is for me
[09:49:33 CET] <markvandenborre> whose requirements were "apache and nothing else"
[09:49:39 CET] <ferdna> i only work for linux
[09:49:43 CET] <ferdna> with*
[09:49:50 CET] <ferdna> is my main OS
[09:50:00 CET] Action: markvandenborre too, has nothing to do with it, right?
[09:50:21 CET] <ferdna> too?
[09:50:24 CET] <markvandenborre> if it's for yourself, look it up and do report back here
[09:50:43 CET] Action: markvandenborre uses free and open source only since 1998
[09:50:48 CET] <ferdna> yeah me too
[09:51:15 CET] <markvandenborre> if this is for you to satisfy an intellectual interest, fine
[09:51:42 CET] <markvandenborre> but I can't save any energy for finding that out for you
[09:51:51 CET] <ferdna> markvandenborre, 1998... hmmm...
[09:52:02 CET] <markvandenborre> there is a perfectly working tool for what you want to do
[09:52:08 CET] <ferdna> which one?
[09:52:12 CET] <markvandenborre> you want to use something else
[09:52:14 CET] <markvandenborre> fine
[09:52:22 CET] <markvandenborre> go find out and report back here if you do
[09:52:32 CET] <markvandenborre> what else is there to say...
[09:52:58 CET] <ferdna> hmmm
[09:53:10 CET] <ferdna> i thought this was ffmpeg channel...
[09:54:42 CET] <markvandenborre> well, of course, it's perfectly valid for you to ask here
[09:54:52 CET] <ferdna> :)
[10:13:14 CET] <zpc> Hi! Is there a ffmpeg option that show pts of all frames, including video and audio?
[10:35:02 CET] <ferdna> zpc, -vf "drawtext=fontfile=/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf: text='\%T': fontcolor=white at 0.8: x=7: y=460"
[10:35:35 CET] <ferdna> zpc, https://einar.slaskete.net/2011/09/05/adding-time-stamp-overlay-to-video-stream-using-ffmpeg/
[10:45:35 CET] <Melatonina> Hello
[10:45:51 CET] <Melatonina> Can I encode a video with the "dash" format with ffmpeg?
[10:48:30 CET] <Melatonina> I'm cutting a piece of a video with ffmpeg. I can't use the "copy" encoder because that would cause a missing key frame at the beginning. I'd like to use the same encoding as the original file. I checked it with MediaInfo and it appears to be encoded as "dash"
[10:51:41 CET] <nonex86> ffmpeg -encoders
[10:51:49 CET] <nonex86> ffmpeg -encoder | grep dash
[10:51:58 CET] <nonex86> guess something like that can help ;)
[10:52:13 CET] <nonex86> *ffmpeg -encoders | grep dash
[10:53:10 CET] <Melatonina> there is nothing called dash there, unfortunately
[10:53:32 CET] <Melatonina> I'll pastebin the output of ffprobe. 1 sec
[10:54:09 CET] <JEEB> there's a dash muxer
[10:54:31 CET] <Melatonina> this is the output of ffprobe of my source file: http://pastebin.com/B6Dn6cPX
[10:54:38 CET] <JEEB> ffmpeg -formats |grep dash
[10:54:49 CET] <JEEB> E dash            DASH Muxer
[10:54:56 CET] <nonex86> well, thats just h264 stream...
[10:55:00 CET] <JEEB> the output extension for it is ".mpd"
[10:56:05 CET] <Melatonina> this is the output of ffprobe on my output video file: http://pastebin.com/Lt4tnCC9
[10:56:31 CET] <Melatonina> both are h264 but my player can handle the original file but not the second one
[10:56:56 CET] <Melatonina> well, the player I need to use. I can play both file with videolan
[10:57:08 CET] <nonex86> what player do you use?
[10:57:20 CET] <nonex86> or its a top secret? :)
[10:57:20 CET] <Melatonina> but I need the file to be compatible with exoplayer on Android
[10:57:35 CET] <Melatonina> ^ no secret :)
[10:58:37 CET] <nonex86> i assume that exoplayer support h264 streams
[10:58:38 CET] <nonex86> so
[10:58:46 CET] <nonex86> why dont you just try another container
[10:58:50 CET] <nonex86> for result file?
[10:59:04 CET] <nonex86> and check, is it able to demux and play it
[10:59:08 CET] <Melatonina> what container could I try?
[10:59:24 CET] <nonex86> what containers it support? :)
[10:59:59 CET] <nonex86> mkv perhaps? but not everyone "likes" it unfortunatly
[11:01:17 CET] <Melatonina> https://google.github.io/ExoPlayer/supported-formats.html
[11:01:29 CET] <Melatonina> FMP4, WebM, Matroska
[11:01:35 CET] <Melatonina> should be candidates, I guess
[11:02:09 CET] <Melatonina> I don't know what those name mean, sincerely
[11:02:25 CET] <Melatonina> I'll try WebM because I read it somewhere
[11:02:52 CET] <nonex86> matroska = mkv
[11:03:01 CET] <Melatonina> I don't understand why it can read the original mp4 but not the one that is produced by ffmpeg
[11:03:04 CET] <nonex86> so just give the output file a name something.mkv
[11:03:46 CET] <Melatonina> I'll try to use mkv
[11:03:49 CET] <nonex86> welcome to the wonderful world of video content :D
[11:03:55 CET] <Melatonina> eh :)
[11:03:58 CET] <nonex86> for exmple
[11:04:08 CET] <nonex86> i have a video file
[11:04:24 CET] <nonex86> if i seek it in different players
[11:04:31 CET] <nonex86> but for same time
[11:04:37 CET] <nonex86> i got different picture :D
[11:04:57 CET] <nonex86> mpc show correct frame, vlc and mpv are not :D
[11:05:06 CET] <nonex86> so, enjoy the ride :D
[11:05:20 CET] <Melatonina> thanks
[11:05:30 CET] <Melatonina> :)
[11:22:20 CET] <zpc> ferdna: Thanks a lot!
[11:22:41 CET] Last message repeated 1 time(s).
[11:22:41 CET] <ferdna> zpc, no problem :)
[11:22:50 CET] <Melatonina> nonex86: my mistake, I was using .mpg instead of .mp4 as extension for the ffmpeg output file.
[11:22:59 CET] <Melatonina> nonex86: wasted lot of time
[11:23:43 CET] <Melatonina> nonex86: but if I didn't review the source code of my server to use .mkv I wouldn't have noticed the mistake
[12:03:31 CET] <ferdna> good night
[12:24:18 CET] <yanzay> hey guys, I have a video streaming connfiguration: stream from phone to server (nginx-rtmp) -> live transcode (ffmpeg) -> stream to player (ffserver -> ffplay). Is there any way to trace and understand where latency is? How to figure out the bottleneck? Any ideas?
[12:34:24 CET] <BtbN> why ffserver?
[13:50:01 CET] <aib> Hi, I'm trying to get ffmpeg to split and concat an AAC stream. Now, I created two perfect AAC files without ANY gaps in them, but passing them on to -f concat still causes a final stream with a bit of a gap in it. What should I do?
[13:59:30 CET] <fling> Will the compression be bad if all the frames are I frames?
[14:06:40 CET] <durandal_1707> fling: depends
[14:07:40 CET] <fling> This is a low fps stream.
[14:10:28 CET] <Melatonina> it will probably be 3x the size of a "normal" stream
[14:31:31 CET] <nonex86> fling: for example in mjpeg stream all frames are idr, does it looks bad for you ? :)
[14:31:58 CET] <nonex86> Melatonina: 3x? guess we can think about 10x+ :)
[14:32:18 CET] <nonex86> Melatonina: depending of the scene
[14:33:58 CET] <Melatonina> I obtained that number experimenting.
[14:34:20 CET] <Melatonina> Don't know. The videos were of the same kind, admittedly
[14:35:13 CET] <nonex86> it all depends on scene and gop size i guess
[14:35:17 CET] <DHE> fling: the compression ratio will be bad, but the quality will be fine if you're using qp or crf mode
[14:36:23 CET] <nonex86> for example some camera allow to set up gop to auto and will generate recovery point frames in 1-2 minute
[14:50:18 CET] <fling> The idea is to make it seekable
[14:50:41 CET] <fling> The scene is mostly static, some text moving here and there
[14:50:56 CET] <fling> It is from a screen capture
[14:56:36 CET] <DHE> any idr frame is a seek point. all-idr frames merely make seeking precise
[15:46:40 CET] <Threads> with ffmpeg how can i get rid of the x264 encoding settings ?
[15:46:50 CET] <Threads> i remember trying with map and that didnt work
[15:47:01 CET] <__jack__> which one ?
[15:47:10 CET] <__jack__> map has nothing to do with libx264
[15:47:50 CET] <__jack__> if you want to pass specific libx264 opts to the lib, you may use -x264-params
[15:47:52 CET] <Threads> i mean when muxing
[15:50:23 CET] <c_14> x264 always writes those into the h264 bitstream, you can't get rid of them
[15:53:10 CET] <DHE> you mean how you can extract the encoding settings with "strings" or the like? you'd have to edit x264's source code and recompile the whole thing
[15:57:25 CET] <nonex86> encoding parameter is just sei nalu
[15:57:39 CET] <nonex86> why just not skip them?
[15:58:23 CET] <nonex86> dont stream this nalu, dont write it to file, whatever you do with the stream
[17:38:56 CET] <kepstin> I suppose you could make a bsf for ffmpeg that strips them, but that's still gonna require coding. probably easier to modify x264.
[17:40:13 CET] <furq> there are x264 patches out there which do it, although idk if they apply to new versions
[18:26:29 CET] <karklud> hello
[18:26:39 CET] <karklud> how do i get ffprobe to print ALL metadata ?
[18:27:45 CET] <karklud> other tag-readers (such as mediainfo) shows that there's some tags which ffmpeg doesn't show
[18:29:07 CET] <karklud> i've tried "ffprobe --help" but jesus christ that's the longest help text i've ever seen
[18:29:33 CET] <karklud> there's gotta be some option i can pass to ffprobe to get it to print all tags, or what?
[18:29:42 CET] <kurufu> have you tried `ffprobe -show_metadata`?
[18:29:53 CET] <kurufu> I think thats the flag.
[18:31:00 CET] <karklud> show_metadata: option not found
[18:31:15 CET] <kurufu> idk id suggest looking around here to see if its possible https://ffmpeg.org/ffprobe.html
[18:31:37 CET] <karklud> i've also tried "-show_entries format_tags" to no avail
[18:32:10 CET] <kurufu> see what -sections
[18:32:11 CET] <karklud> yeeah, i'm already there.. i was hoping someone could give me a hint though ;)
[18:32:13 CET] <kurufu> prints out
[18:33:18 CET] <kurufu> I also dont think ffmpeg supports all kind of exotic tagging that something like mediainfo may support.
[18:33:38 CET] <karklud> kurufu, okay, that was what i was afraid to hear
[18:33:41 CET] <karklud> hmm
[18:33:51 CET] <llogan> what are you trying to do?
[18:33:52 CET] <furq> -show_format -show_entries format=0
[18:33:58 CET] <karklud> i've found the tag i'm looking for in a hexeditor
[18:34:10 CET] <karklud> i can see that it's right next to some other tags, which ffprobe DOES print
[18:34:43 CET] <furq> although if it doesn't show up in -show_format then you're pretty much screwed
[18:34:50 CET] <karklud> i'm looking for the isrc codes of a bunch of .m4a files from itunes
[18:35:07 CET] <karklud> i know that the codes are stored in a tag called "xid:"
[18:36:06 CET] <karklud> furq, yeah, -show_format -show_entries format=0 didn't do it either :(
[18:36:22 CET] <kurufu> it mmight also help to know what kind of media and tags you are trying to dump.
[18:36:42 CET] <karklud> kurufu, i'm looking for the isrc codes of a bunch of .m4a files from itunes
[18:36:53 CET] <karklud> it could also be .mp3 or .aac
[18:37:10 CET] <karklud> err
[18:37:45 CET] <karklud> it's m4a but only with one stream:  Stream #0:0(eng): Audio: aac (LC) (mp4a / 0x6134706D)
[18:38:08 CET] <furq> try with mutagen
[18:38:12 CET] <karklud> (err again actually, there's also some video, but it doesn't matter)
[18:38:22 CET] <karklud> (the video is just the cover, it seems)
[18:39:16 CET] <karklud> furq, okay, i might try that
[18:39:27 CET] <karklud> i need to use js, but i can see that there is a js port, so it might work.....
[18:40:05 CET] <furq> well if ffprobe would have worked then presumably you can just make a mutagen script that dumps the tag you want to stdout
[18:40:12 CET] <furq> but yeah if there's a js library that does it then use that
[18:40:32 CET] <karklud> furq, yeah, you're right ofc
[18:40:49 CET] <karklud> furq, just trying to find the shortest path
[18:41:16 CET] <furq> i don't think anyone uses ffmpeg for metadata editing because it can't edit inplace, so this sort of thing lags behind dedicated apps/libs
[18:41:50 CET] <karklud> that makes sense
[18:42:28 CET] <karklud> thanks for the help!
[21:38:57 CET] <OrthATG> calling  av_interleaved_write_frame  what does the return code -32 indicate?
[21:41:17 CET] <DHE> errno == 32
[21:41:24 CET] <DHE> if you're on linux, that means broken pipe
[21:47:18 CET] <OrthATG> awesome! thx. is there a place that specifies those codes?
[22:21:50 CET] <c_14> pass the return code to av_strerror, or strerror after calling AVUNERROR <- OrthATG
[23:45:45 CET] <OrthATG> c_14: ty
[00:00:00 CET] --- Fri Dec 16 2016


More information about the Ffmpeg-devel-irc mailing list