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

burek burek021 at gmail.com
Fri Apr 29 02:05:02 CEST 2016


[00:25:22 CEST] <prelude2004c_zzz> hey guys.. anyone know what this means " ffmpeg failed to compensate for timestamp delta "
[00:39:14 CEST] <madgino> Can anyone tell me if this is correct ffmpeg -re -i http://XXXX/131.m3u8 -vcodec libx264 -acodec copy -f mpegts udp:192.168.23.10:1234
[00:39:49 CEST] <madgino> should I know be able to point a client at 192.168.23.10 and expect it play the stream?
[00:46:41 CEST] <BtbN> no, you are sending the data to that IP.
[00:46:43 CEST] <petecouture> madgino: mpegts is a file output demuxer
[00:47:04 CEST] <petecouture> I'm not an advanced ffmpeg user by any means but I don't think that will work.
[00:47:19 CEST] <BtbN> It should work, in general. But it does not do that was described.
[00:47:21 CEST] <madgino> that's all good. thanks for answering.. :)
[00:48:09 CEST] <madgino> I'll keep reading
[00:50:46 CEST] <madgino> petecouture, how would you recommend getting retransmitting that as  UDP stream, I've got high latency link so would prefer to use UDP rather than TCP
[00:56:37 CEST] <BtbN> ffmpeg just sends the stream to the ip you specify.
[00:57:02 CEST] <BtbN> you want to use something like RTP with Multicast if you want a stream people can "connect" to like a http/tcp server.
[00:58:05 CEST] <pandb> is having audio data required to broadcast to rtmp?
[00:58:40 CEST] <pandb> or is the fact that my program doesn't create an audio stream a possible reason why I can't get it to display on the server i broadcast it to?
[01:09:54 CEST] <pandb> what might be the reason I keep getting console output that includes "I:0 P:0 SKIP:920 size=17 bytes"?
[01:10:06 CEST] <pandb> this is whenever I call avcodec_encode_video2
[01:15:45 CEST] <spiderkeys> Interesting, if I set use_wallclock_as_timestamps=1 on my input stream, I randomly get Assertion next_dts <= 2147483647 failed at libavformat/movenc.c:874
[01:15:56 CEST] <spiderkeys> what does it meannn
[01:16:42 CEST] <spiderkeys> 90% of the time it works and I get happy time stamps, when it fails, I do notice that in my find_stream_info dump it says: [h264 @ 0x7f80bc0008c0] max_analyze_duration 5000000 reached at 5005000 microseconds st:0
[01:45:16 CEST] <prelude2004c_zzz> hey guys.. looking for some serious help
[01:45:18 CEST] <prelude2004c_zzz> i am out of ideas
[01:45:19 CEST] <prelude2004c_zzz> http://pastebin.com/FPc6xBUG
[01:45:32 CEST] <prelude2004c_zzz> the problem i am having is.... the audio / video randomly loose sync
[02:44:08 CEST] <spiderkeys> Mavrik: Do you have any ideas for why av_find_stream_info() detects the following: Codec timebase: 1001/30000 Stream timebase: 1/1200000. When the SPS in the NAL units clearly denotes 6006/180000?
[02:48:01 CEST] <prelude2004c_zzz> hey, can anyone help me.. still having issues and not sure waht to fix anymore
[02:48:10 CEST] <prelude2004c_zzz> Could not writer header '/dev/stdout' now i am getting errors like that randomly
[02:55:00 CEST] <tuxlovesyou> I want to pipe a desktop H.264 stream over SSH.  Is there a way I can also get keyboard and mouse control?
[02:58:43 CEST] <relaxed> prelude2004c_zzz: for support use ffmpeg's nvenc
[02:59:28 CEST] <prelude2004c_zzz> the quality when using nvenc is very bad in comparison to using the NVtranscoder one
[03:00:15 CEST] <relaxed> are you using the 6.0.1 sdk and the latest drivers?
[03:03:12 CEST] <relaxed> if so, then file a bug report showing the difference between ffmpeg's nvenc and using NvTranscoder.
[03:03:21 CEST] <tuxlovesyou> anyone?
[03:06:26 CEST] <relaxed> prelude2004c_zzz: because I doubt you'll get any support with your current approach
[03:07:13 CEST] <prelude2004c_zzz> :(
[03:08:35 CEST] <tuxlovesyou> I want to pipe a desktop H.264 stream over SSH.  Is there a way I can also get keyboard and mouse control?
[03:08:44 CEST] <tuxlovesyou> seriously, no takers?
[03:10:18 CEST] <relaxed> tuxlovesyou: explain what you're doing
[03:10:48 CEST] <spiderkeys> tuxlovesyou: on irc in general, it would be prudent to never presume you'll get a response within the minute in which you ask
[03:11:44 CEST] <spiderkeys> I usually set my expectations to within the half a day... or never.
[03:12:06 CEST] <tuxlovesyou> sorry
[03:12:24 CEST] <tuxlovesyou> I want to stream games over ssh or netcat
[03:13:08 CEST] <tuxlovesyou> do a LAN party with one beefy PC that allows shitty PCs to play
[03:15:30 CEST] <relaxed> ffmpeg is a transcoder
[03:15:35 CEST] <tuxlovesyou> I know
[03:15:43 CEST] <tuxlovesyou> I need something to compliment it
[03:15:49 CEST] <tuxlovesyou> for mouse coords
[03:16:11 CEST] <tuxlovesyou> I want to pipe an H.264 or JPEG stream
[03:18:15 CEST] <tuxlovesyou> I've got the FFMPEG part down, but I have no idea what I'd use for the other stuff
[03:18:24 CEST] <relaxed> I think you want VNC or something similar.
[03:18:46 CEST] <tuxlovesyou> I do, but with a lower data rate
[03:18:58 CEST] <tuxlovesyou> I want H.264 VNC
[03:22:49 CEST] <tuxlovesyou> Recording my desktop with ffmpeg is awesome
[05:03:08 CEST] <needmorespeed> How do I specify a file path to avio_open, on Windows? For example, I think backslashes are not allowed.
[08:22:27 CEST] <ajsharp> anyone have any luck installing ffmpeg on debian jessie?
[08:22:36 CEST] <ajsharp> (from apt)
[08:34:23 CEST] <Mavrik> ajsharp, just use static builds
[08:34:31 CEST] <Mavrik> So much less annoyance
[08:34:37 CEST] <ajsharp> @Mavrik would love to
[08:34:58 CEST] <ajsharp> where can i find em? need to use an older version -- the builds linked from the site are only latest
[08:36:03 CEST] <Mavrik> http://johnvansickle.com/ffmpeg/ ?
[08:36:06 CEST] <Mavrik> Ah.
[08:36:14 CEST] <Mavrik> Just how old?
[08:36:20 CEST] <Mavrik> Since there's latest stable there too.
[08:41:34 CEST] <ajsharp> @Mavrik 2.7
[08:41:49 CEST] <ajsharp> lol and that site is 503-ing rn
[08:41:55 CEST] <ajsharp> n/m back
[09:14:33 CEST] <pandb> I finally got my program to successfully stream live to youtube :D
[09:15:13 CEST] <pandb> but I've noticed that it only seems to work if I include an audio stram and send audio packets to the muxer, even though I have no use for sound right now. Is audio a requirement for rtmp?
[09:16:30 CEST] <pandb> i've tried not adding an audio stream, or just not generating audio frames, and nothing ever shows up
[11:00:56 CEST] <Borkr> Sorry if this is off-topic, but I'm not quite sure where to ask this. I'm creating my own audio visualizer, showing the typical frequencies for a 31 band equalizer. My problem is, it's only showing the amplitude for those specific frequencies, so the spectrum looks more like noise and you don't really feel that it follows the beat. I guess I'll have to average out the amplitudes for the selected frequencies somehow. I have amplitude  22k frequencies between
[11:00:56 CEST] <Borkr> 20 and 20k to work with. Any tips on how to create the averages? Taking the average from the frequency between two band frequencies looks rather flat (constant amplitude) when you get over a couple of hundred Hz.
[11:03:00 CEST] <durandal_170> it's all described in papers
[11:08:30 CEST] <Borkr> durandal_170 I'm not quite sure which keywords to look for. Any suggestions to phrasing or papers would be greatly appreciated
[11:20:04 CEST] <Carlrobertoh> Hi! I'm writing a C++ code for screen casting using ffmpeg libraries. I'm able to save the video on disk, but it has no video timeline(duration) and also the video is like 2-3x faster than it should be. Also i'm using H.264 codec. Could someone please tell me what could be te issue here?
[12:20:51 CEST] <Wader8> hi
[12:21:13 CEST] <Wader8> i was wondering how to extract DVB subtitles, found some old examples but those are too old with old syntax
[12:30:14 CEST] <flux> carlrobertoh, well I guess it should be obvious that time stamps are wrong?-)
[12:30:26 CEST] <flux> carlrobertoh, or perhaps the track doesn't have a time base
[12:30:41 CEST] <flux> carlrobertoh, I suggest you increase the logging verbosity of ffmpeg if you aren't getting diagnostics on that
[12:30:53 CEST] <Carlrobertoh> outFrame->pts = frame_count++;                  outPacket->stream_index = stream->index;                 outPacket->pts = frame_count++;                 outPacket->dts = AV_NOPTS_VALUE;
[12:31:03 CEST] <Carlrobertoh>     AVRational rational = { 1, 25 };     output_codec_ctx->time_base = rational;
[12:31:29 CEST] <flux> and are you getting the data in 25 fps?
[12:31:50 CEST] <Carlrobertoh> How could i check that?
[12:32:02 CEST] <flux> well, output time stamps when you capture a frame, compare them..
[12:32:24 CEST] <flux> or how are you getting those frames anyway?
[12:32:38 CEST] <Carlrobertoh> gdigrab
[12:33:10 CEST] <flux> in any case, the fix here is not to set the frame rate to 25
[12:33:27 CEST] <Carlrobertoh> here's the code http://pastebin.com/wve66YA4 and here's the video http://www.upload.ee/files/5765237/test.h264.html
[12:33:35 CEST] <flux> instead, use a time base such as { 1, 10000 } and the as the pts use the real time from the start of the recording (you measure this time)
[12:33:48 CEST] <flux> so in that case the number of seconds * 10000.
[12:34:38 CEST] <Carlrobertoh> 1/25 * 10000 ?
[12:35:16 CEST] <flux> where are you getting 1/25?
[12:35:34 CEST] <flux> ah so you are using ffmpeg for capturing
[12:35:48 CEST] <Carlrobertoh> yes
[12:35:58 CEST] <flux> doesn't it come with pts data?
[12:36:09 CEST] <Carlrobertoh> u mean gdigrab ?
[12:36:14 CEST] <flux> yes..
[12:36:25 CEST] <flux> you get a packet in, doesn't it have a valid value in the pts field?
[12:36:58 CEST] <Carlrobertoh> GDIGRAB : Set the grabbing frame rate. Default value is ntsc, corresponding to a frame rate of 30000/1001.
[12:36:58 CEST] <flux> if you use its values, you should also use the input stream's time base, or either convert the values
[12:39:23 CEST] <flux> I don't think it's a guarantee that you get the number of frames per second you request.
[12:39:32 CEST] <flux> I mean, you could just ask 1000 frames per second and it's not going to deliver.
[12:41:08 CEST] <Carlrobertoh> what should i change in my code?
[12:41:17 CEST] <Carlrobertoh> i have no clue
[12:41:50 CEST] <Carlrobertoh> where should i put this value ? 30000/1001
[13:23:05 CEST] <Carlrobertoh> damn, i've tried everything, i can't figure this out
[13:24:14 CEST] <Carlrobertoh> every value i set to outFram->pts , the result is same. although if i don't set the outFrame , then the quality is going low every second
[13:57:35 CEST] <pkajaba> Hello guys, Have you tried to compile ffmpeg with openCV 3.1?
[14:02:06 CEST] <prelude2004c_zzz> good morning eeryone.. still struggling here :(
[14:06:50 CEST] <Carlrobertoh> flux
[14:07:19 CEST] <Carlrobertoh> earlier you mentioned:  <flux> you get a packet in, doesn't it have a valid value in the pts field?
[14:08:04 CEST] <Carlrobertoh> you mean "av_read_frame( input_format_ctx, packet )" whereas packet->pts has a valid value ?
[14:08:33 CEST] <Carlrobertoh> does "packet->pts == 1461845196779119" counts valid ?
[14:11:18 CEST] <jkqxz> It looks like the current UNIX time in microseconds.
[14:13:03 CEST] <AndrewMock> https://git.videolan.org/?p=ffmpeg.git;a=commit;h=d9791a8656b5580756d5b7ecc315057e8cd4255e
[14:13:40 CEST] <AndrewMock> Is the native aac encoder the best for 256k stereo video recordings?
[14:14:39 CEST] <furq> fdk-aac is probably better but you'll struggle to notice any difference at 256kbps
[14:14:41 CEST] <AndrewMock> No recent benchmarks or tests.
[14:14:46 CEST] <AndrewMock> good point
[14:15:04 CEST] <furq> even faac will sound good at 256k
[14:15:31 CEST] <AndrewMock> to be fair we got some insane equipment this is played on
[14:16:07 CEST] <AndrewMock> but yeah I guess I will use aac to keep it "free"
[14:16:26 CEST] <furq> fdk is open-source, it's just not gpl compatible
[14:16:50 CEST] <furq> it's probably not worth recompiling though
[14:17:15 CEST] <furq> there's always flac in mkv if you need it to sound perfect
[14:17:32 CEST] <AndrewMock> trying to dropbox around here is hard
[14:18:03 CEST] <AndrewMock> plus when I deliver cinema packages i do that by hand so i can use that kinda bandwidth
[14:18:22 CEST] <AndrewMock> thx
[14:18:57 CEST] <furq> well there's also opus in mkv
[14:19:04 CEST] <flux> carlrobertoh, if it's not AV_NOPTS_VALUE then it's valid
[14:19:05 CEST] <furq> that ought to sound the best out of the lossy codecs
[14:19:12 CEST] <flux> carlrobertoh, and it's in stream time base units..
[14:19:13 CEST] <furq> assuming the player supports it
[14:21:32 CEST] <Carlrobertoh> okey, i checked if it doesnt != AV_NOPTS_VALUE
[14:21:52 CEST] <Carlrobertoh> so what gonna i do next? assign this value to outFrame->pts ?
[14:23:54 CEST] <flux> yes. also you need to use the input stream's time base.
[14:24:38 CEST] <Carlrobertoh> input_format_context doesn't have a time_base
[14:26:20 CEST] <Carlrobertoh> or i have to assign output_codec_ctx->time_base = input_codec_ctx->time_base outside while loop ?
[14:39:40 CEST] <Carlrobertoh> flux, I got it almost working but the video is still like 1/4 faster than it should be
[14:55:50 CEST] <Carlrobertoh> Please could anybody help me? My video playback is like 1/4 faster than it should be. I'm using gdigrab to record my screen and then save it on disk. The output frame pts is taken from input packet and output_codec_ctx time_base is taken from input_codec_ctx time_base
[15:02:00 CEST] <flux> carlrobertoh, can you post file you cannot play?
[15:02:15 CEST] <flux> preferably with a service that doesn't have so many popups if possible :P
[15:02:27 CEST] <Carlrobertoh> um
[15:02:35 CEST] <Carlrobertoh> upload.ee isn't good place?
[15:02:41 CEST] <Carlrobertoh> :d
[15:03:16 CEST] <Carlrobertoh> http://www.upload.ee/files/5765587/test.mp4.html
[15:03:19 CEST] <Carlrobertoh> i did in anyways lol
[15:05:10 CEST] <flux> true it doesn't play with vlc. it does play with mpv but it complains "No video PTS! Making something up."
[15:05:20 CEST] <flux> did you set the global headers flag on as in some of the examples?
[15:05:41 CEST] <flux> ah, never mind
[15:05:51 CEST] <flux> the file has extension .mp4 but it's not mpeg4, but .h264..
[15:07:30 CEST] <Carlrobertoh> yes. so should i add the global headers flag_
[15:08:07 CEST] <flux> but I guess there's something else wrong because that's no MPEG4 file. also my tools say the file is truncated.
[15:13:55 CEST] <Carlrobertoh> okey, thanks flux
[15:13:59 CEST] <Carlrobertoh> i'll try to handle that
[16:49:29 CEST] <spirou> are there parameters to ffprobe to make it show more information about the file?
[16:49:56 CEST] <c_14> yes
[16:51:16 CEST] <spirou> to show how compliant the file is, I have a mp4 that ffmpeg complains about the h264 stream in it when trying to convert it, becuase it is missing something, it could be nice if ffprobe could show info about that
[16:51:55 CEST] <c_14> https://ffmpeg.org/ffprobe.html
[16:52:27 CEST] <c_14> check show_format, or show_streams or show_entries or something
[16:56:13 CEST] <spirou> ok
[16:58:35 CEST] <spirou> if I understand right the missing "global headers" it complains about is "Sequence Parameter Set (SPS)/Picture Parameter Set (PPS) information for H264 encoding. If this global header is not provided, some devices cant play the encoded file"
[17:08:00 CEST] <spirou> ..and that those can't be generated afterwards without destructively recompress the stream?
[17:13:39 CEST] <Shiz> Is there a way I can simply make ffmpeg(1) copy all mpeg-ps packets it doesn't recognize? I'm dealing with a file whose audio format is not recognized but all I want to do is replace the video stream
[17:14:06 CEST] <c_14> -copy_unknown ?
[17:16:53 CEST] <Shiz> it doesn't seem to copy over the PRIVATE_STREAM_1 packets that contain the audio
[17:17:25 CEST] <Shiz> using $ ffmpeg -i ~/Downloads/movies/MV000_0003.pmf -i MV0.h264 -map 1:v -codec copy -copy_unknown out.mpeg
[17:17:45 CEST] <c_14> you're not mapping the audio stream
[17:18:11 CEST] <Shiz> because it doesn't recognize it as an audio stream
[17:18:21 CEST] <c_14> map the stream number explicitly?
[17:18:57 CEST] <Shiz> rather, it doesn't recognize it as a stream at all
[17:20:25 CEST] <Shiz> hmmm..
[17:24:43 CEST] <spirou> btw, there can't be spaces around colons : as used in the examples on the https://ffmpeg.org/ffprobe.html#Main-options
[17:24:54 CEST] <Shiz> i made a small patch to ffmpeg to recognize it as an unknown stream, but that gives me this: http://txt.shiz.me/MmNjNzU2ND
[17:25:32 CEST] <JEEB> yeah, that won't work
[17:35:22 CEST] <Wader8> anyone knows how to extract subtitles ?
[17:35:45 CEST] <Wader8> these are in HDTV .TS DVB_SUB
[17:35:55 CEST] <Wader8> i'd like to add them to a MKV
[17:35:56 CEST] <Shiz> JEEB: seems like that was what copy_unknown was made for but apparently :V
[17:39:27 CEST] <spirou> Wader8: I'm not sure what file format do have a dvd subtitle only. I suppose you could store only that stream in some mp4 file or something though
[17:39:40 CEST] <furq> he wants dvb subs, not dvd
[17:39:54 CEST] <furq> you should be able to remux them into ts, but i'm not sure if they're supported in mkv
[17:40:11 CEST] <spirou> the problem with dvd subs is that they are graphics though, so you can't just out to a .srt
[17:41:03 CEST] <Wader8> well i would convert them to what MKV can use, no program seems to be able to recognize DVB subs, and MakeMKV doesn't support .TS
[17:43:11 CEST] <spirou> There are other subtitle formats that is graphics too? isn't that the "VobSub" format?
[17:43:32 CEST] <furq> vobsub is a different format to both
[17:43:51 CEST] <spirou> Wader8: you could OCR the text with some program of course to get the text. if you have time.
[17:43:55 CEST] <furq> you can convert dvd subtitles to vobsub losslessly because they're both image formats
[17:43:59 CEST] <furq> idk about dvb subs, i've never encountered them
[17:44:20 CEST] <furq> i don't think you'll have much luck converting them with ffmpeg though
[17:45:11 CEST] <spirou> yeah that must be some other program. and probably needs some manual corrections to train it for the font used in that dvd sub.
[17:45:48 CEST] <spirou> otherwise you get mixed l and I and O and 0 and such
[17:45:52 CEST] <furq> afaik the .idx part of vobsub is the stuff from the ifo and the .sub is the subtitle bitmaps from the vob
[17:46:15 CEST] <furq> the data itself is the same but the container is different
[17:46:19 CEST] <spirou> ok
[17:47:01 CEST] <furq> ffmpeg doesn't have a vobsub encoder though so i think you'll need to use a different tool for converting image bitmaps
[17:47:09 CEST] <furq> or muxer, rather
[17:49:39 CEST] <furq> Wader8: apparently subtitle edit supports dvb subs in ts
[17:49:52 CEST] <furq> you should be able to convert them to a better format with that
[17:55:30 CEST] <Wader8> i only found this https://ffmpeg.org/pipermail/ffmpeg-user/2011-September/002471.html
[17:58:35 CEST] <Wader8> the file is .TS for HDTV, so i believe it's configured differently than other .TS . since it's from the HDTV's own PVR recorder feature
[17:58:53 CEST] <Wader8> the codecs are MPEG2 and AVC for 1080i
[17:59:04 CEST] <Wader8> MPEG2 is also interlaced
[17:59:19 CEST] <furq> like i said, i don't think ffmpeg can convert them and i don't think mkv supports them
[17:59:24 CEST] <Wader8> but the framerates are all whole, 25
[17:59:41 CEST] <Wader8> furq, but I asked how to extract them
[18:00:23 CEST] <Wader8> MPC-HC supports them so if the players can do it why can't other programs, i'll find something
[18:00:25 CEST] <furq> there is a file format for it (.son) but ffmpeg doesn't seem to have a muxer for it
[18:01:28 CEST] <sfan5> can't you extract just the subs to a seperate mkv
[18:01:33 CEST] <Wader8> i had 3 files from HDTV, i converted them sucessfully, only 2 contained subtitles, and only one of the files has another companion .idx2
[18:01:40 CEST] <sfan5> and then use mkvmerge to merge the video/audio file and the sub file into a single mkv?
[18:01:44 CEST] <Wader8> i'm not saying i want to extract them to a separate mkv
[18:02:07 CEST] <Wader8> i believed MP4 probably doesn't support DVB subs so I said MKV out of hope
[18:02:32 CEST] <sfan5> mp4 doesn't support dvbsub correct
[18:02:38 CEST] <furq> does mkv support dvbsub
[18:03:16 CEST] <Wader8> if I have to use TS, i'll use TS then, but I think TSMuxer doesn't even support them, i didn't see em when I opened the original TS
[18:04:20 CEST] <Wader8> i'm done recoding, i packed to a MKV, i can still remux to TS with the subs, so I understand that but I believe TSMuxer didn't recognize them or I didn't see, since I never used TSMuxer before
[18:05:33 CEST] <Wader8> MakeMKV helped me a ton because it supports DVDs, since handbrake doesn't so it doesn't auto-add markers, but it does from MKV, so I used that combination for that, now I'm mostly done with DVDs i have some HDTV recordings left
[18:05:58 CEST] <Wader8> furq, you ask me I have no idea, i have trouble finding anything on the net anyway, it's all 5 years old
[18:06:10 CEST] <furq> i was asking sfan5
[18:06:15 CEST] <Wader8> oh
[18:06:25 CEST] <furq> a brief google suggests they don't
[18:06:29 CEST] <furq> or it doesn't, rather
[18:06:47 CEST] <Wader8> btw, it's cable, so the .TS file standard is part of DVB-C
[18:06:53 CEST] <Wader8> not DVB-T
[18:07:44 CEST] <sfan5> hm
[18:07:50 CEST] <sfan5> i'll go make a recording to test with
[18:08:36 CEST] <Wader8> well, DVB-C is more of an european thing, not so much anywhere else that's why isn't that supported
[18:09:00 CEST] <Wader8> but even then it's mixed among countries
[18:09:47 CEST] <spirou> I suppose Transcode would be a ok program for dvd subtitle stuff..
[18:10:06 CEST] <thebombzen> ahhhh segfault :(
[18:10:28 CEST] <thebombzen> frustrating
[18:10:41 CEST] <spirou> thebombzen: we all love them, right? ;D
[18:10:45 CEST] <thebombzen> #thatawkwardmomentwhen ffmpeg works and then you pull it and rebuild it and then it doesn't work
[18:11:03 CEST] <thebombzen> well I submitted a report so it'll probably get fixed fairly soon
[18:11:07 CEST] <Wader8> MKV should add support for it, since it's such a container as a replacement, and it's kinda silly to have to rely on TS if I have all my stuff in MKV, i hope I'm not making too of a big deal out of this, but it's, I'm making an archive, I'd not like to make crappy recodes, i made sure I added all the subtitles and bonus stuff from DVDs
[18:11:45 CEST] <thebombzen> yea MKV should support everything. whenever I don't have any clue what container to put something in I just put it in mkv
[18:13:52 CEST] <spirou> thast doesn't mean the player in the other end will like your mkv though
[18:14:32 CEST] <spirou> "no global headers in your video stream? no sound for you!"
[18:15:19 CEST] <sfan5>     Stream #0:7[0x1469](deu): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) (hearing impaired)
[18:15:24 CEST] <sfan5>     Stream #0:2(deu): Subtitle: dvb_subtitle ([255][255][255][255] / 0xFFFFFFFF) (hearing impaired)
[18:15:31 CEST] <sfan5> copied into a mkv seems to work
[18:16:26 CEST] <sfan5> and it works with mpv
[18:16:41 CEST] <sfan5> Wader8: when transcoding just do -c:s copy and it should work
[18:17:40 CEST] <Wader8> is there any difference in what kind of MKV it is if it's done with different programs, the version should matter right ?
[18:17:59 CEST] <Wader8> like Handbrake, MakeMKV, ffmpeg, if i use ffmpeg i probably have the latest righ ?
[18:19:55 CEST] <sfan5> "ffmpeg version 3.0 Copyright (c) 2000-2016 the FFmpeg developers"
[18:20:09 CEST] <sfan5> Wader8: here's an example resulting mkv file: https://a.uguu.se/dvyonh_test.mkv
[18:20:25 CEST] <Wader8> that's how my HDTV TS DVB subs look in FFProbe
[18:20:28 CEST] <Wader8> http://pastebin.com/EiidYnqW
[18:21:53 CEST] <sfan5> that's how my file looks too
[18:22:30 CEST] <Wader8> MKV may support it, it's just that Handbrake doesn't
[18:22:36 CEST] <Wader8> and MKVToolNix neither
[18:22:56 CEST] <Wader8> at least the GUI
[18:23:39 CEST] <sfan5> i used ffmpeg for converting the .ts
[18:23:45 CEST] <sfan5> and that works so ¯\_(Ä)_/¯
[18:24:02 CEST] <Wader8> from .TS
[18:24:14 CEST] <Wader8> does MKVToolNix have a trac ?
[18:24:32 CEST] <sfan5> huh
[18:24:35 CEST] <Wader8> i should send this, it supports dvbsubs from mkv, but not from .ts
[18:24:37 CEST] <sfan5> mkvtoolnix seems to read the subs just fine
[18:24:59 CEST] <Wader8> this is very important since .ts is the format which comes off the HDTV PVR, so support here is crucial
[18:25:01 CEST] <sfan5> if mkvtoolnix supports subs from mkv where's the problem?
[18:25:12 CEST] <sfan5> you can just use ffmpeg to put the subs from the .ts into an mkv
[18:25:59 CEST] <Wader8> I would be encouraged in future to do more recordings, because i didn't had a plan how to recode i didn't, so now I do, good i figured this out
[18:26:06 CEST] <Wader8> i'll see how ffmpeg goes right now
[18:27:01 CEST] <Wader8> doesn't really help if MKVToolNicks reads dvbsubs from an input MKV
[18:27:10 CEST] <sfan5> it does, you can remux
[18:27:14 CEST] <Wader8> it doesn't read them off .TS
[18:27:25 CEST] <Wader8> so i guess one more intermediary step with ffmpeg
[18:27:26 CEST] <Wader8> for now
[18:27:55 CEST] <Wader8> i have the latest toolnix 9.1.0 x64
[18:28:25 CEST] <Wader8> it shows 2 streams, MPEG2 video, MPEG2 audio
[18:28:39 CEST] <sfan5> no intermediary for me, i just use ffmpeg for transcoding
[18:28:44 CEST] <sfan5> why not just use ffmpeg?
[18:28:51 CEST] <Wader8> i am using ffmpeg all the time
[18:29:55 CEST] <thebombzen> well it appears the bug I submitted has already been reproduced, and changed from normal -> important. cehoyos is pretty fast apparently
[18:30:13 CEST] <Wader8> i switched to MakeMKV and Handbrake for the DVD recodings since it was way faster and all the subs, markers, bonus stuff transferred nicely to a MKV, then Handbrake read the MKV properly and Recoded the video, passed thru the AC3 audio, added the subs, and exported as x264 MKV, it was great
[18:31:06 CEST] <Wader8> previously i was trying to concat vobs with ffmpeg manually
[18:34:08 CEST] <Wader8> trac for MKVToolNix seem to end up on github
[18:34:37 CEST] <Wader8> not sure got some old info
[18:45:04 CEST] <ajsharp> anyone here had success creating a static build of ffmpeg?
[18:45:24 CEST] <ajsharp> i must not be passing the right flags b/c running ldd still shows lots of links
[18:47:03 CEST] <c_14> What's your configure line?
[18:47:53 CEST] <ajsharp> ./configure --disable-shared --enable-static --enable-pthreads --enable-libopenjpeg --enable-libfaac --enable-nonfree --pkg-config-flags="--static" --extra-cflags="-I/usr/local/include" --extra-ldflags="-L/usr/local/lib" --prefix=/home/admin/ffmpeg-install
[18:48:32 CEST] <ajsharp> i've taken out a lot of optional features for the moment to cut down on build time while i'm debugging this
[18:48:37 CEST] <BtbN> ffmpeg can't magically make all your system libs into static libs
[18:48:47 CEST] <ajsharp> trying to create a static build of 2.7.2
[18:49:11 CEST] <BtbN> enable-static only causes the libav* libraries to be linked and created as static libs
[18:49:21 CEST] <BtbN> if an external library is static depends entirely on that library itself
[18:49:43 CEST] <ajsharp> @BtbN that's fair, but when i try to copy it to a target system, it blows up on non-system libs
[18:49:51 CEST] <ajsharp> ffmpeg: error while loading shared libraries: libavdevice.so.56: cannot open shared object file: No such file or directory
[18:50:13 CEST] <BtbN> that's basically impossible when you configure it with --disable-shared --enable-static.
[18:50:23 CEST] <BtbN> there are no .so files created
[18:51:23 CEST] <furq> ajsharp: try adding -Wl,-Bstatic to extra-ldflags
[18:51:58 CEST] <ajsharp> @furq thx. also, fwiw, i'm building from the source directory, and for that particular lib, it's located at ./libavdevice/libavdevice.so in the source distribution
[18:52:07 CEST] <furq> at a guess it's linking against system shared libs
[18:53:20 CEST] <c_14> distclean and try again?
[18:53:27 CEST] <c_14> If that .so file exists something is wrong
[18:53:53 CEST] <ajsharp> @c_14 in the built binary you mean?
[18:54:10 CEST] <ajsharp> (just distclean'd, trying again)
[18:54:37 CEST] <c_14> In the build directory
[18:54:53 CEST] <ajsharp> tbh, i don't really understand what --extra-cflags and the like are for. are those supposed to be pointing at the source directory?
[18:55:05 CEST] <ajsharp> where those libs & includes are located?
[18:55:29 CEST] <c_14> where the libs are located
[18:55:50 CEST] <ajsharp> in the source distribution?
[18:55:59 CEST] <cousin_luigi> Greetings.
[18:56:21 CEST] <cousin_luigi> I may have already asked, but how do x265 and kvazaar compare?
[18:57:12 CEST] <sfan5> neither is production-ready
[18:57:23 CEST] <sfan5> x265 is more production-ready than kvazaar
[18:57:29 CEST] <sfan5> and also faster
[18:57:56 CEST] <cousin_luigi> sfan5: Does kvazaar have any advantage over x265?
[18:58:35 CEST] <kepstin> better name?
[19:04:30 CEST] <sfan5> no idea
[19:04:32 CEST] <ajsharp> ok so that cut down on the number of shared libs from 68 to 55, and by a quick pass they seem to all be system libs...gonna try a copy to target system
[19:05:42 CEST] <ajsharp> yea, last binary was 208k, this one is 14mb :)
[19:07:33 CEST] <ajsharp> different failure!
[19:07:47 CEST] <ajsharp> libva.so.1
[19:08:21 CEST] <sfan5> disable vaapi
[19:09:41 CEST] <spirou> about static compile stuff.. how "static" is the ppa:mc3man/trusty-media build? "Ubuntu Multimedia for Trusty PPA. Provides static binaries from most recent release branch"
[19:12:23 CEST] <ajsharp> @sfan5 what does vaapi do?
[19:12:34 CEST] <sfan5> hardware decoding
[19:12:42 CEST] <ajsharp> ah
[19:14:49 CEST] <ajsharp> still seeing dynamic links to things like libvorbis and libopenjpeg -- i must be screwing something up in the flags
[19:15:02 CEST] <ajsharp> presumably --extra-ldflags
[19:15:15 CEST] <c_14> you probably just don't have static libraries of those libs
[19:15:16 CEST] <furq> do you actually have static libs of those on your system
[19:15:19 CEST] <ajsharp> and --extra-cflags
[19:15:33 CEST] <ajsharp> @c_14 i'd need to build those statically, right?
[19:15:40 CEST] <furq> depends on what your package manager provides
[19:15:46 CEST] <furq> if you only have shared libs then that's what'll get linked
[19:16:10 CEST] <furq> -dev packages on debian derivatives usually contain static libs
[19:16:12 CEST] <ajsharp> i was trying to co-opt this but build is failing https://github.com/zimbatm/ffmpeg-static
[19:16:23 CEST] <ajsharp> furq right, makes sense
[19:18:04 CEST] <furq> fwiw if you want it to be totally portable you'll probably need to static link libc (and libstdc++ if you have any c++ libs)
[19:18:15 CEST] <furq> which afaik means building against musl or something
[19:18:49 CEST] <ajsharp> @furq yea, i don't need to go that deep, i'm copying to the same os version, so most shared libs should be the same
[19:18:55 CEST] <furq> fair enough
[19:19:08 CEST] <furq> if it's a reasonably close glibc version then you should be fine
[20:12:04 CEST] <ajsharp> with the help of a shitload of packages, i got the 'static' build to work :)
[20:26:55 CEST] <vade> TFW you get one more frame from your encode than what you decoded&
[20:30:40 CEST] <ajsharp> anyone know what lib-postproc is used for?
[20:40:46 CEST] <spiderkeys> ajsharp: My ./configure looks about the same as yours. Here is what I have to use to build my application with static libs:
[20:40:47 CEST] <spiderkeys> LDLIBS = -static -lzmq -lmxcam -lmxuvc -lavformat -lavcodec -lavutil -lswresample -lswscale -lx264 -Wl,--whole-archive -lpthread -Wl,--no-whole-archive -ldl -lz
[20:41:01 CEST] <spiderkeys> you can ignore the first three of those libs
[20:41:56 CEST] <ajsharp> @spiderkeys great, thanks, much appreciated
[20:42:22 CEST] <spiderkeys> ajsharp: https://github.com/OpenROV/openrov-ffmpeg/blob/master/build.sh
[20:42:40 CEST] <spiderkeys> thats for an older commit of ffmpeg. I had to disable-vaapi in a newer one
[20:45:22 CEST] <spiderkeys> it still gives me some weird warnings about libc and static linking sometimes, which only started happening recently. Don't know if its a gcc thing or what, but it doesn't seem to hurt anything
[20:46:00 CEST] <spiderkeys> static linking is always such a pain
[20:46:59 CEST] <ajsharp> yea, i'm need to use 2.7...i'm basically just trying to create a docker image so i can build it once and be done with it
[20:47:09 CEST] <spiderkeys> Now that I think about it, its probably because I built ffmpeg with gcc-4.8.x and since then installed 4.9.x and build my app with that. probably different version of libc/c++
[20:47:23 CEST] <ajsharp> it seems to be working with a bunch of dynamically linked libs via apt, but, whatever
[20:55:27 CEST] <needmorespeed> I have a sharing violation on a file written with FFmpeg. I can open the file with VLC, but LockHunter says its still locked by my app.
[21:02:44 CEST] <vade> how do I use av_guess_format to properly hint for MP4v2 vs MP4v1 container ?
[21:03:40 CEST] <vade> oh. part 14
[21:03:41 CEST] <vade> duh
[21:03:48 CEST] <vade> hm
[21:04:59 CEST] <Elgul> I have the following problem: having .mp4 anime movie ;)))))))) and .srt subtitles file and I want to hardcode the subs, tried it all, but it wont work for me.
[21:05:05 CEST] <vade> so my output codec according to media info is Codec ID : isom (isom/iso2/avc1/mp41)
[21:05:17 CEST] <vade> my source is Codec ID : mp42 (mp42/isom)
[21:05:36 CEST] <vade> how do I hint my guess format for mp42? :X im likely missing something here
[21:05:58 CEST] <c_14> Elgul: ffmpeg -i mp4 -vf subtitles=subtitles.srt out.mkv
[21:06:17 CEST] <Elgul> but I need it as mp4
[21:06:24 CEST] <Elgul> because of mimetype
[21:06:39 CEST] <Elgul> is there a way to hardcode subs into mp4?
[21:06:44 CEST] <Elgul> or will it only work with mkv?
[21:07:05 CEST] <c_14> then just change the file ending to mp4
[21:07:12 CEST] <Elgul> actually I did that
[21:07:23 CEST] <Elgul> it converted 1h
[21:07:27 CEST] <Elgul> but there are no subs
[21:07:34 CEST] <Elgul> at least not hardcoded
[21:07:48 CEST] <Elgul> alright
[21:07:51 CEST] <c_14> maybe add -t 10 before out.mp4 then it will only encode 10s as a test
[21:07:52 CEST] <Elgul> gimme a second
[21:08:34 CEST] <Elgul> http://hastebin.com/ulozafexek.rb
[21:09:30 CEST] <c_14> that's not the command I gave you
[21:09:37 CEST] <c_14> That also doesn't hardcode the subtitles
[21:09:43 CEST] <Elgul> no?
[21:10:00 CEST] <c_14> no
[21:10:29 CEST] <c_14> It encodes the subtitles in the mov_text format (a text subtitle format) and places that as a separate stream into the mp4
[21:10:45 CEST] <c_14> Players which then support that subtitle format can show those subtitles, but it's not hardcoded
[21:10:46 CEST] <Elgul> I am trying your command now
[21:12:48 CEST] <Elgul> https://w0bm.com/out.mp4
[21:12:50 CEST] <Elgul> nope
[21:12:54 CEST] <Elgul> http://hastebin.com/zereroneji.sm
[21:13:00 CEST] <Elgul> I used your command
[21:15:08 CEST] <c_14> Can you upload the subtitle file? Or at least the first chunk of it
[21:15:14 CEST] <Elgul> sure
[21:15:56 CEST] <Elgul> https://w0bm.com/subs.srt
[21:19:33 CEST] <c_14> works fine here
[21:19:37 CEST] <c_14> try updating your version of ffmpeg?
[21:19:42 CEST] <Elgul> hm
[21:19:58 CEST] <Elgul> I am running centos and took ffmpeg from the nux repo I guess
[21:20:07 CEST] <c_14> Try a static build
[21:20:09 CEST] <c_14> http://johnvansickle.com/ffmpeg/
[21:21:10 CEST] <Elgul> this is willbe pain to get this running
[21:21:12 CEST] <Elgul> I am sure
[21:21:14 CEST] <Elgul> but I'll try
[21:21:18 CEST] <Elgul> cause anime evening is important
[21:22:10 CEST] <c_14> the static build should just work"
[21:22:23 CEST] <Elgul> lets hope
[21:22:37 CEST] <Elgul> I dont like compiling
[21:22:51 CEST] <Elgul> especially not when I just want everything to work
[21:23:17 CEST] <Elgul> ./configure
[21:23:20 CEST] <Elgul> make
[21:23:21 CEST] <Elgul> waiting
[21:24:10 CEST] <c_14> Get a pc with more cores and make -j32
[21:24:28 CEST] <Elgul> I am doing all this on my dedicated server
[21:24:37 CEST] <Elgul> 8 cores
[21:24:47 CEST] <Elgul> 4TB Raid 1
[21:24:50 CEST] <Elgul> and shit
[21:24:52 CEST] <Elgul> it's too big
[21:25:17 CEST] <c_14> what's too big?
[21:25:24 CEST] <Elgul> my server for my needs
[21:33:49 CEST] <vade> ok, so ffprobe indicates my source is major brand mp42 compatible mp42isom - my libavformat/libavcodec transcode indicates major brand isom compatible isomiso2avc1mp41
[21:34:05 CEST] <vade> how do I get my muxer / output format context to be mp42 major brand?
[21:34:39 CEST] <Elgul> now it says: no such filter: 'subtitles'
[21:34:41 CEST] <Elgul> this is shit
[21:36:34 CEST] <c_14> The one you built yourself?
[21:36:37 CEST] <Elgul> yes
[21:37:01 CEST] <Elgul> http://hastebin.com/siyugeruyu.vbs
[21:37:07 CEST] <c_14> You need to enable libass (and probably fontconfig)
[21:37:20 CEST] <c_14> Did you try the static build?
[21:37:26 CEST] <Elgul> this is the static one
[21:37:29 CEST] <Elgul> I downloaded it
[21:37:32 CEST] <vade> libass. *giggle*
[21:37:33 CEST] <Elgul> compiled it
[21:37:36 CEST] <Elgul> hihi ass
[21:37:38 CEST] <Elgul> :>
[21:37:58 CEST] <c_14> Eh, the static build I linked is pre-built. i.e. no need to compile it
[21:38:24 CEST] <Elgul> ah fuk
[21:38:26 CEST] <Elgul> I am stupid
[21:38:28 CEST] <Elgul> fuck me
[21:40:22 CEST] <Elgul> hehe if it now works you are my man c_14
[21:41:40 CEST] <Elgul> https://w0bm.com/pleasework.mp4
[21:41:44 CEST] <Elgul> I give up
[21:42:24 CEST] <c_14> Maybe your computer just hates you?
[21:42:32 CEST] <Elgul> http://hastebin.com/ocokosizuy.sm
[21:42:34 CEST] <Elgul> cant tell
[21:42:41 CEST] <Elgul> just can tell that this is fucked
[21:43:58 CEST] <c_14> Maybe your fontconfig doesn't like you and is giving you transparent fonts?
[21:44:09 CEST] <c_14> Maybe try ffmpeg -i subs.srt out.ass and then use the ass filter -vf ass=out.ass
[21:44:10 CEST] <Elgul> that would be mean
[21:44:27 CEST] <Elgul> yep will try now
[21:47:00 CEST] <Elgul> nope
[21:47:02 CEST] <Elgul> not working
[21:47:04 CEST] <Elgul> this is shit
[21:47:06 CEST] <Elgul> I hate it
[21:48:10 CEST] <smthorwhat> hey guys. anyone know what this means " [graph 1 aresample for input stream 0:2 @ 0x207b280] [SWR @ 0x21de040] Failed to compensate for timestamp delta of 273.516250"
[21:48:15 CEST] <smthorwhat> is there something i can use to fix that ?
[21:52:16 CEST] <c_14> Elgul: does fc-list output anything?
[21:52:30 CEST] <Elgul> nope
[21:52:37 CEST] <Elgul> I think my server doesnt have any fonts
[21:52:44 CEST] <Elgul> this would explain it, right?
[21:52:58 CEST] <c_14> yep
[21:53:10 CEST] <c_14> try installing dejavu-sans or something
[21:56:17 CEST] <Elgul> need to find it
[21:59:15 CEST] <c_14> you can probably just download the package from here http://dejavu-fonts.org/wiki/index.php?title=Download unpack it to i.e. $HOME/.fonts and then run fc-cache $HOME/.fonts
[22:01:17 CEST] <Elgul> yes
[22:01:21 CEST] <Elgul> I did that
[22:01:24 CEST] <Elgul> trying out now
[22:04:17 CEST] <Elgul> I do think now its working
[22:04:21 CEST] <Elgul> https://files.nogf.club/screenshots/5b5caa04.png cc c_14
[22:04:54 CEST] <c_14> It is, at very least, actually doing things now.
[22:05:23 CEST] <Elgul> yes its working :3
[22:05:32 CEST] <Elgul> but the subs are not synced
[22:06:50 CEST] <c_14> Are the subs synced if you don't burn them in?
[22:07:05 CEST] <Elgul> dont know
[22:07:09 CEST] <Elgul> I guess its a sub problem
[23:54:14 CEST] <neuro_sys> Hello, I get No such filter: 'colorkey'
[23:54:17 CEST] <neuro_sys> error
[23:54:39 CEST] <neuro_sys> But then I'm using avconv, is that not part of it?
[23:55:06 CEST] <c_14> colorkey is only in recent ffmpeg versions from FFmpeg and not in libav (avconv)
[23:55:31 CEST] <neuro_sys> so, I should compile ffmpeg from upstream myself then.
[23:55:45 CEST] <c_14> That or use a static build
[23:55:58 CEST] <neuro_sys> are they available online?
[23:56:03 CEST] <c_14> http://johnvansickle.com/ffmpeg/
[23:56:05 CEST] <neuro_sys> I could use a x86_64
[23:56:09 CEST] <neuro_sys> thanks
[23:57:53 CEST] <neuro_sys> yay!
[23:59:01 CEST] <needmorespeed> Is there any way to write to a file without locking? I can force it free using LockHunter
[23:59:20 CEST] <c_14> ffmpeg itself does not use locking
[23:59:23 CEST] <c_14> Blame your OS
[00:00:00 CEST] --- Fri Apr 29 2016



More information about the Ffmpeg-devel-irc mailing list