[Ffmpeg-devel-irc] ffmpeg.log.20130522
burek
burek021 at gmail.com
Thu May 23 02:05:01 CEST 2013
[02:16] <Emmanuel_Chanel> Hello!
[02:17] <Emmanuel_Chanel> I cannot compile ffmpeg with --enable-x264...
[02:19] <Emmanuel_Chanel> I'm trying to install ffmpeg with this page: https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuideQuantal
[02:20] <cbsrobot> Emmanuel_Chanel: and ?
[02:21] <Emmanuel_Chanel> I want to enable x264 option. But ./configure says "ERROR: libx264 not found".
[02:21] <Emmanuel_Chanel> I could with the version of 11 May. So it would be a bug of x264 or ffmpeg.
[02:25] <jure> hi
[02:25] <cbsrobot> Emmanuel_Chanel: not sure
[02:26] <jure> why does uploading a 1080p file on YT downgrade it to a 480p file?
[02:27] <jure> is there a specific set of parameters I should pass to ffmpeg and libx264 to prevent this?
[02:30] <Emmanuel_Chanel> jure: Oj! Kako si? Is it a topic that you can talk about on this channel?
[02:30] <llogan> Emmanuel_Chanel: cd x264; make distclean; ./configure --disable-opencl --enable-static
[02:31] <Emmanuel_Chanel> ok.
[02:31] <Emmanuel_Chanel> I try.
[02:32] <llogan> or use older x264 source before yesterday's push
[02:33] <jure> never mind, I guess -pix_fmt yuv420p and -profile:v high422 worked :)
[02:33] <Emmanuel_Chanel> I didn't know what opencl is. So thank you!
[02:34] <llogan> --disable-opencl is a workaround. i wouldn't call it a solution
[02:34] <Emmanuel_Chanel> Installing opencl-dev package can be another solution?
[03:22] <t4nk744> hi i can't find the correct syntax to use the rtmp_buffer option please help
[03:25] <llogan> t4nk744: did you refer to http://ffmpeg.org/ffmpeg-protocols.html#rtmp ?
[03:25] <t4nk744> yes
[03:28] <t4nk744> how do i add it to a command line ? -rtmp_buffer 3000 ? rtmp_buffer 3000 ? rtmp_buffer=3000 ??? i can't find it
[03:30] <t4nk744> ho my god i just found it now...
[03:30] <t4nk744> how could i know that ...
[03:30] <t4nk744> it seems i just have to add buffer 3000 and not rtmp_buffer
[03:34] <t4nk744> ho no it's not working...
[03:37] <t4nk744> anybody knows how to use that rtmp_buffer option ?
[03:44] <t4nk744> ok i found the solution
[03:44] <t4nk744> it's after the rtmp://url buffer=6000
[03:45] <t4nk744> and we need to place "" around the url with the options
[03:46] <t4nk744> at least now you share that solution for the next one
[03:46] <t4nk744> you can
[03:48] <t4nk744> good night
[04:44] <aristarchus> how do i increase the image quality of an x11 capture?
[04:44] <aristarchus> my recorded resolution seems lower
[05:00] <highgod> Hi, I want to ask a question, how can I check the video stream packets is all getted but the audio stream is not finished
[05:26] <filltheetric> Is this an appropriate place to get answers for FFMpeg-PHP?
[10:08] <untaken> How do I change the audio format only on a .avi file. I don't want to change the video, but the audio doesn't play on one of my devices, so want to change that. Any ideas?
[10:09] <cbsrobot> untaken: what format do you need ?
[10:18] <untaken> cbsrobot: any tbh, just so I get a feel for the way you do it
[10:18] <untaken> cbsrobot: couple of examples, so I can try both would be nice :)
[10:19] <JEEB> ffmpeg -i input.derp -c:v copy -c:a yourpreferredaudiocodec -q:a your_preferred_audio_quality_number out.file
[10:19] <JEEB> -c:v copy sets video codec to "copy"
[10:19] <cbsrobot> ffmpeg -i infile.avi -c:v copy -c:a pcm_s16le outfile.avi
[10:19] <untaken> ahh, so that literally just copies the video over and alters the audio :)
[10:20] <untaken> thnaks guys, I'll give it a shot
[10:20] <untaken> thanks :)
[10:20] <cbsrobot> yeah - just make sure the output format (avi in this case) supports that codec
[10:20] <untaken> ok
[13:23] <memento> hi guys
[13:27] <memento> I'm really stuck!, I'm trying to restream a live stream from an ip cam which I can get near real time playback (500 ms delay) with vlc on my pc, but the restreamed result has a 3-4 sec delay. the command that i'm using is essentially ffmpeg -i "rtsp://192.168.5.202/channel1" -f mpegts udp://127.0.0.1:11000
[13:28] <memento> i'v read http://ffmpeg.org/trac/ffmpeg/wiki/StreamingGuide#Latency and applied so many other parameters and using other coedecs and etc
[13:28] <memento> but the delay is always there
[13:28] <memento> any suggestion?
[13:52] <t4nk_> hello..what's the recommended way to set the frame->pts value when encoding your own audio and video frames?
[13:54] <t4nk_> I'm already rescaling from the codec timebase (1/24 for video, 1/11025 for audio) to the stream time base (1/1000), but the PTS values are in two completely different ranges
[16:24] <BlInK311> Hey guys, I am attempting to compile and implement ffmpeg to android for the first time. I have tried multiple times to compile with no success. does anyone know a surefire way to build and implement ffmpeg for android?
[16:32] <BlInK311> any help will be greatly appreciated
[16:55] <theahindle> Is it possible to get ffmpeg on debian with h264 support/libfaac, without compiling from source?
[17:01] <fdik> hi
[17:01] Action: fdik has a SCR moves backwards, remultiplex input after converting with ffmpeg. Any hints?
[17:01] <fdik> .oO( with dvdauthor )
[17:03] <fdik> ffmpeg version 1.2 Copyright (c) 2000-2013 the FFmpeg developers
[17:12] <sacarasc> theahindle: ^
[17:17] <Digit> hi :)
[17:19] <fdik> hm
[17:19] <fdik> no one has an idea?
[17:20] <fdik> Digit: Do you know how I could handle "SCR moves backwards, remultiplex input" from dvdauthor?
[17:20] <Huemac> hello. could someone please append semicolon to the line 449 to this file https://github.com/FFmpeg/FFmpeg/blob/master/libavutil/opencl.c
[17:20] <Huemac> some compilers dont seem to like it
[17:21] <Huemac> or should i make a ticket?
[17:22] <Huemac> line 613 seems to have the same problem also
[17:24] <Huemac> the error i get is "libavutil/opencl.c:448:1: error: label at end of compound statement"
[17:26] Action: fdik is feeling desperate
[17:28] <Huemac> why?
[17:29] <fdik> Huemac: "SCR moves backwards, remultiplex input" from dvdauthor
[17:29] <fdik> Huemac: I find a lot of people in the net having that problem
[17:29] <fdik> Huemac: but no real solution
[17:29] <fdik> Huemac: they're suggesting totally different things
[17:29] <fdik> Huemac: nothing works for me
[17:30] <Huemac> well free software still :-)
[17:31] <Huemac> think if you had to pay thousands and still get errors
[17:31] <saste> Huemac, please send patch to mailing list
[17:31] <saste> also I see that the ; is not always specified, but that should not be a problem
[17:31] <saste> so I can't see the problem
[17:32] <saste> (and I can't even compile opencl stuff)
[17:32] <Huemac> yep. it is not allways specified but i think it should be
[17:34] <Huemac> some compilers fail if semicolon is not defined on switch-case or end etc...
[17:34] <saste> huemac: the "," is specified in the macro
[17:34] <saste> *the ";"
[17:35] <Huemac> yes i know
[17:35] <Digit_> then it's complier problem not a ffmpeg one :D
[17:36] <Huemac> well yeah, but could someone make it work with cross compilers too :/
[17:36] <Huemac> yep. added it manually to my project and now it compiles
[17:37] <Huemac> that line 449 seems to be the odd compiler failing line :D
[17:37] <Huemac> i did not change anything else
[17:41] <Digit_> if you don't give any output nobody can help
[17:41] <Huemac> 18:24 Huemac> the error i get is "libavutil/opencl.c:448:1: error: label at end of compound statement"
[17:41] <Huemac> that and nothing else.
[17:48] <Digit_> bcs some compiler needs a statement after the compound definition
[17:48] <Digit_> just add something doing nothing after it
[17:50] <Digit_> or a ; it means an empty statement
[17:53] <Huemac> i should try adding it and compiling with another compiler and see if it works
[17:53] <Huemac> if it does i would love if someone put it in there :D
[17:53] <Digit_> ?
[17:54] <Digit_> well you got a solution what's the problem now ?
[17:55] <Huemac> well i have to every time add it when i pull the latest changes
[17:55] <fdik> if this is the wrong # for asking questions about ffmpeg and dvdauthor, does anyone have a tip for me where I should aks such questions, pleasE?
[17:55] <Huemac> or add the whole file to gitignore
[17:56] <Digit_> report it
[17:56] <Digit_> if it's not done yet
[17:56] <Huemac> yes i will tomorrow. i will have to go home now
[17:57] <Digit_> fdik you can get an answer in 10 min...
[17:57] <Digit_> can't *
[17:58] <Digit_> i am sure there is a compiler option to stop warning for that kind of error
[17:58] <Digit_> fdik: you can try the forums too
[18:15] <fdik> Digit_: where can I find the forums, please?
[18:16] <fdik> Digit_: I'm expecting nothing, just trying to find out what to do best
[18:16] <Digit_> fdik: http://ffmpeg.gusari.org/
[18:16] <fdik> Digit_: thx
[18:17] <fdik> .oO( "No posts were found because the word dvdauthor is not contained in any post." )
[18:17] <fdik> looks like people don't use this software in the forums ;-) But with luck...
[18:26] <fdik> Does anyone know how I can rewrite the timestamps in an MPEG file with ffmpeg? Documentation hint preferred ;-)
[18:36] <Digit_> what do you mean by rewrite it
[18:45] <Digit_> fdik: ffmpeg -i inputmovie.avi verifiedmovie.avi
[19:57] <fdik> Digit_: didn't work, but problem solved anyways
[19:58] Action: fdik kicked out dvdauthor ;-)
[19:58] <Digit_> at least share it
[19:58] <fdik> Digit_: Well... ;-)
[19:58] <fdik> Digit_: this is a bug in dvdauthor, this should be a warning not an error AFAICS
[19:59] <fdik> Digit_: the net is full of people with that problem, and full of "solutions" which worked for one single case and others couldn't benefit
[19:59] <fdik> Digit_: thx anyways ;-)
[19:59] <Digit_> ok.... see you
[22:36] <vade> hello. I am attempting to concat mp4 files together using the concat protocol, similar to the listed command line in http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20concatenate%20(join%2C%20merge)%20media%20files (under concat protocol). This works 100% if my files are the same resolution, however, I may need to support some scenarios where the resolutions of the input files are different, and so I am attempting to additionally add a crop filter. I understand you c
[22:36] <vade> do a simple sample in, change PTS, sample out style copy in the case where you need to crop. What is the correct flag to append media with differing formats? Would it be faster to simply crop the the outlier file separately, save it to the the same format, and then do a "concat protocol" based file contat (rather than decode and re-encode everything) Apologies if I am missing something obvious - fairly new to FFMPeg
[22:38] <wlritchi> Is there a good way to copy all streams/metadata from first input, except replacing the first stream with the second input's first stream?
[22:39] <wlritchi> Obviously I can do this with a known number of streams, but I can't seem to find info on a good way to do this with a variable number of streams.
[22:44] <wlritchi> Alternatively, is there a way to copy all streams of a given type from input 2, and all streams of other types from input 1, order unimportant?
[22:45] <durandal_1707> type?
[22:45] <wlritchi> audio/video/image/etc
[22:46] <durandal_1707> image=video here
[22:46] <wlritchi> I only ask because I know that -map permits filtering in a way similar to that (-map 0:a:0)
[22:48] <wlritchi> I suppose I could run one pass over each input to filter out the stream types I don't want from each, then run another pass to combine them into one file
[22:48] <wlritchi> But that feels inefficient
[22:49] <llogan> wlritchi: -codec copy -map 0:a -map 1:v
[22:56] <wlritchi> llogan: Thanks. That really should have been obvious to me, since I've already used precisely those arguments for a video file.
[22:56] <wlritchi> Somehow I didn't think enough te realize that it would work for an audio file with image (aka video) metadata streams
[23:05] <mucha090> hi all
[23:05] <mucha090> who knows how to convert flv to avi via winff
[23:05] <mucha090> ?
[23:06] <sacarasc> This place doesn't support winff.
[23:06] <mucha090> alright then
[23:06] <llogan> you can use ffmpeg directly
[23:06] <mucha090> what command i should use to convert flv to avi via ffmpeg
[23:07] <llogan> it depends. avi is a(n outdated) container format that can use various video and audio formats.
[23:07] <llogan> do you know the particular formats you want to use?
[23:07] <mucha090> avi as xvid
[23:08] <mucha090> nah... my friend has dvb-t decoder
[23:08] <mucha090> and his decoder supports mts, ms avi, xvid
[23:09] <mucha090> i`ve tried converting flv to mts (h264 as video and mpga as audio)
[23:10] <mucha090> but that didn`t work
[23:10] <llogan> "ffmpeg -i input.flv -codec:v mpeg4 -q:v 2 -codec:a libmp3lame -q:a 3 output.avi" will give you a typical "avi".
[23:12] <mucha090> and it will be widescreen ? or i must to add params
[23:12] <mucha090> ?
[23:12] <wlritchi> Hmm. So when ID3 tags in AIFF files contain, say, an album image, ffmpeg represents that as a video stream. However, putting it into most formats as a video stream has... interesting... results in many players
[23:13] <wlritchi> Is there a preferable way to copy things like album art into a modern container format like mka, ogg, etc?
[23:13] <vade> is there a known issue using concat demuxer on apple h.264, and a x264 video? I have 2 files, one I just cropped via ffmpeg that I am trying to concat to a standard Apple output h.264, and the durations go from 5s + 6s to 4m30s
[23:14] <llogan> mucha090: it won't change aspect or frame size.
[23:14] <durandal_1707> wlritchi: yes as attachment
[23:14] <llogan> mucha090: ...unless you tell it to.
[23:14] <vade> concat'ing 2 x264 encoded h.264's, or 2 Apple h.264s works fine and outputs a correct looking rule thats 11s
[23:15] <vade> sure llogan
[23:15] <vade> one sec
[23:18] <mucha090> llogan: sh..... that didn`t work
[23:18] <mucha090> llogan: Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
[23:19] <mucha090> ok sorry
[23:20] <mucha090> http://pastebin.com/SzeMkTpD
[23:21] <vade> llogan: here is my step 1, where I crop a 480x640 (encoded by Apple h.264) to 480x480 x264 encoded h.264
[23:21] <vade> https://gist.github.com/vade/5631026
[23:21] <llogan> mucha090: that is not from FFmpeg, so thereofre we can't support that here.
[23:23] <mucha090> alright then i will install it
[23:24] <llogan> what ubuntu version are you using?
[23:24] <vade> and step 2, I concat, using demuxer : https://gist.github.com/vade/5631040
[23:27] <mucha090> now i have that http://pastebin.com/CUTD4W9n
[23:27] <mucha090> i have mint 14
[23:27] <ubitux> mucha090 ^
[23:28] <llogan> mucha090: yes, it's confusing, but that is also not from ffmpeg...
[23:28] <llogan> as the link explains
[23:28] <mucha090> it is from ffmpeg
[23:28] <mucha090> http://pastebin.com/CUTD4W9n
[23:29] <mucha090> ffmpeg version 0.8.6-6:0.8.6-0ubuntu0.12.10.1, Copyright (c) 2000-2013 the Libav developers
[23:29] <ubitux> no it's not
[23:29] <llogan> please read the link
[23:29] <mucha090> only that version in repo i have
[23:29] <llogan> try a static build if you want help here: http://askubuntu.com/a/270107/59378
[23:29] <llogan> or you will ahve to get help from libav
[23:29] <ubitux> mucha090: it's an intentionnally broken and outdated ffmpeg distributed by a fork, using the ffmpeg for confusion
[23:30] <ubitux> the ffmpeg *name* for confusion
[23:30] <ubitux> please read the link for more information
[23:31] <mucha090> it will be good if i use ppa?
[23:31] <ubitux> i think ubuntu ppa are quite outdated
[23:31] <ubitux> you can: 1) complain to your distro to get ffmpeg 2) use the fork
[23:31] <ubitux> 3) build ffmpeg yourself
[23:31] <ubitux> 4) use static build of ffmpeg
[23:32] <mucha090> nah it is confusing
[23:32] <mucha090> :S
[23:32] <ubitux> just try to read the stackoverflow link
[23:33] <mucha090> i`ve actualy read the stackoverflov
[23:34] <mucha090> but i didn`t read from what i have that ffmpeg package
[23:34] <ubitux> your ffmpeg package contains the fork
[23:35] <ubitux> (because the packager of ffmpeg in debian & ubuntu is on the fork side)
[23:35] <wlritchi> mucha090: I'm also on mint 14, just got ffmpeg built myself quite pain-free, actuallf
[23:36] <mucha090> llogan: f*ck i will kill everyone from that f*cking libav team
[23:37] <wlritchi> mucha090: I think it's a safe bet that most people here aren't too fond of them either, but it is what it is
[23:37] <mucha090> now with real ffmpeg i can convert flv to avi
[23:37] <llogan> that's not necessary. it's just confusing and unfortunate. we are just volunteers here and can only support stuff we make.
[23:38] <mucha090> i am really grateful for your help
[23:39] <vade> llogan: apologies , I'm curious if you have any ideas regarding my concatenating a 5 and 6s file, resulting in 4:30s file :X
[23:39] <mucha090> thank you verry much
[23:39] <llogan> vade: sorry, i forgot. can you provide the input samples?
[23:39] <vade> you want the files ?
[23:39] <llogan> sure
[23:39] <vade> sure, 2 seconds, ill put on drop box :)
[23:40] <vade> llogan: https://dl.dropboxusercontent.com/u/42612525/Sequence3.zip
[23:40] <vade> that is a zip of a folder that contains the 2 input files, and the 2 'result' files
[23:40] <vade> in short, 1.mp4 and 2.mp4 differ in size, step 1 is to convert 2 to 480x480 to match 1.
[23:40] <vade> that results in 2_crop.mp4
[23:41] <vade> step 2, is to concat, via stream demuxed, with copy coded, the 2 now compatible files together
[23:41] <vade> that works, however, the resulting file (result.mp4) has a 4m:30 sec duration.
[23:41] <vade> ugh, stupid spell check, sorry
[23:41] <llogan> your office is nicer than mine.
[23:41] <vade> ha
[23:42] <vade> wheres your office? :) ill send a beer (or whatever) if we get this working nicely, with mostly lossless concatenation, id be pumped.
[23:42] <mucha090> llogan where you live?
[23:43] <mucha090> because i could send to you beer from poland:P
[23:43] <vade> llogan: i posted above the 2 CLI commands I am running on, incase you missed it
[23:43] <vade> step 1 (crop) https://gist.github.com/vade/5631026
[23:44] <vade> step 2, concat: https://gist.github.com/vade/5631040
[23:44] <vade> I feel like, somehow, duration is not being properly seen on one of the input sources
[23:44] <vade> "[concat @ 0x102019600] Estimating duration from bitrate, this may be inaccurate"
[23:45] <llogan> mucha090: alaska. that would be too expensive.
[23:45] <saste> alaska. that would be too cold
[23:46] <mucha090> if you say so
[23:46] <wlritchi> As a Canadian, I disagree.
[23:46] <mucha090> :P
[23:46] <wlritchi> Just too far west.
[23:46] <mucha090> saste: too cold or too cool ?:P
[23:46] <Digit_> do you get the correct duration when you use ffmpeg with only the video as input
[23:47] <saste> mucha090, too coold
[23:47] <vade> Digit_: ? in what scenario? the crop'ed file is the correct duration
[23:48] <Digit_> <vade> I feel like, somehow, duration is not being properly seen on one of the input sources
[23:48] <vade> (its actually subtly different, Quicktime (I know, I know) reports a slightly different FPS, and duration), but its minority different
[23:48] <llogan> saste: italy is nice, but caldo. the italians didn't like the windows to be open on the train...
[23:48] <mucha090> saste: but imagine, you are in alaska, and you dont have to place beer into the cooler
[23:48] <mucha090> :D
[23:49] <saste> llogan, because there is air conditioning
[23:49] <llogan> vade: i don't know what the issue is, but since you are re-encoding one input at least you can try concat filter
[23:49] <llogan> saste: it was broken.
[23:49] <vade> so step 1, apple encoded 480x640 h.264 to 480x480 ffmpeg / x264 encoded h.264 is almost identical in duration, off by a millisecond issue
[23:49] <vade> but, the concat, its off by, uh, minutes :D
[23:49] <vade> llogan: does concat filter re-encode both inputs ?
[23:49] <saste> i heard about creepies stories about people in canada freezing because the car stopped in the midst of nothing
[23:50] <Digit_> lol
[23:50] <wlritchi> I sincerely hope that sometime in the future we standardize on 30/60/whatever fps instead of 29.99997.
[23:50] <vade> wlritchi: its on its way. Slowly.
[23:51] <vade> at least interlacing is a thing of the past.
[23:51] <wlritchi> saste, I've been stuck in a car on the side of the highway overnight because of a bad snowstorm.
[23:51] <saste> wlritchi, that's coold
[23:52] <wlritchi> saste, out of curiosity, what temperature, to you, is tshirt weather?
[23:52] <Digit_> 18 c :P
[23:53] <saste> wlritchi, starting from 30 c
[23:53] <wlritchi> saste: Yeah, you'd never survive in Canada
[23:54] <wlritchi> I start wearing tshirts at around 15 c
[23:54] <sacarasc> T-shirt weather for me starts around 10c.
[23:54] <sacarasc> *C
[23:54] <sacarasc> Depending on the wind.
[23:54] <wlritchi> 10c I'll usually have an unzipped hoodie or something over it
[23:54] <llogan> -45 C wasn't uncommon in winter where i used to live
[23:54] <wlritchi> in case of wind or temperature drops
[23:54] <llogan> your boogers would freeze
[23:58] <wlritchi> vade, it's spitting out the output at fps=0.0
[23:58] <wlritchi> try setting the fps manually
[00:00] --- Thu May 23 2013
More information about the Ffmpeg-devel-irc
mailing list