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

burek burek021 at gmail.com
Wed Jul 23 02:05:01 CEST 2014


[01:49] <a46> vlc won't stream the video of an flv correctly but piping it through avconv works. What are some good arguments to pass to avconv to make this more efficient?
[01:54] <c_14> avconv support is in #libav
[01:54] <c_14> but you'll probably want something like -codec copy
[04:22] <joselo> Hi I'm having an issue when using ffmpeg (i'm quite new with it). Im running this command: http://pastebin.com/nQLs69R3 And the issue is that the process terminates always at 01:04
[10:14] <termos> does ffmpeg have support for trimming down the mpegts overhead? There's about an 18% overhead on my hls stream that comes from mpegts header data
[10:51] <Carlos92> Hello, is it possible to show in the ffserver status (stat.html) in the colum "File" under the "Connection Status" the full requestet Filename? As example "test.flv?hereissomeextrainfo", all the stuff behind a ? is ignored in the status output, it shows only "test.flv"..
[10:53] <Carlos92> I need it, because I am using a proxy befor the ffserver and I need some extra info about the client, so I was thinking I put some extra info behind the file with "?"
[10:54] <Carlos92> as example: "https://mystreamingsrv/test.flv?z1hs81msn"
[12:37] <a46> when I encode to mpeg, static elements e.g. unchanging text, in the video move around and blur in different directions like a motion blur when they should be unchanging. What is that?
[12:41] <Keshl_> Depends on the video codec and such. It could be many things. Some stuff is better at encoding static elements than others.
[12:54] <a46> Keshl_: the source is an h264 flv and the dest is -f mpeg (mpeg1video (yuv420p Lavf53.21.1))
[12:56] <sacarasc> Why mpeg 1?
[13:08] <a46> I'm trying to stream it and other formats give an error
[13:08] <a46> what else could I use sacarasc ?
[13:09] <sfan5> mpeg4 for example
[13:10] <a46> [mp4 @ 0x9bc94c0] muxer does not support non seekable output
[13:30] <Mavrik> why are you trying to stream video with container that's not made for streaming?
[13:32] <spaam> Mavrik: tell him what formats he should use instead ! :D
[13:32] <Mavrik> I just came so I have no idea what is he trying to do.
[13:32] <Mavrik> But streaming video with a format that has to have a full index in the header... won't work. :P
[13:36] <pk__> hi
[13:37] <pk__>  i am giving this command ffmpeg -y -i /home/Carol.avi -map 0:0
[13:37] <pk__>               -pix_fmt yuv420p -f rawvideo  /tmp/vvv -map 0:1 -f u16le -acodec
[13:37] <pk__>               pcm_s16le -ac 2 -ar 44100 /tmp/aaa
[13:38] <pk__> sorry let me pastebin it
[13:39] <pk__> http://ur1.ca/ht0us
[13:39] <pk__> if i do the two maps in two commands then they work
[13:39] <pk__> but two maps in a single command do not :(
[13:40] <pk__> can someone help
[13:41] <pk__> i want to crate two named pipes and feed them audio and video respectively
[13:45] <sfan5> I'm pretty sure ffmpeg does not support multiple output files
[13:46] <pk__> sfan5: then what can i do? any other method?
[13:47] <sfan5> https://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs
[13:47] <pk__> okay let me see
[13:58] <a46> Mavrik: I'm trying to stream an h264 flv. mpeg works but it has motion blur on stuff that should remain static. someone suggested mp4 so I tried that and it doesn't work for the reason you mentioned, what could I do instead?
[13:59] <jnvsor> pk__: Sounds like you just want to run 2 separate commands, one after the other
[14:00] <Mavrik> a46, flv is also a header-heavy format
[14:01] <Mavrik> which means your stream won't work unless your client is connected while header is sent... are you using a streaming server?
[14:01] <pk__> jnvsor: but then wont there be any sync problem?
[14:02] <jnvsor> pk__: It looks like you're trying to split the streams into separate files - if they aren't properly timestamped you'll have a sync problem anyway
[14:02] <a46> Mavrik: flv is the source file. I'm trying to stream it so I don't have to download it to watch it. I'm piping it to VLC at the moment.
[14:02] <pk__> jnvsor: u are right :)
[14:03] <Mavrik> a46, is there a reason why don't you give it directly to VLC?
[14:04] <a46> Mavrik: VLC can't handle the flv, it only streams the audio
[14:04] <Mavrik> that's... very unlikely
[14:04] <a46> Mavrik: I tried getting that to work for a long time first
[14:04] <jnvsor> a46: Then it's the video codec that's the problem, not the container
[14:05] <a46> if I try to stream a sample h264 file it works, if I try to stream this flv with the same settings the receiving end doesn't get a video stream
[14:05] <a46> (with vlc)
[14:06] <Mavrik> can you give an url?
[14:06] <jnvsor> or ffprobe the file and pastebin it for us
[14:07] <a46> can you access this? http://store59.media52.justin.tv/archives/2014-7-20/live_user_tomcr00s3_1405879550.flv
[14:07] <jnvsor> I'm getting video on vlc
[14:08] <jnvsor> And ffprobe looks fine too, might just be your vlc that's the problem
[14:09] <a46> yes, I've installed nightly to try to get it to work and various codecs, not sure what else to do
[14:10] <jnvsor> See if you can access it with ffplay
[14:12] <a46> I only have cli on the server I'm trying to stream it from. I'll try streaming it with ff and watching it with ffplay on my machine?
[14:15] <a46> to clarify what I'm trying to do: I have too slow internet to stream the flv directly from the http source so I've downloaded it on a server and am trying to stream it, once that works hopefully I can tweak the quality settings to reduce the bandwith required
[14:16] <a46> on the server I can't get vlc to send the video stream so I resorted to converting it to mpeg with ffmpeg and piping it to vlc which works but the quality is abysmal
[14:19] <Baluse2> hello
[14:27] <Mavrik> a46, ffplay on your url works perfectly fine
[14:28] <Mavrik> except huge amount of h.264 errors O.o
[14:29] <a46> "stream 0 codec frame rate differs from container frame rate: 6000.00 (6000/1) -> 30.00 (30/1)"
[14:29] <a46> I bet that's the issue vlc has with it
[14:30] <Baluse2> I converted an mp3  to adpcm_ms and time has tripled in players! But plays fine
[14:38] <a46> ok this + ffplay works: ffmpeg -i input.flv -acodec copy -vcodec copy -f flv tcp://10.0.0.1:1234?listen
[14:39] <a46> with all the h264 errors like you mentioned
[17:08] <drsprite> Hey there. I'm trying ffmpeg out for a timelapse I'm working on. Right now I have a test timelapse that's only 3 seconds, but the file is 350mb. That's quite large for 3 seconds. My final product will be about 5 minutes and I fear it'll be huge. Any thoughts on how to optimize the file size? The command I used to create it is here: http://pastebin.com/TQnjYvjn
[17:16] <sfan5> drsprite: can you paste the output of "ffprobe timelapse.avi"?
[17:17] <drsprite> ah, I suppose it's 7 seconds. Here's the output. http://pastebin.com/gufe7pwz
[17:17] <drsprite> I'm still learning as I go
[17:19] <krullie> The stream has a bitrate of 40000. You should tell the encoder to limit to a certain amount using -b:v 9M or some other number
[17:20] <drsprite> Okay, i'll read up on that a bit
[18:09] <slowguy> i want to create an app which can take an mpeg stream from network and write it to a file
[18:10] <slowguy> challenge is that it should have a button ..as long as this button is pressed (like during advertisements) it should not feed video to the file during this time
[18:10] <slowguy> can somebody suggest me an approach?
[19:00] <a46> capture network traffic with winpcap
[19:00] <a46> parse for mpeg
[19:00] <a46> write to file unless button pressed
[19:07] <Hello71> generic video question: playing h264 video and playing without a valid reference frame produces green video
[19:07] <Hello71> why is it green?
[19:08] <JEEB> most probably decoder-specific, unless you have enough data for the decoder to do some things. Anyways, green sounds like the default values for the YCbCr picture
[19:09] <Hello71> I was figuring something along the colorspace lines (green intensity).
[19:10] <Hello71> vp8 skips to the next keyframe with "[ffmpeg/video] vp8: Discarding interframe without a prior keyframe!"
[19:10] <Hello71> obviously I'm not relying on this behavior for anything, just wondering why it would be green
[19:12] <Hello71> theora kinda does the same thing, but it has less intraframe predictors so mostly "clean"
[19:13] <Hello71> it's also green though
[19:13] <JEEB> well, I don't remember what values the YCbCr planes get filled with, but I wouldn't be surprised if it was something that became green :P
[19:13] <Hello71> hm, I guess that might even be player-specific
[19:13] <Mavrik> green is usually the color used by overlay keying as well
[19:14] <JEEB> more like decoder specific
[19:14] <JEEB> since the decoder is giving you the YCbCr planes
[19:14] <Mavrik> e.g. your OS draws overlay area green when compositing desktop and GPU then draws image from HW overlay on top of the green area
[19:14] <JEEB> and then the player just grabs that and converts to RGB and shows it on the screen :P
[19:14] <Hello71> possibly, I'm using vaapi for both decoding and rendering
[19:15] <Hello71> ah, using --hwdec=no --vo=x11 makes it grey instead
[19:16] <JEEB> that sounds like lavc decoding getting used, and yes -- grey does sound a bell
[19:16] <JEEB> (I think that's 128 or so for all planes?)
[19:16] <Hello71> yeah, --vo=vaapi --hwdec=vaapi gives green
[19:16] <Hello71> everything else is grey
[19:16] <JEEB> the rendering method really shouldn't matter, as it's the decode that produces the YCbCr image
[19:16] <JEEB> as I said
[19:17] <JEEB> *decoder
[19:18] <Hello71> wait, no, it's just the decoder. you're right
[19:20] <Hello71> https://happinessforme.com/~alex/shot0001.jpg --hwdec=no, https://happinessforme.com/~alex/shot0002.jpg --hwdec=vaapi
[19:20] <Hello71> intel hd graphics... 3000? i think
[19:20] <JEEB> anyways, it's just the initial value of the planes before decoding
[19:20] <JEEB> nothing special
[19:20] <JEEB> lavc uses 128 (?) or so for all planes
[19:21] <JEEB> vaapi uses something that ends up being green, I guess?
[19:21] <Hello71> probably an internal buffer in the graphics device
[19:21] <Hello71> I don't know.
[19:22] <Hello71> I think it's pretty cool how it shows all the inter-frame prediction the encoders do.
[19:24] <BigArah> Hey everyone
[19:24] <BigArah> working on trying to get mp4s encoded properly so they'll play in html5 editors
[19:25] <BigArah> I mean embedded html5 players like JW Player
[19:25] <BigArah> I have an mp4 I generated that when I use the jwplayer it only plays back the music
[19:25] <BigArah> but if I upload it to youtube, then download it back from youtube, and put that file in the jwplayer it does both the audio and the video
[19:25] <BigArah> any ideas on that?
[19:27] <relaxed> youtube encodes everything you upload, I believe
[19:27] <BigArah> yeah
[19:27] <BigArah> and they compress it well too
[19:27] <BigArah> i uploaded a 6.5MB video and downloaded a 2.7MB version that was proper
[19:28] <relaxed> pastebin your command and all console output of a video jwplayer won't play.
[19:31] <BigArah> ok on the way
[19:31] <BigArah> http://pastebin.com/fDskBxZ0
[19:41] <relaxed> that's not what I asked for.
[19:46] <relaxed> BigArah: pastebin the console output from the command
[19:54] <BigArah> I fixed it
[19:54] <BigArah> let me give you code
[19:54] <BigArah> ffmpeg -i input.mp4 -vcodec libx264 -pix_fmt yuv420p -profile:v baseline -preset slower -crf 18 -vf "scale=trunc(in_w/2)*2:trunc(in_h/2)*2" output.mp4
[20:10] <BigArah> hey relaxed
[20:10] <BigArah> Do you know how to overlay a png image on a video? like a logo/watermark sort of thing?
[20:13] <relaxed> look at -filter_complex in the man page or website
[20:40] <daala-person> Hello.
[20:41] <daala-person> I'm having an issue building ffmpeg.
[20:41] <daala-person> I'm using Linux Mint, and its "ffmpeg" is really avconv, so I have to build ffmpeg myself.
[20:43] <daala-person> I'm trying to build ffmpeg according to the instructions on https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu , installing all the extra codecs execpt for libfdk-aac.
[20:44] <daala-person> Everything's fine until I try to run ffmpeg's ./configure (I can paste the command I used if you want), when I get:
[20:44] <daala-person> ERROR: libvpx decoder version must be >=0.9.1
[20:44] <sfan5> the libvpx mint has is too old
[20:44] <sfan5> if you don't need it disable it
[20:45] <daala-person> Hello, sfan5.
[20:45] <daala-person> I would do that, except I'm using libvpx 1.3.0, just downloaded today.
[20:45] <daala-person> Yes, I need libvpx.
[20:46] <sfan5> what does apt-cache show libvpx say?
[20:46] <daala-person> $ apt-cache show libvpx
[20:46] <daala-person> N: Unable to locate package libvpx
[20:46] <daala-person> E: No packages found
[20:46] <daala-person> It seems that mint doesn't even package libvpx.
[20:46] <sfan5> try apt-cache show libvpx1
[20:46] <relaxed> dpkg -l "libvpx*" | grep ^ii
[20:47] <daala-person> dpkg -l "libvpx*" | grep ^ii
[20:47] <daala-person> ii  libvpx1                                1.0.0-1                                 VP8 video codec (shared library)
[20:47] <sfan5> it seems to be 1.0.0 not 1.3.0
[20:47] <relaxed> you need to point ffmpeg's configure to the newer version with --extra-cflags="-I/path/to/prefix/include" --extra-ldflags="-L/path/to/prefix/lib"
[20:47] <relaxed> if you did install 1.3.0, that is
[20:48] <daala-person> I think I know what's happening. I must have 1.0.0 installed to my system directories, but I have 1.3.0 built in my home directory.
[20:48] <relaxed> where "/path/to/prefix" is "$HOME/ffmpeg_build" in your case
[20:49] <relaxed> you can have both installed
[20:49] <daala-person> Thank you.
[20:49] <daala-person> I'll give that a try.
[20:49] <llogan> the compile guide shows how to do this. i'm not sure if you referred to that or not
[20:50] <daala-person> I did everything according to the compile guide.
[20:50] <daala-person> Except I used different directory names.
[20:51] <relaxed> did you change the cflags path to match these changes?
[20:51] <daala-person> I'm doing that right now.
[20:56] <daala-person> I think that libvpx may have failed to leave its libraries in the right place or something. If I list the files in the directories you told my to point configure to:
[20:56] <daala-person> $ ls /home/thomas/tmp/ffmpeg-build/lib/
[20:56] <daala-person> libopus.a  libopus.la  libx264.a  libyasm.a  pkgconfig
[20:56] <daala-person> $ ls /home/thomas/tmp/ffmpeg-build/include/
[20:56] <daala-person> libyasm  libyasm.h  libyasm-stdint.h  opus  x264_config.h  x264.h
[20:57] <daala-person> Nothing about libvpx. Is that correct?
[20:58] <voip1__> hello guys
[20:58] <voip1__> i have troble with running ffmpeg in daemon mode
[20:58] <voip1__> for example ffmpeg -i rtmp://1.1.1.1:1935/stream-sd  -preset fast -acodec aac -strict experimental -ar 44100 -ac 2 -b:a 96k -vcodec libx264  -b:v 900k  -f flv rtmp://2.2.2.2:1935/live/ex &
[20:58] <relaxed> daala-person: why don't you just follow the guide to a T until you get the hang of it.
[20:59] <daala-person> Okay, I'll do that and see if it works.
[20:59] <relaxed> or use the same install prefix, cflags, and ldflags for everything...
[21:00] <relaxed> voip1__: ffmpeg .... -f flv rtmp://2.2.2.2:1935/live/ex </dev/null 2>ffmpeg.log &
[21:01] <voip1__> relaxed,  </dev/null 2>ffmpeg.log nessesary part
[21:01] <voip1__> ?
[21:02] <llogan> ffmpeg has a "daemon mode" if you use -d option as first option.
[21:02] <voip1__> i also tryed with -d same problem
[21:02] <relaxed> llogan: fancy
[21:03] <llogan> i've never tried it
[21:03] <relaxed> voip1__: ffmpeg expects keyboard input, so that's why you need </dev/null
[21:04] <voip1__> good its works with </dev/null !
[21:05] <relaxed> 2>ffmpeg.log sends the console output to a log file. use 2>/dev/null if you don't need a log.
[21:05] <Peter_Occ>  /msg NickServ identify meltdown
[21:06] <voip1__> yaeh i dont neeed see output !
[21:06] <relaxed> Peter_Occ: I think you just exposed your password :(
[21:06] <Peter_Occ> yeah but I did it correctly, so I don't get it.
[21:06] <relaxed> there was a space before /msg
[21:07] <voip1__> brillinat
[21:07] <voip1__> thank you relaxed
[21:07] <relaxed> you're welcome
[21:07] <Peter_Occ> Ok thanks
[21:09] <voip1__> relaxed, one more cuestion
[21:09] <voip1__> some times ffmpeg terminatde whe disapear incoming stream
[21:10] <voip1__> di you know any good script for re runing
[21:13] <relaxed> forever?
[21:15] <relaxed> while :; do ffmpeg -i blah output; done
[21:15] <llogan> Peter_Occ: better to run that stuff in a non-channel buffer
[21:16] <Peter_Occ> OK
[21:16] <relaxed> voip1__: for backgrounding ffmpeg you'll need to remove the ";" before "done"
[21:17] <voip1__> ok, thank you !
[21:19] <Peter_Occ> Has anyone noticed that the ffmpeg timestamp start with the wrong timestamp? For example, here is a two minute video. http://geotonics.com/testimages/1405956001.mp4 The video starts at the correct time, but it starts with a timestamp 6 seconds ahead.  The timestamp is then frozen for six seconds. When the video gets to the time already indicated in the timestamp, the timestamp then resumes...
[21:19] <Peter_Occ> ...with the correct time. Is this a known problem?
[21:24] <BigArah> Hey Peter_Occ
[21:24] <BigArah> I know I have run commands where they tell me the time stamp might be messed up
[21:24] <BigArah> but it never happens
[21:24] <BigArah> relaxed
[21:24] <BigArah> I tried your idea
[21:24] <BigArah> http://pastebin.com/LfmmUUJH
[21:24] <BigArah> here is the output, #epicfail
[21:24] <BigArah> probably something stupid I did
[21:26] <relaxed> BigArah: I don't think you can use -filter_complex with -vf
[21:30] <relaxed> BigArah: Do me a favor and grab a recent version of my build. The one you have was compiled with gcc-4.9.0 which has issues.
[21:30] <BigArah> man I suck way too bad at this to do that, lol
[21:30] <BigArah> I am PHP / MySQL
[21:30] <BigArah> and I suck at that too, lololol
[21:32] <relaxed> download http://johnvansickle.com/ffmpeg/builds/ffmpeg-git-20140722-64bit-static.tar.bz2 and replace the ffmpeg on your system with the one in this archive.
[21:32] <BigArah> right, I know what you mean
[21:32] <Peter_Occ> BigArah, the timestamp is definitely wrong for the first six seconds. In the example I linked to, the timestamp is frozen for the first six seconds.
[21:32] <BigArah> that doesn't mean I am capable of it!
[21:33] <BigArah> hey relaxed, tell me if I can do it on this command
[21:40] <daala-person> FFmpeg is building right now. No errors, but a few warnings about the code.
[21:40] <daala-person> Building it in the directory I'd like should be trivial.
[21:41] <daala-person> Thanks, everyone.
[23:24] <daala-person> I have a somewhat stupid question. I couldn't find this anywhere online. Is there a way to list the private options for a codec?
[00:00] --- Wed Jul 23 2014


More information about the Ffmpeg-devel-irc mailing list