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

burek burek021 at gmail.com
Sun Nov 30 02:05:01 CET 2014


[00:17] <mopp> hm, I guess this has something to do with x264. I tried to input the http stream to a native x264.exe and it didn't work either.
[04:37] <eristisk> How does gstreamer-ffmpeg work?  It implements transcoding functionality via the ffmpeg libraries (libavcodec and libavformat, etc.) separate from the ffmpeg binary?
[04:38] <eristisk> I have a Python software that is transcoding videos happily without even the ffmpeg binary installed on my system....
[04:48] <hipsterdufus> hi, I'm trying to use ffmpeg. I have a .avi video and want to convert it to multiple resolutions and encode with H.264, is that possible?
[04:53] <c_14> hipsterdufus: yes
[04:53] <c_14> https://trac.ffmpeg.org/wiki/Encode/H.264
[04:53] <c_14> https://trac.ffmpeg.org/wiki/FilteringGuide
[04:53] <c_14> https://trac.ffmpeg.org/wiki/Creating%20multiple%20outputs
[05:10] <hipsterdufus> ok, lets start smaller. How do I convert a file from .avi to mp4 with h.264 encoding?
[05:16] <c_14> ffmpeg -i .avi -c:v libx264 out.mp4
[05:16] <c_14> That's all described very well in the first link I posted.
[07:40] <KoolAidPitcher> Hello. I've been trying to debug a SIGSEGV from ffmpeg for a few days now...
[07:40] <KoolAidPitcher> I've searched online to no avail, and while I can get it to crash with gdb attached to retrieve a backtrace, it does not crash with valgrind.
[07:41] <KoolAidPitcher> The crash occurs when I call avcodec_flush_buffers, but only about 50% of the time...
[07:41] <KoolAidPitcher> I'm typically someone who does not ask for help, but I am completely at a loss for what is causing it. I was hoping I could find some advice
[07:42] <KoolAidPitcher> oh, right
[07:42] <KoolAidPitcher> my version of ffmpeg is 2.4.3; however, it was also happening in 2.2.10, I tried both.
[07:43] <KoolAidPitcher> The exact crash happens inside of malloc.c. The final few lines of the crash are:
[07:43] <KoolAidPitcher> #0  malloc_consolidate (av=av at entry=0x7ffff1476760 <main_arena>) at malloc.c:4099
[07:43] <KoolAidPitcher> #1  0x00007ffff113bc66 in _int_free (av=0x7ffff1476760 <main_arena>, p=0x1f43230, have_lock=0) at malloc.c:3999
[07:43] <KoolAidPitcher> #2  0x00007ffff6c7cc5c in av_freep (arg=arg at entry=0x7fffb9459858) at /home/me/Workspace/avidemux2/buildCore_debug/ffmpeg/source/libavutil/mem.c:239
[07:43] <KoolAidPitcher> #3  0x00007ffff6f9fa93 in ff_h264_free_tables (h=h at entry=0x7fffb9458040, free_rbsp=free_rbsp at entry=1) at /home/me/Workspace/avidemux2/buildCore_debug/ffmpeg/source/libavcodec/h264.c:378
[07:43] <KoolAidPitcher> #4  0x00007ffff6fa2ee1 in flush_dpb (avctx=<optimized out>) at /home/me/Workspace/avidemux2/buildCore_debug/ffmpeg/source/libavcodec/h264.c:1119
[07:43] <KoolAidPitcher> #5  0x00007ffff71c017f in avcodec_flush_buffers (avctx=0x199a400) at /home/me/Workspace/avidemux2/buildCore_debug/ffmpeg/source/libavcodec/utils.c:3075
[07:43] <KoolAidPitcher> #6  0x00007ffff7bd47d9 in decoderFF::flush (this=0x1a33c50) at /home/me/Workspace/avidemux2/avidemux_core/ADM_coreVideoCodec/src/ADM_ffmp43.cpp:349
[07:47] <KoolAidPitcher> What is peculiar to me, is the segmentation fault is occuring when trying to free a pointer &h->non_zero_count
[07:51] <relaxed> KoolAidPitcher: try again with git master and if it still happens open a bug report.
[07:52] <fahadash> I have downloaded a PBS video which I would like to burn into DVD, but my DVD burner says Not-Supported-Format on most videos... and AVI files it says that the audio is not supported. Is there any way ffmpeg can convert my videos into formats that could easily be burned into DVDs ?
[07:52] <KoolAidPitcher> hmm... okay
[07:52] <KoolAidPitcher> so you have never seen this before?
[07:52] <relaxed> fahadash: does your dvd player support mpeg4 video?
[07:53] <fahadash> no
[07:53] <fahadash> My DVD player supports old .VOB files
[07:53] <fahadash> I guess thats mpeg2 , i dont know
[07:54] <relaxed> correct, there's "-target ntsc-dvd" (and pal-dvd)
[07:55] <fahadash> my dvd player supports ntsc
[07:57] <KoolAidPitcher> Hi relaxed
[07:57] <KoolAidPitcher> before I submit a bug report, I was curious if I could get any advice on debugging ffmpeg
[07:58] <KoolAidPitcher> our version of ffmpeg is forked-- we apply patches to it prior to using it.
[07:58] <relaxed> KoolAidPitcher: https://www.ffmpeg.org/bugreports.html
[08:02] <KoolAidPitcher> wow
[08:03] <KoolAidPitcher> => 0x00007ffff113b0e3 <malloc_consolidate+307>:	mov    0x10(%rbx),%rax
[08:03] Last message repeated 1 time(s).
[08:03] <KoolAidPitcher> that's quite a moverax            0x34706d2e74736574	3778640133653489012
[08:03] <KoolAidPitcher> rbx            0xcb8f92d18d6e233c	-3778640133621931204
[08:03] <KoolAidPitcher> rax            0x34706d2e74736574 3778640133653489012
[08:04] <KoolAidPitcher> I'm going to look into this a little further. This might be our patches. Thanks!
[11:55] <sant527> I am using ffmpeg -i CAM00440.mp4; it shows "Stream #0:0(eng): Video: mpeg4 (Main Profile)".   Is this mpeg4 referring to mpeg4 Part 2
[11:57] <relaxed> sant527: yes
[11:59] <sant527> relaxed: Ok.
[12:00] <sant527> relaxed: What are the various profiles of mpeg4
[13:32] <mopp> Hi! I'm capturing and on-the-fly transcoding a dvb-s2 stream via sat-ip. Everything works fine, this is the ffprobe output https://paste.ee/p/DKNYu   As you can see, the mpegts frame rate is a 50fps progressive h264 stream. 50 FPS is due to PAL standards, so the TV station just doubles every frame from 25 to 50fps. That means every other frame is redundant. Can I drop every other frame?
[13:36] <mopp> -x264opts video-filter=select_every:2,0,1 throws this error (complete output): https://paste.ee/p/dl44r
[13:43] <sacarasc> Is that an actual x264 option? Or is it for a different part of ffmpeg?
[13:45] <JEEB> probably an x264cli option he is trying to use via x264opts :P
[13:45] <JEEB> mopp, go look at the video filter documentation on ffmpeg.org
[13:45] <JEEB> there are various filters with documentation there
[13:45] <JEEB> you'll probably find one that matches your use case :P
[14:12] <mopp> "select_every" seems to be an actual x264 option. I'm using x264opts because select_every is not mapped to x264 directly. Well, I'll keep looking. Is it possible at all to drop frames from a h264 stream in order to reencode? I'm thinking of I-frames etc.
[14:13] <JEEB> select_every is a x264CLI option of the video filter feature it has
[14:13] <JEEB> it is not a LIBx264 feature
[14:14] <JEEB> as I said, look at this page http://ffmpeg.org/ffmpeg-all.html
[14:14] <JEEB> and see the documentation for the video filters
[14:19] <Borys> hello
[14:20] <Borys> anyone could tell me syntax for set icecast server as output ?
[14:24] <mopp> JEEB: Huh. Using x264opts was overkill. A simple -vf fps=fps=25 was enough. thx!
[14:28] <fahadash> can I convert mp4 to NTSC DVD ?
[14:34] <sacarasc> ffmpeg -i blah.mp4 -target ntsc-dvd output.mpeg then author it and burn.
[14:34] <Barvinok> hi. I use ffmpeg to play video on -f xv :0. how do I force playback to be at the same framerate as the source video? currently ffmpeg forces fps to be that of display refresh rate.
[14:35] <Barvinok> because of this, the playback is sped up more than 2 times
[14:43] <smo__> hello can i use -re with -ss?
[14:48] <fahadash> thanks sacarasc
[15:17] <fahadash> Which CPU architecture build is recommended 32bit or 64bit ?
[15:20] <Barvinok> better match OS arch
[15:33] <pagios>  hi all what is the difference between smil and m3u8
[15:36] <fahadash> Hello
[15:37] <fahadash> I ran the command sacarasc told me to, it output-ed the audio-only file
[15:38] <fahadash> I can't open that with windows media player
[15:39] <fahadash> Nevermind, Windows-Media-Player sucks
[16:05] <Soft> Is there any documentation for libavformat aside from the doxygen docs?
[16:11] <Borys_> how to set output of encoded mp3 from line-in to icecast?
[16:12] <Moppel> In regards to transcoding a h264 mpegts with libx264 and -vf fps and cropping: would you advise to convert to rawvideo first or use the h264 stream directly?
[16:39] <Alina-malina> can i use ffmpeg as virtualwebcam, so windows recognize its output as some webcamera and various programs capture that stream as webcamera(like skype, yahoo messenger etc)
[16:47] <Alina-malina> facebook video
[17:59] <debianuser> Alina-malina: Check something like manycam or VLC2VCam, it should support streaming sources, so you'll be able to stream ffmpeg to it
[18:00] <Alina-malina> eh i need some pythonish stuff, that manycam doesnt designed as i expect
[18:41] <droid909> thats what i try to do http://pastebin.com/8aT9uKcU
[18:41] <droid909> why do i have this error
[18:42] <droid909> i'me trying to stream so that my iphone could watch it via safari browser
[18:42] <droid909> stream my webcam
[19:00] <luc4> Hello! Any idea why I cant transcode from stdin? http://paste.kde.org/pcqefkmzm
[19:08] <klaxa> broken file maybe, or it's because mp4 is bad at streaming
[19:08] <klaxa> moov atom at the end or something
[19:11] <luc4> klaxa: it works perfectly when not taking it from stdin.
[19:12] <klaxa> probably the moov atom thing then
[19:12] <luc4> You mean that it cant seek so being that at the end it wont work?
[19:13] <klaxa> yes, you can move it to the front though
[19:13] <klaxa> see: http://stackoverflow.com/questions/8061798/post-processing-in-ffmpeg-to-move-moov-atom-in-mp4-files-qt-faststart
[19:16] <luc4> This wont probably solve my original problem. I wanted to have a way to show a progress bar when transcoding with ffmpeg. This is not a good option. The only way is to probably modify ffmpeg itself.
[19:21] <c_14> luc4: just take frame=$num; $num/total_frames
[19:25] <luc4> c_14: sorry?
[19:26] <droid909> what should i do with:This feed is already being received.
[19:26] <droid909> ?
[19:26] <c_14> When ffmpeg is encoding it outputs a little informational message with frame= fps= etc. Just take the current output of frame= and divide by the total number of frames
[19:26] <droid909> c_14: me?
[19:27] <c_14> nah, luc4
[19:27] <c_14> droid909: kill ffserver and restart it
[19:28] <luc4> c_14: yes, I see that. But is there the toal amount somewhere? Also, that means modifying the ffmpeg sources. Is there a particular reason why it was never done?
[19:28] <droid909> c_14: tried, the same
[19:29] <droid909> c_14: can i post my config file, will you take a look?
[19:30] <droid909> c_14: config http://pastebin.com/jiSgrLZM
[19:31] <droid909> c_14: and i run it like ffmpeg -r 25 -f video4linux2  -i /dev/video0 http://localhost:8090/feed1.ffm
[19:32] <c_14> luc4: because ffmpeg doesn't know how many frames there will be until it's done
[19:33] <luc4> c_14: then I cant do the division...
[19:33] <c_14> luc4: you can find out manually with ffprobe -count_frames -show_streams iirc
[19:33] <c_14> though if it's cbr you can just do fps * total_time
[19:34] <c_14> droid909: I can't see anything wrong with that. What FFmpeg version are you running?
[19:34] <luc4> c_14: ah ok, so is there a particular reason why ffmpeg does not do that? I may add another param to add a progress bar&
[19:34] <droid909> c_14: ffmpeg version 2.4.3 Copyright (c) 2000-2014 the FFmpeg developers
[19:36] <c_14> luc4: because ffmpeg doesn't know if the file is constant framerate or variable framerate, and it doesn't always have the total length of the video
[19:36] <c_14> droid909: what's the complete console output of both ffmpeg and ffserver
[19:37] <luc4> c_14: mmh& concept is& if ffmpeg cannot do it automatically, I cant do that either&
[19:38] <c_14> luc4: if you have the whole file, you can use ffprobe to count each individual frame, grab the output from that and use that for the progress
[19:38] <droid909> c_14: ffmpeg http://pastebin.com/ciiRwHGQ and ffserver http://pastebin.com/rTAyNjCq
[19:39] <luc4> c_14: which means I can patch ffmpeg to count the frames if this is a file and create the progress bar. Correct?
[19:39] <c_14> luc4: yes
[19:39] <luc4> c_14: thanks!
[19:40] <droid909> c_14: maybe i should try another format?
[19:41] <droid909> c_14: i need any that will work in iphone's browser
[19:42] <c_14> droid909: what's the problem? It looks like it works.
[19:44] <droid909> c_14: when i access it in my google chrome it writes: This feed is already being received.
[19:44] <droid909> c_14: and starts downloading the feed
[19:47] <c_14> You're accessing http://ip/test.swf ?
[19:49] <droid909> c_14: ohh...
[19:49] <droid909> c_14: i tried feed1.ffm
[19:49] <droid909> c_14: it works now ..
[19:50] <droid909> still i need to choose something that work in safari, and swf isn't for safari, i was trying just to make it work
[19:50] <droid909> c_14: what format should i chose?
[19:55] <droid909> mjpeg?
[19:55] <c_14> that might ork
[19:57] <c_14> *work
[20:07] <droid909> c_14: that is my input i guess : Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 320x240, 36864 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
[20:56] <hexafluoride> hey
[20:56] <hexafluoride> this command: ffmpeg -i in.mp3 -f s16le -ar 48000 -ac 1 out.wav
[20:57] <hexafluoride> should produce a valid wave file with a RIFF header, right?
[20:57] <hexafluoride> or am I missing something?
[21:14] <MadTBone_> In general, it seems like container formats have audio and video packets interleaved.  Are there any common formats where they aren't, but rather all video at the beginning followed by audio, or something similar?
[21:34] <Mavrik> MadTBone_, I haven't heard about any: that greatly increses costs of video player hardware :)
[21:34] <Mavrik> MadTBone_, perhaps RTP which transmits audio and video on separate bands
[21:38] <MadTBone_> Mavrik, that's what I figured.  It would introduce lots of seeking/random i/o into what should be a mostly linear data read /write
[21:41] <Mavrik> mhm, also most formats are defined for hardware decoders where memory was premium
[21:41] <Mavrik> hence most formats have hard limits on how far audio, video and other references can be between them
[22:28] <mopp> I'd like to do -vf cropdetect and -vf crop in one step, in other words I'd like to parse the cropdetect output into -vf crop, in one line preferable. Is that possible from CLI without a bash script? I've only found this so far: http://pastebin.com/n8Jk3DjS  but I'm on a windows box and I have very little scripting experience.
[22:29] <mopp> *preferably
[22:50] <wyatt8740> Hi, having a problem here. How do I separate the chroma and luma of a video in ffmpeg? I tried '-vf pp=noluma' but it spat out an error.
[22:50] <wyatt8740> 1 errors in postprocess string "noluma" / [AVFilterGraph @ 0x2ed7e00] Error initializing filter 'pp' with args 'noluma' / Error opening filters!
[22:50] <wyatt8740> ffmpeg 2.3.3
[23:21] <wyatt8740> okay I got around it, but it looks like the postproc (pp) filter is still not working properly.
[23:21] <wyatt8740> What worked was '-vf lutyuv=y=128'
[23:44] <wyatt8740> how does the mergeplanes filter work?
[23:45] <wyatt8740> I'm trying to merge a video with only chrominance to a video with only luminance
[23:55] <wyatt8740> now I'm getting more problems
[23:55] <wyatt8740> ffmpeg -i 03luminance.mkv -i 03chrominance.mkv -filter_complex [0:0][1:0]mergeplanes=0x00010210:yuv422p out.mkv
[23:55] <wyatt8740> [Parsed_mergeplanes_0 @ 0x3973de0] output plane 0 width 640 does not match input 0 plane 1 width 320
[23:55] <wyatt8740> but all the inputs are 640 pixels wide.
[23:57] <wyatt8740> nvm might have gotten it
[00:00] --- Sun Nov 30 2014


More information about the Ffmpeg-devel-irc mailing list