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

burek burek021 at gmail.com
Fri Jul 20 02:05:02 CEST 2012


[00:48] <burek> tmatth,
[00:49] <burek> most probably your distro uses an old version of ffmpeg
[00:49] <burek> try the latest git and see if the issue is still there
[01:19] <SubJunk> burek: (replying to your message from hours ago) I have a decent CPU (8 core @ 4GHz) and about 2GB spare RAM so it isn't a resource issue
[01:34] <iive> what is the problem?
[01:48] <arcanescu> is there a cure for missing rtp packet loss whislt playing rtsp streams? ..... this can be confirmed with ffplay -i "rtsp url"  ...
[10:23] <funyun> hi. i'm trying to cut a part of a .mpg file but i get this error "[mpeg @ 0x16cf100] packet too large, ignoring buffer limits to mux it". can anyone help me?
[10:24] <Mavrik> that doesn't look like an error
[10:31] <funyun> fflogger: sure
[10:35] <funyun> Mavrik: http://pastebin.com/rrYY2BB5
[10:36] <Mavrik> I see, funyun what are you trying to achieve?
[10:36] <Mavrik> cut the video?
[10:36] <funyun> Mavrik: yes. i'm trying to cut out a specific part
[10:37] <Mavrik> funyun: it seems your input it AVCHD from a camera
[10:37] <funyun> Mavrik: yes
[10:37] <Mavrik> usually that is muxed into MTS files which are better suited for that purpose
[10:38] <Mavrik> (it's possible your mpg format is different on the camera)
[10:38] <Mavrik> can you try doing ffmpeg -i 0000000015b6e4b1.mpg -vcodec copy -acodec copy -ss 856 -t 636 Moab.mpg
[10:38] <Mavrik> er
[10:38] <Mavrik> ffmpeg -i 0000000015b6e4b1.mpg -vcodec copy -acodec copy -ss 856 -t 636 Moab.mts
[10:38] <Mavrik> this :)
[10:39] <funyun> Mavrik: that worked. thank you :)
[10:39] <Mavrik> .MTS is also usually better supported in video editing software :)
[12:56] <roxlu> hi!
[12:57] <roxlu> Is it possible to i.e. write an application which outputs RGB frames and feed that into ffmpeg and stream that over rtmp?
[15:15] <mathsonic>  I try to encode with ffmpeg but i have this error
[15:15] <mathsonic> Hi everyone
[15:15] <mathsonic> File for preset 'high' not found
[15:15] <mathsonic> http://pastebin.com/6KJhAP11
[15:16] <mathsonic> i verify the directory /usr/share/ffmpeg/ but this preset is not present, i have libx264-main.ffpreset , ibx264-max.ffpreset ... but no ibx264-high.ffpreset
[15:16] <mathsonic> is the high preset have been replaced with max ?
[15:18] <Mavrik> mathsonic: "-vpre" is old semanthics which is deprecated together with ffpreset files
[15:18] <Mavrik> use "-preset slow -profile:v high"
[15:18] <Mavrik> or "-preset slow -vprofile high"
[15:19] <mathsonic> thanks, but i can't upgrade now the ffmpeg on the server
[15:19] <mathsonic> i look for an intermediate solution to have the high preset
[15:21] <Mavrik> um what
[15:21] <Mavrik> your ffmpeg is TOO NEW to use your obsolete command line
[15:22] <mathsonic> I see
[15:22] <mathsonic> [NULL @ 0x14d0010] [Eval @ 0x7fff87560b90] Undefined constant or missing '(' in 'high'
[15:22] <mathsonic> [NULL @ 0x14d0010] Unable to parse option value "high"
[15:22] <Mavrik> vprofile.
[15:23] <Mavrik> order is important
[15:23] <mathsonic> -preset slow_forstpass -vprofile high ?
[15:23] <mathsonic> i used this
[15:25] <Mavrik> why?
[15:25] <Mavrik> "-preset slow -profile:v high"
[15:25] <mathsonic> i need to do two pass encoding
[15:25] <Mavrik> read the documentation _please_
[15:25] <Mavrik> so?
[15:25] <mathsonic> slow_firstpass is deprecated  ?
[15:26] <Mavrik> yes.
[15:26] <Mavrik> x264 automatically turns on firstpass profiles on first pass.
[15:26] <mathsonic> thank you Marvik i will try this
[15:29] <Naviss> hi i'am trying to compile ffmpeg and install it but i have this error : "/usr/local/lib/libvpx.a(vpx_codec.c.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC"
[15:31] <Naviss> i follow the tuto on https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
[15:32] <fling> Where are x264 presets?
[15:32] <Naviss> https://ffmpeg.org/trac/ffmpeg/wiki/UbuntuCompilationGuide
[15:32] <Mavrik> fling: compiled into x264
[15:32] <fling> this I used to capture with 0.7 > ffmpeg -f alsa -ac 1 -i hw:2,0 -f video4linux2 -i /dev/video0 -acodec libmp3lame -vcodec libx264 -preset medium -crf 30 -threads 0 date +%Y.%m.%d-%H:%M:%S`.mkv
[15:33] <Mavrik> Naviss: yeah, you're trying to statically link libvpx when it was compiled without PIC support
[15:33] <fling> ^ does not work now :p
[15:33] <Mavrik> fling: it should.
[15:33] <Mavrik> Naviss: what are you trying to achieve?
[15:34] <Naviss> i'am trying to install ffmpeg to run with opencv
[15:34] <Naviss> on the opencv install guide it's sayed to used --enable-shared
[15:34] <Naviss> for the ./configure
[15:34] <Mavrik> ah, ok
[15:34] <Mavrik> Naviss: yeah, I suggest you do "dpkg -r libvpx" to remove it
[15:34] <Mavrik> Naviss: and do the "libvpx" part again
[15:35] <Naviss> ok
[15:35] <Mavrik> while passing "./configure --disable-static --enable-shared"
[15:35] <Mavrik> which will build a shared library instead of static
[15:35] <Mavrik> and that should link well
[15:35] <Naviss> i try it
[15:35] <fling> Mavrik: thanks
[15:36] <fling> Mavrik: v4l2 is now just v4l, so I'm reemerging
[15:36] <Mavrik> wierd
[15:37] <Mavrik> fling: I suggest grabbing 0.11 ;)
[15:37] <fling> Mavrik: had wrong useflag :p as its name changed
[15:37] <fling> Mavrik: is not 0.10.3 bad?
[15:37] <Mavrik> bad?
[15:38] <fling> Mavrik: I'm trying to use 0.10.3, why do I need 0.11?
[15:38] <Mavrik> why wouldn't you get the newest most bug-free version?
[15:39] <fling> Mavrik: it's not in portage, I will write an ebuild :p
[15:39] <Mavrik> ah, I usually stay away from distro-packaged stuff
[15:39] <fling> Mavrik: whoops, 0.11.1 is here but it is hardmasked
[15:39] <Mavrik> especially after the Ubuntu/Debian f-up
[15:39] <fling> apt sucks
[15:42] <fling> Mavrik: Mavrik_: need to wait for the fix > https://bugs.gentoo.org/show_bug.cgi?id=417869
[15:42] <fling> will not update to 0.11 now
[15:46] <Naviss> thanks mavrik it's work perfectly
[16:11] <d4forze> hii everyone
[16:13] <d4forze> If I want to record a h264 rtsp stream to a file with the same h264 codec as videostream, how do I do this
[16:13] <d4forze> If I use ./ffmpeg -i rtsp://192.168.0.22/stream1 -sameq xx.mp4
[16:13] <Mavrik_> er what
[16:13] <Mavrik_> d4forze, you're just trying to save the stream to file?
[16:13] <d4forze> it is converted to mpeg4
[16:13] <d4forze> yes
[16:13] <Mavrik_> 1.) ah, don't ever use sameq :P
[16:13] <d4forze> Oh ok : )
[16:13] <Mavrik_> 2.) you just need to remux the file and copy streams so:
[16:14] <Mavrik_> ffmpeg -i rtsp://... -codec:copy xx.mp4
[16:24] <d4forze> thanks!!
[17:21] <arcanescu> in earlier versions of ffmpeg i was using attribute_deprecated int64_t timestamp; in avformat.h .... it said in there used creation_time metatag instead since it was deperecated .... what has it been replaced by? since creation_time does not exist
[18:39] <arcanescu> I have this in the avcodec.h @deprecated use 'crf' libx264 private option .... what private option is being referred to here :/ ?
[18:47] <mulicheng> Trying to send h263 video to a legacy machine that supports rfc2190 packetization.  I can get the packetization routine to run but it prints "Unable to split H263 packet, use -mb_info 1380 or -ps 1."  I tried avformatcontext->rtp_payload_size=1 and also tried settings options "mb_info", "1380" when I open the h263 encoder but neither seem to make any difference.  Any thoughts?  Perhaps I'm setting the option in the wrong place.
[18:54] <RobertNagy> what is CODEC_FLAG_EMU_EDGE?
[19:35] <foldingcookie> hi, I'm trying to generate 'black frames' to fill in the beginning of a clip where I want audio to start before video
[19:37] <foldingcookie> I'm trying to figure something out with -itsoffset or maybe -i concat with -vf color but any help would be appreciated
[19:38] <foldingcookie> my current command-line is "ffmpeg -itsoffset 1.5 -ss 18.5 -i Wings.mp4 -itsoffset 1.5 -ss 16 -i Broadway.mp4 -map 0:0 -map 1:1 -acodec copy -vf pad=800:480:80:0:black -vcodec libx264 thx-480-3.avi", but I'd like to replace the beginning of the output video w/ black
[19:40] <saste> foldingcookie: no way currently, you need to create the black trailer, and join the two files (check join FAQ entry or the wiki)
[19:41] <foldingcookie> hrm, ok
[19:41] <foldingcookie> thanks!
[20:07] <u42p> hey, what would be the best way to add more keyframes to my encodes? i simply use "-vcodec libx264 -preset slow" but might want to glue some snippets together in avidemux or so later on. i just tried that and it complained about a frame where i cut not being a keyframe.
[20:08] <Tjoppen> you could encode intra-only at high bitrate, cut, then use whatever settings on the final piece
[20:08] <u42p> ah, "-g <integer>"
[20:08] <Tjoppen> -g 0
[20:09] <u42p> i do upload the current encodes to youtube already, so i would need to keep them remotely sane
[20:09] <u42p> would -g 25 be overkill?
[20:16] <Tjoppen> the real question is why avidemux can't just transcode the cuts
[20:17] <Tjoppen> .. you deleted the original files?
[20:17] <u42p> sorry, i was super unclear. i would like to clue parts together without reencoding. i tried one of my files, cut away some of the start and the end and tried to save, "copying" audio and video. that is where the error came
[20:18] <u42p> yeah, nothing important, just videogame playing
[20:18] <u42p> i guess i could just use ffmpeg for the cutting and glueing in the end
[20:19] <Tjoppen> yes, I think ffmpeg can cut out pieces on keyframes
[20:19] <Tjoppen> else just render with some NLE - youtube's encoding will turn it into crap anyway
[20:19] <u42p> what is NLE?
[20:19] <Tjoppen> non-linear editor
[20:20] <Tjoppen> kdenlive, openshot, final cut, sony vegas etc.
[20:59] <JonOomph> Using the ffmpeg libraries, what is the best way to find a CodecID (enum) using the codec's name, such as "pcm" or "vorbis"?  Thanks!
[21:01] <Tjoppen> iterate over all codec, check their name vs. codec_id
[21:02] <JonOomph> Thanks!  What is the best way to iterate over all codecs?
[21:02] <Tjoppen> there might be a function though, to get codec by name
[21:02] <Tjoppen> just browse avcodec.h
[21:03] <Tjoppen> avcodec_find_decoder_by_name() seems like a good bed
[21:03] <Tjoppen> *bet
[21:05] <JonOomph> Tjoppen, thanks!  That seems like a good place to start.
[22:55] <hwk> good evening
[22:55] <hwk> someone online?
[22:55] <hwk> i want to "merge" two videos
[22:56] <hwk> or at least cut (transcode) chunks from two videos put togheter
[22:56] <hwk> saw some examples with 2 -i options
[22:57] <hwk> that doesnt work
[22:58] <hwk> nice forum :))
[22:58] <u42p> hwk: http://ffmpeg.org/faq.html#How-can-I-join-video-files_003f
[22:58] <hwk> efforts and time spent
[23:00] <hwk> just like that? cat them into a big file?
[23:00] <hwk> and them process it?
[23:01] <iive> use concat
[23:02] <hwk> that will rewrite meta data also
[23:02] <hwk> ?
[23:02] <hwk> cat vid1 vid2 will ruin things from what i know
[23:03] <hwk> since vid2 audio is 96kb and vid1 is 128
[23:05] <tibo> hi guys, what is the best way to start decoding a video at a specific frame / time. I just tried av_frame_seek with 10s, and is seems that I need to wait 10s before I see the video (which is 10s ahead, as expected)
[23:06] <hwk> -ss 10 after -i
[23:07] <tibo> <hwk> I'm using c++... Is there any way to convert those command line options into function calls ?
[23:07] <hwk> donno about ffmpeg libs
[23:52] <u42p> phew, using -g 15 on a 30fps file  inflated it by 20%
[00:00] --- Fri Jul 20 2012


More information about the Ffmpeg-devel-irc mailing list