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

burek burek021 at gmail.com
Thu May 19 02:05:01 CEST 2016


[00:08:50 CEST] <DelphiWorld> 'lo guys
[00:08:53 CEST] Action: DelphiWorld is back
[00:09:02 CEST] <DelphiWorld> someone help me with libmfx please?
[00:09:46 CEST] <jkqxz> 21:01 < jkqxz> DelphiWorld:  Can you find the libmfx.pc file somewhere?  (In /usr/lib/pkgconfig?)
[00:09:58 CEST] <jkqxz> 21:03 < jkqxz> Or, if you just want quicksync without all the funny libmfx extra stuff, use vaapi instead...
[00:10:02 CEST] <DelphiWorld> jkqxz: yeah, its there
[00:10:15 CEST] <DelphiWorld> jkqxz: how to use vaapi?
[00:11:25 CEST] <jkqxz> Hmm.  If the pkg-config file is definitely there, look in config.log and find the actual error.
[00:13:20 CEST] Action: DelphiWorld will pb config.log, jkqxz
[00:14:09 CEST] <spoon> Hi, I am trying to configure an H264 AVCodecContext with the correct parameters
[00:14:21 CEST] <spoon> I have profile_idc profile_iop level_idc
[00:14:37 CEST] <spoon> these come from SDP profile-level-id
[00:14:52 CEST] <spoon> any idea how these correspond to parameters in AVCodecContext for H264
[00:15:04 CEST] <spoon> I've been trying to follow the code in ffmpeg but it is somewhat confusing
[00:15:34 CEST] <spoon> My understanding is they refer to Baseline Main Extended in some way
[00:15:53 CEST] Action: DelphiWorld shoot jkqxz with a banana ;)
[00:18:35 CEST] <DelphiWorld> jkqxz: http://paste.debian.net/
[00:20:35 CEST] <jkqxz> spoon:  profile_idc goes in AVCodecContext.profile, level_idc goes in AVCodecContext.level.  profile_iop is the constraint_set flags, which are trickier - try ignoring them and see if it works?
[00:21:19 CEST] <DelphiWorld> strange, vp8 can also be accelerated?
[00:21:22 CEST] <jkqxz> DelphiWorld:  Useless link is useless.
[00:21:38 CEST] <DelphiWorld> jkqxz: why useless? that's my config.log
[00:22:14 CEST] <jkqxz> It's the front page of paste.debian.net, not to your paste on it.
[00:22:27 CEST] <DelphiWorld> jkqxz: i am sory buddy..., hold on
[00:22:39 CEST] <DelphiWorld> jkqxz: remember i'm a blind user relying on text to speech... so stupid me
[00:23:01 CEST] <spoon> thanks jkqxz
[00:23:06 CEST] <spoon> It works if I ignore all of them!
[00:23:11 CEST] <spoon> but I want to be precise
[00:23:21 CEST] <spoon> Because I am supported a variety of devices from lots of manufacturers
[00:23:41 CEST] <spoon> I only have 6 to test at the moment
[00:25:29 CEST] <DelphiWorld> jkqxz: dont you know any curl based pb? so i curl you the log?
[00:25:32 CEST] <DelphiWorld> it look like it's so big
[00:26:43 CEST] <jkqxz> spoon:  The only one which sensibly matters here is constraint_set1_flag (i.e. constrained baseline, which ~all SIP videoconferencing stuff uses).  ffmpeg/libx264 doesn't obviously connect that together nicely, so you might have to hack a bit.
[00:28:02 CEST] <spoon> ok
[00:28:34 CEST] <DelphiWorld> jkqxz: using h264_vaapi getting:
[00:28:35 CEST] <jkqxz> DelphiWorld:  <http://sprunge.us/> is generally sensible.  Though, you probably only want the last bit of the file - the error should be near the end because it gives up after failing.
[00:28:50 CEST] <DelphiWorld> Impossible to convert between the formats supported by the filter 'scaler for output stream 0:0' and the filter 'auto-inserted scaler 0'                        . Error opening filters!
[00:31:18 CEST] <jkqxz> DelphiWorld:  h264_vaapi is kindof tricky to use, because of the format constraints.  Detailed instructions are here: <https://wiki.libav.org/Hardware/vaapi>.
[00:32:05 CEST] <DelphiWorld> jkqxz, log: http://sprunge.us/eWgG
[00:33:39 CEST] <jkqxz> Contains "<-".  Bad escaping on your command line?
[00:36:20 CEST] <DelphiWorld> using this cmd: ffmpeg -vaapi_device /dev/dri/renderD128 -i Elecard_about_Tomsk_part2_HEVC_1080p.mp4 -an -vf 'format=nv12,hwupload' -c:v h264_vaapi output.mp4
[00:36:25 CEST] <DelphiWorld> but getting device not found
[00:38:44 CEST] <DelphiWorld> strange. vaapi require you to specify device
[00:38:56 CEST] <jkqxz> If you are in X, try "-vaapi_device :0" first.  If that doesn't work, try other things in /dev/dri/ (it might be renderD<another number>, if you have multiple graphics devices).
[00:39:25 CEST] <DelphiWorld> i dont use any X11..., jkqxz
[00:39:28 CEST] <DelphiWorld> all in shell
[00:41:17 CEST] <jkqxz> The second part, then.  What do you have in /dev/dri?
[00:41:44 CEST] <DelphiWorld> card0
[00:41:50 CEST] <DelphiWorld> controlD64
[00:42:35 CEST] <jkqxz> Try /dev/dri/card0.
[00:42:57 CEST] <DelphiWorld> tryed. failed to open
[00:43:23 CEST] <DelphiWorld> getting can't open x11 display
[00:43:28 CEST] <jkqxz> Does your user have permission to open it?
[00:43:34 CEST] <DelphiWorld> and yay i dont want to set up any x2
[00:43:36 CEST] <DelphiWorld> x11/
[00:43:43 CEST] <DelphiWorld> so libmfx should be prefaired
[00:43:56 CEST] <DelphiWorld> jkqxz: permition..., i'm on (ROOT) ;)
[00:44:12 CEST] <jkqxz> You get that error because it doesn't know which sort of device it is, so it tries to open it as an X11 display first.  If you don't get another error after that, then maybe it worked?
[00:44:40 CEST] <DelphiWorld> maybe?
[00:44:41 CEST] <DelphiWorld> hold on
[00:45:03 CEST] <DelphiWorld> no..., can't open drm device
[00:45:34 CEST] <jkqxz> (The open failure is just a warning unless you get "No VA display found" at the end of it.)
[00:46:38 CEST] <jkqxz> Odd.  Can you paste the output somewhere?
[00:46:54 CEST] <DelphiWorld> getting failed to initialise connection... unknowne libva error
[00:47:11 CEST] <jkqxz> Oh.  Do you have the libva intel driver installed?
[00:48:01 CEST] <DelphiWorld> jkqxz: va log: http://paste.debian.net/686965/
[00:48:02 CEST] <jkqxz> (Does "vainfo" give you a list of stuff including VAProfileH264something / VAEntrypointEncSlice?)
[00:49:27 CEST] <jkqxz> Oh, ouch.  It's using the driver from the Intel Media SDK, which doesn't work with vaapi - you need the open-source i965 driver (they are inconveniently mutually exclusive).
[00:49:43 CEST] <DelphiWorld> crapyyyyyyyyyyy!
[00:49:59 CEST] <DelphiWorld> but ... jkqxz, would i need to always specify that device?
[00:50:08 CEST] <DelphiWorld> can i use it to transcode several vid at the same time?
[00:51:20 CEST] <jkqxz> Yeah, you can do multiple transcodes at the same time using the same device.
[00:51:35 CEST] <DelphiWorld> jkqxz: hold on please, rebooting that shit pc...
[00:54:59 CEST] Action: DelphiWorld back
[00:55:08 CEST] <DelphiWorld> jkqxz: so where should i get that vaapi driver?
[01:01:21 CEST] <DelphiWorld> jkqxz, did you found any error in my log?
[01:02:25 CEST] <DelphiWorld> getting lot of undefined references to dll*
[01:08:55 CEST] <jkqxz> DelphiWorld:  You can use a specific libva driver by setting the environment variable "LIBVA_DRIVER_NAME".  Try "LIBVA_DRIVER_NAME=i965 ffmpeg ...".
[01:09:23 CEST] <DelphiWorld> ... lol... i am lost ;)
[01:14:56 CEST] <DelphiWorld> jkqxz: ffmpeg LIBVA_DRIVER_NAME=i965 -vaapi_device /dev/dri/controlD64 -i Elecard_about_Tomsk_part2_HEVC_1080p.mp4 -an -vf 'format=nv12,hwupload' -c:v h264_vaapi output.mp4
[01:15:02 CEST] <DelphiWorld> getting va driver null
[01:17:06 CEST] <jkqxz> LIBVA_DRIVER_NAME=i965 before ffmpeg.  It's an environment variable, not an argument to ffmpeg.
[01:17:29 CEST] <DelphiWorld> LIBVA_DRIVER_NAME=i965 ffmpeg -vaapi_device /dev/dri/controlD64 -i Elecard_about_Tomsk_part2_HEVC_1080p.mp4 -an -vf 'format=nv12,hwupload' -c:v h264_vaapi output.mp4
[01:17:31 CEST] <DelphiWorld> good now?
[01:18:11 CEST] <jkqxz> Better.
[01:18:25 CEST] <jkqxz> (No idea whether using the DRI control node actually works, though.)
[01:18:33 CEST] <DelphiWorld> ok, this
[01:18:35 CEST] <DelphiWorld> LIBVA_DRIVER_NAME=i965 ffmpeg -vaapi_device /dev/dri/card0 -i Elecard_about_Tomsk_part2_HEVC_1080p.mp4 -an -vf 'format=nv12,hwupload' -c:v h264_vaapi output.mp4
[01:18:41 CEST] <DelphiWorld> but it look its still using the intel!
[01:19:44 CEST] <DelphiWorld> still -1 unknowne libva error
[01:23:05 CEST] <jkqxz> At a guess the Intel Media SDK stuff is interfering somehow.  I don't know how to fix it; it works immediately for me, but I don't have the proprietary opaque thing installed to mess with it.
[01:23:33 CEST] <DelphiWorld> jkqxz: regardless. do you have any workarround for my mfx linking issue please?
[01:23:43 CEST] <DelphiWorld> i'm working on it for 8 ours now :(
[01:26:07 CEST] <DelphiWorld> it's a flags issue i think
[01:30:56 CEST] <Mortix> hello, i got a 1920 x 1080 (16:9) video clip and i'm looking to change the resolution/aspect to fit my 24:9 car's screen, any suggestions how to do it with keeping the quality of the video and audio much as possible?
[01:39:17 CEST] <DHE> your car player should auto-blackbar the image. does it?
[01:50:40 CEST] <Mortix> DHE, humm i found videos on youtube in resolution of 24:9
[01:50:47 CEST] <Mortix> and no blackbar
[01:51:08 CEST] <Mortix> 1920 x 804 for example
[01:51:26 CEST] <Mortix> 1280 x 540 too
[01:53:56 CEST] <drv> you only really have three options: black bars, stretch the image, or chop off parts of the image
[01:57:47 CEST] <DelphiWorld__> :P
[01:58:16 CEST] <DelphiWorld> jkqxz: i got a static FFMpeg build with qsv but...
[01:58:45 CEST] <DelphiWorld> can't initialise MFX session
[01:59:02 CEST] <DelphiWorld> [h264_qsv @ 0x5c133c0] Error initializing an internal MFX session
[02:16:40 CEST] <gmh> Will changing container from mp4 to mkv be losless / not mess up aac bitstream etc?
[02:18:15 CEST] <gmh> I think I answered that myself. Changing container .. shouldn't affect anything (still want it confirmed though). On to the next part then. How would I go about doing that using ffmpeg?
[02:18:30 CEST] <dsl42> not if you tell ffmpeg to copy the streams
[02:19:36 CEST] <gmh> I am really new to this. My experience is limited to downloading pre-compiled ffmpeg after youtube-dl told me too :P
[02:20:07 CEST] <gmh> I did some googling, but ppl seem more interested in changing from mkv to mp4 for some reason.
[02:20:23 CEST] <gmh> Same command just reverse input and output?
[02:20:57 CEST] <dsl42> ffmpeg -i input.mp4 -c copy output.mkv
[02:21:05 CEST] <dsl42> might work
[02:22:15 CEST] <gmh> I'll backup my shit and mess around a bit. Maybe ffmpeg -i old_video.mp4 -vcodec copy -acodec copy new_video.mkv?
[02:25:54 CEST] <dsl42> should give the same output, since -c copy copies all codecs in your container, afaik
[02:26:24 CEST] <gmh> Ah yes, as I said really noob when it comes to this.
[02:27:47 CEST] <gmh> I see overall bitrate changes from 1 289 kbps to 1 287 kbps and size from 46.3 MiB to 46.2 MiB. I cannot see or hear any diffrence, but then again I was born blind so I am probably not the one who should do quality control :P
[02:28:32 CEST] <DHE> the main give-away should be that the operation takes like 3 seconds. video transcoding isn't very fast
[02:29:06 CEST] <dsl42> uh yeah, pretty sure it did not encoded any stream
[02:29:56 CEST] <dsl42> *encode
[02:30:24 CEST] <gmh> Yeah it was less than 3 sec. It says Press Q to cancel but you can't read that sentence before it is done.
[02:31:15 CEST] <gmh> Well I guess that answered all my questions for now. Not really sure why I would go with mkv over mp4 to be honest. Habbit I guess, maybe a portion of OCD :p
[02:31:19 CEST] <gmh> Thanks alot m8s :)
[02:31:35 CEST] <klaxa> the bitrate change is probably because the matroska container has less overhead than the mp4 container
[02:33:23 CEST] <DHE> yeah, bitrate is just bytes written divided by file duration. it's not specific to any stream. besides, which stream do you report on?
[02:33:30 CEST] <dsl42> in general mkv is superior, if you want compatibility you use mp4
[02:33:33 CEST] <dsl42> imo
[02:33:49 CEST] <gmh> Well I read somewhere that you had to correct for the overhead. It think it was in refrence to the AAC bitstream. Well I think it said something like that. Been doing quite alot of reading on subjects where I understand close to nothing so me re-telling it may be inaccurate.
[02:33:52 CEST] <DHE> and if you want live streaming you use mpegts unless the protocol calls for something else (eg: rtmp)
[02:34:19 CEST] <DHE> gmh: if you're dealing with bandwidth-constrained streaming, yes. if you're saving to disk for a media center it usually doesn't matter that much
[02:34:52 CEST] <DHE> streaming usually favours predictability and consistency
[02:34:55 CEST] <gmh> Source is stream, but I am saving for disk yes.
[02:36:01 CEST] <gmh> ffmpeg did correct malformed aac bitstream when saving to .mp4 so changing it to .mkv should affect it?
[02:38:01 CEST] <DHE> I don't think it matters
[02:39:30 CEST] <gmh> Well, thanks again :)
[04:52:38 CEST] <ploop> is there a way to burn in a particular subtitle track of an mkv?
[05:08:06 CEST] <thebombzen> ploop: if you're talking about hardcoding a subtitle into the video stream
[05:08:13 CEST] <ploop> yes
[05:08:18 CEST] <thebombzen> you can do ffmpeg -i input.mkv -vf subtitles=input.mkv
[05:08:35 CEST] <thebombzen> that'll read the ASS stream and the font attachments. careful with seeking with -ss though. it doesn't work well with that.
[05:08:47 CEST] <ploop> how can I choose which subtitle track from the mkv though?
[05:09:08 CEST] <thebombzen> I don't know. I'd try reading ffmpeg-filters#subtitles
[05:09:26 CEST] <ploop> all right. thanks
[05:09:29 CEST] <thebombzen> ah
[05:09:36 CEST] <thebombzen> so apparently the subtitles filter has a stream_index option
[05:18:26 CEST] <ploop> thebombzen: it's giving me "No such filter: 'subtitles'", is this because it was compiled without something it needs?
[05:19:07 CEST] <thebombzen> I don't know
[05:19:10 CEST] <thebombzen> try ffmpeg -filters
[05:19:12 CEST] <thebombzen> https://ffmpeg.org/ffmpeg-filters.html#subtitles
[05:19:39 CEST] <ploop> -filters doesn't list subtitles
[05:28:49 CEST] <thebombzen> ploop: try recompiling ffmpeg with the subtitles filter
[05:28:57 CEST] <thebombzen> you probably need to run --enable-libass
[05:29:51 CEST] <ploop> thebombzen: I tried on a different machine with the subtitles filter and it gives me: Error initializing filter 'subtitles' with args ''
[05:30:02 CEST] <ploop> even though I give it subtitles=file:si=1
[05:39:25 CEST] <vbtang> i have some question about recording screen on windows
[05:40:36 CEST] <vbtang> is anybody online?
[05:49:43 CEST] <thebombzen> ploop: you have to do subtiltes=filename=input.mkv:si=1
[05:50:03 CEST] <thebombzen> where input.mkv is the input file
[05:50:30 CEST] <ploop> aah
[05:50:41 CEST] <ploop> but now it's saying Error initializing filter 'subtitles' with args 'filename='
[05:50:51 CEST] <ploop> it's like it just ignores whatever I put for the file
[05:50:53 CEST] <thebombzen> can you paste the command line and full output?
[05:51:00 CEST] <thebombzen> to a paste site like pastebin.com
[05:54:47 CEST] <ploop> thebombzen: oh, it seems to be related to the brackets in the filename, I renamed the input file to not contain brackets and now it seems to work fine
[05:55:07 CEST] <thebombzen> ploop: I have special characters in filenames :P
[05:55:15 CEST] <thebombzen> you can try using \[ and \] if necessary.
[05:55:32 CEST] <ploop> in addition to shell escapes you mean?
[05:55:33 CEST] <thebombzen> make sure you put the entire filter in single quotes '' in order to prevent any shell shenanigans
[05:55:34 CEST] <ploop> so \\\[
[05:55:50 CEST] <thebombzen> inside single quotes, the shell won't escape anything except '
[05:56:04 CEST] <thebombzen> I think except \'. maybe not even that.
[05:56:25 CEST] <thebombzen> so if you type echo '\[\]' it will print \[\] to the command line
[06:33:29 CEST] <kepstin> yeah, single quotes are fun. you literally can't escape anything in them, not even a '
[06:33:57 CEST] <kepstin> so to put a ' in the middle of a single-quoted string, you need to do something like 'they'\''ll'
[06:37:34 CEST] <jadsonwelder> Friend, I'm from Brazil and I need someone to mount a FFmpeg Server Live Transcoder MPEG DASH with Adaptive Bit Rate. If so I am willing to pay for the service. Can someone help me? What you Skype ID?  Thank you!  Jadson Welder Skype: jadsonwelder
[06:41:00 CEST] Last message repeated 1 time(s).
[06:41:19 CEST] <jadsonwelder> Hello
[06:42:00 CEST] Last message repeated 1 time(s).
[07:02:35 CEST] <vbtang> using VS2010 in Win7 x64, ffmpeg 2.4.5, i download a demo to record my screen(with audio record ).  i modified the program so that it can work in 3 threads. but  every time i close the thread i found it have about 40MB memory remained. (every time i start->close thread, memory occupancy increases 40MB)  but the VS didn't detect any memory leak. i'm a newcomer to ffmpeg, i wonder if there are any resoures i didn't free? ps. i run the 
[07:03:03 CEST] <vbtang> ps. i run the demo step by step, and i found it has the same problem, until it quit the main function, it still have  40MB memory occupancy. And i found the memory increase obviously in the screen capture thread,but when it increased to about 100MB, it won't increase, tben i quit the program, it will have 40MB memory left. i fell confused.
[07:21:12 CEST] <Ffmpeg-lover> I wish to receive the rtp stream in my custom made  media player in C.
[07:21:57 CEST] <Ffmpeg-lover> Plz guide me on which API to use to handle rtp stream
[07:22:28 CEST] <Ffmpeg-lover> Perhaps, any links to tutorials will be really good
[07:55:11 CEST] <sasos90> any ffmpeg expert here?
[10:15:02 CEST] <Fyr> guys, how do I check the video file I got?
[10:15:59 CEST] <Fyr> will
[10:15:59 CEST] <Fyr> $ ffmpeg -i file.m2ts -f rawvideo -y /dev/null
[10:15:59 CEST] <Fyr> reconvert the video and in the end tell if the file ok?
[10:18:16 CEST] <sasos90> hey guys! how can I use overlay and amix in the same filter_complex command?
[10:23:15 CEST] <furq> sasos90: if those are the only two filters you want then just use -vf and -af
[10:29:49 CEST] <sagax> hi all!
[10:30:26 CEST] <Fyr> hi!
[10:31:05 CEST] <sagax> how i could custom index.html in "Stream format status" ?
[10:31:12 CEST] <sagax> this is ffserver part
[10:31:31 CEST] <sagax> http://ffmpeg.org/ffserver-all.html#Status-stream
[10:32:37 CEST] <sagax> i don't found how to changing index.html for my self
[10:39:59 CEST] <DHE> ffserver is considered unmaintained and broken. you're strongly encouraged to find something else. like maybe nginx-rtmp ?
[10:43:49 CEST] <sagax_> well
[10:46:16 CEST] <Fyr> oh
[10:46:16 CEST] <sagax_> crazy
[11:31:19 CEST] <RedNifre> Hi. I would like to use ffmpeg with libfdk_aac. I found various outdated guides indicating that you have to compile it, but the guides differ and are contested. Is there an official tutorial for getting libfdk_aac to work on Ubuntu 16.04?
[11:33:58 CEST] <Fyr> RedNifre, look through the ffmpeg wiki.
[11:34:17 CEST] <Fyr> it contains a guide for Ubuntu.
[11:37:33 CEST] <RedNifre> Thanks. I only found a guide for Centos, but I'll look again. Brb.
[11:41:38 CEST] <Fyr> RedNifre, Compilation Guide->Ubuntu
[11:41:39 CEST] <Fyr> https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu
[11:42:01 CEST] <RedNifre> Thanks, I found it (The search function worked terrible, but the wiki start page is well structured so I found it there).
[11:43:04 CEST] <RedNifre> The way I understand it there is no "one size fits all" command, I have to pick and choose which of those command batches I have to copy & paste into my terminal, huh?
[11:43:41 CEST] <Fyr> looks like
[13:35:57 CEST] <DHE> RedNifre: basically. you should see the horror that is my configure line. but loosely speaking compile with "--enable-nonfree --enable-libfdk-aac" and check the output of configure to make sure the codec is actually listed
[13:38:50 CEST] <hababam> hi, has anyone got any experiece with blackmagix declink dsk on linux
[13:38:57 CEST] <hababam> and how to compile it into ffmpeg
[13:39:34 CEST] <hababam> i looked on several forums, and everybody says there are compield versions available
[13:39:41 CEST] <hababam> execpt i cant find them
[13:50:25 CEST] <RedNifre> DHE I compiled it as specified on the wiki page, which includes both options. But how do I "check the output of configure"?
[13:52:28 CEST] <RedNifre> Ah, looks like it might have worked, libfdk_aac seems to do something in my freshly compiled version.
[13:52:37 CEST] <DHE> when configure finishes it dumps a huge listing of all the enabled features. I guess go to the "encoders" section and search for libfdk_aac? It's in alphabetical order
[14:03:48 CEST] <SleepyPikachu> I'm trying to create a video slideshow where each image in the *.jpg set shows for 10s on a loop that is as long as an back track mp3. http://pastebin.com/6bFubWAW Produces what I want but each image shows for 1 frame. How can I make it show for 10s?
[14:05:15 CEST] <DHE> try prefixing the command with "-r 0.1"
[14:05:30 CEST] <DHE> set the input framerate to 0.1 fps (or 10 seconds per frame)
[14:05:53 CEST] <DHE> further tweaks may be needed. keyframes will be an issue.
[14:09:03 CEST] <SleepyPikachu> Thanks :-) VLC did not like that video very much, I think you're right about the keyframes.
[14:09:26 CEST] <SleepyPikachu> I got the audio but there was no video
[16:00:14 CEST] <hababam> I am trying to compile ffmpeg. but it fails says i should sent -fPIC tag. But where in the command do i place it?
[16:03:37 CEST] <jkqxz> Add "--enable-pic" to your configure arguments.
[16:04:12 CEST] <hababam> should that be enabled or disabled?
[16:06:02 CEST] <jkqxz> What do you mean?
[16:07:23 CEST] <hababam> should i enable it for -fPIC
[16:08:15 CEST] <jkqxz> Pass "--enable-pic" to configure and everything will be built with -fPIC.
[16:21:40 CEST] <OmegaVVeapon> Anyone know how to create a looped UDP feed when one of the streams is a subtitle stream?
[16:22:16 CEST] <OmegaVVeapon> I managed to get the audio and video streams to loop perfectly for an entire day, but the subtitle one fails after the first loop with
[16:22:20 CEST] <OmegaVVeapon> "[mpegts @ 0x552da40] Application provided invalid, non monotonically increasing dts to muxer in stream 2: 63327600 >= 61079040"
[16:23:23 CEST] <hababam> Are you using an -c copy?
[16:23:36 CEST] <OmegaVVeapon> yeah
[16:23:42 CEST] <OmegaVVeapon> sec, I'll paste my whole command
[16:23:48 CEST] <hababam> Thanks
[16:23:58 CEST] <OmegaVVeapon> ffmpeg -re -stream_loop -1 -i /opt/myvideo.ts -f mpegts -c copy udp://239.69.69.69:5678?pkt_size=188&buffer_size=16777216
[16:24:23 CEST] <OmegaVVeapon> that one works fine for a whole 24 hours+
[16:24:31 CEST] <OmegaVVeapon> but if I add a "-map 0"
[16:24:40 CEST] <OmegaVVeapon> to throw the subtitle stream into the mix
[16:24:43 CEST] <OmegaVVeapon> I get the error
[16:24:55 CEST] <OmegaVVeapon> Stream 2 = "Stream #0:2[0x102](und,swe,nor,dan,fin,swe,nor,dan,fin): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)"
[16:25:39 CEST] <hababam> I am actually suprised you got the loop working in the first place:P We just got around by building a script that loops the command
[16:25:50 CEST] <hababam> We got all kinds of pts errors
[16:26:51 CEST] <OmegaVVeapon> haha, I thought about doing that too :P
[16:27:00 CEST] <OmegaVVeapon> but I was like "nah... there's gotta be a better way..."
[16:27:19 CEST] <OmegaVVeapon> that "-stream_loop -1" option is pretty cool
[16:27:27 CEST] <hababam> We got all sorts of forum posts that it was not working because of timing issues
[16:27:40 CEST] <hababam> I wil have to try that
[16:28:19 CEST] <OmegaVVeapon> Yeah, looks solid. Mind you, I left it running before leaving the office yesterday and I checked it this morning and everything still looks in sync
[16:28:30 CEST] <OmegaVVeapon> not sure if it would remain stable over a longer period of time
[16:28:35 CEST] <OmegaVVeapon> say, a week
[16:28:41 CEST] <OmegaVVeapon> but I'd assume so
[16:29:00 CEST] <hababam> We are only looking at 24H max so its not that big a deal for us
[16:29:19 CEST] <OmegaVVeapon> ah, then I'd say you should be good
[16:29:56 CEST] <hababam> @jxqxz We tried recompiling but it is giving us the same error: recompile with -fpic
[16:31:39 CEST] <jkqxz> hababam:  If you run "make V=1 ..." after that configure, is -fPIC actually on all of the compile lines?
[16:32:21 CEST] <hababam> Can you give an example of what you mean?
[16:33:37 CEST] <jkqxz> ./configure --enable-pic <other stuff> ; make V=1
[16:33:50 CEST] <jkqxz> Look at output of the second command.  Is -fPIC on all of the compile lines?
[16:34:02 CEST] <hababam> we have the command minus the v=1
[16:35:59 CEST] <hababam> http://pastebin.com/0LF7RW22
[16:36:08 CEST] <hababam> This the configure script
[16:50:39 CEST] <hababam> Anybody ^.^ ?
[17:13:36 CEST] <OmegaVVeapon> Ok, apparently the issue I'm having with looping DVB subtitles is currently open in https://trac.ffmpeg.org/ticket/4450 :(
[17:15:12 CEST] <OmegaVVeapon> If anyone has tried the same use case and knows of a workaround, I'll buy you a beer :P
[18:44:11 CEST] <Sashmo> does anyone have a suggestion on what I could use to overlay a twitter live feed on top of my video stream?  I was thinking to use SWF with some hooks into JSON, but I see limitations in the SWF and FFMPEG with alpha channels/transperencies.... any other ideas?
[18:53:16 CEST] <DHE> I use x11grab against a $BROWSER window and overlay
[18:55:08 CEST] <Sashmo> DHE: I was thinking that, but if I want to have some nice transparency or some dynamic videos and such, it wont look as nice.
[19:04:00 CEST] <maxcnc> hi from Germany i got a old DVD that has the menue on the first VTS_01_1.VOB
[19:04:34 CEST] <maxcnc> when i try to get the video out like  ffmpeg -threads 2 -ss 00:00:10 -i VTS_01_1.VOB -t 00:05:00 -vcodec mpeg2video -b 2000000 -acodec mp2 -ab 128 -ar 44100 test.ts
[19:04:42 CEST] <maxcnc> ig ive me a error
[19:04:50 CEST] <maxcnc> VTS_01_1.VOB: Invalid data found when processing input
[19:05:19 CEST] <furq> fwiw that's not extracting the video, that's reencoding it
[19:05:24 CEST] <maxcnc> is there a way i can get rid of the first 10sec of the vob  file
[19:05:42 CEST] <furq> but ffmpeg is generally not great at processing dvds
[19:06:04 CEST] <furq> use something like makemkv or pgcdemux if you want an individual pgc
[19:06:08 CEST] <maxcnc> some ide on how  all other VOB
[19:06:39 CEST] <furq> i don't know any command-line tool which does it sadly
[19:06:41 CEST] <maxcnc> are ok
[19:06:54 CEST] <furq> hopefully someone else does because i'd rather not have to use makemkv
[19:09:07 CEST] <maxcnc> Thanks
[19:26:47 CEST] Action: kepstin sometimes uses dvdbackup, but it's a bit painful to use
[19:27:23 CEST] <kepstin> I assume there's probably a title or chapter starting at the start of the real video, so  dvdbackup can probably extract the entire main title to a single vob if you get the options right.
[19:29:16 CEST] <maxcnc> ok
[19:50:51 CEST] <maxcnc> ripp::dvd is ok
[20:28:45 CEST] <certaindestiny_> Hey there, I am having trouble compiling ffmpeg on linux. I get the following error /usr/bin/ld: libavutil/aes.o: relocation R_X86_64_32S against `.bss' can not be used when making a shared object; recompile with -fPIC
[20:31:34 CEST] <certaindestiny_> http://pastebin.com/LvFXibX4 This is the compile script we are using
[20:32:11 CEST] <furq> certaindestiny_: line 6
[20:33:15 CEST] <furq> you can also get rid of line 8 if you're using --enable-shared
[20:37:04 CEST] <certaindestiny_> furq enable gpl?
[20:37:54 CEST] <furq> line 8 of the paste
[20:39:04 CEST] <certaindestiny_> alright i am running again. lets hope it works (fingers crossed
[20:41:07 CEST] <certaindestiny_> ERROR: x265 not found using pkg-config
[20:41:34 CEST] <furq> maybe put line 8 back then ;_;
[20:41:49 CEST] <certaindestiny_> haha ill try
[20:42:23 CEST] <certaindestiny_> running again
[20:43:18 CEST] <c_14> eeeh, I'm pretty sure multiple uses of --extra-cflags will override each other
[20:43:38 CEST] <certaindestiny_> so what would i need to put in?
[20:43:52 CEST] <c_14> dito extra-ldflags
[20:44:04 CEST] <certaindestiny_> ill change after this run
[20:44:06 CEST] <c_14> take the parts from the second instance and append them with a space to the first
[20:44:13 CEST] <c_14> --extra-cflags="-Ifoo -Ibar"
[20:44:19 CEST] <furq> i can't imagine you need both of those extra-cflags
[20:44:31 CEST] <certaindestiny_> we need to compile decklink support
[20:44:33 CEST] <certaindestiny_> :(
[21:04:51 CEST] <certaindestiny_> i now have http://pastebin.com/15FmsaXN
[21:05:29 CEST] <certaindestiny_> Unknown option "-I/root/ffmpeg_sources/include". See ./configure --help for available options. ./script.sh: line 24: --enable-shared: command not found ./script.sh: line 26: --disable-static: command not found
[21:05:40 CEST] <c_14> without the extra quotes
[21:06:04 CEST] <c_14> --extra-cflags="-I$HOME/ffmpeg_build/include -I/root/ffmpeg_sources/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib -ldl" \
[21:06:06 CEST] <c_14> ^like that
[21:08:32 CEST] <certaindestiny_> libfdk_aac is incompatible with the gpl and --enable-nonfree is not specified.
[21:08:38 CEST] <certaindestiny_> :(
[21:08:46 CEST] <c_14> get rid of the last \
[21:08:57 CEST] <DHE> you're free to specify --enable-gpl --enable-nonfree you just can't distribute the resulting binary
[21:09:18 CEST] <c_14> The last '\' on line 26 is making the make command be seen as part of the configure command
[21:09:27 CEST] <certaindestiny_> same error
[21:09:31 CEST] <certaindestiny_> unfortuanetly
[21:09:52 CEST] <c_14> move --enable-nonfree all the way to the top?
[21:11:01 CEST] <certaindestiny_> i saw i forgot another backslash
[21:13:29 CEST] <certaindestiny_> v
[21:13:32 CEST] <certaindestiny_> Unknown option "". See ./configure --help for available options. ./script.sh: line 7: --prefix=/root/ffmpeg_build: No such file or directory
[21:14:15 CEST] <c_14> what's the current script look like?
[21:14:16 CEST] <certaindestiny_> http://pastebin.com/eLveiAL6
[21:15:23 CEST] <Hababam1_> you have --extra-ldflags 2 times ?
[21:16:19 CEST] <certaindestiny_> There is something wrong with the --prefix
[21:16:32 CEST] <certaindestiny_> it doesnt reach the extra-idflags
[21:18:39 CEST] <certaindestiny_> Oh wait that was indeed there twice. I removed one
[21:19:21 CEST] <c_14> The script appears to work for me
[21:19:24 CEST] <c_14> What shell are you using?
[21:19:38 CEST] <furq> you shouldn't really need to specify -I or -L if pkg-config is working properly
[21:20:14 CEST] <furq> and i'd have thought --enable-shared would be smart enough to enable -ldl
[21:21:43 CEST] <certaindestiny_> i remove those. running now
[21:21:53 CEST] <certaindestiny_> same error
[21:22:10 CEST] <furq> check for trailing spaces after a \
[21:22:35 CEST] <certaindestiny_> found 1
[21:22:37 CEST] <certaindestiny_> running now
[21:22:55 CEST] <certaindestiny_> gcc is unable to create an executable file. If gcc is a cross-compiler, use the --enable-cross-compile option. Only do this if you know what cross compiling means. C compiler test failed
[21:23:23 CEST] <certaindestiny_> I can change the settings back and just change the trailing spaces
[21:23:35 CEST] <c_14> check your config.log
[21:23:38 CEST] <c_14> near the end
[21:24:36 CEST] <certaindestiny_> I am running now with the -I -L and -ldl
[21:24:51 CEST] <certaindestiny_> This wil take 15 minutes again
[21:25:01 CEST] <furq> are you running parallel make
[21:25:30 CEST] <certaindestiny_> What do you mean with parallel make?
[21:25:39 CEST] <furq> nvm i can see you're not
[21:25:45 CEST] <furq> make -j8
[21:25:50 CEST] <furq> replace 8 with the number of cores you have
[21:26:03 CEST] <certaindestiny_> Where in the command would i place this?
[21:26:18 CEST] <certaindestiny_> Srr about the questions but this is the first time i have compiled ffmpeg
[21:26:20 CEST] <certaindestiny_> :S
[21:26:30 CEST] <c_14> PATH= make -> PATH= make -j8
[21:27:15 CEST] <furq> also -fPIC isn't a make option so you might as well get rid of that
[21:27:32 CEST] <certaindestiny_> Where does it need to be then. cause the error told me to add that if it failed
[21:27:58 CEST] <furq> nowhere
[21:28:05 CEST] <furq> you already enabled it by removing --disable-pic
[21:28:44 CEST] <certaindestiny_> Alright. I hope this works
[21:29:47 CEST] <certaindestiny_> It is running now but this still might take some time
[21:31:10 CEST] <Dariush> Hi. I have two files: the first one has the following properties: 23.96 fps, 24 tbr, 16k tbn, the other one the following: 11.79 fps, 12 tbr, 16k tbn. I want to concatenate them. I cannot reencode the first file for size reasons. I reencoded the second file with '-r 24' and got the following: 24 fps, 24 tbr, 12288 tbn. tbr got fixed, but tbn broke, and the files again concatenate with...
[21:31:12 CEST] <Dariush> ...errors. What can I do in this situation?
[21:32:01 CEST] <furq> those aren't the same framerate
[21:32:05 CEST] <furq> use -r 24000/1001
[21:33:32 CEST] <Fyr> guys, what is .h264?
[21:33:46 CEST] <Fyr> what kind of container is it?
[21:34:02 CEST] <c_14> It's not a container
[21:34:07 CEST] <c_14> It's a raw h264 bitstream
[21:34:23 CEST] <jkqxz> Typically an H.264 elementary stream (annex B bytestream).
[21:34:31 CEST] <Fyr> c_14, what -f options correspond to it?
[21:34:40 CEST] <Fyr> -f rawvideo?
[21:34:52 CEST] <klaxa> -f h264
[21:34:54 CEST] <c_14> ^
[21:34:55 CEST] <klaxa> afaik
[21:35:12 CEST] <furq> yeah it is
[21:35:16 CEST] <certaindestiny_> LD      libavcodec/libavcodec.so.57 /usr/bin/ld: /root/ffmpeg_build/lib/libvpx.a(vpx_codec.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC /root/ffmpeg_build/lib/libvpx.a: error adding symbols: Bad value collect2: error: ld returned 1 exit status library.mak:97: recipe for target 'libavcodec/libavcodec.so.57' failed
[21:35:30 CEST] <certaindestiny_> This is why i added the -fPIC
[21:35:43 CEST] <klaxa> did you run make clean between builds?
[21:35:45 CEST] <furq> you added it in a place where it doesn't do anything
[21:36:08 CEST] <kepstin> hmm, that's weird, you're trying to link a static copy of libvps into a shared library of ffmpeg?
[21:36:19 CEST] <furq> if libvpx.a is complaining then you probably need to recompile that with -fPIC
[21:36:24 CEST] <certaindestiny_> I did not run make clean should i ?
[21:36:28 CEST] <furq> yes
[21:36:29 CEST] <certaindestiny_> How would i do that @furq
[21:36:36 CEST] <kepstin> in theory you can make it work, but usually the build systems aren't set up to handle that automatically
[21:37:14 CEST] <furq> yeah i'm not sure how that would work on *nix
[21:37:25 CEST] <certaindestiny_> make: *** No rule to make target 'clean'. Stop.
[21:37:57 CEST] <kepstin> it works fine in linux, as long as the static library is built with the intention of being linked into a shared library (i.e. it's built with -fPIC)
[21:38:04 CEST] <furq> yeah that makes sense
[21:38:18 CEST] <furq> it works fine with mingw because everything is automatically pic
[21:38:46 CEST] <certaindestiny_> How can i change it to be pic?
[21:39:00 CEST] <furq> certaindestiny_: either build a libvpx shared library or run ./configure --help and look for a pic option
[21:39:05 CEST] <furq> or build a static ffmpeg
[21:39:10 CEST] <Dariush> furq: is that really a factor? I just ran a test by concatenating two files, one with 24 fps, the other with 23.84, and the result worked just fine.
[21:39:13 CEST] <furq> the latter is much easier
[21:39:37 CEST] <certaindestiny_> How would i build a static?
[21:39:41 CEST] <certaindestiny_> With Decklink support
[21:40:19 CEST] <kepstin> Dariush: concatenating videos with different framerates should work fine, as long as the output container used supports variable framerate.
[21:44:31 CEST] <Dariush> kepstin: I know, my problem is with concatenating videos that additionally have different tbr and tbn. Or at least I suspect that it's the problem, since that's the only significant difference: http://pastebin.com/TtFuqFXP
[21:44:49 CEST] <certaindestiny_> @furq how would i compile a static out of this?
[21:45:08 CEST] <furq> --disable-shared --enable-static
[21:45:15 CEST] <furq> i have no idea how that'd work with decklink, i've never used decklink
[21:46:13 CEST] <Dariush> when I try to concatenate those files, the first one plays fine, but the second one is empty green and grey frames (obviously the file itself plays as expected)
[21:46:53 CEST] <certaindestiny_> Running now
[21:50:28 CEST] <kepstin> Dariush: ah, yeah, they'd need to have the same timebase for concatenating to work.
[21:50:32 CEST] <certaindestiny_> At least one library type must be built. Specify --enable-static to build the static libraries or --enable-shared to build the shared libraries as well. To only build the shared libraries specify --disable-static in addition to --enable-shared.
[21:51:06 CEST] <Dariush> then we arrive to the problem in my first message: I cannot get the timebases to coincide.
[21:51:55 CEST] <kepstin> yeah, one video is 24fps (film), the other is 24000/1001 fps (ntsc film)
[21:53:11 CEST] <vade> im looking at the code for av_buffersink_get_samples - and notice the returned frame only passes through / calculates PTS, not duration
[21:53:17 CEST] <kepstin> I almost wonder if remuxing both videos to mkv (which uses a fixed timebase), then concatenating would work :/
[21:53:33 CEST] <vade> is that on purpose, or possibly a bug / oversight?
[21:54:08 CEST] <certaindestiny_> @furq
[21:54:19 CEST] <Dariush> but previously you said (and I observed) that concatenating videos with different framerates should work fine; why does this minor difference matter then?
[21:57:28 CEST] <kepstin> ffmpeg works internally with, and most containers store frame times as a single integer called "pts". pts is just a number, it only gets meaning when multiplied by timebase (which is a fraction). In order to concatenate videos into a single file, you have to fit the pts values from both videos into a single timebase fraction.
[21:59:00 CEST] <certaindestiny_> furq are you still there?
[21:59:07 CEST] <kepstin> which, with your videos is "1/24" for the first, and "1001/24000" for the second. And unless you're re-encoding (in which case you can do fun things with filters), I don't think ffmpeg has any code for reconciling the two.
[22:00:07 CEST] <kepstin> of course, you could use the '-r' input option to override the input framerate of one of the files to force them to match, but that'll subtly change the speed and cause audio desyncs.
[22:02:48 CEST] <Dariush> but why can't the final file simply have a variable framerate, as happens when timebases match?
[22:03:54 CEST] <kepstin> that would require some code to recalculate a common timebase and whatnot. It's certainly possible, just requires someone to do it?
[22:04:20 CEST] <vade> av_rescale_q yes?
[22:04:45 CEST] <Dariush> er, wait a second. the fractions above - 1/24 and 1001/2400 - are 1/fps. how do tbn and tbr come into play here?
[22:05:38 CEST] <kepstin> they're the inverse of the timebase, i think? I've never been quite sure how those values are calculated. they sometime behave oddly in some containers.
[22:06:42 CEST] <kepstin> but yeah, 1001/576000 is a pretty horrible timebase fraction ;)
[22:07:03 CEST] <kepstin> should work in theory, i guess.
[22:20:33 CEST] <Dariush> I'm having some trouble wrapping my head around this. I just googled for a bit, but didn't find anything approaching a comprehensible answer. If tbr and tbn are two different timebases, then why do I need both of them to match another file to be able to concat with it? Moreover, if setting -r option changes both of them, how can I make them match another file (other than remuxing to a...
[22:20:35 CEST] <Dariush> ...different container, which I don't really want to do due to the number of files I have to work with)?
[23:02:29 CEST] <certaindestiny_> Hi all. When running ffmpeg(Yes i got it to work!) i get the following error [decklink @ 0x320c5c0] Could not create DeckLink iterator
[23:04:12 CEST] <certaindestiny_> Anybody know how to fix this
[23:56:00 CEST] <llogan> (not that I have much decklink experience)
[23:56:28 CEST] <MrSassyPants> does -passlogfile not work with libvpx, or not in general?
[23:56:57 CEST] <certaindestiny_> fflogger
[23:57:00 CEST] <certaindestiny_> We got it working
[23:57:09 CEST] <Hababam1_> ^.^
[23:57:14 CEST] <certaindestiny_> Apprently we needed to install the desktop application becuase it was missing some .so files
[23:57:25 CEST] <certaindestiny_> Which for some reason where not included in the SDK
[23:58:05 CEST] <certaindestiny_> Thanks for all the help btw. Comunity has been awesome so far
[00:00:00 CEST] --- Thu May 19 2016



More information about the Ffmpeg-devel-irc mailing list