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

burek burek021 at gmail.com
Wed Jan 14 02:05:01 CET 2015


[00:01] <justinX> xreal: yes. dvd was designed so the hardware wouldn't need fonts
[00:04] <justinX> yeah I guess there are good softwares that ocr the subtitle bitmaps to make text subtitles of them. probably using spellchecker wordlists to know what is l, l and 1 etc...
[00:17] <xreal> Actually, I like Bitmap Fonts more...
[00:18] <xreal> I've seen awful text subtitles in the last days.
[00:45] <justinX> xreal: well... if the software that plays your films are in any way changeable, then you could ofcourse make it use a bitmap font of your liking for text subtitles
[00:46] <justinX> its hard if the player is something built into you tv ofcourse. sure it is flashable, but how, and then how to code for that hardware? mmm... assembler for some unknown cpu :-D
[00:50] <kepstin-laptop> well, tvs would just be  using stock arm or mips cores, half of them probably run linux already...
[00:50] <kepstin-laptop> (if not all of them)
[01:17] <znf> Hi.
[01:17] <znf> Can someone help me figure what I'm doing wrong here with this command?
[01:17] <znf> ffmpeg.exe -y -i audio.mp3 -i canvas.png -loop 1 -r 25 -i trans_%d03.png -filter_complex "[0:a] showwaves=size=1280x100:mode=line:r=25 [wave];[1:v][wave] overlay=y=H-h:eval=init[comp];[comp][2:v] overlay=eval=init" -shortest -acodec
[01:17] <znf> copy -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -tune stillimage -crf 20 -movflags faststart "..\videos\out.mp4"
[01:17] <znf> I can't seem to be able to make it loop trough trans_%d03.png
[01:21] <znf> Mkay, this is the exact command and output: http://pastebin.com/5VY48t3k
[01:21] <znf> The only thing I'm not getting to work is the duration of the video. It just outputs 1 frame of video :-/
[01:21] <znf> I know I've done this once, but I can't remember how
[01:25] <pzich> if you want it to loop I don't think you want -shortest
[01:25] <llogan> znf: you may want eof_action=repeat in whatever overlay deals with the image sequence
[01:26] <znf> pzich, I want it to stop on audio end
[01:26] <znf> llogan, hmmm, I don't recall doing that last year
[01:27] <xreal> justinX: I think, even if I had a modern TV, I'd always use a XMBC based solution.
[01:27] <znf> but let's see
[01:27] <xreal> More and more Android TVs are coming, so I can run XBMC/Kodi on there, too.
[01:28] <llogan> znf: i was being lazy and didn't really look at your output yet
[01:29] <znf> I wonder why the hell did I never save that command line I used last year :-|
[01:30] Action: justinX dreams of having guts enough to hack our Vestel tv.
[01:32] <llogan> oh, the repeat refers to the last frame. i forgot.
[01:34] <znf> I totally recall having the same issue back then
[01:35] <xreal> This is nice! https://www.youtube.com/watch?v=_tnQLPO-8TY
[01:37] <llogan> znf: try adding -loop 1 to canvas.png
[01:37] <znf> I did
[01:37] <llogan> works for me
[01:37] <pzich> does the -loop need to come before the -i?
[01:38] <znf> yes
[01:38] <pzich> your command posted above doesn't have that
[01:38] <znf> I changed that so many times :P
[01:39] <znf> either way it still doesn't loop the sequence
[01:41] <llogan> please provide your inputs.
[01:41] <znf> ok, it somehow worked now, let me see if it did the right thing
[01:42] <llogan> you can remove '-r 25' because the default is '-framerate 25'
[01:43] <znf> my original command was:
[01:43] <znf> tools\ffmpeg.exe -y -i temp\audio.mp3 -loop 1 -i temp\canvas.png -i temp\annotated.png -filter_complex "[0:a] showwaves=size=1280x100:mode=line:r=25 [wave];[1:v][wave] overlay=y=H-h:eval=init[comp];[comp][2:v] overlay=eval=init" -shortest -acodec copy -vcodec libx264 -pix_fmt yuv420p -preset ultrafast -tune stillimage -crf 20 -movflags faststart "videos\GUESS WHO-SEX.mp4"
[01:43] <znf> but somehow it never worked properly just by replacing temp\annotated.png with temp\trans_%d03.png
[01:44] <znf> uhm, ok, that worked, I guess, creepy as hell as it's flashing 102931039 frames per second somehow
[01:47] <znf> ok, got it working, thanks for the iput
[01:47] <znf> input
[01:52] <whoever> c_14: does it make any difference that I got my vob earier with tccat
[01:52] <whoever> i don't think it does, but just asking
[01:54] <c_14> You can mention it, but as long as vlc plays it and ffmpeg/ffplay does not/breaks it, it's a bug.
[01:54] <c_14> btw did you mention that vlc can play it?
[01:56] <whoever> c_14: i did mention that vlc can play it , bud did not say that tccat was how i got the vob , i also noticed tccat, keeps menues , where vobcopy destroys them
[01:57] <c_14> Wait, so your vob has menus?
[01:59] <whoever> c_14: yes
[02:02] <whoever> c_14: should i be using a differnt command or program to do what i am doing then
[02:03] <c_14> Not sure how ffmpeg handles dvd menus.
[02:03] <whoever> c_14: i am tring right now with vobcopy so see if i get the same result I was getting before
[02:35] <whoever> c_14: well ffmpeg must hate menus
[02:37] <whoever> because when I used vobcopy to get vobs to one vob then converted the vob to h264 the file played
[02:43] Action: whoever mods ticket to reflect that vob contains menu 
[02:44] <whoever> handbrake destroys the menu too
[05:13] <whoever> c_14: just had a thaught, could it be that a menu cases the file to have more than 1 a, and one v track
[05:14] <whoever> if so are there switches to accomedate multiple trackes, simer to the one for multiple file inputs
[05:14] <c_14> You can map tracks with -map
[05:41] <whoever> c_14: but to do that wouldn't i have to know where the tracks are , lsdvd won't tell me that only the times of each chapter
[05:41] <c_14> ffprobe will tell you what tracks there are if it can find them
[05:41] <c_14> If it can't, neither can map
[05:42] <whoever> thx, I'll have to give that a go in the morning
[05:43] <c_14> It is morning. *ehem*
[05:44] <whoever> ok morning for me
[05:53] <whoever> c_14: i just ran ffmpeg -i on the vob from tccat and I got Invalid data found when processing input
[05:54] <whoever> and when i run the same command on the vob from vobcopy i don't get that error message
[05:54] <c_14> ffmpeg really doesn't like those menus
[05:59] <whoever> c_14: yep, I am determind to find a way to keep 'em
[06:00] <whoever> even handbrake will remove the menus
[06:01] <c_14> You want to keep the clickable menus?
[06:02] <c_14> Or just the menu animation?
[06:02] <whoever> c_14: both if possible
[06:03] <c_14> I'm not sure any sort of any format besides dvd/bluray that supports any sort of clickable menu...
[06:03] <whoever> c_14: and when i try to use vamps to compress i get a bad start flag error
[06:04] <whoever> so then, i tried to find away around it
[06:05] <whoever> c_14: so is my only option going to be to try to manuly recreate the file structure, and copress each vob
[06:06] <whoever> i would had thaught there would had been some sort of tool/utill by now that would had made it easier , then have to use  a for each loop
[06:07] <whoever> becuse , there is not away to use dvdauther with that error , dvdauther will error and die
[06:08] <c_14> Let's go all the way back, what are you trying to accomplish?
[06:09] <whoever> fit a dvd9 on dvd5 and maintain menus , and all other info
[06:11] <whoever> k9copy has weird issues, now it wants the root password to read a disc, and even with the root password k9copy says it can't open the disc
[06:11] <whoever> and dvd95 has a checkbox to keep menus , yet they still are removed in the end result
[06:12] <c_14> And you have the source as an iso? a dvd? a dvd folder ?
[06:13] <whoever> both, iso, and dvd
[06:23] <whoever> c_14: are you stumpd ?
[06:30] <c_14> Hmm, I can't really find anything about how to keep the menu.
[06:30] <c_14> Most of what I'm finding links to tools like k9copy etc
[06:31] <whoever> and k9copy uses doesn't look like it uses anything special, most of what it is is a font end to transcode, and ffmpeg
[06:32] <whoever> so the only that i think that can be happening is that each vob is getting compressed
[06:32] <whoever> its nearly imposible anyother way to keep menues
[06:33] <whoever> and most of what k9copy installs is kde lib crap so that you have a pretty gui
[06:33] <whoever> that weighs a ton
[06:34] <whoever> see you in a few hours, nap time
[06:35] <whoever> if you wanna try something like vams out $ vamps -E 1.6 < mm.vob  > m.mpeg, the build in help sucks to say the least
[11:05] <tmh1999> Hi guys, I am pretty new to ffmpeg and I am doing the official ffmpeg tutorial, hope someone could help me. I was just wondering which API to save all the frame into a new video?
[11:12] <tmh1999> are those APIs in libavcodec? I just wanted to make sure if I am on the right track.
[11:24] <saste> tmh1999, libavformat
[11:24] <saste> you use libavcodec to decode and encode video/audio data
[11:24] <saste> libavformat to extract compressed A/V frames and to mux them in a new "output"
[11:25] <saste> tmh1999, check also doc/examples
[11:34] <tmh1999> saste:I will look into that, thanks!
[12:45] <f0o> Hi, somebody told me that ffmpeg is no longer actively developed and that I should use avconv - couldn't find anything about this on the net, so what's the fuzz about this?
[12:45] <spaam> that is false
[12:46] <klaxa> that somebody was apparently misinformed
[12:46] <f0o> spaam: glad to read that!'
[12:46] <f0o> was worried for a moment hehe
[12:47] <spaam> f0o: http://git.videolan.org/?p=ffmpeg.git;a=shortlog as you can see here. lots of commits the last days.
[12:49] <spaam> f0o: its more or less a religion. some people like ffmpeg, some libav. some people use both. :D
[12:50] <f0o> I see hehe
[12:50] <tmh1999> f0o: this is for you http://superuser.com/questions/507386/why-would-i-choose-libav-over-ffmpeg-or-is-there-even-a-difference
[12:50] <f0o> you dont happen to know the rpm-repo for rhel/centos 7, do you?
[12:51] <tmh1999> read all the links that are mentioned from it and it leaves
[12:52] <f0o> I know ffmpeg is in http://rpmfusion.org/ but that's only 5&6, not 7
[12:52] <f0o> so wondered if some user packaged it for 7
[12:55] <ubitux> < f0o> Hi, somebody told me that ffmpeg is no longer actively developed and that I should use avconv // may i ask where this come from?
[12:56] <f0o> it's from some bloke at an webagency I've to deal with - apparently (as I just got told) - this only affects ubuntu because they used libav's ffmpeg
[12:56] <ubitux> ubuntu now has ffmpeg back
[12:56] <f0o> yeah he just said it too
[12:56] <ubitux> ffmpeg is very active, you can see the commits @ http://git.videolan.org/?p=ffmpeg.git
[12:56] <f0o> but didnt want to rant at them without having clarification hehe
[12:57] <f0o> yeah saw last major was 4rth dec 2014
[12:57] <ubitux> and mailing list activity from last month @ http://ffmpeg.org/pipermail/ffmpeg-devel/2014-December/thread.html
[12:57] <spaam> ubitux: going to fosdem? :)
[12:57] <ubitux> spaam: no i'm busy doing useful stuff
[12:58] <spaam> ubitux: okey :)
[14:07] <diffuse> I am attempting to using av_probe_input_format3 and it seems to return null every time.  I am passing AVProbeData pd =  {filename = 0xce69aa "stream", buf = 0x7ffff203b010 "ID3\003" } to probe
[14:13] <LigH> Hello.
[14:14] <LigH> Do you know of any successful ffmpeg builds including nvenc?
[14:44] <Elirips> Hello. Is the preset 'baseline' gone? If I do something like './ffmpeg -i rtsp://url -an -c:v libx264 -preset baseline -x264opts keyint=5 -r 5 -s 260x208 -f flv rtmp://localhost:1935/streams/CamBaseline' I get an error 'x264 [error]: invalid preset 'baseline''
[14:45] <Elirips> And then the following list of presets available ' ultrafast superfast veryfast faster fast medium slow slower veryslow placebo'
[14:45] <Elirips> which of those would correspond to the former 'baseline' ?
[14:51] <allengates> Can I use ffmpeg in commercial application,  for instance, I develop an video player based on ffmpeg, and then sell it.
[14:55] <crschmidt> allengates: https://www.ffmpeg.org/legal.html , http://www.gnu.org/licenses/gpl-faq.html
[15:07] <Elirips> ah, there is profile and preset
[15:13] <diffuse> does AVPROBE_PADDING_SIZE go at the end of the buffer or the beginning of the buffer for probe input?
[15:27] <netwiz> anyone know a guide how to stream a mp4 with ffmpeg to youtubelive ?
[15:31] <spaam> i guess something similar ffmpeg -i superDuperInputOfSomething -f flv rtmp://server.at.youtube.com/ ?
[15:57] <diffuse> does av_probe_input_format3 have issues with detecting type?
[16:45] <diffuse> I am getting a segfault when I call avformat_find_stream_info
[16:45] <diffuse> #1  av_opt_find2 (obj=obj at entry=0x11ff440 <ff_mp3_demuxer>,  name=name at entry=0xd15fcb "skip_clear", search_flags=search_flags at entry=1,  target_obj=target_obj at entry=0x7fffffffdba8, opt_flags=0, unit=0x0) at libavutil/opt.c:1509
[16:45] <diffuse> 1509	            while (child = av_opt_child_next(obj, child))
[16:46] <diffuse> it looks like child is NULL
[17:00] <Nopik> hi, did anyone had some problem with ffserver which stops playout after some time, e.g. 1 minute? I have some stream being served from ffserver, whether I play it from vlc or ffplay, usually after exactly 1 minute from connecting, ffserver seems to stop sending audio, when i reconnect client, it works
[17:00] <Nopik> sometimes it is 45 seconds, but usually vlc stops at 1:00 minute
[17:00] <Nopik> when I tried to download the stream with wget, it continued to receive bytes for more than minute, though
[17:10] <Nopik> so, when I connect to stat.html for ffserver, i see that feed is constantly pushing data at same speed, when new connection arrives it usually received 1076 kbytes and then dont get any more data (despite of feed pushing it). When I reconnect, again about 1076 kbytes are downloaded. Strangely, if it is wget which downloads data from ffserver, it gets more
[17:10] <Nopik> data
[17:11] <Nopik> some strange bufferring problems maybe or something
[17:14] <diffuse> hm
[17:16] <whoever> c_14: are you awake
[17:16] <c_14> ye
[17:20] <whoever> c_14: i found what i think was causing the issue it is an encoded vob, because i get  Fatal: Bad padding packet start code at 326859340: 99c31da7
[17:21] <whoever> when i try to compress it with vamps
[17:22] <whoever> and don't realy know if there is away to get around that
[17:23] <whoever> also don't realy understand why ffmpeg has issues with dvd's when vob is a subset of mpeg
[17:24] <Nopik> ok, it seems that my problem is that the feed is pushing data too fast and somehow it overflows in such way that basically it stops being sent to client
[17:25] <diffuse> i am trying to probe in input buffer and get the AVInputFormat, which appears to work, but is there a function to create a AVFormatCtx from that?
[17:26] <Nopik> is there any way to make ffmpeg output data at realtime speed, not as fast as it can? e.g. when I stream a mp3 file from disk to ffserver, it basically sends whole file in few seconds, even if file contains minutes of music. can i slow down ffmpeg to actually send data at their play speed
[17:52] <whoever> Nopik: you would need to creat a buffer, and end and then fill the buffer , not efficient
[17:53] <Nopik> whoever: 'create end'?
[17:53] <c_14> Nopik: -re as an input option
[17:54] <whoever> i just don't know why you would want to slow that date tx down
[17:56] <c_14> whoever: for livestreaming
[17:56] <c_14> As to the vob, specs are often weird and not implemented the same everywhere
[17:59] <Nopik> whoever: my setup is really convoluted, unfortunately :( and it involves poor-mans synchronization to live radio stream, long story
[18:02] <Nopik> c_14: need to verify it further, but so far -re looks like a real lifesaver for me, thanks!
[18:10] <whoever> c_14: that spec for dvd seems to only apply to ntsc
[18:19] <Nopik> indeed, -re was what I needed. Basically what I've got was one ffmpeg reading from 2 sources (live radio stream and files) and switching between them dynamically based on external trigger (wrote some custom plugin to get this done within ffmpeg), then sending it to ffserver for live streaming. Unfortunately, when input got switched to file, ffserver loaded
[18:19] <Nopik> the data as fast as it could until it actually choked and stopped sending any data. -re allowed ffserver to output data as it was incoming
[18:23] <whoever> c_14: I am begining to think because of the non standard implimentaton of dvd !standards, that becasse libdvd[read|css] are required, that scriptiong a dvd back util is bad , i thaught i could get around having to write code to do it but looks like there are two optoions roll my own, use one someone else rolled
[18:31] <whoever> its fustrating.. keeping a menu sounds straight forward, but that seems to be where the dvd !standard is thown out the windows and packets must be dropped
[19:34] <lobo__> Hi all, I've trying to convert a video but I'm getting always the same result, tried different switches with no success
[19:34] <lobo__> this is the video, I need to convert it to mp4 and webm
[19:34] <lobo__> https://www.dropbox.com/s/mals7ey3i2qs0mr/20150113_180642_B7E7.mkv?dl=0
[19:35] <lobo__> the very basic command I used is ffmpeg -i 20150113_180642_B7E7.mkv -f webm -acodec libvorbis a.webm
[19:36] <lobo__> but I get [matroska,webm @ 0x323e0e0] Could not find codec parameters for stream 1 (Video: h264, none, 1280x720): unspecified pixel format
[19:36] <lobo__> Consider increasing the value for the 'analyzeduration' and 'probesize' options
[19:36] <lobo__> Input #0, matroska,webm, from '20150113_180642_B7E7/20150113_180642_B7E7.mkv':
[19:36] <lobo__>   Metadata:
[19:36] <lobo__>     encoder         : GStreamer plugin version 0.10.31
[19:36] <lobo__>     creation_time   : 2015-01-13 18:06:58
[19:36] <lobo__>   Duration: 00:00:22.66, start: 0.000000, bitrate: 81 kb/s
[19:36] <lobo__>     Stream #0:0(eng): Audio: aac (LC), 16000 Hz, mono, fltp (default)
[19:36] <lobo__>     Metadata:
[19:36] <lobo__>       title           : Audio
[19:36] <lobo__>     Stream #0:1(eng): Video: h264, none, 1280x720, SAR 1:1 DAR 16:9, 3 fps, 1k tbr, 1k tbn, 2k tbc (default)
[19:36] <lobo__>     Metadata:
[19:36] <lobo__>       title           : Video
[19:36] <lobo__> File 'a.webm' already exists. Overwrite ? [y/N] y
[19:36] <lobo__> [buffer @ 0x324fd60] Unable to parse option value "-1" as pixel format
[19:36] <lobo__>     Last message repeated 1 times
[19:36] <lobo__> [buffer @ 0x324fd60] Error setting option pix_fmt to value -1.
[19:36] <lobo__> [graph 0 input from stream 0:1 @ 0x3233640] Error applying options to the filter.
[19:36] <c_14> If you have more than 3 lines of txt, please use a pastebin service
[19:36] <lobo__> Error opening filters!
[19:36] <lobo__> anyone with a similar issue?
[19:37] <c_14> Do you know what pixel format it's supposed to be?
[19:37] <c_14> Have you tried increasing analyzeduration and/or probesize?
[19:46] <lobo__> sorry about that
[19:46] <lobo__> yes, ive increased it up to the max_int and same results
[19:46] <c_14> Do you know what pixel format the video is?
[19:47] <lobo__> if I probe it, it says width=1280 height=720 pix_fmt=yuvj420p
[19:48] <c_14> try adding -pix_fmt yuvj420p as an input option
[19:54] <lobo__> i did but same result
[19:55] <lobo__> I tried several options but with no success yet
[19:59] <c_14> Hmm, intriguing.
[20:00] <c_14> `x264 -o out.mkv lobo__test.mkv' works, `ffmpeg -i lobo__test.mkv -c:v libx264 -an out.mkv' fails
[20:01] <lobo__> i need to convert it to webm
[20:01] <lobo__> this is my complete pastebin
[20:02] <lobo__> http://pastebin.com/5bXVCmud
[20:03] <c_14> lobo__: I found a workaround...
[20:03] <c_14> But it looks like a bug in ffmpeg to me.
[20:03] <c_14> `x264 -o out.mkv --qp 0 lobo__test.mkv && ffmpeg -i out.mkv out.webm'
[20:04] <c_14> eh
[20:04] <lobo__> yeah, maybe
[20:04] <c_14> `x264 -o out.mkv --qp 0 lobo__test.mkv && ffmpeg -i out.mkv -i lobo_test.mkv -map 0 -map 1:a out.webm'
[20:05] <c_14> ye, that works. For me at least
[20:05] <c_14> Looks like a bug to me. Would you mind filing it on trac?
[20:06] <lobo__> yeah
[23:41] <dericed> hi all, i playing a vp8/mkv files in ffplay and vlc and using a digital color meter to evaluate the playback. In VLC the blackest part of the frame gives R=G=B=0 whereas ffplay shows the same pixel as R=G=B=16. Is the difference expected?
[23:53] <dericed> ya i think ffplay reduces contrast. i tried `ffplay -f lavfi -i testsrc` where the white is rgb24 at 0xFF but the pixel on the screen is R=G=B=235 and not 255.
[00:00] --- Wed Jan 14 2015


More information about the Ffmpeg-devel-irc mailing list