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

burek burek021 at gmail.com
Mon Apr 25 02:05:01 CEST 2016


[00:06:03 CEST] <cousin_luigi> Greetings.
[00:07:11 CEST] <Prelude2004c> hello
[00:07:16 CEST] <Prelude2004c> anyone around to help ?
[00:08:39 CEST] <cousin_luigi> Can libdca and librtmp be safely disabled? Are the internal encoders/decoders at least on par?
[00:11:09 CEST] <furq> libdcadec is the internal implementation now
[00:11:31 CEST] <furq> you can no longer link with it as of a few weeks ago
[00:12:18 CEST] <furq> i've used the internal librtmp a bit and it seems fine but i can't really say with any authority
[00:12:22 CEST] <furq> s/lib//
[00:19:53 CEST] <Prelude2004c> hey furq.. you helped me quite a bit last time.. have an odd problem ( audio seems fine now )
[00:19:58 CEST] <Prelude2004c> http://pastebin.com/ustVEMaa
[00:37:29 CEST] <anadon>  I'm getting garbage frames from the linked code and I'm not sure what could be going wrong: http://pastebin.com/3MGivRdv
[07:36:07 CEST] <bencc> is it possible to format ffmpeg errors so I'll know they comes from fffmpeg?
[09:34:29 CEST] <pa> Hi
[09:34:48 CEST] <pa> does anybody here have a dvb-s2 PC card?
[10:09:09 CEST] <Franciman> Hi all
[10:09:21 CEST] <Franciman> How can I generate scenechanges for a video?
[10:09:44 CEST] <Franciman> I mean, finding scene changes*
[10:11:15 CEST] <furq> -vf select=gt(scene\,.4)
[10:11:41 CEST] <furq> or -vf select=gt(scene\,.4),showinfo if you want text output
[10:24:06 CEST] <Betablocker> 
[10:28:18 CEST] <Franciman> sorry, here I am. furq I'm a noob with ffmpeg, should I write ffmpeg "-vf ...." ?
[10:34:16 CEST] <Franciman> ok it was like that :P
[10:37:58 CEST] <Betablocker> trying commands with ffmpeg is fun, it is good to play around when you are new
[10:38:02 CEST] <Betablocker> hammer on !
[10:38:23 CEST] <Franciman>  ffmpeg -vf "select=gt(scene\,.4),showinfo" -i vid.mp4
[10:38:29 CEST] <Franciman> I'm trying like that, but I get this error:
[10:38:37 CEST] <Franciman> Option vf (set video filters) cannot be applied to input file vid.mp4 -- you are trying to apply an input option to an output file or vice versa. Move this option before the file it belongs to.
[10:38:37 CEST] <Franciman> Error parsing options for input file vid.mp4.
[10:38:37 CEST] <Franciman> Error opening input files: Invalid argument
[10:41:16 CEST] <Franciman> ok found out this too. But what should be the output format?
[10:48:07 CEST] <Franciman> I'd like to have their timestamps
[11:49:16 CEST] <pandb> i wrote a program based on the muxing.c example on ffmpeg.org, and when I try to open the file it generates with mplayer, i get no video, but this series of messages appears on my terminal: pastebin.com/WXvz4aCf
[11:50:07 CEST] <pandb> write operations with av_write_frame and av_interleaved_write_frame appear successful
[11:50:32 CEST] <pandb> and the resulting file's size is consistent with my expectations
[11:53:00 CEST] <pandb> i'm hoping the problem indicated by mplayer's output is just one of a missing function or setting
[11:55:26 CEST] <Mavrik> Are you writing the trailer and closing the muxer?
[11:57:07 CEST] <pandb> no, just hitting ctrl-c
[11:57:19 CEST] <pandb> that's worked fine for me before
[11:57:20 CEST] <pandb> lol
[11:57:35 CEST] <pandb> the video is being generated continuously
[11:59:49 CEST] <pandb> im trying to broadcast to twitch.tv, but was hoping to get feedback on the process by saving to file
[12:01:04 CEST] <pandb> when I try to broadcast to a url i get messages that say 'buffer underflow st=0 bufi=#### size=74897
[12:01:34 CEST] <pandb> and bufi keeps increasing until it reaches 74897, then those messages stop
[12:01:52 CEST] <Mavrik> So.
[12:01:56 CEST] <Mavrik> You wrote a program that writes MP4.
[12:02:09 CEST] <Mavrik> And then you kill it before it has chance to wrap up the container and write the MOOV atom? :)
[12:03:03 CEST] <pandb> i guess so
[12:03:25 CEST] <qmr> I like to MOOV it MOOV it
[16:07:50 CEST] <Phrk_> Hello when i try to open a sftp file i got this : libssh: Error opening sftp file: SFTP server: No such file
[16:08:26 CEST] <Phrk_> i use this ffplay sftp://user:pass@ip:port/path.mkv
[16:09:02 CEST] <Phrk_> if i mount with fuse it's working, but i want to be able to play video without mounting
[16:19:26 CEST] <turbolego> sup
[16:20:10 CEST] <turbolego> does anyone know why this command results in a mp4 video that has not been speed up?
[16:20:13 CEST] <turbolego> ffmpeg -i E:\fraps\Movies\Linjeduell.mkv -vf "setpts=0.5*PTS" Linjeduell2.mp4
[16:30:47 CEST] <anadon>   I'm getting garbage frames from the linked code and I'm not sure what could be going wrong: http://pastebin.com/3MGivRdv
[16:50:31 CEST] <Macey> Hi All, need some help.... Trying to stream to Flash Media Server. Older version of FFMPEG as embedded in app.
[16:50:34 CEST] <Macey> -c:a libvo_aacenc -ar 48000 -ab 48k -c:v libx264 -s 320x240 -b 200k -pix_fmt yuv420p -f flv
[16:50:53 CEST] <Macey>  -s 320x240 &  -pix_fmt yuv420p are apparently invalid options
[16:51:25 CEST] <furq> which version of ffmpeg
[16:59:42 CEST] <Macey> furq AVcodec-56.dll 56.41.100.0
[17:00:35 CEST] <Macey> ffmpeg.avcodec 56.41.100
[17:00:35 CEST] <Macey> ffmpeg.avformat 56.36.100
[17:00:35 CEST] <Macey> ffmpeg.avfilter 5.16.101
[17:00:35 CEST] <Macey> ffmpeg.avutil 54.27.100
[17:00:35 CEST] <Macey> ffmpeg.swscale 3.1.101
[17:02:59 CEST] <furq> those options should definitely exist in ffmpeg 2.7
[17:03:27 CEST] <furq> maybe try -vf scale=320:240,format=pix_fmts=yuv420p
[17:06:46 CEST] <Macey> thanks furq i'll give it a go
[17:08:04 CEST] <furq> -b 200k should be -b:v 200k
[17:08:13 CEST] <furq> maybe that's screwing up the option handling
[17:12:54 CEST] <topia_> hello all
[17:13:39 CEST] <topia_> how do i run ffmpeg in linux?
[17:14:00 CEST] <topia_> i went to the download page, and was redirected to a ubuntu page, which just game be source code
[17:14:10 CEST] <topia_> is there no pre compiled binaries available?
[17:14:38 CEST] <Macey> furq, perfect thanks for your help
[17:15:40 CEST] <kuroro> im planning to use ffmpeg in my android app and have looked at how other apps have integrated it. I see most using JNI and linking against libffmpeg.so, and a few that just calls out to a statically built ffmpeg executable. i'm currently leaning towards the latter approach as it simpler (no need to worry about JNI, familiar command line options). Would you guys suggest the same?
[17:19:36 CEST] <furq> topia_: http://johnvansickle.com/ffmpeg/
[17:19:56 CEST] <furq> your distro should have packages for it, but older versions of ubuntu won't have it or will have a very old version
[17:20:10 CEST] <topia_> tyvm furq
[17:20:22 CEST] <c_14> kuroro: what are you trying to do (what does your app need ffmpeg for)
[17:25:09 CEST] <topia_> furq i get the error "The program 'ffmpeg' is currently not installed. You can install it by typing:sudo apt install ffmpeg"
[17:25:18 CEST] <topia_> when trying to call it from a terminal
[17:25:37 CEST] <JEEB> if it's not in your PATH you will have to call it specifically in its location
[17:25:44 CEST] <topia_> in windows i just need to have the binary in a dir, and then i can do ffmpeg whatever from command line
[17:25:48 CEST] <furq> ./ffmpeg
[17:26:00 CEST] <JEEB> that's because windows has "." in PATH :P
[17:26:00 CEST] <topia_> i was in the same directory as ffmpeg in terminal jeeb
[17:26:04 CEST] <topia_> oh
[17:26:13 CEST] <topia_> will try ./
[17:26:20 CEST] <JEEB> most *nix systems don't have "." in PATH for various reasons
[17:26:22 CEST] <furq> just install it to /usr/local
[17:26:25 CEST] <furq> or er
[17:26:27 CEST] <furq> /usr/local/bin rather
[17:27:03 CEST] <furq> debian/ubuntu don't install anything in /usr/local, it's reserved for your manually installed programs
[17:27:06 CEST] <JEEB> yes, that is one location that is often in the default PATH and not used by the system's own packaging
[17:27:28 CEST] <JEEB> `echo $PATH` to see your current defined PATH :P
[17:28:32 CEST] <kuroro> c_14: to join video clips
[17:29:05 CEST] <kuroro> and maybe add subtitles
[17:29:16 CEST] <c_14> probably use the commandline. If what you're trying to do works via commandline, that will probably be easier. Also (helps) get around various possible licensing issues.
[17:31:43 CEST] <kuroro> i see. i guess there are certain tasks that necessitate linking against a shared lib, and thats probably why some apps decided to go the JNI route
[17:32:36 CEST] <kuroro> tnx for the suggestion
[18:10:54 CEST] <pa> i was looking at the ffmpeg webcam capture page: https://trac.ffmpeg.org/wiki/Capture/Webcam
[18:11:06 CEST] <pa> more specifically at: ffmpeg -f v4l2 -framerate 25 -video_size 640x480 -i /dev/video0 output.mkv
[18:11:18 CEST] <pa> but what if i want ffmpeg to transcode for me on the fly?
[18:11:28 CEST] <pa> like not just capture but actually encode the live stream?
[18:14:32 CEST] <c_14> it does that
[18:14:34 CEST] <c_14> by default
[18:14:38 CEST] <c_14> (unless you specify -c copy)
[18:19:25 CEST] <Phrk_> anyhelp : ffplay sftp://user:pass@ip:port/path.mkv [ffmpeg] libssh: Error opening sftp file: SFTP server: No such file
[18:20:28 CEST] <c_14> that file doesn't exist in that location on that server
[18:21:58 CEST] <Phrk_> yes it exist
[18:22:17 CEST] <Phrk_> if i use http or fuse via ssh it works
[18:22:54 CEST] <Phrk_> if i browse sftp with firefox he show the file can download it but not play
[18:24:05 CEST] <pa> c_14, but how do i specify the codec?
[18:24:15 CEST] <c_14> pa: -c:v foobar
[18:24:29 CEST] <pa> and if i dont, what happens?
[18:24:33 CEST] <pa> like in that line
[18:24:37 CEST] <c_14> it uses the default video codec for that container
[18:24:41 CEST] <pa> ah okay
[18:24:42 CEST] <pa> thanks!
[18:24:50 CEST] <c_14> for mkv that is libx264 if your build comes with that otherwise mpeg4
[18:25:04 CEST] <pa> last thing: how i choose mpeg-ts container?
[18:25:13 CEST] <c_14> change the extension to .ts
[18:25:23 CEST] <c_14> or add -f mpegts
[18:25:28 CEST] <pa> ah great
[18:25:29 CEST] <pa> thanks
[18:25:50 CEST] <c_14> Phrk_: maybe try :port//path.mkv ?
[18:26:08 CEST] <c_14> Is the file /path.mkv or is it relative to the user's home directory?
[18:29:44 CEST] <Phrk_> it's not on home, it's chroot sftp
[18:29:59 CEST] <Phrk_> c_14, no don't work with //
[18:30:37 CEST] <Asuran> hello, i got problems with following command: ffmpeg -i "... file ..." -c:v libvpx-vp9 -pass 2 -b:v 1000K -threads 8 -speed 1 -tile-columns 6 -frame-parallel 1 -auto-alt-ref 1 -lag-in-frames 25 -c:a libopus -b:a 64k -f webm out.webm
[18:30:47 CEST] <Asuran> it results in slow transcoding
[18:30:56 CEST] <Asuran> and blaming about invalid aspect ratio (h264)
[18:31:13 CEST] <Asuran> and much overflow + trys and worst: only 1 cpu used
[18:31:16 CEST] <c_14> Phrk_: hmm, no idea. is there any other warning/error in the ffmpeg output?
[18:31:22 CEST] <Asuran> any suggestion?
[18:32:36 CEST] <Phrk_> c_14, no, every player that use ffmpeg say the same error message
[18:32:53 CEST] <Asuran> http://pastebin.com/wBy7bwqi
[18:33:14 CEST] <Asuran> fflogger, http://pastebin.com/wBy7bwqi
[18:34:36 CEST] <c_14> Asuran: that h264 message is from the decoder
[18:34:51 CEST] <Asuran> yup
[18:35:07 CEST] <Asuran> so what im supposed to do about it
[18:36:19 CEST] <c_14> Besides getting a better source?
[18:36:41 CEST] <c_14> Phrk_: no idea. Is it only with that files or with all files you try?
[18:37:14 CEST] <Asuran> not possible i guess and whats the problem with it? why only 1 thread used?
[18:37:45 CEST] <Phrk_> c_14, all files, on all directory
[18:39:22 CEST] <c_14> Asuran: as to the speed libvpx is slow. 0.6x realtime isn't that unrealistic afaik. As to why it only uses one thread, no idea. libvpx can be finicky sometimes but it should work
[18:39:58 CEST] <Asuran> ah realtime, but i dont care if its realtime
[18:40:07 CEST] <Asuran> i dont want streaming
[18:40:18 CEST] <Asuran> i just got these from: http://wiki.webmproject.org/ffmpeg/vp9-encoding-guide
[18:40:32 CEST] <c_14> Asuran: that was just the speed thing ffmpeg has in its output
[18:41:12 CEST] <pa> i see there's a NVENC encoder for ffmpeg? is it there out of the box? or is it a plugin i have to download?
[18:41:40 CEST] <c_14> you need the header from nvidia and then you need to --enable-nvenc
[18:41:52 CEST] <JEEB> and --enable-nonfree for now
[18:41:54 CEST] <c_14> Phrk_: let me test on my system
[18:42:08 CEST] <JEEB> there's a patch for the nonfree to be removed due to how the header was relicensed recently tho
[18:42:09 CEST] <pa> ah so i have to rebuild
[18:42:09 CEST] <pa> ok
[18:42:10 CEST] <pa> thnxk
[18:42:17 CEST] <pa> whats a fast encoder otherwise?
[18:42:22 CEST] <c_14> x264
[18:42:22 CEST] <JEEB> libx264
[18:42:23 CEST] <pa> something not too crappy but really fast
[18:42:28 CEST] <pa> ok thanks
[18:42:33 CEST] <c_14> adjust crf and preset to your liking
[18:42:52 CEST] <JEEB> people at work often try to tell me how they'd like to try out HW encoding
[18:42:54 CEST] <Asuran> ok i changed the command to the first example (VOD)? what means VOD? video on demand?
[18:43:07 CEST] <c_14> Asuran: probably
[18:43:12 CEST] <JEEB> then I have to tell them that HW encoding is usually only useful in a very limited set of cases
[18:43:14 CEST] <Asuran> thanks guys
[18:43:19 CEST] <Asuran> i appriaciate youre help :)
[18:43:40 CEST] <JEEB> at least HW encoding is no more as bad as it was back with the whole CUDA nonsense
[18:43:49 CEST] <JEEB> expensive heaters for everyone!
[18:47:02 CEST] <Asuran> only one thing bothers me now: how to see current frame progress and how much is leftß
[18:47:03 CEST] <pa> can i put h264 into ts?
[18:47:07 CEST] <furq> sure
[18:47:08 CEST] <pa> i seem to get errors..
[18:48:33 CEST] <c_14> Phrk_: works just fine here. Might be something with your sftp server
[18:55:59 CEST] <pa> if i choose -c:v h264, i always get:
[18:56:11 CEST] <pa> no frame!
[18:56:15 CEST] <pa> last message repeated N times
[18:58:41 CEST] <Asuran> is -tile-columns codec related?
[18:59:49 CEST] <furq> pa: that's a decoder error
[19:00:15 CEST] <furq> Asuran: ffmpeg -h encoder=libvpx-vp9
[19:00:22 CEST] <furq> it's specific to libvpx afaik
[19:02:09 CEST] <pa> furq, but if i don't specify the encoder, it works.. (like without -c:v h264)
[19:05:15 CEST] <Asuran> intresting ffmpeg crashed
[19:05:18 CEST] <Asuran> second time
[19:05:24 CEST] <Asuran> seems to be the source fault
[19:05:41 CEST] <Asuran> with crash i mean i didn't got any message
[19:06:24 CEST] <pa> ah
[19:06:26 CEST] <pa> i see
[19:06:37 CEST] <pa> so -c:v is intended as input codec?
[19:06:59 CEST] <Asuran> nope output
[19:07:00 CEST] <c_14> pa: depends where you write it
[19:07:16 CEST] <furq> pa: if you put it before -i
[19:07:21 CEST] <furq> which you normally don't need to do
[19:07:31 CEST] <pa> so after is output?
[19:07:36 CEST] <furq> yes
[19:07:43 CEST] <pa> ok i see the problem now :)
[19:07:44 CEST] <pa> thanks
[19:28:55 CEST] <izco> what should be the instruction to save file to your computer when i have an m3u8 link and a cookie that is required to download the file?
[19:36:35 CEST] <klaxa> izco: https://ffmpeg.org/ffmpeg-protocols.html#HTTP-Cookies ?
[19:36:37 CEST] <klaxa> does that help?
[19:38:31 CEST] <izco> will try, cheers
[20:44:36 CEST] <Mooj> greetings, you marvelously populated channel!  i have come with a question about ffmpeg
[20:45:35 CEST] <Mooj> so here's the deal:  I'm using ffmpeg in a python program i'm writing to convert .ogg files to .wav
[20:45:46 CEST] <Mooj> and then im doing stuff with the wav data
[20:46:24 CEST] <Mooj> but for some reason, the wav conversion always has 1073741823 audio frames, regardless of the original file
[20:46:52 CEST] <Mooj> which amounts to the beginning of that data being what i actually want, and then about 99.99% zeros
[20:47:44 CEST] <Mooj> now I could conceivably write a function to chop off that excess useless data, but that seems very un-elegant
[20:47:51 CEST] <Mooj> is there a better solution for this?
[20:48:36 CEST] <JEEB> are you using the FFmpeg API or the ffmpeg cli application?
[20:49:19 CEST] <Mooj> uh....i believe the latter, but im honestly not 100% sure
[20:49:34 CEST] <JEEB> at least I have in general noticed that ffmpeg cli writes relatively correct WAV files (except with the encoder delay included, which usually isn't that many frames) :P
[20:50:05 CEST] <Mooj> i mean i know theres an option for -aframes
[20:50:21 CEST] <Mooj> but im not sure how to have it detect the correct number of audioframes to use there
[20:50:30 CEST] <JEEB> yeah, but by default you should be getting the correct amount (plus encoder delay)
[20:50:40 CEST] <JEEB> like with ffmpeg -i hurr.ogg durr.wav
[20:51:55 CEST] <JEEB> so you're either using a bugged version or your compiler breaks things or if it happens with current HEAD then we have a booger
[20:52:17 CEST] <Mooj> eh.....here's a little more detail about what im doing: http://pastebin.com/9KTQe8ZC
[20:52:39 CEST] <Mooj> so im just piping the ogg through the converter
[20:52:48 CEST] <Mooj> annnnd yeah..
[20:53:03 CEST] <JEEB> oh
[20:53:24 CEST] <JEEB> not sure if you can get exact length from OGG
[20:53:32 CEST] <JEEB> I mean, without decoding it first
[20:53:39 CEST] <JEEB> (completely)
[20:53:55 CEST] <Mooj> isnt that what ffmpeg does when it converts though?
[20:54:03 CEST] <Mooj> i mean, i assumed
[20:54:07 CEST] <JEEB> yes, but then  it can't update the value
[20:54:10 CEST] <JEEB> because the output is a pipe
[20:54:21 CEST] <JEEB> if the value is stored in the WAVE header
[20:54:33 CEST] <JEEB> try doing that with a file
[20:54:52 CEST] <JEEB> and see if that gets you correct length. if not, then things might be broken in your wave parser as well
[20:55:09 CEST] <Mooj> hm.  okay hold on
[20:55:36 CEST] <JEEB> if you were using the API you would get the PTS of the last PCM sample
[20:55:49 CEST] <JEEB> or well, you would also have the PCM sample count of course
[20:57:00 CEST] <Mooj> ahhhh i have no idea what im doing xD
[20:57:57 CEST] <Mooj> sorry, this is my first time trying to write a program to do things with audio files
[20:58:41 CEST] <Mooj> so..i guess i will try to just have ffmpeg spit out a wav and run with that
[20:59:18 CEST] <JEEB> that way you would get the length correct, yes
[20:59:39 CEST] <JEEB> because ffmpeg would first write the data and then at the end seek to the header and update the value accordingly
[20:59:46 CEST] <JEEB> at least that's how I imagine that thing working
[20:59:59 CEST] <Mooj> yeah fair enough
[21:00:11 CEST] <JEEB> most things that handle WAV from stdin usually don't care about the length field
[21:00:16 CEST] <JEEB> and just read until stdin dies out
[21:00:52 CEST] <Mooj> it's a bit temporary of a fix since in the final version i will want to be able to handle streaming audio data
[21:00:57 CEST] <Mooj> but it'll be a start
[21:01:22 CEST] <Mooj> i assume reading until stdin dies out means just stopping once you hit 500 0s?
[21:01:54 CEST] <JEEB> the reading side should notice that as soon as ffmpeg stops pushing stuff in there
[21:02:09 CEST] <JEEB> I only imagine the python wrapper tries to do some fancy things
[21:02:14 CEST] <JEEB> and makes up data
[21:03:03 CEST] <Mooj> yeah...from what i can tell its just preallocating the memory, and then not chopping off the excess
[21:10:18 CEST] <furq> http://vpaste.net/3A1sf
[21:10:20 CEST] <furq> i'm bored apparently
[21:10:46 CEST] <furq> but yeah the length is at 0x4C
[21:11:16 CEST] <furq> er, 0x4A even
[21:13:47 CEST] <Mooj> so...it can tell how long the audio should be?
[21:14:06 CEST] <JEEB> no
[21:14:19 CEST] <JEEB> that's the spot where ffmpeg would then seek back
[21:14:21 CEST] <JEEB> if it was a file
[21:14:29 CEST] <JEEB> it's not so there's a placeholder value there
[21:14:34 CEST] <furq> ^
[21:14:34 CEST] <JEEB> capisce?
[21:15:01 CEST] <Mooj> gotcha
[21:53:20 CEST] <Mooj> yep, works like a charm when not in a pipe
[21:53:36 CEST] <Mooj> thanks for the help, you guys!
[23:36:05 CEST] <Prelude2004c> hey guys.. any suggestion.. .thi sis what is happening.. i have a channel being encoded.. and i set PVR to record a show... for some reason after i do the playback on the show... the segments are 6 seconds long.. basically the playback is -6 so it only plays for 6 sends from the end... odd.. its like end of file is at 0 and beginning i have no idea.. :(.. i dont even know how to explain it
[23:36:18 CEST] <Prelude2004c> anyone have any vauge idea on what i am dealing with here ?
[23:36:26 CEST] <Prelude2004c> i only play last 6 seconds of any recording
[00:00:00 CEST] --- Mon Apr 25 2016


More information about the Ffmpeg-devel-irc mailing list