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

burek burek021 at gmail.com
Fri Jun 12 02:05:01 CEST 2015


[00:45:21 CEST] <xreal> I want to extact a single frame from an PAL DVD (4:3) to JPEG. How can I fix the pixel ratio?
[03:11:24 CEST] <xreal> I've got an input video with 864x480. How can I make it fit to 4:3 with borders?
[03:11:58 CEST] <xreal> This doesn't work. The height is wrong: -filter:v "scale=720:400,pad=720:576:0:88"
[03:38:22 CEST] <pentanol> xreal try -vf crop=in_w/4*3
[03:42:25 CEST] <Compn> xreal_alt : or expand
[03:43:09 CEST] <xreal_alt> re
[03:43:23 CEST] <xreal_alt> Why doesn't padding work?
[03:43:39 CEST] <xreal_alt> scale=720:400,pad=720:576:0:88 with -aspect 4:3 should do it, shouldn't it?
[03:44:03 CEST] <xreal_alt> pentanol: crop = cut away? I don't want that :)
[04:09:06 CEST] <xreal> Sorry, I'm too tired to wait for an answer.
[04:18:44 CEST] <Compn> ehe
[04:18:48 CEST] <Compn> its late here too :P
[04:34:23 CEST] <pentanol> xreal_alt then use swscaler
[08:43:51 CEST] <zachary_> Dear all. I am trying to stream my webcamera on linux. But ffmpeg cannot recognize v4l2.
[08:44:01 CEST] <zachary_> https://bpaste.net/show/02cf2b86f4fb
[08:44:09 CEST] <zachary_> https://bpaste.net/show/a63f29d63a1b
[08:57:28 CEST] <relaxed> zachary_: maybe you forgot the v4l2 USE flag.
[08:58:30 CEST] <zachary_> relaxed: actually I don't install ffmpeg ffplay ffprobe manually
[08:59:11 CEST] <zachary_> relaxed: i think these packages are installed for mplayer
[09:01:43 CEST] <zachary_> relaxed: how do you know i am using gentoo
[09:29:06 CEST] <zachary_> relaxed: just lose the connect. My ffmpeg seems lack "libv4l" either
[09:40:00 CEST] <relaxed> from your output, "built with gcc 4.8.4 (Gentoo 4.8.4"
[09:40:27 CEST] <relaxed> zachary_: my static builds have support, http://johnvansickle.com/ffmpeg/
[09:42:06 CEST] <zachary_> relaxed: thx. when errors occur, sometimes confused and lost patience to review details
[09:55:35 CEST] <ruby_on_tails> i used ffmpeg to convert a .mov to .mp4 and it doesnt run on ipad, can anyone tell why? this is the command used and the ffprobe of the video: http://pastebin.com/raw.php?i=VGnyuA1A
[09:56:01 CEST] <ruby_on_tails> works fine on a mac book, though quicktime cant play it, have to use VLC media player to play it
[10:01:06 CEST] <ruby_on_tails> the video kind of fails at a lot of places, imovie cant detect the video, but can detect the audio
[10:04:25 CEST] <ruby_on_tails> and when the command was triggered it shows some weird comments which i dont understand http://pasteboard.co/18AVjoJe.png
[10:04:55 CEST] <relaxed> ruby_on_tails: add -pix_fmt yuv420p
[10:05:53 CEST] <ruby_on_tails> relaxed: added and reran the script, its working, though what does this thing mean?
[10:09:50 CEST] <ruby_on_tails> relaxed: nvm read it up
[10:10:01 CEST] <ruby_on_tails> lets see if the new result works on ipad
[10:16:25 CEST] <relaxed> it controls the output's colorspace, and the ipad (and most devices) only support yuv420p
[10:27:19 CEST] <Abhijit> hi
[10:28:04 CEST] <Abhijit> is there anything built in, in ffmpeg or any other open source multimedia encoding software, which i can use to implement video adaptive streaming in my python flask app?
[12:37:42 CEST] <gurpartap> I am getting an rtp stream which I am saving as a mp4 file. I want to restream this file as a rtp server at a lower frame rate
[12:37:48 CEST] <gurpartap> how can i do that?
[12:38:11 CEST] <gurpartap> Presently I am able to stream my file but I am not able to alter my framerate
[12:45:23 CEST] <relaxed> gurpartap: what happens when you try to change the framerate?
[12:46:08 CEST] <gurpartap> I tried changing the framerate using -framerate command but for some reason since then my video is streaming at super high fps and bit rate
[12:46:58 CEST] <gurpartap> terminal log is showing fps around 230
[12:48:29 CEST] <relaxed> -framerate applies to input, use -r $framerate after the input
[12:49:12 CEST] <relaxed> you may need -re too
[12:49:25 CEST] <gurpartap> I want to save my video at 25fps and stream it at say 10 fps. Any way to do that?
[12:50:41 CEST] <relaxed> what is original framerate?
[12:51:27 CEST] <gurpartap> original set from my camera is 25 fps. I am able to save that video as a mp4. Now I want to restream this mp4 at a lower framerate.
[12:53:54 CEST] <relaxed> ffmpeg -re -i input.mp4 -r $framerate output
[12:55:38 CEST] <gurpartap> what is $framerate. Should i replace that with a number like 10?
[12:55:45 CEST] <relaxed> yes
[12:56:09 CEST] <relaxed> you can save the stream to mp4 and restram it at the same time
[12:56:17 CEST] <relaxed> restream*
[12:56:32 CEST] <gurpartap> How?
[12:57:15 CEST] <relaxed> ffmpeg -re -i $stream -c copy output.mp4 -r $framerate $output_stream
[12:59:25 CEST] <gurpartap> What you suggested works.But there is one problem. I do not want to slowdown the speed of my video when I mean lowering fps because that would increase the total time of the video
[12:59:33 CEST] <relaxed> I would use matroska, though, because if you control+c it the mp4 won't playback
[12:59:53 CEST] <gurpartap> what i meant was just sending one frame out of the 25 frames recorded per second
[13:00:20 CEST] <gurpartap> so if my video is of 25 seconds at 25 frames, I want to transfer just 25 frames and keep the length the same
[13:00:44 CEST] <c_14> That'll do that.
[13:00:49 CEST] <relaxed> -r 1
[13:01:30 CEST] <gurpartap> Okay let me recheck
[13:23:29 CEST] <Abhijit> hi
[13:23:38 CEST] <Abhijit> anyone awak?
[13:23:55 CEST] <Abhijit> is this the whole procedure about adaptive streaming? http://www.bogotobogo.com/VideoStreaming/ffmpeg_AdaptiveLiveStreaming_SmoothStreaming.php
[13:24:06 CEST] <Abhijit> if yes then whats special about implementation of Apple, Adobe and MS?
[13:32:42 CEST] <chama> Hi, I'm trying to apply some filters to a video
[13:33:11 CEST] <chama> here are the corresponding css filters I'm trying to apply to a video
[13:33:12 CEST] <chama> http://designpieces.com/2014/09/instagram-filters-css3-effects/
[13:33:34 CEST] <chama> how can i Implement those in ffmpeg...?
[13:34:10 CEST] <chama> i tried following
[13:34:13 CEST] <chama> ffmpeg -i 3.mp4 -c:v libx264 -c:a libfaac -filter_complex "[0:v]eq=1.0:0:1.3:2.4:0.175686275:0.103529412:0.031372549:0.4[outv]" -map [outv] foo.mp4
[13:34:31 CEST] <chama> but didn't get the correct expected result...
[13:34:45 CEST] <[-T-]> hey
[13:34:46 CEST] <chama> any idea how to do this correctly?
[13:34:52 CEST] <[-T-]> any vdpau/nvenc expert ?
[13:43:03 CEST] <hefest> any way to remove SAR and DAR white encoding video?
[13:43:43 CEST] <hefest> i have this one which is displaying correctly in flash player we are using: Stream #0:1(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480, 855 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
[13:44:12 CEST] <hefest> and this one is not displaying correctly, upper part of the picture is screwed up: Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 8 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
[13:44:40 CEST] <hefest> sorry, this one is not displaying correctly: Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 862 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc (default)
[13:44:52 CEST] <hefest> the only difference is the "[SAR 1:1 DAR 4:3]" as i can see
[13:51:53 CEST] <durandal_1707> it is pointless to remove these, and certainly that is not reason for errors
[13:54:12 CEST] <hefest> durandal_1707: what can it be than?
[13:55:26 CEST] <JEEBsv> hefest: try disabling HW decoding in flash
[13:55:34 CEST] <JEEBsv> see if it still happens
[13:56:02 CEST] <JEEBsv> if it still happens, check with something like mpv if the issue is really in the stream or not
[13:56:25 CEST] <hefest> JEEBsv: well, the same player works with chrome but not with firefox, for that particular video.
[13:56:43 CEST] <hefest> JEEBsv: and original file (the first example line i posted) is displaying correctly in both browsers
[13:56:52 CEST] <hefest> JEEBsv: whats mpv?
[13:57:15 CEST] <JEEBsv> if this is on lunix then the mozplug flash is just buggy :P
[13:57:33 CEST] <hefest> JEEBsv: no, macos
[13:57:34 CEST] <JEEBsv> or well, if you can limit it to the mozilla plugin flash and you have made sure the flash version is the same in general
[13:58:03 CEST] <hefest> JEEBsv: i can't, it has to work in all browsers, and it did so far. something is different with the video
[13:58:22 CEST] <dsl420> mpv.io it is a great media player, my favorite actually
[13:58:23 CEST] <hefest> JEEBsv: i can give you the ffprobe output of both video files, the one that works and the one that doesn't
[13:59:35 CEST] <hefest> JEEBsv: second one is the one that doesn't work: https://gist.github.com/akomic/8e4e94d007f193bf50a9
[14:05:51 CEST] <JEEBsv> hefest: I might look at it after work but it most probably is a bug in flash
[14:06:26 CEST] <JEEBsv> just make sure that both plugins are at the newest version and match re: hw decoding etc
[14:06:38 CEST] <JEEBsv> (and make goddamn sure that the file doesn't have the artifacts)
[14:07:14 CEST] <hefest> JEEBsv: how do i check for artifacts?
[14:11:41 CEST] <cagedwisdom> how do I test if my distro's ffmpeg lib supports h264
[14:13:16 CEST] <hefest> execute ffmpeg and see in first 3 lines of output if libx264 is enabled
[14:15:59 CEST] <hefest> how can i set encoder time_base ?
[14:16:18 CEST] <cagedwisdom> hefest, it shows the compile string --enable-libx264 but it doesn't show libx264 in the list under the compile string.
[14:17:28 CEST] <cagedwisdom> Im trying to use a library that uses ffmpeg and it does other codecs ok but it says if h264 isn't working it's because ffmpeg probably wasn't compiled with it.
[14:18:14 CEST] <bencoh> ?
[14:18:21 CEST] <bencoh> what about ffmpeg -codecs ?
[14:19:40 CEST] <cagedwisdom> getting DEV.LS for h264 ...weird
[14:28:24 CEST] <hefest> hmm can't figure out how to specify encoders time_base
[15:19:26 CEST] <relaxed> hefest: which one doesn't work?
[15:22:52 CEST] <relaxed> oh, I see. What did you mean by "this one is not displaying correctly"
[15:51:43 CEST] <hefest> relaxed: firefox+flashplayer is showing video with artifacts in 20% of upper part of the screen
[15:55:31 CEST] <hefest> relaxed: here is the screenshot https://photos-5.dropbox.com/t/2/AAB0vDL8fpxU8GHn9oH9SoZgsNul7kq3W9yiY3KIPuAV9w/12/847428/png/32x32/1/1434034800/0/2/Screenshot%202015-06-11%2015.54.17.png/CMTcMyABIAIgAyAEIAUgBiAHKAEoAg/arbbnS0eThTxGw6gan-PLqTjUI_bM8tz3QByjMML8Bk?size=1024x768&size_mode=2
[15:57:21 CEST] <hefest> anyone with the idea what might cause this? : https://goo.gl/LRTGeJ
[16:15:05 CEST] <spaam> hefest: it works in chrome? :D
[16:17:32 CEST] <hefest> spaam: yes
[16:18:57 CEST] <spaam> if it was html5. firefox use gstreamer to decode h264 and chrome use ffmpeg.
[16:20:32 CEST] <hefest> is it possible that tbn value can create problems like this?
[16:20:58 CEST] <hefest> that's the only difference as far as i can see and im not sure if i can set that when transcoding
[16:56:33 CEST] <hefest> when i lower -crf i'm getting redness, if it's increased above 20 i'm getting artifacts.
[17:21:59 CEST] <relaxed> spaam: wouldn't gstreamer use ffmpeg's libs to decode it?
[18:52:28 CEST] <gouessej> Hi
[19:11:03 CEST] <gouessej> I still have the same problem than yesterday, Totem, Dragon Player and VLC are unable to estimate the duration of the OGV videos I created with FFMPEG
[19:11:46 CEST] <gouessej> "Stream #1: not enough frames to estimate rate; consider increasing probesize"
[19:12:18 CEST] <gouessej> I use -probesize 2147483647
[19:16:04 CEST] <gouessej> I don't reproduce this bug with webm but the quality is lower with similar parameters
[19:22:06 CEST] <gouessej> I see nb_frames=N/A very often when using ffprobe
[19:23:45 CEST] <jbmcg> does anyone know a way to combat -ss and -t rounding/precision issues in ffmpeg? trying to cut out pieces of video based on frame numbers and no matter what I try and do, its always off on some cuts
[19:27:00 CEST] <gouessej> jbmcg: Do you use the format hh:mm:ss[.xxx] with -t?
[19:27:38 CEST] <jbmcg> i've tried both using just seconds and also using a timestamp like that
[19:28:14 CEST] <jbmcg> is that preferred?
[19:30:00 CEST] <Compn> jbmcg : you can get tighter frames by using -vf select
[19:30:21 CEST] <jbmcg> I've had issues providing just seconds and seeing different results (more/less frames) when rounding to the 6th or 7th decimal place
[19:30:38 CEST] <Compn> jbmcg : http://superuser.com/questions/866144/cutting-videos-at-exact-frames-with-ffmpeg-select-filter
[19:32:37 CEST] <Compn> jbmcg : there is also -vf trim
[19:32:43 CEST] <Compn> which maybe better
[19:32:50 CEST] <Compn> depending on what you want to do
[19:33:06 CEST] <Compn> obviously ffmpeg seek is not precise in all formats :\
[19:34:55 CEST] <Compn> yeah i guess vf trim is exactly what you want
[19:34:56 CEST] <Compn> :p
[19:57:33 CEST] <Nitori> Is there a way to synchronize subtitles (ass) with the video? If I show streams with ffprobe, I often see, that a video has a start_time of 0.083 sekonds (approx. 2 frames), which leads the subs to be off by those two frames, when I muxx video and subs.
[19:58:41 CEST] <relaxed> Nitori: you can adjust the timing with mpv during playback
[19:59:04 CEST] <Nitori> during playback. great
[19:59:17 CEST] <Nitori> that's not really what I want ;-)
[20:00:04 CEST] <Nitori> currently I sync them manually (adding time values worth of those two frames to every line, using a script)... but that's not really a solution I like
[20:00:21 CEST] <relaxed> just throwing out an option
[20:01:08 CEST] <Nitori> yea
[20:01:28 CEST] <relaxed> maybe there's a way to fix it with aegisubs?
[20:03:21 CEST] <Nitori> well, aegisub synchronizes to the video stream and ignores whatever "start_time" the container (I assume it's from the container?) is set to.
[20:03:52 CEST] <Nitori> which seems reasonable. every muxx could possibly have a different start_time.
[20:09:00 CEST] <Nitori> hm, looks like this start_time thing is not from the container, but from the x264 stream.
[20:09:23 CEST] <relaxed> Nitori: maybe, ffmpeg -i input.mkv -itsoffset 0.083 -i input.ass -c copy out.mkv
[20:09:47 CEST] <relaxed> er, add -map 0 -map 1 after input.ass
[20:10:22 CEST] <Nitori> hmhm, in the end I have to know the exact off-duration..
[20:10:58 CEST] <Nitori> that's what I kind of want to avoid, because it's a (tiny) bit of a hassle
[20:11:18 CEST] <relaxed> you could demux all the streams and remux them
[20:11:37 CEST] <relaxed> I'm not sure if that would do it, though
[20:12:03 CEST] <Nitori> since the start_time is in the codec, as I just figured out myself, this probably won't work...
[20:12:17 CEST] <Nitori> but if it's part of the codec, aegisub is probably messing up, by ignoring it?
[20:12:34 CEST] <Nitori> (aegisub is used for timing)
[20:14:08 CEST] <JEEBsv> do make sure that aegisub uses ffms2 for input, and that ffms2 is up-to-date
[20:14:39 CEST] <Nitori> different platforms different inputs, all behave the exact same
[20:14:46 CEST] <JEEBsv> no
[20:14:59 CEST] <JEEBsv> ffms2 is used for everything but avs scripts or so by now
[20:15:01 CEST] <JEEBsv> :P
[20:15:21 CEST] <Nitori> well, I meant with that timing behaviour.
[20:15:52 CEST] <JEEBsv> also I've never had issues with frame-exactness in aegisub with ffms2 with sane containers
[20:15:56 CEST] <JEEBsv> what are you using as source :P
[20:18:46 CEST] <Nitori> video source? different kinds. sometimes reencoded, sometimes not..
[20:18:47 CEST] <Nitori> huh
[20:18:58 CEST] <JEEBsv> I mean container-wise
[20:19:02 CEST] <Nitori> matroska
[20:19:05 CEST] <JEEBsv> ok
[20:19:30 CEST] <JEEBsv> also I would almost be sure that you might get better support either at the aegisub forums or the IRC channel on Rizon. But that's just me :P
[20:20:12 CEST] <Nitori> yea, probably
[20:20:47 CEST] <Nitori> maybe later
[20:20:55 CEST] <Nitori> 1, 2, 3, 40 days or so
[20:21:04 CEST] <Nitori> too lazy and just not important enough atm
[20:23:03 CEST] <JEEBsv> anyways, if you can get any samples going at some point for people to try and replicate your shit with (it can even be blankclip with various colors per frame or whatever if you don't want to cut stuff or whatever)
[20:23:57 CEST] <JEEBsv> but what I can say is that I did subtitling for quite a while and never had issues with frame-exact timing as long as sane formats were concerned
[20:25:13 CEST] <Nitori> hm
[20:25:24 CEST] <Nitori> maybe I'll try some different formats
[20:26:18 CEST] <Nitori> is matroska not considered "sane"? ^^
[20:28:21 CEST] <JEEBsv> it is more or less, I've used it quite a bit :P even though it contains a lot of stuff that isn't properly defined
[20:46:08 CEST] <Guest23220> [TWITTER RELAY] Have your chance to win an Xbox Gift Voucher worth £25/$50 or a 12 Month Xbox Membership More info visit http://t.co/uZs79lYv1x #competition
[22:18:07 CEST] <frenda> Hi there
[22:20:31 CEST] <frenda> Problem: It does not support RTL! I mean while it should insert !3D'E --> it inserts: 3D'E! --> Notice at the position of '!'
[22:20:31 CEST] <frenda> I'm going to merg a subtiltle over a video clip by this instruction: https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo
[22:22:14 CEST] <JEEBsv> if you're using libass, make sure you've built it with harfbuzz
[22:22:21 CEST] <JEEBsv> that's probably the best you'll be able to get
[22:22:52 CEST] <frenda> I used this: `ffmpeg -i aaa.mp4 -vf subtitles=aaa.srt -strict -2 bbb.mp4`
[22:23:03 CEST] <JEEBsv> yeah, I don't think that uses libass
[22:23:18 CEST] <JEEBsv> unless it does now, but that'd be a surprise
[22:24:06 CEST] <JEEBsv> also  you'd have to make sure that the libass it'd use would have harfbuzz built in for the "nonstandard" text
[22:24:22 CEST] <JEEBsv> even then it might not be good enough, but it should at least be somewhat better
[22:25:08 CEST] <frenda> I've installed ffmpeg from Archlinux repo; Do you mean I should remove it and compile it manually?
[22:25:40 CEST] <frenda> JEEBsv: ^
[22:25:41 CEST] <JEEBsv> uhh
[22:25:42 CEST] <JEEBsv> no
[22:25:56 CEST] <JEEBsv> I just mean that the ffmpeg you use should be built with libass, and the libass with harfbuzz
[22:25:59 CEST] <JEEBsv> :P
[22:26:48 CEST] <BtbN> My personal favourite is still libnosefart.
[22:29:09 CEST] <frenda> How can I check that sequence? harfbuzz<libass<ffmpeg
[22:29:22 CEST] <JEEBsv> check what the dependencies are for your ffmpeg?
[22:29:27 CEST] <JEEBsv> check what dependencies are for your libass?
[22:37:29 CEST] <frenda> JEEBsv: `pactree -u ffmpeg` --> Yeah, They are there
[22:38:51 CEST] <frenda> And harbuzz is a dependency for libass given by `pactree -u libass`
[22:39:31 CEST] <JEEBsv> well that's great then for you
[23:04:23 CEST] <incal> what do I do about "[png_pipe @ 0x8be520] Stream #0: not enough frames to estimate rate; consider increasing probesize"?
[23:05:05 CEST] <incal> and: "Guessed Channel Layout for  Input Stream #1.0 : stereo"
[23:09:27 CEST] <Genboo2> Hi, how to enable Intel QSV on buildtime? Can't find the switch :\ Merged libmfx
[23:10:59 CEST] <BtbN> I think it's Windows-Only?
[23:13:11 CEST] <Genboo2> Ok just saw it got added for official ffmpeg 2.7.
[23:13:40 CEST] <doc|holliday> hiya
[23:14:39 CEST] <doc|holliday> when reading from pipe is it possible to tell ffmpeg to not quit and instead to wait for new data to arrive?
[23:16:18 CEST] <doc|holliday> or when reading from a file
[23:18:30 CEST] <doc|holliday> currently I am capturing live stream and saving it on a remote server (nut container). on the server I start transcoding the stream, but it sometimes does faster than realtime and when it hits the end, it stops
[23:24:10 CEST] <doc|holliday> tried both: cat input.nut | ffmpeg -i - ... and directly ffmpeg -i input.nut ...
[23:26:16 CEST] <BtbN> It will stop on EOF
[23:27:49 CEST] <doc|holliday> BtbN: I noticed :) is there a way to override it?
[23:42:05 CEST] <doc|holliday> I don't mind getting my hands dirty with the code. is libavformat/file.c the right place to poke around? I was thinking maybe add an option for file and/or pipe protocol
[00:00:00 CEST] --- Fri Jun 12 2015


More information about the Ffmpeg-devel-irc mailing list