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

burek burek021 at gmail.com
Sun Aug 7 03:05:01 EEST 2016


[01:14:12 CEST] <kode54> how do I instruct configure to disable all video codecs?
[01:15:19 CEST] <drv> I don't think there is a way to specifically filter by codec type
[01:15:35 CEST] <drv> (assuming you are asking about how to disable all video but not audio)
[01:16:13 CEST] <kode54> I have --disable-decoders and explicitly enable a handful of codecs, but it still enables h264 decoding
[01:18:54 CEST] <drv> I tried --disable-everything --enable-decoder=aac and I only get aac, no h264
[01:19:00 CEST] <drv> maybe one of the other codecs you enable selects h264?
[01:22:43 CEST] <drv> if you are not disabling parsers, you probably get the h264 parser selecting h264 decoder automatically
[01:35:24 CEST] <kode54> drv, does mov or mp4 container imply video codecs?
[01:35:54 CEST] <kode54> I can't disable mpeg4video or h263 parsers, or h263/h264/mpeg1video/mpeg2video/mpeg4 decoders
[01:37:14 CEST] <drv> you'll have to brave the maze of configure to find out for sure :)
[01:39:11 CEST] <mrjoker> what is the difference between choosing "main" as profile  and "none" as profile  on x265
[02:21:39 CEST] <jpleau> with libavformat, I have an AVStream *, nb_frames is set to 0... this is a .mkv file, video stream is h264, audio (x2) are ac3. Do I need to do something special to be able to access the actual number of frames?
[02:45:47 CEST] <jpleau> I used the duration from AVFormatContext and multiplied by the average framerate, seems to give a good enough number for what I want to do
[03:01:45 CEST] <kepstin> jpleau: with most formats, you actually have to demux the file and actually count the number of frames you get :/
[04:17:17 CEST] <jpleau> kepstin: hm ok. I'll see if I can do that easily, maybe I can get around just looping with av_read_frame and incrementing (I'm still new to those libraries, going through examples and doxygen)
[04:53:04 CEST] <jpleau> yay that seems to work, just needed to check packet.stream_index for the video stream \o/
[09:04:00 CEST] <Justice> Hi guys. I'm trying to ONLY remux audio back into a video stream. I am currently using the following command: ffmpeg -i audio.mp3 -i video.mp4 -c copy final_video.mp4    Is this correct or is there a better way to do it?
[09:10:10 CEST] <Justice> Also, as a secondary question to that: the video file is in .MOV format and the audio file is .WAV (16-bit signed PCM). Does that command (or any better suggestion) mux everything together losslessly?
[10:47:13 CEST] <hollabackatcha> so, ffmpeg cannot loop over playlists ? like ffmpeg -re -f concat -i cont.txt -c copy -f flv rtmp://localhost:1935/live/test but not exiting after it reaches end of playlist
[12:54:18 CEST] <Spring> is there a dummy's guide to filter mapping?
[12:54:57 CEST] <Spring> I have two filters set up currently and want to add a third but I'm not sure precisely how I should do it
[12:55:11 CEST] <Spring> keep getting errors about it
[13:03:51 CEST] <Spring> okay, seemingly making progress
[13:04:15 CEST] <xochilpili> hi all
[13:05:43 CEST] <xochilpili> i dont know where to ask this : i have a multiple videos, and i want to shared them using html5 in a webpage, in my library are many different extensions like: mp4, avi, mkv and so on, i have found and install adobe media server, but i dont understand if this will let me to do what i meant to
[13:06:45 CEST] <xochilpili> so, is there a way to "transcode" "in the air" in order to users watch videos depending on device? using html5 tags or something
[13:06:56 CEST] <xochilpili> im really lost in this task
[14:19:45 CEST] <DHE> Spring: can you show a specific example?
[14:20:29 CEST] <Spring> DHE, I think my original mistake was using colons/semicolons when it needed to be a comma
[14:20:49 CEST] <DHE> xochilpili: on-the-fly transcoding is possible, but tends to not scale too well if you expect traffic. mp4 will likely be best supported, at which point it's just a question of what codec
[14:20:57 CEST] <Spring> currently just working on converting integers to decimal for a batch script
[14:21:01 CEST] <DHE> Spring: sounds right. semicolons for complex filtergraphs, commas most of the time otherwise
[14:22:01 CEST] <Spring> do you know if the atempo filter accepts numbers like 1.250 and .750, or does it have to be strictly like the examples here: https://ffmpeg.org/ffmpeg-filters.html#atempo
[14:22:53 CEST] <xochilpili> DHE, i dont get it,  this is too weird , i have installed adobe media server and he expects a f4v file , where am i supposed to get it if i have almost a 500 gb of movies, tvshows and many homemade videos in different formats and codecs
[14:22:59 CEST] <DHE> is says 0.5 to 2.0, so anything in between goes
[14:23:02 CEST] <furq> Spring: it should work fine
[14:23:06 CEST] <xochilpili> how does plex doit ?
[14:24:11 CEST] <furq> plex transcodes everything
[14:24:39 CEST] <DHE> times like this I love my e5-2690+ CPUs
[14:25:00 CEST] <furq> flash media server is probably a bad choice for this
[14:25:20 CEST] <furq> you'd need to remux/transcode everything to flv yourself afaik
[14:26:55 CEST] <furq> and at that point you might as well just use http
[14:27:19 CEST] <DHE> especially if you said HTML5 based video
[14:27:25 CEST] <DHE> (which he did)
[14:27:41 CEST] <furq> oh
[14:27:47 CEST] <furq> does fms do that nowadays
[14:28:09 CEST] <furq> apparently it does hls now
[14:29:06 CEST] <DHE> unfortunately HLS is only natively supported by apple and apparently some mobile platforms. unless you get that javascript filter
[14:30:01 CEST] <furq> xochilpili: https://helpx.adobe.com/adobe-media-server/dev/configure-dynamic-streaming-live-streaming.html#workflow_for_streaming_on_demand_media_over_http
[14:30:07 CEST] <furq> step 1: "encode media files"
[14:30:19 CEST] <furq> so yeah this probably isn't what you want
[14:31:01 CEST] <xochilpili> is it possible to transcode on the fly with apache?
[14:31:24 CEST] <DHE> it can be done, but transcoding is hard on the CPU. how many users do you expect to see at a time?
[14:31:25 CEST] <Spring> btw why is the atempo limited to that range?
[14:31:40 CEST] <xochilpili> how does plex doit? icant believe that i have spent all night searching and reading and im not able to find a solution to this
[14:31:47 CEST] <furq> why not just use plex
[14:31:59 CEST] <xochilpili> DHE, not too much people
[14:32:11 CEST] <Spring> introduces problems if you need to change the speed outside of that range, since it requires duplicating filters and working out the difference
[14:32:19 CEST] <DHE> xochilpili: plex is targeted at small numbers of users. maybe 1 or 2 at a time
[14:32:43 CEST] <xochilpili> furq, i cant use authentication on plex, and the library is a mess
[14:33:04 CEST] <xochilpili> i cant search by genre or "organize library as i want"
[14:33:52 CEST] <furq> it's open source isn't it
[14:34:39 CEST] <xochilpili> is not
[14:37:49 CEST] <xochilpili> i cant believe this
[15:01:11 CEST] <kritzikratzi> hi! does the resampler have an option for nearest neighbor scaling? i tried setting linear_interp=1 before initializing the context, but that didnt change anything.
[15:02:12 CEST] <kritzikratzi> basically i want the silliest possible resampler where a rectangle signal remains rectangular when i up/downsample (preferrably it wouldnt even change into a trapezoid, it would still be a harsh rectangle)
[15:02:51 CEST] <kritzikratzi> ps. im working talking about the swresample library, not options for ffmpeg.exe
[15:13:14 CEST] <furq> Kei_N: -sws_flags neighbor
[15:13:19 CEST] <furq> oh nvm
[15:14:37 CEST] <furq> also i thought irssi's nick completion was smarter than that
[15:18:26 CEST] <furq> kritzikratzi: https://www.ffmpeg.org/doxygen/3.1/structSwsContext.html#a4bad42bdd38e916f045956efe81039bf
[15:18:37 CEST] <furq> SWS_POINT should be the same as -sws_flags neighbor
[15:20:55 CEST] <kritzikratzi> furq: i meant swresample, not swscale
[15:21:36 CEST] <kritzikratzi> in the meantime i just messed with all the params, setting filter_size to low value seems to do what i want av_opt_set_int(swr_context192, "filter_size", 2, 0);
[16:16:16 CEST] <intracube> hi, is there a video filter that can combine X number of input frames?
[16:17:58 CEST] <intracube> I'm trying to do a timelapse/speedup effect and looking for something better than dropping frames, since that will give a stuttery result
[16:33:27 CEST] <Spring> so I've run into a problem
[16:33:55 CEST] <Spring> when combing start and end times for an output using -ss to
[16:34:21 CEST] <Spring> along with changing the speed of the video it gets the wrong timestamp
[16:35:20 CEST] <Spring> the speed seems to be affecting the resulting timestamp, as if rather than trimming at 1:04 of the original video it's trimming 1:04 of the stretched video, even though the filters come after the timestamp commands
[16:35:37 CEST] <Spring> or something like that, it's wildly different
[16:36:59 CEST] <Spring> oh snap, this is because I'm changing the PTS isn't it?
[16:39:28 CEST] <Spring> how do I compensate for this? I need the video to be trimmed first
[16:41:46 CEST] <mosb3rg> sup fellas, so i have been working towards using a cookie to dump a live feed, now this technique works fine on my local linux machine. but when i take it to my server or windows vps so i tried linux and windows ffmpeg latest builds. only the local linux machine is able to decrypt the key based on the cookie.
[16:42:24 CEST] <mosb3rg> so i tried checking to see if the cookies differ on each system, even though they do.. each cookie works for me locally here on linux and i can dump and relay fine. no decryption issue, but on the servers or anywhere else i am trying i see error 400
[16:43:08 CEST] <mosb3rg> so i assumed, it perhaps was some type of blocking of the hostmask or user agent, or anything like this ip restrictions... but im not the primary account holder, also the video plays fine on the intented website in each location.
[16:43:57 CEST] <mosb3rg> so it only refuses to decrypt and throws the 400 error when i try it elsewhere.. im met without alot of practical reasoning why this keeps happening. i tried custom user agent it made no difference, and at the same respect, it didnt matter locally here on linux it just worked..
[16:47:23 CEST] <Spring> is the trim filter identical to the -ss and to commands?
[17:27:43 CEST] <Spring> is anyone active to check the correctness of a command for me?
[17:28:21 CEST] <Spring> http://pastebin.com/K94iHm4g
[17:29:05 CEST] <Spring> when using that ffmpeg throws an error: 'No such filter: ''. Error initializing complex filters. Invalid argument.'
[17:36:15 CEST] <durandal_1707> remove last comma
[17:41:11 CEST] <Spring> durandal_1707, thanks, didn't notice that. However after removing the comma I'm now encountering an error mid encode 'Failed to initialize encoder: Invalid parameter. Additional information: [libvpx-vp9 @ 0000000001f0e460]   Additional information: rc_twopass_stats_in.buf not set.'
[17:41:49 CEST] <Spring> script was working fine before trying to add the trim filter
[17:44:26 CEST] <DHE> sounds like we need to see the WHOLE commandline
[17:53:06 CEST] <Spring> DHE, http://pastebin.com/sLzqn8L7
[17:55:02 CEST] <DHE> your 2pass logfile is the input file? uhh...
[17:56:10 CEST] <Spring> DHE, the parameters at the top had to be manually added since my batch script hides them
[17:56:34 CEST] <Spring> all the values are from variables, so the second pass input is actually a variable
[17:57:32 CEST] <Spring> the log file is the name of the input not the actual input
[17:57:46 CEST] <Spring> so it outputs to test.mp4.log
[17:57:56 CEST] <Spring> not test.mp4
[18:01:39 CEST] <Spring> okay, so tested using seconds only values
[18:01:46 CEST] <Spring> which /did/ work
[18:02:20 CEST] <Spring> though it's still an incorrect result. Is trim choking on the colons in the timestamps?
[18:15:14 CEST] <Spring> according to the docs the trim filter start and end are 'expressed as time duration specifications' yet every example I've seen in search results uses a different syntax
[18:15:56 CEST] <Spring> (a syntax without colons)
[18:16:03 CEST] <furq> you might need to escape the colons
[18:33:17 CEST] <Spring> furq, so tried escaping the colons with 1-5 backslashes as per docs, and an error states: no such filter: ''. Error initializing complex filters. Invalid argument. Frustrating.
[18:44:39 CEST] <Spring> if I escape both the colons and commas I get this error, which states it thinks the following scale command is part of the trim command https://a.uguu.se/Nx14kUpFavCX.png
[18:44:55 CEST] <Spring> using a single backslash
[18:46:58 CEST] <Spring> *sigh* all I wanted to really fix is being able to trim the video at the correct timestamps /before/ the setpts filter is applied, so as to cut the correct parts of the video
[18:51:35 CEST] <wallbroken> guys, do you know x264vfw ?
[18:53:58 CEST] <durandal_1707> who still use vfm?
[18:54:43 CEST] <wallbroken> who uses windows
[18:57:10 CEST] <durandal_1707> use dshow
[18:57:45 CEST] <JEEB> that would work if his lulzy capture device supports dshow or vfw-over-dshow
[18:58:02 CEST] <JEEB> because that's the only reason I can see using VFW at this point. capture devices that only are available through VFW or something
[19:03:38 CEST] <wallbroken> JEEB, i needed to encode a .VOB in mkv, so i needed h264 and i used virtualdub, but virtualdub supports x264vfw
[19:04:15 CEST] <wallbroken> so i used virtualdub+x264vfw, what do you think about?
[19:04:36 CEST] <wallbroken> and also, added a plugin to virtualdub to support reading of vobs
[19:04:50 CEST] <durandal_1707> it works?
[19:05:02 CEST] <wallbroken> when i did it, in 2013, yes
[19:05:08 CEST] <wallbroken> now i need to do it again
[19:05:51 CEST] <durandal_1707> why you use virtualdub?
[19:06:23 CEST] <wallbroken> because is a masterpiece on windows old school users
[19:07:08 CEST] <durandal_1707> what filters do you use?
[19:07:28 CEST] <wallbroken> when i needed it, only resize
[19:08:06 CEST] <wallbroken> now in windows 10 i have ubuntu bash, so i could use something in linux environment, if it's better
[19:09:10 CEST] <durandal_1707> well virtualdub works under wine good enough for me when doing RE
[19:09:53 CEST] <furq> i'm sure i've heard of some other software which can convert from vob to mkv
[19:09:57 CEST] <furq> if only i could remember what it was called
[19:11:35 CEST] <durandal_1707> mencoder
[19:12:49 CEST] <wallbroken> furq ffmpeg do it?
[19:12:55 CEST] <furq> of course it can
[19:13:03 CEST] <wallbroken> you can set quality factor?
[19:13:15 CEST] <furq> of course you can
[19:13:33 CEST] <wallbroken> and between ffmpeg and vdub, which one is better?
[19:13:55 CEST] <wallbroken> for "better" i mean, better quality on output file
[19:13:58 CEST] <furq> well only one of those can actually export to mkv
[19:14:31 CEST] <durandal_1707> quality is encoder job...
[19:15:56 CEST] <furq> i can't believe virtualdub is still going
[19:16:11 CEST] <furq> it must be at least ten years since i last used it
[19:16:22 CEST] <furq> since it became apparent that it was never going to support any decent muxers
[19:16:25 CEST] <wallbroken> furq, what wrong with that?
[19:16:38 CEST] <furq> it only exports to avi and it uses vfw codecs
[19:44:12 CEST] <wallbroken> i have a dvd to convert, and this dvd has some video menu
[19:44:23 CEST] <wallbroken> to be selected by dvd player remote controller
[19:44:45 CEST] <wallbroken> is like a chapter
[19:44:57 CEST] <wallbroken> is there some way to save it into the video file?
[19:54:52 CEST] <wallbroken> furq, but internal plugins like vfw can export in mkv, mp4 and many others
[19:55:01 CEST] <wallbroken> then you need to remux with audio
[20:12:32 CEST] <Justice> Hey all. Was in yesterday and asked a question but had to go so I will re-ask: I'm trying to ONLY remux audio back into a video stream. I am currently using the following command: ffmpeg -i audio.mp3 -i video.mp4 -c copy final_video.mp4    Is this correct or is there a better way to do it?
[20:46:12 CEST] <c_14> You'll probably want explicit mappings, in your case -map 0:a -map 1:v -map 1:s
[21:34:59 CEST] <Justice> c_14: is mapping needed when there is only 1 audio stream and 1 video stream?
[21:36:02 CEST] <c_14> no\
[21:36:17 CEST] <c_14> ffmpeg will by default map 1 video, 1 audio and 1 subtitle stream
[21:39:48 CEST] <Justice> ok awesome. and that command muxes them together losslessly?
[21:40:10 CEST] <c_14> as long as you keep -c copy, yes
[21:40:57 CEST] <Justice> last question for now, when i start the muxing process it says that to not use a specific codec or something b/c it is defunct
[21:41:09 CEST] <Justice> do i have to worry about that  error message
[21:41:27 CEST] <c_14> hmm?
[21:41:33 CEST] <c_14> What's the exact message
[21:41:36 CEST] <Justice> sec ill get the exact msg
[21:43:26 CEST] <Justice> Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead
[21:47:09 CEST] <Justice> i'll be back in a bit, c_14 if i'm not here just pm me
[21:48:06 CEST] <c_14> Justice: ignore that
[21:48:12 CEST] <c_14> It's ffmpeg-internal
[21:48:17 CEST] <c_14> Will be fixed eventuall"
[21:48:19 CEST] <c_14> Shouldn't break anothyng
[21:48:23 CEST] <c_14> +y
[22:18:41 CEST] <wallbroken> i've created a 600 mb mkv file from a 3.2 gb vob
[22:19:00 CEST] <wallbroken> 3.2 vob file is fast in changing position in timeline
[22:19:07 CEST] <wallbroken> mkv is veryslow
[22:19:24 CEST] <wallbroken> 5 - 10 seconds when i'm lucky
[22:19:31 CEST] <wallbroken> vlc crash when i'm unlucky
[22:29:49 CEST] <thebombzen> I was told that "nut" is a container that can hold anything that FFmpeg can produce. is there any downside to using "nut" as a temporary output format?
[22:45:19 CEST] <durandal_1707> may not be supported by others
[22:47:08 CEST] <DHE> for a temporary format the concern is information is not lost. like that the timestamps don't lose any resolution
[23:13:18 CEST] <Justice> ok thanks c_14
[23:18:52 CEST] <Justice> omg i feel like such a nuisance....does ffmpeg automatically use all cpu cores and threads by default or do I have to enable that?
[23:19:14 CEST] <soulshock> it will use them all by default
[23:19:38 CEST] <Justice> ok perfect. should be all set then (:
[23:23:25 CEST] <soulshock> Carbots er for cool
[23:23:31 CEST] <soulshock> doh wrong chat
[00:00:00 CEST] --- Sun Aug  7 2016


More information about the Ffmpeg-devel-irc mailing list