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

burek burek021 at gmail.com
Tue Sep 27 03:05:01 EEST 2016


[00:01:10 CEST] <TwinTailed> btw, why the output video mp4 doesn't have metadata? No title, no duration, no resolution, even though i have done av_dict_copy from the input video
[00:02:38 CEST] <TwinTailed> I am also passing the AVDictionary to write_header
[01:23:49 CEST] <gestahlt> Hi
[01:24:30 CEST] <durandal_1707> hi
[01:24:35 CEST] <gestahlt> I want to stream a docker desktop for screen recording to a v4l2loopback device (/dev/video1). I passed the device (i can access and write to it) but ffmpeg fails me.. (i even tried it on the regular desktop and it didnt work). I dont know what i do wrong
[01:24:47 CEST] <gestahlt> here is what i try to do: ffmpeg -f x11grab -r 30 -s 1600x1200 -i :0.0+0,0 -vcodec rawvideo -threads 0 -f v4l2 /dev/video1
[01:25:12 CEST] <gestahlt> and this is the errormessage: Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
[01:25:27 CEST] <gestahlt> and also: [v4l2 @ 0x560046ce4e40] ioctl(VIDIOC_G_FMT): Invalid argument
[01:25:40 CEST] <gestahlt> I googled quite a bit, but no clue where i go wrong
[01:26:03 CEST] <gestahlt> both enviroments give me the same error (the real and the xvfb one). They also are different distributions (arch / ubuntu)
[01:26:50 CEST] <durandal_1707> check what pixel formats are supported
[01:27:41 CEST] <gestahlt> bgr0
[01:27:46 CEST] <durandal_1707> For v4l2 device
[01:27:52 CEST] <gestahlt> yeah bgr0
[01:28:35 CEST] <gestahlt> thats what v4l2-ctl --all tells me
[01:28:47 CEST] <durandal_1707> and what x11grab gives?
[01:28:55 CEST] <gestahlt> Dont know?
[01:29:04 CEST] <gestahlt> Uh how can i check that?
[01:29:45 CEST] <durandal_1707> look at ffmpeg output
[01:31:28 CEST] <gestahlt> ?
[01:31:41 CEST] <gestahlt> I can create a mpeg file?
[01:34:52 CEST] <durandal_1707> look description of x11grab input
[01:35:27 CEST] <durandal_1707> with command that fails
[01:35:47 CEST] <gestahlt> https://www.ffmpeg.org/ffmpeg-devices.html#x11grab
[01:41:05 CEST] <gestahlt> uh
[01:41:14 CEST] <gestahlt> No idea what to do
[01:41:41 CEST] <gestahlt> i can create files
[01:41:44 CEST] <gestahlt> no problem
[01:41:51 CEST] <gestahlt> except with "rawvideo"
[01:41:58 CEST] <gestahlt> it does create a file but is not readable by vlc
[01:46:08 CEST] <furq> gestahlt: pastebin the full output
[02:00:51 CEST] <gestahlt> http://pastebin.com/6cBhqexe
[02:44:42 CEST] <gestahlt> I just tried it ffserver and streamed to mpeg.. it does work (bad quality too, and has lots of issues) but at least it proves that it streams from the desktop
[02:44:56 CEST] <gestahlt> so the only issue is getting the output to /dev/video1 (v4l2loopback)
[03:17:48 CEST] <gestahlt> Hm
[03:17:52 CEST] <gestahlt> Maybe i do it wrong
[03:17:57 CEST] <gestahlt> i only need a stream
[03:17:59 CEST] <gestahlt> nothing else
[03:18:14 CEST] <gestahlt> It doesnt have to be a v4l2 device
[03:18:35 CEST] <gestahlt> I just need to be able to read from it (via opencv which uses ffmpeg libs anyway)
[03:19:08 CEST] <gestahlt> a "normal" video file does not suffice. It must be a stream (fixed size)
[03:19:52 CEST] <gestahlt> the less components i need, the better
[03:48:27 CEST] <gestahlt> YAY
[03:48:27 CEST] <gestahlt> ffmpeg -f x11grab -r 30 -s 1600x1200 -i :0.0+0,0 -f mpeg -threads 0 pipe:1 > /tmp/ffmpegpipe
[03:48:34 CEST] <gestahlt> That pretty much does it
[03:48:56 CEST] <gestahlt> Only quality is an issue
[03:49:05 CEST] <gestahlt> I need better quality
[03:50:48 CEST] <gestahlt> CPU is also pretty acceptable this way
[03:50:48 CEST] <gestahlt> yay
[03:50:51 CEST] <gestahlt> awesome
[03:51:15 CEST] <c_14> what codec is that using?
[03:51:24 CEST] <c_14> You'll probably want libx264
[03:51:29 CEST] <furq> mpeg1video
[03:51:31 CEST] <c_14> just set crf for quality and preset for speed
[03:51:40 CEST] <c_14> Yeah, you won't want mpeg1 (most likely)
[03:51:47 CEST] <furq> if it's going to a pipe then just use rawvideo
[03:52:43 CEST] <gestahlt> i couldnt open it with vlc with rawvideo
[03:52:51 CEST] <gestahlt> but i try again
[03:52:55 CEST] <furq> -f nut -c:v rawvideo
[03:53:01 CEST] <furq> i'm pretty sure nut is streamable
[03:54:16 CEST] <gestahlt> yeah
[03:54:19 CEST] <gestahlt> PERFECT
[03:54:21 CEST] <gestahlt> Thanks!
[03:54:33 CEST] <gestahlt> took me now a week to figure that stuff all out
[03:54:48 CEST] <gestahlt> Having a full desktop running as docker container
[03:54:51 CEST] <gestahlt> xvfb issues
[03:54:56 CEST] <gestahlt> and finally streaming
[03:54:59 CEST] <gestahlt> i could kiss you
[03:55:31 CEST] <gestahlt> And its completly in sync
[03:55:39 CEST] <gestahlt> with the desktop that shows in vnc
[03:56:03 CEST] <gestahlt> cpu usage is still good
[03:56:22 CEST] <furq> that should barely touch the cpu
[03:56:29 CEST] <furq> the only issue would be memory usage if you don't read from the pipe fast enough
[03:56:33 CEST] <furq> assuming /tmp is a tmpfs
[03:56:54 CEST] <gestahlt> it is
[03:57:07 CEST] <gestahlt> on this box i got plenty
[03:57:18 CEST] <furq> it shouldn't be an issue if you're reading frames as soon as they come in
[03:57:24 CEST] <gestahlt> i will set up a server anyway for this stuff.. i can throw so much mem in it
[03:58:08 CEST] <furq> that'll be something like 175MB/s, so you can imagine that adds up pretty fast
[03:58:16 CEST] <gestahlt> yepp
[03:59:04 CEST] <gestahlt> But having memory deal with it is just awesome. I was worried because of disk usage and lags due limited disk i/o. My plan was do create a ramdisk if i need diskio
[03:59:09 CEST] <gestahlt> but this is just the way i need it
[03:59:23 CEST] <furq> a tmpfs is pretty much a ramdisk
[03:59:27 CEST] <gestahlt> yepp
[03:59:53 CEST] <gestahlt> I wasnt thinking of that until you mentioned (didnt thought about using tmp.. i use tmp always for this kind of stuff until i figure out where it belongs)
[04:00:09 CEST] <gestahlt> and also good to know because when i put it on the servers, i will stick to tmpfs
[04:00:16 CEST] <furq> well this is a good candidate for /tmp anyway
[04:00:25 CEST] <furq> i doubt the old stream data is of any use after a reboot
[04:00:30 CEST] <gestahlt> yep.
[04:01:03 CEST] <gestahlt> I tried desperatly to write it as a v4l2 device. I read up on opencv more and there was stated, everything ffmpeg reads is fine
[04:01:06 CEST] <gestahlt> so
[04:01:08 CEST] <gestahlt> perfect
[04:01:26 CEST] <gestahlt> no additional devices.. i can keep security tight (v4l2 need privileged containers)
[04:02:18 CEST] <gestahlt> lol size accumulates pretty quickly
[08:46:43 CEST] <monery> gretings channel, I am not sure where I should be talking. Here for devel... got an error message when trying to use nvenc, As far as I know, I got the drivers and cuda from ubuntu repositories, 16.04 is version Iam on for OS
[08:49:04 CEST] <monery> haven't been able to find anything on 0x39007c0 nvEncodeAPIGetMaxSupportedVersion on google
[08:49:24 CEST] <monery> I'll check in after I get some sleep
[10:52:57 CEST] <golserma> If I'm compiling ffmpeg just for myself and I'd like to have all encoders avaiable to me do i --enable-gpl or not?
[10:53:44 CEST] <furq> you can't link against gpl libs without --enable-gpl
[10:54:49 CEST] <golserma> I need libfdk_aac and x264
[10:54:55 CEST] <golserma> so i enable libfdk_aac gpl and nonfree?
[10:54:59 CEST] <furq> yes
[10:55:02 CEST] <furq> and libx264
[10:55:27 CEST] <furq> enable-gpl is somewhat redundant since that binary isn't redistributable anyway
[10:55:48 CEST] <furq> but that's just how it is
[10:57:07 CEST] <golserma> I'm crosscompiling using mxe :/ for windows 64bit
[10:59:27 CEST] <golserma> The guid I'm using uses mp4box is this till a decent demultiplexer?
[11:00:08 CEST] <golserma> It uses neroaac too whitch crashes all the time for me :(
[11:06:16 CEST] <furq> guide for what
[11:21:32 CEST] <golserma> It is an old virtualdub howto. It  uses external encoders. x264 for the video, nero aac for audio and mp4box to demux
[11:22:24 CEST] <golserma> Since somehow nero aac does not work on my windows pc I'm using ffmpeg (fdk_aac) for audio
[11:23:03 CEST] <furq> just use ffmpeg for the whole thing
[11:24:40 CEST] <golserma> The plan is to get it working and then switch everything to ffmpeg :)
[14:16:29 CEST] <nettezzz> hello folks
[14:18:30 CEST] <nettezzz> I'd like to request a little help with capturing my desktop
[14:18:40 CEST] <nettezzz> I am using this cmdline: ffmpeg -f x11grab -framerate 25 -video_size 1600x900 -i $DISPLAY -c:v libx264 -qp 0 -preset ultrafast tmp/x11_out.mp4 -f alsa -i default -c:a flac tmp/audio_out.wav
[14:19:13 CEST] <nettezzz> video part is good, but the sound is if I capture it using a mic ..... it's just not captured clearly
[14:19:52 CEST] <nettezzz> how do I capture using alsa or pulse the sound in the possibly the most clear phone like if I was `fishing' over the pcm channel ?
[14:20:03 CEST] <nettezzz> s/phone/form/
[14:20:52 CEST] <nettezzz> and btw, ffmpeg rocks, it's just a swiss-knife
[14:36:43 CEST] <mbarisa> hi guys, I have issues compiling ffmpeg for android with SSL support, tried everything.. but all that I try I end up with ERROR: openssl not found
[14:36:50 CEST] <mbarisa> can someone point me in right direction
[14:37:18 CEST] <mbarisa> i tried to compile openssl separate, that is fine, added /include and /lib where for other libs is.. and still can't find it
[14:45:33 CEST] <nettezzz> mbarisa: use .pc file for that
[14:46:06 CEST] <nettezzz> don't bother with libs or include, just PKG_CONFIG_PATH=/where/your/openssl.pc/is
[14:46:29 CEST] <nettezzz> moreover, check, if you ain't missing an openssl-dev package or such like
[14:48:51 CEST] <nettezzz> mbarisa: look for this /usr/lib64/pkgconfig/openssl.pc
[14:49:13 CEST] <nettezzz> but path might differ regarding your distro or custom openssl built
[14:55:44 CEST] <mbarisa> and where do I add that in my config params
[14:56:02 CEST] <furq> you don't
[14:56:09 CEST] <furq> just set PKG_CONFIG_PATH
[14:56:18 CEST] <mbarisa> and it will compile it for android
[14:56:22 CEST] <mbarisa> hmm
[14:56:32 CEST] <furq> if you're compiling for android then you probably don't want your system openssl pkg-config path
[14:56:49 CEST] <mbarisa> yes, I am compiling for android
[14:56:51 CEST] <furq> unless you installed the package with multiarch or something
[14:57:28 CEST] <mbarisa> i compiled openssl in /usr/local/ssl/..
[14:57:51 CEST] <mbarisa> http://pastebin.com/dd5WuBav
[14:58:06 CEST] <mbarisa> I tried to include SSL flags in cf and ld flags, but that doesn't pass as well
[14:58:14 CEST] <nettezzz> mbarisa: find /usr/local/ssl -type f -iname *.pc
[14:58:43 CEST] <nettezzz> mbarisa: again, configure your PKG_CONFIG_PATH for that ...
[14:58:53 CEST] <nettezzz> doing it manually is overkill
[14:58:58 CEST] <furq> you're not actually using SSL_EXTRA_LDFLAGS anywhere
[14:59:14 CEST] <furq> or _CFLAGS
[14:59:20 CEST] <mbarisa> yeah I am not at the moment, as it is not working
[14:59:30 CEST] <mbarisa> /usr/local/ssl/android-18/lib/pkgconfig/openssl.pc
[14:59:30 CEST] <mbarisa> /usr/local/ssl/android-18/lib/pkgconfig/libssl.pc
[14:59:31 CEST] <mbarisa> /usr/local/ssl/android-18/lib/pkgconfig/libcrypto.pc
[14:59:39 CEST] <furq> add that directory to PKG_CONFIG_PATH
[14:59:39 CEST] <mbarisa> those are paths for that find
[15:00:06 CEST] <mbarisa> and ffmpeg will know how to search for that?
[15:00:10 CEST] <furq> yes
[15:00:13 CEST] <mbarisa> do i need to enable-gnutls as well?
[15:00:21 CEST] <furq> i doubt it
[15:00:25 CEST] <mbarisa> ok thanks
[15:00:39 CEST] <furq> you would normally use gnutls instead of openssl
[15:00:45 CEST] <furq> at least that's how i use it
[15:01:11 CEST] <mbarisa> I added PKG_CONFIG_PATH=/usr/local/ssl/android-18/lib/pkgconfig/
[15:01:32 CEST] <mbarisa> Let's wait again 1 hour :)
[15:01:57 CEST] <furq> it would presumably help if you were setting $NUMBER_OF_CORES
[15:02:49 CEST] <mbarisa> i have 1 core on server :)
[15:02:56 CEST] <furq> oh fun
[15:03:29 CEST] <mbarisa> Since friday was a headache :D
[15:05:26 CEST] <mbarisa> I got again ERROR: openssl not found
[15:05:36 CEST] <nettezzz> btw, I hate android so much :D
[15:05:47 CEST] <furq> pastebin the last 100 lines or so of config.log
[15:06:27 CEST] <nettezzz> furq: why not that whole log :D
[15:06:46 CEST] <furq> because i don't want it to lock up my browser while it loads 40k lines
[15:07:20 CEST] <nettezzz> it won't lock your browser but whatever you say ;)
[15:07:37 CEST] <furq> it has done and will do that
[15:08:02 CEST] <furq> especially if it's pastebin.com which helpfully makes it 80k lines by having an editbox at the bottom that nobody ever uses
[15:08:58 CEST] <nettezzz> oh this, maybe the ppl shall learn themselves that they should give a link to raw paste whenerver possible and that they should not use pastebin.com - the most stupid and by adverts weeded pastebin site
[15:09:53 CEST] <nettezzz> furq: _paste() { _infile=/dev/stdin; test -z "$1" || _infile="$1"; curl -F 'sprunge=<-' http://sprunge.us < "$_infile"; }
[15:10:30 CEST] <mbarisa> http://pastebin.com/vx4UD43S
[15:10:38 CEST] <furq> nettezzz: http://vpaste.net/y0S07
[15:11:12 CEST] <furq> http://vpaste.net/q1qDm
[15:11:13 CEST] <furq> or that, rather
[15:11:18 CEST] <nettezzz> furq: nice, it's same like mine ;)
[15:11:36 CEST] <furq> mine even used to be sprunge.us
[15:11:46 CEST] <furq> until they ran out of app engine quota one month and i switched to something less flaky
[15:12:00 CEST] <nettezzz> oh really o.O
[15:12:18 CEST] <mbarisa> does anyone have another idea except PKG_CONFIG_PATH
[15:12:19 CEST] <furq> i'm not entirely happy with vpaste but it'll do
[15:12:20 CEST] <nettezzz> ok, let's back to the topic .... I originally asked a question for myself, still without reply
[15:13:11 CEST] <nettezzz> http://susepaste.org/view/raw/28184838
[15:13:17 CEST] <nettezzz> here is my original question
[15:13:33 CEST] <furq> mbarisa: what does `PKG_CONFIG_PATH=/usr/local/ssl/android-18/lib/pkgconfig/ pkg-config --cflags openssl` return
[15:13:52 CEST] <mbarisa> -I/usr/local/ssl/android-18/include
[15:14:02 CEST] <nettezzz> furq: I can tell you, that shall return ..... heh, he was faster
[15:14:47 CEST] <furq> it's probably not good that that directory isn't showing up in config.log
[15:15:23 CEST] <nettezzz> btw, if anybody replies my question I'd be very glad, if I'm capturing own sound with ``-f alsa -i default -c:a flac'' it sounds like it's captured by mic
[15:15:56 CEST] <mbarisa> furq: I guess, but have no idea why is that
[15:15:56 CEST] <nettezzz> so I can hear a hits to keyboard ... same with -f pulse .... I was checking other sources too (eg ffmpeg -sources)
[15:16:01 CEST] <mbarisa> i exported PKG_CONFIG_PATH
[15:16:03 CEST] <iive> well, probably because it is captured by mic
[15:16:10 CEST] <furq> i'm not sure how -c:a flac tmp/audio_out.wav is even working
[15:16:29 CEST] <nettezzz> iive: good .... it just records the sound, but from outside
[15:16:46 CEST] <furq> i doubt that's the problem but it should either be -c:a wav or audio_out.flac
[15:16:55 CEST] <nettezzz> yeah
[15:17:05 CEST] <nettezzz> but that's indeed not a problem
[15:17:22 CEST] <furq> i guess -i default is picking your mic
[15:17:52 CEST] <furq> https://trac.ffmpeg.org/wiki/Capture/ALSA#Selectingtheinputcard
[15:18:12 CEST] <nettezzz> ffmpeg -sources shows this: http://susepaste.org/view/raw/85701597
[15:18:29 CEST] <nettezzz> furq: ok, thanks for a link, just opening it
[15:19:55 CEST] <mbarisa> I added now .pc files where files from other libs are, because other libs like freetype or libass or libpng are in toolchain_android/lib/pkgconfig/
[15:21:18 CEST] <debianuser> nettezzz: Are you trying to capture whatever is playing now?
[15:21:47 CEST] <nettezzz> debianuser: ideally I'd like to capture just what goes through alsa/pulse pcm channel (so all without mic)
[15:22:05 CEST] <nettezzz> debianuser: and to your question - yes, exactly
[15:23:04 CEST] <nettezzz> debianuser: I just to fully record my desktop - video part is fine (even finer than I expected, quality is good and the cpu utilization low with the reasonably big file)
[15:23:05 CEST] <iive> there are some examples with snd-aloop at the end of the webpage from above.
[15:24:12 CEST] <debianuser> nettezzz: Ok, it's just there're many ways, depending on your audio system and hardware. You can manually connect it in jackd patchbay or select "Monitor" in `pavucontrol` if you have pulseaudio. For plain alsa you can use virtual snd-aloop "Loopback" card or your hardware card, if it supports loopback. Some hda-intel-based cards can be configured for hardware loopback. :)
[15:24:28 CEST] <nettezzz> debianuser: good, thanks
[15:24:41 CEST] <debianuser> nettezzz: Can you show show more details about your sound system? You can use alsa-info script: https://wiki.ubuntu.com/Audio/AlsaInfo it should automatically suggest you to upload your data and give you a link to it (you can run it as a regular user, it doesn't need root).
[15:24:42 CEST] <nettezzz> yeah, good tip
[15:25:06 CEST] <nettezzz> debianuser: I have just standard suse with pulseaudio, I can show ya aplay -L
[15:25:34 CEST] <nettezzz> debianuser: http://susepaste.org/view/raw/89338224
[15:27:24 CEST] <nettezzz> debianuser: I think that the answer to my question is in here https://trac.ffmpeg.org/wiki/Capture/ALSA#Selectingtheinputcard .... I consider it almost solved, I'll play with that for a while and will resolve that for sure
[15:28:34 CEST] Action: nettezzz brbs for meeting ... adiue for now !!!
[15:29:51 CEST] <debianuser> nettezzz: Actually, if you're using pulseaudio it's better to record it from default input (`ffmpeg -f alsa -i default ...`), but manually set that default input for ffmpeg in `pavucontrol` on "Recording" tab.
[15:38:38 CEST] <debianuser> nettezzz: or, if your ffmpeg was built with pulse support you can try using pulse directly (`ffmpeg -f pulse -i your-pulse-source-here ...`, see `pactl list sources` for the list), also see https://ffmpeg.org/ffmpeg-devices.html#pulse or https://trac.ffmpeg.org/wiki/Capture/Desktop
[15:39:05 CEST] <mbarisa> can someone help me? or is there a prebuilt ffmpeg for android with https support?
[17:10:43 CEST] <TwinTailed> JEEB: Hi, I am the annoying guy from yesterday, I came to annoy you today. boxdumper is failing to dump my mp4 file
[17:12:44 CEST] <TwinTailed> JEEB: Failed to dump box structure.
[17:20:17 CEST] <Paranoialmaniac> TwinTailed: then, the file is broken
[17:21:01 CEST] <TwinTailed> Paranoialmaniac: Is boxdumper supposed to output a dump file? Or just on screen text?
[17:22:14 CEST] <v4ult> I am struggling to work out which argument is invalid. please help? http://pastebin.com/0rwg499M
[17:22:22 CEST] <Paranoialmaniac> TwinTailed: stdout text
[17:23:17 CEST] <c_14> v4ult: [mp4 @ 0x7fb02a007800] Could not find tag for codec pcm_s24le in stream #0, codec not currently supported in container
[17:23:40 CEST] <c_14> If you want pcm in your output you'll have to use mov afair
[17:24:23 CEST] <TwinTailed> Paranoialmaniac: Do you know which ISO/IEC documentation has the packet structure for MP41?
[17:25:28 CEST] <Paranoialmaniac> packet structures are defined by the spec of encapsulation of each codec. not specific for mp41
[17:26:52 CEST] <Paranoialmaniac> if your question is specific for mpeg-4 codec, then the spec is 14496-14
[17:27:59 CEST] <TwinTailed> Paranoialmaniac: What is the best way to check the packets or the corruption in the MP4? Since its playing normally using VLC, but not with WMP
[17:29:27 CEST] <Paranoialmaniac> TwinTailed: first, you should confirm your file is mp4 or not. use ffprobe
[17:30:48 CEST] <TwinTailed> Paranoialmaniac: major_brand     : isom
[17:31:03 CEST] <TwinTailed>  Video: h264 (High) (avc1 / 0x31637661)
[17:31:11 CEST] <TwinTailed> Audio: aac (mp4a / 0x6134706D)
[17:31:39 CEST] <Paranoialmaniac> i wonder why boxdumper failed to dump
[17:32:11 CEST] <Paranoialmaniac> no dump at all?
[17:32:37 CEST] <TwinTailed> there is dump
[17:32:47 CEST] <TwinTailed> it stops at
[17:32:48 CEST] <TwinTailed>                                 [avcC: AVC Configuration Box]
[17:32:48 CEST] <TwinTailed>                                     position = 21792570
[17:32:48 CEST] <TwinTailed>                                     size = 8
[17:32:48 CEST] <TwinTailed> Failed to dump box structure.
[17:32:58 CEST] <TwinTailed> i will pastebin it
[17:33:07 CEST] <Paranoialmaniac> obviously, broken
[17:33:24 CEST] <TwinTailed> http://pastebin.com/njj1mUH9
[17:33:30 CEST] <Paranoialmaniac> the size of the avcC must not be 8
[17:34:57 CEST] <TwinTailed> I am just using Libav's demux/mux and decode/encode functions, its not like I am manually writing to the file
[17:35:03 CEST] <TwinTailed> why is it corrupting
[17:35:31 CEST] <Paranoialmaniac> at least major_brand has nothing to do with it i think
[17:35:44 CEST] <TwinTailed> might this warning be it?
[17:35:45 CEST] <TwinTailed> [mp4 @ 0036cfe0] track 1: codec frame size is not set
[17:38:19 CEST] <TwinTailed> Paranoialmaniac: What might the problem be?
[17:38:31 CEST] <Paranoialmaniac> dunno
[17:38:38 CEST] <Paranoialmaniac> the warning is related to audio
[17:42:20 CEST] <TwinTailed> Paranoialmaniac: Where can I find the packet structure? What is its ISO name?
[17:43:27 CEST] <Paranoialmaniac> you need 14496-1, 14496-3, 14496-12, 14496-14, 14496-15 for avc+aac-in-mp4
[17:44:42 CEST] <flux> twintailed, I think that error is probably fatal. so how do you generate the file?
[17:45:03 CEST] <TwinTailed> flux: its not fatal since its continuing normally
[17:45:18 CEST] <Paranoialmaniac> it's fatal
[17:45:36 CEST] <Paranoialmaniac> the file is completely broken
[17:46:35 CEST] <TwinTailed> it should be set with oCodecCtx->frame_size = iCodecCtx->frame_size?
[17:46:59 CEST] <flux> well, according to source file it then sets some vbr flag on and carries on, so perhaps it will work. but doesn't hurt to set it.
[17:47:02 CEST] <flux> twintailed, sounds reasonable
[17:47:20 CEST] <TwinTailed> flux: But it still doesn't work even with that code line
[17:47:49 CEST] <TwinTailed> the warning is still there
[17:48:25 CEST] <flux> twintailed, perhaps you don't copy codec extradata
[17:48:45 CEST] <flux> though I wonder why it fails to dump the box structure
[17:48:46 CEST] <TwinTailed> flux: I don't
[17:49:17 CEST] <flux> MP4Box of gpac can do MP4Box -v -diso foo.mp4, perhaps it will give more information
[17:49:22 CEST] <flux> or just plain old hex editor
[17:49:38 CEST] <TwinTailed> flux: how to copy extradata?
[17:50:28 CEST] <flux> twintailed, codecpar comes with field extradata and extradata_size
[17:50:40 CEST] <flux> make a copy of the data from the original codecpar you have
[17:50:48 CEST] <TwinTailed> i can't copy codecpar, mp4 failes, since it doesn't support codec_tag
[17:51:45 CEST] <TwinTailed> if you are meaning to use AVCodecParameter
[17:53:37 CEST] <flux> yes
[17:53:52 CEST] <Paranoialmaniac> ????
[17:53:58 CEST] <TwinTailed> tried copying extradata
[17:54:00 CEST] <TwinTailed> didn't work
[17:54:09 CEST] <flux> did it change the dump?
[17:54:49 CEST] <flux> maybe it was able to pass that aac configuration by some other means, meaning it might not have affected nothing. alternatively, it fixed something else that was broken ;)
[17:55:52 CEST] <TwinTailed> flux: ypu :)
[17:55:54 CEST] <TwinTailed> yup
[17:56:03 CEST] <TwinTailed> flux: WMP can play the file too, but just audio no video
[17:56:08 CEST] <TwinTailed> flux: Thanks :)
[17:56:21 CEST] <flux> great :)
[17:56:30 CEST] <flux> I guess you're missing the same for video then?
[17:57:05 CEST] <TwinTailed> flux: No did for the video
[17:57:33 CEST] <flux> twintailed, how about the dump?
[17:57:44 CEST] <TwinTailed> flux: works
[18:05:33 CEST] <TwinTailed> flux: Do you think I am missin something for the video to no work? Its just black screen with audio playing, thats just on WMP though, VLC works
[18:10:19 CEST] <pi_____> WMP has missing codec :)
[18:11:21 CEST] <TwinTailed> pi_____:problem not from my video?
[18:15:07 CEST] <TwinTailed> doubt that, it also doesn't work with QuickTime player
[18:36:09 CEST] <TwinTailed> Are there and codec properties that without them an mp4 (AVC + AAC) video would not work?
[18:36:27 CEST] <TwinTailed> on Windows media player, but on VLC it is working even now
[18:40:13 CEST] <mbarisa> hi guys, can anyone help me with ERROR: openssl not found when building ffmpeg with SSL for android
[18:40:21 CEST] <mbarisa> I cannot seem to solve it for days :)
[20:02:09 CEST] <persina> I'm trying to make a video out of images csci_1880_1890.png, csci_1881_1891.png, csci_1882_1892.png, etc.  using csci_%4d_%4d.png is not working?
[20:10:30 CEST] <DHE> doesn't work that way, only one instance of '%d' is allowed in the filename
[20:14:41 CEST] <persina> DHE: So I can't have two variable years in the filename?
[20:16:55 CEST] <DHE> pretty sure the answer is no...
[20:34:54 CEST] <flux> how it would end up with those filenames anyway?
[20:38:42 CEST] <persina> flux: What do you mean?
[20:39:55 CEST] <DHE> you'd need two different counters
[20:46:04 CEST] <flux> persina, even if it did support two %04d, it would logically end up with foo_0001_0001.png, foo_0002_0002.png etc
[20:46:30 CEST] <flux> persina, the solution is to create just foo_0001.png etc, and rename the files after running FFmpeg
[20:46:59 CEST] <persina> flux: OK thanks, got it.
[21:22:05 CEST] <persina> How do I make mp4 loop indefinitely?
[21:24:10 CEST] <Alexey__> AFAIK it can be done only at the player level; not at the format level
[21:24:32 CEST] <Alexey__> for example you can setup VLC to loop 1 or loop whole directory.
[21:24:36 CEST] <Alexey__> VLC media player
[21:45:33 CEST] <lavalike> hi, I have an mkv file with a video track of 43min1s, an audio track of the same length, but mediainfo shows Duration: 1h24m under General, I thought I could change that with mkvpropedit, but it can't, can I do it with ffmpeg?
[21:47:49 CEST] <kepstin> lavalike: well, you could try using ffmpeg in streamcopy mode to remux to a new mkv file, that might fix it. `ffmpeg -i original.mkv -map 0 -c copy new.mkv`
[21:50:00 CEST] <lavalike> kepstin: that's a good idea, I just tried, the files have different checksums but the duration is still wrong
[21:50:38 CEST] <lavalike> maybe I could tell ffmpeg to only copy up to 43m1s?
[21:51:04 CEST] <kepstin> hmm, could you pastebin the complete output of that ffmpeg command^^ that might have some explanation as to what happened.
[21:52:01 CEST] <lavalike> kepstin: sure thing
[21:53:18 CEST] <lavalike> kepstin: http://pastebin.com/raw/GAC8fcn5
[21:54:01 CEST] <kepstin> lavalike: well, it's pretty clear if you read that - your subtitle track is 1:24 long :)
[21:54:18 CEST] <lavalike> kepstin: geeze!
[21:54:32 CEST] <lavalike> now *that* I can fix with mkvthingamagij I believe
[21:55:04 CEST] <kepstin> I'm not sure if it'll work with streamcopy mode, but throwing a "-shortest" on that ffmpeg command might trim the subs for you.
[21:55:28 CEST] <lavalike> worth a try
[21:55:42 CEST] <lavalike> nope.
[21:57:59 CEST] <kepstin> hmm, might work if you "transcode" the subtitles by adding e.g. "-c:s subrip" (or "-c:s ass")
[21:59:04 CEST] <lavalike> does it mattere where I add those two options in the command line?
[21:59:22 CEST] <kepstin> yes. they have to be after the input file and before the output file
[21:59:32 CEST] <lavalike> ok so that I did correctly, no dice
[21:59:35 CEST] <kepstin> the "-c:s" option has to be after the "-c" option
[22:00:24 CEST] <lavalike> at the very least -map -0:s does fix it, getting rid of the subtitles
[22:00:35 CEST] <lavalike> that is good enough, thank you for the creativity kepstin :)
[22:03:01 CEST] <SouLShocK> when targeting multiple outputs, is it possible to make ffmpeg encode each output in parallel, so they don't affect each other's performance? I'm trying to target 2xmp3 and 2xaac at the same time
[22:03:03 CEST] <mbarisa> exit
[22:04:02 CEST] <SouLShocK> and since encoding 1 mp3 output takes about 10% cpu I figure I can run multiple
[22:05:02 CEST] <BtbN> just run ffmpeg multiple times
[22:05:15 CEST] <BtbN> ffmpeg is single threaded.
[22:05:23 CEST] <SouLShocK> ok
[22:05:29 CEST] <BtbN> so even when using multiple encoders, they will be run in sequence
[22:06:03 CEST] <SouLShocK> yeah ok. multiple ffmpeg processes is the answer
[22:08:21 CEST] <SouLShocK> cheer
[22:08:24 CEST] <SouLShocK> cheers
[22:08:59 CEST] <TwinTailed> [libav] Windows Media Player only plays the audio of my .mp4 file, video is just a black screen, however it works on VLC and Classic Media Player
[22:10:18 CEST] <technologov> TwinTailed, please check which codec do you use. It can be MPEG-4 or MPEG-4-AVC or HEVC or anything else...
[22:10:34 CEST] <TwinTailed> technologov: its avc
[22:10:35 CEST] <technologov> in VLC; Tools menu->codec information
[22:10:44 CEST] <technologov> which Windows is it ?
[22:10:52 CEST] <technologov> XP/7/10 ?
[22:10:56 CEST] <TwinTailed> 8.1
[22:11:09 CEST] <TwinTailed> Codec: H264 - MPEG-4 AVC (part 10) (avc1)
[22:11:14 CEST] <technologov> hmmm... 7+ supports MPEG-4-AVC out-of-the-box, really.
[22:11:29 CEST] <TwinTailed> i know that, its probably a problem in my code
[22:11:51 CEST] <TwinTailed> might i have forgotten a property i should set in codec context
[22:12:54 CEST] <technologov> TwinTailed, try on a clean Windows 7 (another PC or VirtualBox)
[22:13:16 CEST] <technologov> maybe you have bad video drivers or broken codec
[22:13:31 CEST] <technologov> it should not happen, but anything *can* happen
[22:13:32 CEST] <TwinTailed> why cant it be a problem with my code?
[22:13:58 CEST] <technologov> I dunno, but everything of MPEG-4-AVC variety works like a charm on my Win7 systems.
[22:14:52 CEST] <JEEB> it's his code failing at life
[22:16:02 CEST] <TwinTailed> JEEB: and JEEB here will help me fix it
[22:16:34 CEST] <JEEB> I have patches to send to FFmpeg instead :P
[22:16:52 CEST] <TwinTailed> JEEB: patches can wait :D
[22:17:00 CEST] <TwinTailed> JEEB: I can't catch you online everyday
[22:17:01 CEST] <JEEB> so if someone wants to fix your code for you, they can feel free to do that
[22:17:12 CEST] <TwinTailed> you "help" me fix it
[22:17:38 CEST] <TwinTailed> about the problem from yesterday, I have fixed it by copying extradata and extradata_size to the codec context
[22:18:02 CEST] <TwinTailed> Windows media player can now play my video file, but the video itself doesn't show, only audio plays
[22:18:43 CEST] <JEEB> post an `ffprobe file.mp4` of your output onto a pastebin-like site of your choice
[22:18:46 CEST] <JEEB> and then link here
[22:23:02 CEST] <TwinTailed> JEEB: http://pastebin.com/VtLdAhrf
[22:23:50 CEST] <JEEB> TwinTailed: now with "-v debug" before the file name
[22:24:45 CEST] <TwinTailed> JEEB: Is there an option to output to file?
[22:25:09 CEST] <JEEB> 2> file.txt
[22:25:15 CEST] <JEEB> at the end of your command line
[22:26:49 CEST] <TwinTailed> thats using bash, im on windows now
[22:27:02 CEST] <JEEB> that works with cmd.exe
[22:29:13 CEST] <TwinTailed> JEEB: pastebin is under "heavy load" -_-
[22:29:55 CEST] <JEEB> use github's gists or any other of the over 9000 alternatives
[22:31:20 CEST] <TwinTailed> JEEB: http://pastebin.com/4cYhHwdM
[22:41:36 CEST] <TwinTailed> JEEB: Does the ffprobe give any hints?
[22:57:16 CEST] <ss22ever22> Hi,I am a newbie and want to know how to get started
[22:57:52 CEST] <TwinTailed> JEEB: Did the log help?
[23:12:28 CEST] <TwinTailed> JEEB, still there?
[23:22:29 CEST] <mbarisa> hey guys, now after adding openssl, it cannot LINK EXECUTABLE, missing libssl.so.1.0.0
[23:22:40 CEST] <mbarisa> can't i wrap it inside my binary?
[23:38:13 CEST] <DHE> not in .so format. you need the .a to do that
[23:49:02 CEST] <mbarisa> DHE: I have *.a as well, but have no idea how to add
[00:00:00 CEST] --- Tue Sep 27 2016


More information about the Ffmpeg-devel-irc mailing list