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

burek burek021 at gmail.com
Wed Apr 29 02:05:01 CEST 2015


[09:53:47 CEST] <termos> I'm having some issues when I get unordered pts frames into my filter graph, the buffer_sink is just filled up waiting for the correct pts frames, and my program can crash. Doesn't happen often, but I want to avoid it crashing. Can I somehow sanely stop the process when the buffer_sink buffer is too large?
[10:14:17 CEST] <omnivibe> Question... I have a video player that I wrote in Actionscript/Flash and I'm thinking of porting it to C... looking at ffplay as the basis, is that the most basic starting point for current state of the art- seems like a lot of options that won't be necessary for me? (i.e. I need it to play *fast* and in full screen, take advantage of hw accelleration/gpu/ etc.- but I control the format it will be able to play, and can restrict it to only
[10:14:18 CEST] <omnivibe> h264/x264 in various profiles))
[10:14:49 CEST] <omnivibe> Similarly, how does the LGPL license affect that? I guess it means I can compile ffmpeg libraries, but can't actually use ffplay since I won't be sharing the actual player source?
[11:16:40 CEST] <dreamon> how can I merge 2 (same format) file to one file -> ffmpeg -i "concat:movie1.mkv|movie2.mkv" -f mpeg -c copy output.mkv ->  could not found concat:movie1.mkv|movie2.mkv
[11:16:58 CEST] <dreamon> is that syntax right?
[11:18:02 CEST] <techtopia> it never works for mkv's for me, you have to transcode to .ts then concat then transcode result back to mkv
[11:18:13 CEST] <techtopia> you could just do
[11:18:50 CEST] <techtopia> mkvmerge -o output.mkv movie1.mkv + movie2.mkv
[11:20:32 CEST] <dreamon> techtopia, Thank you. That makes sense.
[11:21:15 CEST] <techtopia> np
[11:33:25 CEST] <dreamon> techtopia, I merged both files. length is gotten bigger,but, is only playing the length on first file size instead longer hmm..
[11:43:08 CEST] <techtopia> are both mkv's the same spec
[11:43:22 CEST] <techtopia> same resolution / framerate / encoding settings
[11:43:44 CEST] <techtopia> it not you might need to re-encode them both with the same settings
[12:20:48 CEST] <drwx> ffmpeg -i in.264 out.mkv; mediainfo -f out.mkv | grep Delay
[12:20:51 CEST] <drwx> Delay                                    : 83ms
[12:20:55 CEST] <drwx> why does it do that?
[12:21:00 CEST] <drwx> i've always found it pretty annoying
[12:32:13 CEST] <drwx> ok so this is a bug https://trac.ffmpeg.org/ticket/2975
[12:34:22 CEST] <usbpc> Hi everyone. I tried using ffmpeg to convert an avi file (lagarith lossles codec) and uncompressed audio to h.264 using x264. The command I used is: ffmpeg -i "./lagarith.avi" -c:v libx264 -preset slow -crf 21.5 -c:a flac -compression_level 12 ./output.mkv The Problem is that the video has artefacts (I think they are called that) and in the console it repeats Output more bytes than length with numbers in brackets behind. Video: http://yo
[12:55:50 CEST] <alexvf> hi
[12:56:31 CEST] <alexvf> what is the best way of getting the teletext descriptors from a teletext stream using ffmpeg?
[12:57:03 CEST] <alexvf> i cannot find a way apart from reading codec extradata, is it the expected way?
[12:58:00 CEST] <alexvf> from what i see, mpegts.c only parses language from teletext descriptors and copies the rest of the descriptors to extradata
[13:22:20 CEST] <alexvf> how is a player using libavformat supposed to know the teletext page of a teletext subtitle stream? does it need to parse codec extradata or is there a more civilized way?
[14:10:54 CEST] <usbpc> Sorry, my PC crashed. Did someone answer my Question while I was away?
[14:11:12 CEST] <quellen> no
[14:11:48 CEST] <quellen> what is your question?
[14:12:26 CEST] <usbpc> I have to rewrite it, wait a sec-
[14:12:36 CEST] <quellen> i have a question too
[14:13:51 CEST] <quellen> when ffmpeg converts a TS file (DTT noisy recorded), the audio is out of sync: http://pastebin.com/uuFSQzfh
[14:14:44 CEST] <quellen> audio in original TS is ok
[14:15:12 CEST] <usbpc> I tried to convert an avi (lagarith lossless codec) to h.264 usin x264. But the output looks like this: https://youtu.be/GQlqTJj6qrI Command I used: ffmpeg -i "./lagarith.avi" -c:v libx264 -preset slow -crf 21.5 -c:a flac -compression_level 12 ./output.mkv
[14:16:14 CEST] <quellen> the output seems ok, what is the problem?
[14:16:15 CEST] <usbpc> While it is converting the Console outputs: Output more bytes than length a lot. but otherwise its normal.
[14:16:26 CEST] <usbpc> quellen: keep watching
[14:18:02 CEST] <usbpc> Or watch there: https://www.youtube.com/watch?v=GQlqTJj6qrI&feature=youtu.be&t=145 sometimes something flashes on screen like raw data or something. Hard to describe.
[14:18:29 CEST] <quellen> when i convert with ffmpeg i use these options:
[14:18:30 CEST] <quellen> ffmpeg -y -i "original.vob" -f avi -r 25 -vcodec libxvid -vtag XVID -maxrate 1800k -b 1500k -qmin 3 -qmax 5 -bufsize 4096 -mbd 2 -bf 2 -trellis 1 -flags +aic -cmp 2 -subcmp 2 -g 300 -acodec copy "output.avi"
[14:20:28 CEST] <techtopia> use crf 21 or 22
[14:20:28 CEST] <usbpc> I just saw in the title that debian is experimantal, I'll try the conversion on Windows again.
[14:20:32 CEST] <techtopia> not 21.5
[14:20:35 CEST] <techtopia> there is no 21.5
[14:21:29 CEST] <usbpc> techtopia: okay, but why does it work with x264 using MeGUI?
[14:22:11 CEST] <techtopia> it shouldnt work i guess it just ignores it and doesn't use crf at all
[14:22:15 CEST] <techtopia> you can check with mediainfo
[14:22:38 CEST] <quellen> if you need a ffmpeg gui, install winff
[14:22:43 CEST] <usbpc> Okay I'll check.
[14:23:18 CEST] <techtopia> what type of content is it
[14:23:36 CEST] <usbpc> I don't need a GUI, I want to use my old PC as an automated rendering station.
[14:23:50 CEST] <usbpc> And that PC is running as a Debian server.
[14:26:03 CEST] <usbpc> media info tells me crf=21.5 when using MeGUI
[14:26:54 CEST] <usbpc> techtopia: Content is Gaming.
[14:27:13 CEST] <usbpc> In this case Metro: Last Light Redux
[14:28:38 CEST] <techtopia> you would be better with a higher crf then probably 23
[14:30:03 CEST] <usbpc> Thats possible, but I don't think that that is the reason my video has these glitches
[14:31:37 CEST] <juzzlin_> hi, is it possible to automatically make input jpg sizes even as it seems that encoding to x265 fails on odd image sizes?
[14:32:46 CEST] <techtopia> usbpc can you do a open the source ts in mediainfo
[14:33:01 CEST] <techtopia> select the view mode "text" and paste the text to pastebin
[14:33:06 CEST] <techtopia> juzzlin, what do you mean
[14:33:30 CEST] <usbpc> source ts?
[14:33:38 CEST] <techtopia> oh it was an avi
[14:33:41 CEST] <quellen> noone helps me
[14:33:53 CEST] <techtopia> "./lagarith.avi"
[14:34:05 CEST] <usbpc> okay, wait a sec
[14:34:18 CEST] <techtopia> quellen you can get an app called delay cut to fix the sync
[14:34:47 CEST] <techtopia> delaycut_1212_exe.zip have a google for it
[14:35:26 CEST] <juzzlin_> techtopia: I get "x265 [error]: Picture height must be an integer multiple of the specified chroma subsampling" on certain input image sixes.
[14:35:30 CEST] <quellen> nothing for Linux?
[14:35:41 CEST] <usbpc> There the tect output: http://pastebin.com/wj7AntdU
[14:35:48 CEST] <techtopia> their probably is but not that i know of quellen
[14:35:54 CEST] <techtopia> im on windows
[14:36:11 CEST] <quellen> i try to launch it with wine
[14:36:20 CEST] <quellen> thx
[14:38:21 CEST] <quellen> it works. i must extract audio from TS?
[14:39:48 CEST] <quellen> what command i must use? ffmpeg -i original.TS output.mp3 ?
[14:40:19 CEST] <usbpc> Dosen't work, still a glitch in that Video. But better but I used the wrong video file, I'll try with the right one again
[14:40:51 CEST] <techtopia> usbpc try this
[14:40:57 CEST] <techtopia> ffmpeg -y -i lagarith.avi -sws_flags spline -sn -s 1920x1080 -c:v libx264 -preset slow -profile:v high -level 4.1 -crf 23 -r 60 -x264opts colormatrix=bt709 -refs 4 -acodec copy output.mkv
[14:41:18 CEST] <techtopia> yeah quellen demux it
[14:41:46 CEST] <techtopia> ffmpeg -i input.ts -acodec copy -vn output.ac3
[14:41:53 CEST] <techtopia> ffmpeg -i input.ts -acodec copy -vn output.mp3  **
[14:41:55 CEST] <quellen> i think the problem is on video too, not only in audio
[14:41:59 CEST] <quellen> ok
[14:42:09 CEST] <techtopia> do "ffmpeg -i input.ts"
[14:42:15 CEST] <techtopia> then you can see what the audio is
[14:42:21 CEST] <techtopia> then demux it to the right extension
[14:42:27 CEST] <usbpc> okay its rendering....
[14:42:50 CEST] <quellen> Stream #0:1[0x5fa]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, mono, s16p, 112 kb/s
[14:42:54 CEST] <quellen> mp2?
[14:42:57 CEST] <techtopia> yes
[14:43:04 CEST] <techtopia> ffmpeg -i input.ts -acodec copy -vn output.mp2
[14:43:09 CEST] <quellen> ;-)
[14:45:07 CEST] <quellen> in delaycut what i must do? only PROCESS?
[14:45:28 CEST] <quellen> CRC errors is set to SILENCE
[14:46:22 CEST] <quellen> http://pastie.org/10118147
[14:47:15 CEST] <techtopia> :( doesent look good
[14:47:25 CEST] <techtopia> not sure whats causing the errors
[14:47:37 CEST] <quellen> bad signal of DTT
[14:47:39 CEST] <techtopia> i've used it before to fix sync issues with ac3 files and it worked
[14:49:21 CEST] <techtopia> hmm is the audio ahead or behind the video?
[14:50:30 CEST] <techtopia> either way work out the delay in ms
[14:50:43 CEST] <techtopia> generate a silent mp2 that ammount of ms long
[14:50:53 CEST] <usbpc> Nope Video still gliched. Command output: http://pastebin.com/Gupd7u3P
[14:52:06 CEST] <techtopia> if audio is ahead of video do "copy /b silence.mp2 + sourceaudio.mp2 audiofix.mp2
[14:52:36 CEST] <techtopia> if audio is behind video do "copy /b sourceaudio.mp2 + silence.mp2 audiofix.mp2"
[14:52:49 CEST] <techtopia> then mux audiofix.mp2 with encoded video
[14:53:58 CEST] <techtopia> you sure the errors are not present in the source usbpc
[14:54:35 CEST] <usbpc> pretty unless copying via ftp created errors.
[14:54:36 CEST] <quellen> i will try
[14:55:39 CEST] <usbpc> I'll try rendering it with ffmpeg locally on windows to see if it is a debian bug.
[15:01:19 CEST] <quellen> techtopia, what do you mean for "audio ahead or behind the video"?
[15:01:39 CEST] <quellen> Stream #0:0[0x4f6]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 480x576 [SAR 8:5 DAR 4:3], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
[15:01:39 CEST] <quellen>     Stream #0:1[0x5fa]: Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, mono, s16p, 112 kb/s
[15:03:31 CEST] <usbpc> Video is fine when rendering local on windows.
[15:04:18 CEST] <quellen> how can generate a silent mp2?
[15:05:21 CEST] <quellen> see you later
[15:15:28 CEST] <usbpc> techtopia: I downloaded a newer version for debian but still gliched video. Command: ./ffmpeg-2.6.2-64bit-static/ffmpeg -y -i lagarith.avi -sws_flags spline -sn -s 1920x1080 -c:v libx264 -preset slow -profile:v high -level 4.1 -crf 23 -r 60 -x264opts colormatrix=bt709 -refs 4 -acodec copy output.mkv Output: http://pastebin.com/8vfBWHHC
[15:28:45 CEST] <usbpc> techtopia: Okay it was the source file. It got corupted somehow while transfering to my old PC via FTP. Strange but thanks a lot!
[15:49:39 CEST] <sybariten> oi videoers
[15:49:44 CEST] <sybariten> failing with the multiple image input thing
[15:50:37 CEST] <sybariten> images are called BLACK_PACKSHOT_00001.tif up until BLACK_PACKSHOT_00242.tif .... whats the ffmpeg syntax then?
[15:56:16 CEST] <usbpc> try this: ffmpeg -framerate 1/5 -i BLACK_PACKSHOT_%03d.png -c:v libx264 -r 30 -pix_fmt yuv420p out.mp4
[15:58:32 CEST] <usbpc> sybariten, but I have no idea if it works, just looked it up on google.
[16:06:27 CEST] <sybariten> yeah sorry should have gotten back here earlier....    in the case of for instance five numbers, like in this case...  it's  %05d
[16:14:13 CEST] <usbpc> sybariten, so you got it?
[16:21:01 CEST] <sybariten> yeah
[16:21:03 CEST] <sybariten> thanks!
[16:48:21 CEST] <albru123> Hello, I'm trying to encode an AviSynth script (mkv video with subtitles), but I keep getting "Could not write header for output file #0" error. Can someone tell me what's wrong? Here are some basic information: http://hastebin.com/lucofayuze.tex
[16:55:29 CEST] <_deivor> Hi.. I'm having some static audio issues while using fdk-aac and this static is not there if I use mp2 (mp2 for rtp, fdk-aac for rtmp).. is this a known issue?
[16:55:46 CEST] <_deivor> as in constant static interference,
[16:57:03 CEST] <HSKW> hello!
[16:57:19 CEST] <HSKW> i need help to watch an continuous .ts segment file
[16:57:52 CEST] <HSKW> i dont know how to watch/record an .ts segment (3seconds durations) with same name every time
[17:05:15 CEST] <_deivor> why is it the same name?
[17:05:44 CEST] <_deivor> you could set up a watchdog to restart the process when the file is modified
[17:06:36 CEST] <HSKW> i dont know why the .ts use the same name every segment
[17:07:22 CEST] <HSKW> i must concatenate every segment with same name... like an live streaming with HLS system but use every segment the same .ts name
[17:07:45 CEST] <HSKW> if i play with ffplay i can watch only few seconds and than stops...
[17:21:02 CEST] <_deivor> HSKW can you try another player?
[17:21:31 CEST] <usbpc> albru123, It seems that you use an Invalid argument. I don't know ffmpeg nor AviSynth very well but you should check your command and AviSynth script for typos.
[17:21:56 CEST] <_deivor> I don't know how a player handles or even should handle that; but what you CAN do is set up a watchdog that immediately moves that file to another, when it is created
[17:21:57 CEST] <HSKW> _deivor: i cant use another player...
[17:22:28 CEST] <HSKW> its use HLS, only ffdshow can help me
[17:22:36 CEST] <_deivor> mpv/vlc play hls
[17:22:51 CEST] <HSKW> yes vlc same result, only play 3 seconds
[17:23:15 CEST] <HSKW> regards: i dont have the m3u8, only the segmented .ts url
[17:23:59 CEST] <HSKW> i must reload/concatenate the same .ts segment every 4 seconds
[17:25:35 CEST] <_deivor> you are essentially destroying the video.. the player most likely won't handle that gracefully
[17:25:49 CEST] <_deivor> running on linux or windows?
[17:26:14 CEST] <HSKW> windows at the moment
[17:33:12 CEST] <albru123> usbpc: It was maybe due to AviSynth and MP4 combination
[17:33:14 CEST] <HSKW> _deivor: did you want some example .ts file?
[17:33:26 CEST] <albru123> It rendered well with MKV, but the sound was disroted
[17:35:16 CEST] <usbpc> albru123, In the original video the sound is okay?
[17:35:51 CEST] <albru123> usbpc: Yep, I'm wondering how it gets the sound anyway, if it's processed by avisynth
[17:36:01 CEST] <albru123> maybe some DirectShow bug
[17:36:05 CEST] <albru123> or wrong settings
[17:36:41 CEST] <usbpc> you could just extract the audio from the original and then into your output file.
[17:37:58 CEST] <albru123> yeah, I was googling how to mux it directly in ffmpeg, but I don't know if that's possible
[17:38:43 CEST] <usbpc> It is I know that, but I don't know the command. I'll try to find out.
[17:43:47 CEST] <usbpc> albru123, try this command: ffmpeg -i C:\Users\User\Desktop\input.mkv -i output.mkv -c copy -map 0:a:0 -map 1:v:0 output1.mkv
[17:44:47 CEST] <albru123> usbpc: What's output.mkv? o.O
[17:45:02 CEST] <usbpc> your previous output file?
[17:45:06 CEST] <albru123> oh
[17:45:27 CEST] <albru123> didn't thought about this solution
[17:45:38 CEST] <usbpc> no problem
[17:46:14 CEST] <usbpc> I hope it works.
[17:49:35 CEST] <albru123> usbpc: Yes, it worked well :)
[17:49:55 CEST] <usbpc> Nice.
[17:50:07 CEST] <albru123> But still useless, as previous step desynchronized audio and video for some reason xD
[17:51:17 CEST] <usbpc> strange
[17:51:22 CEST] <albru123> usbpc: Maybe the source video uses variable framerate, I'm not quite sure. I know it was mentioned somewhere, to set constant framerate when loading video in AviSynth, but I skipped that
[17:53:39 CEST] <usbpc> albru123, I don't know
[17:54:14 CEST] <usbpc> albru123, I don't really know ffmpeg. But I know how to use google. ;)
[17:56:13 CEST] <albru123> usbpc: Hmm, basically I'm just trying to hardsub subtitles to a video, I'll try google as you do :D
[18:03:16 CEST] <usbpc> albru123, maybe try without avisynth: ffmpeg -i C:\Users\User\Desktop\input.mkv -vf "ass=C:\Users\User\Desktop\Subs\Makai\input.ass" output.mkv
[18:03:53 CEST] <kepstin-laptop> you probably want to use the 'subtitles' filter rather than 'ass' filter so it can pull fonts from the file.
[18:04:43 CEST] <usbpc> kepstin-laptop, could you post the command for that?
[18:04:55 CEST] <c_14> https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo
[18:05:03 CEST] <kepstin-laptop> exactly the same as what you just posted, but replace "ass" with "subtitles"...
[18:05:05 CEST] <albru123> usbpc: You need to setup fontconfig for that, and that's really annoying
[18:06:21 CEST] <HSKW> ffmpeg or ffplay to loop play an url?
[18:06:30 CEST] <usbpc> kepstin-laptop, and then it just works?
[18:06:56 CEST] <albru123> I also need perfect ass effects support, that's why I'm doing this thing all the time
[18:07:01 CEST] <kepstin-laptop> usbpc, it should, yeah.
[18:07:19 CEST] <kepstin-laptop> albru123, ah, so you're using vsfilter in preference to libass then :/
[18:07:56 CEST] <albru123> kepstin-laptop: Exactly, but for some reason that avisynth script desynchronized audio and video :P
[18:08:12 CEST] <albru123> and disroted sound, weird
[18:08:18 CEST] Action: kepstin-laptop doesn't have a windows box, so he hasn't ever seem most subtitles rendered with anything other than libass anyways.
[18:10:11 CEST] <albru123>  I used Handbrake, but it doesn't support those ass effects very well
[18:13:43 CEST] <usbpc> albru123, could you just first burn the subtitles in the video without sound and then add sound?
[18:14:19 CEST] <albru123> usbpc: Maybe, I'll try it, but if it changes the framerate somehow, it is worthless
[18:14:33 CEST] <usbpc> albru123, true
[18:14:56 CEST] <albru123> kepstin-laptop: Tried it with subtitles filter, I know why I haven't used it. It just kept throwing "Past duration 0.XXXXX too large"
[18:20:39 CEST] <albru123> Trying with ConvertFPS=true, I hope it'll work ...
[18:20:53 CEST] <HSKW> how to loop a video on ffplay?
[18:29:16 CEST] <albru123> Looks like it works fine now and it also copied the audio stream even without setting -c:a copy
[18:30:07 CEST] <usbpc> albru123, thats nice.
[18:30:30 CEST] <albru123> now just pack it inside MP4 somehow
[18:31:55 CEST] <usbpc> albru123, i think you need to convert the audio for that
[18:32:50 CEST] <albru123> usbpc: Probably ... gotta get libfdk_aac to work first
[18:33:47 CEST] <albru123> In case the stream copy really won't work
[18:34:28 CEST] <albru123> Oh, it didn't copied the stream, it encoded it as vorbis
[18:34:56 CEST] <usbpc> So it worked?
[18:36:08 CEST] <usbpc> Yea mp4 only allows following audio codecs: MPEG-4 Part 3, AAC, MP3, MP2, MP1
[18:37:06 CEST] <albru123> usbpc: Yeah probably, it's still encoding
[18:37:41 CEST] <usbpc> if not just convert mannually
[18:38:56 CEST] <albru123> Yeah, I just don't won't to do it, because the source audio track is perfectly fine :/
[18:42:37 CEST] <usbpc> albru123, yea it seems to be raw wav or something like that (pcm_f32le)
[18:43:14 CEST] <usbpc> but why do you need a mp4 your source is mkv too?
[18:43:29 CEST] <albru123> usbpc: I'm pretty sure it's aac, but AviSynth is doing strange things with it maybe
[18:44:17 CEST] <usbpc> maybe
[18:44:43 CEST] <usbpc> we'll see when its done encoding.
[18:44:49 CEST] <albru123> usbpc: It's not really neccessary, but it's some kind of convention that our group uses. If it's not easily possible to make mp4 from it, I'll just leave it as it is
[22:47:12 CEST] <penthief> Where do I look when I see "minor_code:4 major_code:130."
[22:48:37 CEST] <penthief> I'm interested to know where the error codes are documented, but this is the complete error: [x11grab @ 0x1db35e0] Cannot get the image data event_error: response_type:0 error_code:8 sequence:9 resource_id:50331648 minor_code:4 major_code:130.
[22:49:06 CEST] <penthief> Then it cored: Process screencapture segmentation fault (core dumped)
[22:49:53 CEST] <penthief> ffmpeg version 2.5.4-1 built with gcc 4.9.2 (Ubuntu 4.9.2-10ubuntu7)
[22:51:08 CEST] <iive> penthief: i suspect that these are x11 codes
[22:51:17 CEST] <penthief> oh, sorry
[22:51:25 CEST] <penthief> and thanks
[22:52:15 CEST] <penthief> Is the crash acceptable, what with x mibehaving?
[22:53:06 CEST] <iive> depending on your definition of crash. exiting with error is OK, segfault is not.
[22:53:59 CEST] <penthief> I'll look at raising a bug then, 3 segfaults.
[22:55:01 CEST] <iive> btw, these numbers are decimals, in case you want to look them up.
[22:55:02 CEST] <penthief> is there a doc for raising bugs?
[22:55:25 CEST] <penthief> decimals?
[22:55:36 CEST] <iive> the minor/major_code
[22:56:06 CEST] Action: penthief notices the segfault occurs when changing window.
[22:56:39 CEST] <iive> sometimes hexidecimal numbers are used. they should be prefixed with 0x, but it is not automatic.
[22:57:00 CEST] <penthief> gotcha
[23:04:12 CEST] <penthief> (the screen resolution was wrong, hence the error, but the subsequent segfault probably wants raising, not sure...)
[23:04:43 CEST] <penthief> "incorrect resolution with x11grab causes a segfault when switching windows"
[00:00:00 CEST] --- Wed Apr 29 2015


More information about the Ffmpeg-devel-irc mailing list