[Ffmpeg-devel-irc] ffmpeg.log.20120911
burek
burek021 at gmail.com
Wed Sep 12 02:05:01 CEST 2012
[00:00] <rud> grrr audio is perfect if i use -f mp4
[00:01] <rud> it's choppy with and without the latest HLS patch if i use -f stream_segment/segment
[00:01] <rud> testing on an ubuntu system right now (vs freebsd up to now..)
[00:16] <kevin> hey guys... ive got a question. how come aspect ratios can be different among different pixel dimensions? all my videos are 720x480 but some are 3:2 and others are 16:9
[00:16] <kevin> and also some 4:3
[00:19] <kevin> mainly asking because these videos are in ntsc-dvd mpg formats and i as is listed in the faqs, i can cat them together. all the parameters are the same except aspect ratio, and was wondering if that would cause any issues
[00:22] <iive> kevin: the resizing is done after the image is decoded.
[00:23] <kevin> oh, i see
[00:23] <iive> e.g. when displaying on screen the resizing to match the aspect is done at the same time with the yuv->rgb color conversion.
[00:23] <iive> usually by the video card.
[00:31] <kevin> pl
[00:31] <kevin> ok*
[00:32] <kevin> well, if the resizing is done *after* the decoding, i'm just assuming the file has a couple bytes just telling it the aspect ratio. could i theoretically just change bytes X-Y instead of rencoding to change aspect ratio?
[00:58] <Stefff> Hi, I try to capture/encode and play from /dev/video0 simultaneously. For playback I use "mplayer", for capture/encode "ffmpeg" and to double the data of /dev/video "tee". Mplayer works in my cli, but for the ffmpeg I got the error messages in the pastie (Cannot open video device pipe:0). What I am missing? http://pastebin.com/57n4K5uT
[01:59] <burek> Stefff, take a look at this wiki article: http://ffmpeg.org/trac/ffmpeg/wiki/Creating%20multiple%20outputs
[02:00] <burek> you can avoid tee actually
[02:01] <burek> also, update your ffmpeg
[02:01] <burek> not to mention avconv IS NOT ffmpeg
[02:01] <burek> it's just a fork of ffmpeg
[02:01] <burek> so don't expect ffmpeg support on something that is not ffmpeg..
[02:02] <burek> also, not all cmd line options are both available in avconv and ffmpeg
[02:02] <burek> that's the point of a fork
[02:03] <burek> (talking about pipe:0)
[02:06] <burek> kevin, did you try -aspect? http://ffmpeg.org/ffmpeg.html#Video-Options
[02:11] <kevin> hrrrrm
[02:54] <nickhs> Howdy! I have the following command ffmpeg -loglevel debug -f mp4 -r 3 -i %d.jpg -vcodec mpeg4 c4170cea-fba8-11e1-9f16-1be468b4a232.mp4.nm but it keeps returning with %d.jpg: No such file or directory - what am I doing wrong>
[02:54] <nickhs> *?
[02:54] <Aleks3Y> do you have %d? :)
[02:54] <nickhs> Aleks3Y: lemme pastebin the ls :)
[02:55] <Aleks3Y> if you really have it try to backslash it
[02:55] <nickhs> http://pastie.org/4699059
[02:55] <Aleks3Y> so...
[02:55] <nickhs> and backslash it?
[02:56] <nickhs> ideally I would like to select every jpg in the directory, this worked on OSX but not on Ubuntu
[02:56] <Aleks3Y> you want all of them convert to one file?
[02:57] <nickhs> ya
[03:09] <Aleks3Y> not sure, but unix way to use *
[03:54] <killown> relaxed, this command ffmpeg -f alsa -ac 2 -i pulse -f x11grab -s hd1080 -r 30 -i :0.0 -vcodec libx264 -preset ultrafast -an -y video.mkv -acodec pcm_s16le -b:a 48000k -loglevel quiet -vn -y audio.mkv was working before
[03:58] <killown> relaxed, thank you I fixed that
[04:04] <killown> Unknown input format: 'x11grab'
[04:04] <killown> I compiled with --enable-x11grab but still gives this error
[04:04] <killown> ffmpeg -f x11grab -r 25 -s 1024x768 -i :0.0+100,200 -f alsa -ac 2 -i pulse output.flv
[04:10] <killown> I installed xorg-x11-libXfixes-devel now I will compile it again
[06:52] <orated> Hello! I'm trying source installation of ffmpeg-0.11 on Ubuntu12.04. Here is the output of configure and make commands issued - http://paste.ubuntu.com/1197993/ . I'm getting multiple warning after running make command. Could anyone confirm me if its okay to run <sudo make install> after those warnings?
[07:00] <JEEBsv> orated: seems like normal compilation warnings. Personally if I'd compile from source I'd just go for git HEAD, though.
[07:01] <ameeth> Hi is their any alternative of ffmpeg for streaming videos on to a rtmp server or any like proprietary ffmpeg . I using panda board ,Ubuntu 12.0
[07:06] <killown> can anyone help me? http://bpaste.net/show/BT7425H8DcJ8PcFkPXmB/
[07:08] <orated> JEEBsv: Yes, git is preferable but what are those multiple "uninitialized" warnings for? My requirement is to use 0.11 version
[07:12] <JEEBsv> orated: something is /possibly/ uninitialized if the code is used in a certain specific way
[07:13] <orated> JEEBsv: I'm curious because I've faced libavformat and libavcodec errors before, I don't have the exact errors at the moment though.
[07:13] <orated> ah, ok
[07:13] <orated> What is the right way to re-compile if the errors again reproduce?
[07:14] <orated> make clean, make uninstall and then repeat normal steps?
[07:14] <JEEBsv> make uninstall isn't exactly stable :D
[07:14] <JEEBsv> or at least you shouldn't expect it to be
[07:14] <JEEBsv> with /any/ project
[07:14] <orated> Ah, I didn't know that.
[07:15] <JEEBsv> if you want to be able to remove your stuff, use a custom prefix and take note of what get installed
[07:15] <JEEBsv> anyways, it seems like you're set to /usr/local and that might be empty by default
[07:16] <orated> Yes, I just want to be aware of the steps if re-compile is required. I'm installing this probably for the fourth time. Could you also link me to a normal compilation log, if there is any?
[07:17] <JEEBsv> nope
[07:17] <JEEBsv> also it should be OK as long as you don't have errors
[07:17] <orated> Yea, that is what I've thought till now ;)
[07:17] <JEEBsv> warnings have pretty much always been there
[07:18] <JEEBsv> some are misunderstood things by the compiler, other stuff might possibly have bigger ramifications... but in general this is how it's been for all the years
[07:18] <killown> can anyone help me? http://bpaste.net/show/BT7425H8DcJ8PcFkPXmB/
[07:22] <JEEBsv> killown: I think the error message is rather straightforward? You don't have x11grab
[07:24] <orated> JEEBsv: And, could you also brief me the support for armhf ports?
[07:27] <killown> JEEBsv, thank you, I am recompiling
[07:32] <JEEB> orated, armhf what? Anyways, no idea unfortunately :/
[07:33] <orated> Thank you
[10:44] <Stefff> Hi, I try to capture/encode and play from /dev/video0 simultaneously. For playback I use "mplayer", for capture/encode "ffmpeg" and to double the data of /dev/video "tee". Mplayer works in my cli, but for the ffmpeg part I got the error messages in the pastie ("Cannot open video device pipe:0"). What I am missing? http://pastebin.com/57n4K5uT
[11:06] <burek> Stefff
[11:07] <burek> I answered you yesterday
[11:07] <burek> but you went offline
[11:11] <Stefff> thx burek, i have a look at the logs. My pc went to standby apparently.
[11:28] <Stefff> burek: The wiki article looks promising. I have to go now, but I keep you up to date when I tried it.
[11:29] <burek> :beer: :)
[12:23] <tr33fall> hi again
[12:24] <tr33fall> finally and after JEEB help and guidance i built ffmpeg and x264 for android
[12:24] <tr33fall> and its working
[12:25] <tr33fall> but im trying to get a filter for audio working
[12:25] <tr33fall> asyncts
[12:25] <tr33fall> asyncts=compensate=1
[12:25] <tr33fall> -af asyncts=compensate=1
[12:25] <tr33fall> but it gives error about abuffer sample format being null
[12:26] <burek> tr33fall is there any chance you could update this article https://ffmpeg.org/trac/ffmpeg/wiki/CompilationGuide
[12:26] <burek> and add Android compilation guide?
[12:26] <tr33fall> i tried to add -> "-af asyncts=compensate=1,abuffer=44100:s16:stereo"
[12:26] <tr33fall> sure m8
[12:26] <burek> thanks
[12:27] <burek> also, I don't know which version of ffmpeg have you built
[12:27] <burek> but if it's not the latest, then -af might not be implemented yet in it
[12:27] <burek> so you'll have to use -f lavfi something
[12:27] <burek> let me get the docs
[12:27] <tr33fall> it has the last snapshot
[12:27] <tr33fall> *was
[12:28] <burek> https://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20change%20audio%20volume%20up-down%20with%20FFmpeg
[12:28] <burek> try with lavfi
[12:28] <tr33fall> ok
[12:28] <burek> also, if that doesn't help, provide us with a pastebin of entire output
[12:29] <burek> so we can take a look into it
[12:29] <tr33fall> sure
[12:32] <tr33fall> if i use lavfi it states -> Unknown input format: 'lavfi'
[12:33] <burek> great :)
[12:33] <burek> try with pastebin :)
[12:33] <tr33fall> the command was similar to the one on the page you gave me
[12:33] <tr33fall> ok
[12:34] <saste> burek: "can you please use a pastebin site..."
[12:34] <saste> it is missing the final question mark, or you need to change it to imperative form
[12:34] <saste> please use a pastebin ...
[12:34] <burek> right
[12:35] <burek> i thin i added "can you" later in the process
[12:35] <relaxed> I vote that bot should recommend pastie.org instead of pastebin.com, the latter being ad supported.
[12:35] <relaxed> that the bot*
[12:35] <tr33fall> http://pastebin.com/tsV9FfdL
[12:35] <tr33fall> here it is
[12:36] <tr33fall> that is the java string im using to execute ffmpeg on shell
[12:36] <saste> tr33fall: uhm no i can't help with that
[12:36] <burek> tr33fall we need complete output
[12:36] <burek> not just the cmd
[12:37] <saste> i need an *ffmpeg command*, with output (showing exact version, amongst the various things)
[12:38] <saste> fflogger: no
[12:38] <saste> well maybe the imperative form is more straightforward
[12:39] <burek> I see
[12:39] <burek> well ok :)
[12:39] <saste> burek: looks good
[12:40] <saste> burek, you may use polygen to generate the text, and add some randomic spice into it
[12:40] <tr33fall> http://pastebin.com/6Mnfnkmh
[12:41] <saste> tr33fall: uhm --disable-everything
[12:41] <saste> do I need to add more? :)
[12:42] <tr33fall> ??
[12:42] <burek> tr33fall can you use pastebin without lavfi, with -af
[12:42] <tr33fall> sure´
[12:42] <saste> tr33fall, you're disabling everything but a few components, so no wonder that you miss many components
[12:43] <burek> maybe he is optimizing for arm
[12:43] <saste> 11.1 already supports -af IIRC
[12:44] <saste> and that's the snapshot, so it will surely contain -af
[12:44] <tr33fall> im enabling asyncts dont worry
[12:45] <tr33fall> in android log it doesnt show up
[12:45] <tr33fall> but im --enable-filter=asyncts
[12:45] <tr33fall> so no worry there :)´
[12:45] <saste> tr33fall: you really don't need the lavfi device
[12:46] <saste> but if you want it: --enable-indev=lavfi
[12:46] <tr33fall> i just need the asyncts
[12:46] <tr33fall> but it gives some kind of error
[12:46] <tr33fall> im pastbin the error
[12:49] <tr33fall> http://pastebin.com/yLYg2Wxv -> command is almost the same without the lavfi option of course
[12:52] <saste> tr33fall: really we need command and output of the command line utilities, otherwise we can't help/reproduce the issue
[12:52] <burek> tr33fall it might help to use ffmpeg -report ... 2>out.txt
[12:56] <tr33fall> ok
[12:59] <saste> burek, tr33fall: wuth --report you don't even need to redirect the output, since it will all be written to the report file
[13:03] <burek> ok
[13:05] <Element9> is there a way to find out the supported framerate by some codec through ffmpeg?
[13:05] <Element9> is not, what's the best place/way to find such info?
[13:06] <saste> Element9, not at the moment
[13:06] <saste> where? source code for example
[13:08] <Element9> saste: thanks. any hint on where to start looking for supported frame rate of wmv2 other than obvious wmv2.c?
[13:10] <saste> Element9: i'm not even sure there are limitations with framerate for that codec
[13:11] <JEEBsv> Element9: I think it's better off to start thinking in timestamps per frame than in constant frame rates. The formats that require the latter are the exception, not the rule.
[13:11] <saste> indeed
[13:12] <JEEBsv> also generally the container limits the possible rates, not the codec
[13:13] <Element9> JEEBsv: for me it might be, but users of my UI will understand frame rate easier
[13:14] <Element9> JEEBsv: didn't know that container limits frame rate. I'm green :)
[13:22] <JEEBsv> Element9: just make sure to use the input timestamps as needed to get the result, and only hardcode stuff to frame rates when explicitly needed, and convert to them as needed
[13:29] <tr33fall> hi again
[13:29] <tr33fall> http://pastebin.com/YYA0utE3 -> here is full log
[13:29] <tr33fall> report was giving error on android
[13:36] <saste> tr33fall, something is fishy with the RTSP negotiation
[13:36] <saste> indeed it can't guess sample format and a few other things
[13:36] <saste> so the question is: why?
[13:37] <saste> you could try to increase the analyzeduration and probesize values, as suggested in the log
[13:37] <saste> or the SDP is not providing the required info
[13:41] <tr33fall> so the abuffer sample format may be due to rtsp negotiation?
[13:42] <burek> tr33fall try changing your output to a simple file output
[13:42] <burek> your rtmp output*
[13:43] <tr33fall> ok
[15:13] <rud> saste: around ? i'ld need you to test something ..
[15:13] <saste> rud: yes
[15:14] <rud> can you try to segment an h264/aac file locally and see if it play back fine ? I mean, I spent the night making tests, I fear something was broken regarding the segmenter and audio
[15:16] <saste> rud: do you have a commad to start?
[15:16] <rud> saste: actually you can just -f segment or -f stream_segment with just the mpgets
[15:16] <rud> no need for a playlist
[15:17] <rud> like -re -c:a libfdk_aac -b:a 96k -c:v libx264 -preset ultrafast -crf 23 -s 426x240 -b:v 128k -map 0 -f stream_segment -segment_time 10 -segment_format mpegts ${stream}_240p%05d.ts
[15:17] <rud> note i tried with both libfdk-aac and libfaac
[15:18] <rud> the audio is the issue, it'll sound "choppy" as if some oscillator was chopping frequencies
[15:19] <rud> i tried on my setup with same (rtmp) source. capturing that rtmp > mp4 == fine. capturing that rtmp > segments == choppy audio
[15:19] <rud> i think this might date back to the first segment patch
[15:19] <rud> note, if you have no httpd around for tests, zip me the files i'll put them on my test server so we can play/test them
[16:03] <rud> saste: when do you think you can give it a try? so i try to get other things done meanwhile here ..
[16:25] <rud> just tested HLS files generated by some third party, using ubuntu 12, and the patch, same choppy audio.. I'm trying to compile an older version of segment.c to figure what commit broke the audio
[16:50] <saste> rud: my connection is shacky, send commandline
[16:51] <rud> saste: pm
[18:36] <frogprince_mac> is there a way to quickly process external flvs? i want to generate thumbnails from external flv links but it takes a long time
[18:37] <Tjoppen> "external"? you mean over HTTP?
[18:37] <Tjoppen> what's wrong with ffmpeg -i http://example.com/foo -vframes 1 out.jpeg ?
[18:38] <frogprince_mac> ye http
[18:39] <frogprince_mac> uh i used something like ffmpeg -i http://example.com/foo -ss 00:00:30 -f image2 "foo.jpg"
[18:49] <frogprince_mac> what does the -r flag do?
[18:50] <frogprince_mac> nvm :)
[18:58] <frogprince_mac> i had to put the -ss parameter before the -i parameter o_O
[18:58] <frogprince_mac> else it takes minutes
[19:19] <whoev> http://pastebin.com/MB049njS
[19:19] <whoev> does anyone know what to make of this .mov error?
[19:19] <whoev> for some reason it's dumping out metadata from the -original- computer the data was on
[19:20] <whoev> like, filesystem metadata
[19:20] <whoev> i can't make heads or tails of this
[19:47] <brodul> tak tipicen problem debiana
[19:47] <brodul> recem lxc-create -n neki -t debian
[19:47] <brodul> in faila ker ne najde lennya
[19:48] Action: brodul facepalms
[19:49] <microchip_> brodul: english!
[19:49] <brodul> whop sorry
[19:49] <brodul> :D
[19:49] <brodul> wrong channel
[20:14] <brimestone> hey guys, what causes my ffmpeg to error out when stiching sequencial images to video...
[20:15] <brimestone> http://pastebin.com/yhnnPYkX
[20:15] <whoev> brimestone:
[20:15] <whoev> GOPR%d.JPG: No such file or directory
[20:15] <whoev> link your tutorial page or w/e
[20:15] <brimestone> huh?
[20:16] <whoev> do you have an image named GOPR%d.JPG?
[20:16] <brimestone> i know.. but itsnt that suppose locate images "GOPR1802.JPG" on the same directory
[20:17] <whoev> try GOPR*?
[20:17] <whoev> just guessing
[20:17] <brimestone> http://answers.yahoo.com/question/index?qid=20110313114847AABVecj
[20:17] <whoev> for the output
[20:17] <whoev> sure
[20:17] <whoev> but that's different
[20:18] <whoev> umm
[20:18] <brimestone> but i want to stich them together
[20:18] <whoev> http://stackoverflow.com/questions/7015489/building-video-from-images-with-ffmpeg-w-pause-between-frames
[20:18] <whoev> start with that maybe
[20:18] <whoev> i'm just guessing - nobody seems to answer in here usually
[20:19] <whoev> and then maybe stitch the output video of that, and the other video, together
[20:19] <whoev> it may be possible to do it at once, but i don't know how, sry
[20:19] <brimestone> no need to say sorry?
[21:09] <lucas^> ffprobe -show_frames gives a pkt_pts and pkt_dts for each frame
[21:09] <lucas^> recent versions on git also provide a pkt_duration, showing how long each frame will be displayed I'm assuming
[21:10] <lucas^> I thought it'd be easy to take the difference of the PTS between each frame and use that as the duration, but unfortunately frames can be encoded out-of-order, and it doesn't always line up
[21:12] <orated> Hello! How can I fix errors related to libavcodec as listed here - http://imagebin.org/228063 - ? Do I need to re-install ffmpeg?
[21:13] <JEEB> use the .54 headers
[21:13] <JEEB> you're using the .54 library so you need .54 headers
[21:13] <JEEB> or wait...
[21:13] <JEEB> -_-
[21:14] <JEEB> anyways, make sure you're linking everything needed, in this case libavutil?
[21:17] <frogprince_mac> how do i get the duration of a video?
[21:23] <ubitux> frogprince_mac: ffprobe
[21:24] <ubitux> ./ffprobe -v 0 -show_format input.bla -of flat | grep format.duration
[21:25] <ubitux> for example.
[21:25] <frogprince_mac> a-are you a wizard
[21:27] <boom> hello. In the ffmpeg.org documentation. Point 33 Metadata, there is an explaination to the feature of dumping metadata to an INI like file. I'm not sure however, how to generate that file via the CLI.
[21:27] <ubitux> boom: ./ffmpeg -i input.bla output.ffmeta
[21:27] <orated> Hi JEEB.. I told you I'm facing issues with ffmpeg ;) I didn't follow what you meant by .54 headers. Could you guide me on that please?
[21:28] <JEEB> eh
[21:28] <ubitux> frogprince_mac: depending on your need you can do smarter things
[21:28] <JEEB> I first thought it was a 54/51 mismatch but then I saw that it doesn't even show libav_util_
[21:28] <JEEB> which is one of the libraries that comes from ffmpeg
[21:28] <JEEB> libavcode/-format/libswscale/libavresample/libswresample
[21:29] <ubitux> frogprince_mac: eval $(./ffprobe -v 0 -show_format input.bla -of flat=s=_|grep format_duration); echo $format_duration
[21:29] <JEEB> make sure you're linking libavutil
[21:29] <boom> ubitux: thank you, that puts me on the right path
[21:29] <ubitux> you also have xml, json, etc outputs
[21:29] <frogprince_mac> ubitux: your first solution was good enough :p thanks
[21:29] <ubitux> :)
[21:30] <lucas^> is there a way to reliably calculate the duration of a frame from the PTS/DTS timecodes?
[21:31] <JEEB> PTS is the presentation timestamp
[21:31] <JEEB> those should be used if anything
[21:37] <lucas^> I guess the easiest way to go about this is
[21:38] <lucas^> write a script that parses ffprobe -show_frames, counts each video frame one by one, takes the difference between PTS timecodes and uses that to build a frame-to-timecode map
[21:39] <lucas^> then build the newest version of ffmpeg, and write another script that just uses pkt_duration to determine the same value
[21:39] <lucas^> and then compare both to the timecode returned by ffmpeg -i input -c copy -map 0:v -vframes frame_no /dev/null
[21:39] Action: boom is away. Automatically set away [SZon]
[22:07] <orated> JEEB: http://paste.ubuntu.com/1199398/
[22:08] <JEEB> but is your thing actually linked to it? those errors you posted in that screenshot kind of pointed at it not having the symbols (as it probably hadn't linked to it)
[22:13] <Organ> Hello everyone, I'm here because obviously I've got issues with ffmpeg, kinf of a practical issue. I've spent the last 10 hours (yes) to try and find a bug which cause ffmpeg-php (and more precisely ToGDI();) not to function properly.
[22:14] <orated> JEEB: I tried to understand and find about that. But I'm not sure if it or not...
[22:15] <Organ> kind* sorry. SO : i just found that ffmpeg-php needs "swscale" to be disabled, and my ffmpeg HAS got the "--enable-swscale", which cause the problem (I hope), therefore my question is : how to update properly from http://pastebin.com/NG0rsnUQ to the last ffmpeg WITHOUT causing problems ? (it's on a debian server)
[22:24] <Organ> Anyone ?
[22:28] <llogan> ffmpeg-php is not a FFmpeg project, FYI.
[22:29] <Organ> llogan: thanks for the link, and yes I know : the main issue is compiling a new version of ffmpeg on a server which was updated years ago... (and also "--enable-"ing the same things, or their equivalent)
[22:30] <llogan> ffmpeg-php from the repo probably won't magically work with recent ffmpeg
[22:31] <llogan> so you might have to compile ancient ffmpeg source
[22:31] <llogan> also a newer implementation of "ffmpeg-php" https://github.com/char0n/ffmpeg-php
[22:32] <llogan> and by ancient i mean ffmpeg that is 5 years old since ffmpeg-php wasn't updated since 2007.
[22:33] <llogan> or 2005. i don't know.
[22:34] <frogprince_mac> hmm
[22:35] <frogprince_mac> i want to install ffmpeg-php but it says i need the ffmpeg shared libraries
[22:35] <frogprince_mac> do i need to reinstall ffmpeg?
[22:37] <Organ> llogan: I fear that :/ maybe I'll just stick to using the same version, without the flag (swscale-thingy)...
[22:43] Action: llogan knows nothing more about ffmpeg-php
[22:43] <llogan> except that it is dumb
[22:43] <Organ> anyways, thanks for your help
[22:44] <Organ> back to work, bye
[00:00] --- Wed Sep 12 2012
More information about the Ffmpeg-devel-irc
mailing list