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

burek burek021 at gmail.com
Sun Jul 20 02:05:01 CEST 2014


[00:14] <Einewton> Anyone there?
[00:37] <Hello71> no
[01:41] <Freakshow> is there anyway to grab from individual pids from mpts over unicast to my instance of ffmpeg?
[01:41] <Freakshow> the socket is locked (as I would expect) and everything else fails on connection attempt
[08:13] <optix2> I'm trying to burn in subtitles, is the AlphaLevel setting in ssa format not supported? I get solid black irrespective of the value (CLI: http://pastebin.com/izq4xBjJ and part of ut.ssa: http://pastebin.com/qgAzgWcs )
[08:26] <t4nk680> Hello, anyone available to help me with an issue?
[08:28] <t4nk680> Just need some help with Persistent Environment Variables section from here: https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu#PersistentEnvironmentVariables
[08:29] <sacarasc> What about it?
[08:32] <t4nk680> I can get man ffmpeg to work
[08:32] <t4nk680> but running ffmpeg still returns command not found
[08:33] <sacarasc> Does ~/bin/ffmpeg work?
[08:33] <t4nk680> yes
[08:33] <t4nk680> When I do . ~/.profile I get  -bash: MANPATH_MAP: command not found
[08:33] <t4nk680> I believe that is where the problem is.
[08:34] <t4nk680> I am configuring on a Debian wheezy box.
[08:34] <t4nk680> Any idea?
[08:36] <sacarasc> I'd do `echo PATH=$HOME/bin:$PATH >> ~/.bashrc` and then run do `source ~/.bashrc`
[08:38] <t4nk680> neither one returned anything.
[08:39] <sacarasc> What does `ffmpeg` do now?
[08:39] <t4nk680> You are a genius sir
[08:39] <t4nk680> It worked!
[08:39] <sacarasc> Experience doesn't make a genius.
[08:40] <t4nk680> heh, well thank you very much. I've been scratching my head for hours on this one.
[08:41] <t4nk680> Care to explain what happened?
[08:41] <t4nk680> Curious
[08:42] <sacarasc> I think it didn't add anything to the PATH, which is why ffmpeg wasn't found.
[08:42] Action: sacarasc mostly shrugs.
[08:44] <t4nk680> heh alright.
[08:44] <t4nk680> Thanks again
[08:50] <t4nk680> mmm however, when I run ffmpeg via shell_exec in PHP it is still returning command not found
[08:59] <sfan5> t4nk680: php uses a differere $PATH
[09:00] <sfan5> I suggest using a wrapper script that sets the path before actually calling ffmpeg
[09:00] <t4nk680> heh, I actually just changed it to /root/bin/ffmpeg and no I get permission denied *sigh*
[09:00] <t4nk680> So it seems the web server use does not have rights to execute anyways
[09:01] <t4nk680> user*
[09:01] <sfan5> I'd move it to a more generic locatin like /opt/ffmpeg/
[09:03] <t4nk680> Yeah I'm going to do some more researching tomorrow.
[09:04] <t4nk680> It's late and time to sleep lol
[10:00] <feliwir> hello, where can i see a few example on how to decode & display subtitles with ffmpeg?
[10:17] <mustafa_muhammad> relaxed: Hi, I am using static builds from http://johnvansickle.com/ffmpeg/ to encode vp9 and opus, but the resulting file size is huge.
[10:19] <mustafa_muhammad> relaxed: then I separated the audio and video and the file sizes are small
[10:20] <mustafa_muhammad> http://pastie.org/9404644
[10:21] <sfan5> 50k is a little low even for opus
[10:21] <sfan5> I'd suggest using at least 96k
[10:22] <sfan5> did you try tweaking the -crf value?
[10:22] <mustafa_muhammad> the resulting file is 206M, the audio stream is 2M and the video is 46.7, why the file is 206M?
[10:23] <sfan5> can you paste the console putput too?
[10:23] <mustafa_muhammad> Yes, I am running well with another build of ffmpeg, but here the stream file size is larger than video+audio
[10:25] <sfan5> this is likely just a problem of outdated ffmpeg then
[10:26] <mustafa_muhammad> I am using git from today or yesterday
[10:27] <mustafa_muhammad> Used this ffmpeg-2.2.4-64bit-static.tar.bz2 and this ffmpeg-git-20140718-64bit-static.tar.bz2
[10:27] <mustafa_muhammad> from john's site
[10:28] <mustafa_muhammad> git from here http://ffmpeg.gusari.org/static/64bit/ works fine but with vorbis (no opus)
[10:28] <mustafa_muhammad> and libav from http://johnvansickle.com/libav/ works fine
[10:29] <sfan5> the second is libav not ffmpeg
[10:30] <mustafa_muhammad> I know, just saying.
[10:31] <mustafa_muhammad> so video+audio=48.7 but the resulting file size is 206
[10:31] <ubitux> feliwir: what do you mean exactly?
[10:32] <ubitux> using the libraries?
[10:33] <ubitux> for the text subtitles you can look at http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavfilter/vf_subtitles.c;h=558e509e4eb719bdb0db4ccb9ba6c19d7961733e;hb=HEAD#l282
[10:35] <mustafa_muhammad> sfan5: I want a very small size so I went 50k audio, it is 240p low quality video. I changed the crf value to my liking. Do you still want the console output?
[10:35] <sfan5> no
[10:38] <feliwir> ubitux: well i find it hard to find any resources on avsubtitles at all
[10:39] <ubitux> yes, the current AVSubtitles api is actually here from the beginning of the project, and it's actually not in its best state
[10:39] <ubitux> using it from the cmd line is mostly pretty fine
[10:40] <ubitux> demuxing & decoding text subtitles is ok
[10:40] <ubitux> demuxing & decoding bitmap sub is almost ok
[10:40] <ubitux> but the whole thing is a bit clumsy
[10:44] <feliwir> well i want to use it within c and there are so many different types like: SUBTITLE_ASS,SUBTITLE_TEXT and SUBTITLE_BITMAP it says nowhere how to handle those differentt types
[10:45] <mustafa_muhammad> So is there anything I can do to find what causes this size difference?
[10:46] <ubitux> feliwir: you can ignore SUBTITLE_TEXT
[10:46] <ubitux> basically, when decoding text subtitles, you always get ass markup
[10:46] <feliwir> and i need to parse and render that myself i guess?
[10:46] <ubitux> (so you can pipe it to the only decent text subtitles renderer which is libass, as vf_subtitles.c does)
[10:47] <feliwir> oh
[10:47] <feliwir> i didn't know i need to get libass
[10:47] <ubitux> if you want to render them, you'd better have it yeah
[10:47] <feliwir> ah thank you for that tip :)
[10:47] <ubitux> note that we planed to make possible to decode as "raw text" stripping markup
[10:48] <feliwir> "planed" ?
[10:48] <ubitux> but the redesigning of subtitles api is an monstruous work
[10:48] <ubitux> i've been discussing this for years on the mailing list, and still haven't found a correct way of handling the situation properly
[10:49] <sfan5> mustafa_muhammad: is the file still too big if you remux the seperate audio & video streams into one file again?
[10:50] <feliwir> that's unfortunate :-/ may i ask which format the bitmap in the subtitles has? because it looks like i decoded it wrong: http://i.imgur.com/oSB4EAs.png :)
[10:55] <mustafa_muhammad> sfan5: I'll try now
[10:56] <ubitux> feliwir: look into ffplay
[10:56] <ubitux> it's RGB
[10:58] <feliwir> ah i thought it was rgba
[10:58] <ubitux> ah mmh maybe it's rgba yeah
[10:58] <ubitux> i meant rgb in the sense "not yuv" :P
[10:59] <feliwir> thats weird not sure why i get fragments then
[10:59] <feliwir> i was using rgba
[10:59] <ubitux> it looks argb actually
[10:59] <ubitux> unless i'm missing something
[11:02] <mustafa_muhammad> sfan5: OK, sorry, it's all my fault, when I separated the audio and video kept the trimming.
[11:02] <feliwir> ah then i might want to convert it before i put it into a rgba texture :D
[11:03] <mustafa_muhammad> When trimming correctly the video is 202.3 M
[11:08] <mustafa_muhammad> sfan5: Still, the video size is huge compared to the other static build, for the video only (202M vs 27M)
[12:09] <feliwir> how would i convert an argb buffer to rgba?
[12:09] <feliwir> the results i get look like i am doing sth. wrong
[16:19] <feliwir> ubitux i tried to convert to convert the bitmap in the subtitles from argb to rgba but it didn't show good results. Are you sure the pixfmt is argb on those bitmaps?
[16:20] <ubitux> i looked at libavcodec/dvdsubdec.c and it looked like it was loading argb
[16:21] <feliwir> then i am doing something terrible wrong with the conversion: http://pastebin.com/9D3KTQvE (sorry never used sws_scale before :D)
[16:24] <ubitux> you should just try to swap the value yourself for a start
[16:24] <feliwir> well i thought sws_scale would perform better
[16:24] <ubitux> i wouldn't be so sure about that, but maybe
[16:24] <ubitux> and in anycase you want a working code first
[16:25] <ubitux> so you'd better just make 2 for loop and a byte swap
[16:25] <feliwir> ye the thing is i tried that before and i got an access violation
[16:25] <feliwir> but i guess it was my loop being bad
[20:51] <BlackDream> Hello, I RUN the following command: ffmpeg  -i "http://87.121.34.253:9987/udp/239.100.202.104:1234" -acodec copy -vcodec copy -f mpegts /tmp/test.ts
[20:52] <BlackDream> Can someone explain me why it says "frame=    0 fps=0.0 q=-1.0 q=-1.0 size=       0kB time=00:00:04.30 bitrate=   0.0kbits/s" all the time (just the time increasing)
[20:52] <BlackDream> and ffmpeg unable to creat the file?
[20:52] <BlackDream> the stream is working just fine , i tested in my vlc
[20:52] <BlackDream> i was about to say that i dont get any error but ok wait to paste it there
[20:53] <c_14> There's no error? Have you tried playing the stream with ffplay?
[20:55] <BlackDream> http://pastebin.com/gXZZkcYF
[20:55] <BlackDream> says frame 0 and fps 0 all the time
[20:55] <BlackDream> no but its working on vlc
[20:56] <c_14> Ye, but vlc does funky things sometimes so I want to see what ffplay does.
[20:56] <BlackDream> a command example of ffplay
[20:57] <c_14> ffplay http://[stream]
[20:58] <BlackDream> Could not initialize SDL - DirectFBCreate: Initialization error!
[20:59] <c_14> You probably don't have SDL or something. Anyways since the stream is public I'm going to test a few things.
[20:59] <c_14> I think the stream is not sending or sending incorrect pts.
[21:00] <BlackDream> Test it Please, cause if it is a bug we can report it
[21:10] <BlackDream> c_14: Any news my friend :P
[21:12] <c_14> Well, I've found that reencoding the video instead of just copying it fixes the issues.
[21:13] <BlackDream> you mean something like -vcodec libx264
[21:13] <c_14> yeah
[21:13] <BlackDream> but why without copy isnt working :( This will consume a lot of CPU
[21:13] <BlackDream> :(
[21:13] <c_14> The one thing that's confusing me though is that ffplay can play the stream after throwing errors for a bit, but won't play the streamcopy...
[21:14] <BlackDream> Do you think it's ffmpeg issue?
[21:20] <c_14> I think the issue is on both sides, but since ffplay can play the stream, ffmpeg _should_ imo be able to streamcopy it and have the result be playable as well, so it might be a bug.
[21:21] <BlackDream> should i report it?
[21:22] <c_14> Might be a good idea.
[21:40] <feliwir> ubitux is the bitmap for subtitles planar?
[21:43] <ubitux> i don't think so
[22:09] <Mavrik> no it isn't... but it's usually palletized
[22:09] <Mavrik> and I'm not sure if swscale added colorspace conversion for those palettes yet
[22:26] <feliwir> what does palletized mean?
[22:27] <Mavrik> this: http://en.wikipedia.org/wiki/Indexed_color
[22:27] <Mavrik> ffmpeg will give you palette on one data plane
[22:28] <Mavrik> and subtitle bitmap with indexes instead of ARGB values on another
[22:28] <feliwir> does it have to do with the nb_color thing?
[22:28] <feliwir> i really didn't understand the purpose of that
[22:28] <feliwir> (bad documented ;) )
[22:29] <Mavrik> lemme whip out my code from a year ago o ros
[22:29] <feliwir> ty good sir
[22:32] <Mavrik> https://gist.github.com/izacus/26a624df7b5536191c84
[22:33] <Mavrik> you could probably do it more efficiently
[23:02] <matham> I'm replicating the ff_load_image code, except I'm using frame referencing so I'm not copying the data. The result is I'm getting "data is not aligned" warnings from swscaler. Is there a way to set the format context to only generate aligned data?
[23:03] <matham> also, do you think that it'd be less costly to copy the image to align vs converting a unaligned image?
[23:31] <BlackDream> If i get the following error
[23:31] <BlackDream> [segment @ 0x3965580] Invalid DTS: 3600 PTS: -292950 in output stream 0:0 [segment @ 0x3965580] Encoder did not produce proper pts, making some up.
[23:31] <BlackDream> is there any fix
[23:32] <c_14> >Encoder did not produce proper pts, making some up <- that would be ffmpeg fixing it itself, though you can try adding -fflags +genpts if you want
[23:33] <BlackDream> i have already -flags -global_header
[23:33] <BlackDream> in my command
[23:34] <BlackDream> if i remove it , it works
[23:34] <BlackDream> xmm
[23:34] <BlackDream> since i 'm building an automated program for me is there any fix with a static command concerning flags?
[23:34] <BlackDream> i found out that some streams wants -flags -global_header
[23:35] <BlackDream> and this one i am trying needs +genpts
[23:35] <BlackDream> is there something that i can use for both and it will work? understand me?
[23:36] <c_14> you could just try it with both active or implement a fallback of some sort
[23:36] <BlackDream> -flags -global_header +genpts
[23:36] <BlackDream> sometihng like that?
[23:36] <c_14> -flags -global_header+genpts
[23:37] <c_14> If that throws an error, try -flags -global_header -fflags +genpts
[23:37] <BlackDream> no i get the same error
[23:38] <BlackDream> [mpegts @ 0x243ff20] pts (-385740) < dts (3600) in stream 0 av_interleaved_write_frame(): Invalid argument
[23:39] <c_14> you can try some of the other format flags, ie igndts or sortdts or discardcorrupt maybe.
[23:39] <BlackDream> ok i will play a bit with them
[23:39] <BlackDream> thanks for your support. appreciate it
[00:00] --- Sun Jul 20 2014


More information about the Ffmpeg-devel-irc mailing list