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

burek burek021 at gmail.com
Sat Mar 22 02:05:01 CET 2014


[00:19] <voip> hello guys
[00:21] <voip> I am using ffmpeg -f flv -i "$INPUT" -acodec copy -vcodec copy -vbsf h264_mp4toannexb -f mpegts "$OUTPUT"
[00:21] <voip> Now i need convert stream to 720x480 and frame rate 29.97.
[00:21] <voip> How can i do that ?
[00:24] <synth_> wouldn't you just need to add "-r 30000/1001 -s 720x480" after "mpegts" ?
[00:26] <voip> <synth_> what mean -r 30000/1001 ?
[00:27] <voip> i got it , frame rate
[00:33] <caral> Is there a good comparison website with benchmarking different cpus with ffmpeg?
[00:45] <voip> <synth_> i made cahnges: ffmpeg -f flv -i "$INPUT" -acodec copy -vcodec copy -vbsf h264_mp4toannexb -f mpegts -r 30000/1001 -s 720x480 "$OUTPUT" &
[00:45] <voip> but in output stream i dndnt see any changes , there is same format
[01:00] <llogan> voip: you can't change frame rate and stream copy at the same time
[01:00] <voip> yah, you right !
[01:01] <synth_> sorry, my bad
[01:01] <voip> can you suggest right parametrs, i just need change frame size and frame rate for flv stream
[01:05] <voip> guys, its my first day in irc , shuld i install pastebin plugin in my irc client ?
[01:06] <llogan> no. just got to pastebin.com or some other similar site
[01:06] <voip> then, i shuld put link to pastebin site ?
[01:07] <llogan> synth_: yes
[01:07] <voip> ok
[01:07] <llogan> voip: yes
[01:07] <llogan> synth_: can you provide a sample file?
[01:09] <synth_> llogan are you referring to my colorspace issue?
[01:10] <llogan> yes
[01:10] <synth_> sure, let me render one out real quick.
[01:10] <llogan> i may not have been clear: one of the exr images you're using as an input
[01:12] <synth_> yes, i know, i'm rendering out an exr file that i use as the input
[01:13] <synth_> sorry, confusing. i work in vfx, so we generate exr files with our software
[01:13] <llogan> what is the software?
[01:13] <synth_> Nuke 8.0v3
[01:14] <synth_> http://www.thefoundry.co.uk/products/nuke-product-family/
[01:15] <synth_> http://mellow.me/tmp/frames.0001.exr here's a single frame with a color wheel. i was using this for color comparisons
[01:15] <voip> ok, i have http://pastebin.com/n4h7QT9Q . Its just coping stream. Now i need to  change frame size and frame rate for output stream.
[01:16] <llogan> synth_: ffmpeg recognizes size, etc without issue for this single image
[01:17] <llogan> voip: re-read the message from fflogger
[01:17] <synth_> yeah i understand. my issue earlier was due to a non cropped exr. there was extra data in overscan
[01:18] <synth_> identify showed 2000_0080_comp_master_v0010.0001.exr EXR 1942x1104 1942x1104+0+0 16-bit DirectClass 8.7MB 0.000u 0:00.000; however, mediainfo showed 1920x1080
[01:18] <synth_> so even defining the -s size of 1920x1080, ffmpeg was throwing errors
[01:19] <llogan> mediainfo is not considered to be completely trustworthy here
[01:19] <synth_> i tried specifying 1942x1104 as well though and it threw the same error
[01:19] <voip> <llogan> my old script works perfect, i just need new script
[01:19] <synth_> technically we shouldn't be rendering out these frames with extra data in overscan anyway; we'll figure out a way to auto crop these before they are written out
[01:20] <llogan> voip: we don't support scripts here. only FFmpeg cli tools and libraries.
[01:20] <voip> i mean cli
[01:20] <llogan> synth_: is the extra data in overscan a common thing for exr? (I know little about this format)
[01:21] <llogan> voip: i want to see an actual ffmpeg command you've tried and the complete console output
[01:21] <voip> ok
[01:22] <synth_> llogan it's optional. final composite frames shouldn't have them though and we would be using final comps for ffmpeg to convert. as for 3d assets to deliver to the compositors, adding overscan to a cgi "element" allows the artist the ability to apply lens distortions to the cgi that match the film lens without worry of not having enough "element" data if for some reason it's squeezing the image
[01:22] <synth_> inward
[01:23] <synth_> so 3d element exrs can sometimes have a larger bounding box than the actual data window
[01:24] <llogan> if you think this is something that ffmpeg should support you can file a feature request on the bug tracker.
[01:24] <synth_> so data can exist in overscan. it would just be displayed using the data window however. using Nuke, we can access the overscan data
[01:25] <synth_> also, do you know if ffmpeg handles multi channel exrs? sometimes we condense everything into a single file so that it has more layers other than rgba
[01:26] <llogan> i don't know. Paul B Mahol would probably be the developer to contact if you want to sponsor this as a feature.
[01:27] <synth_> typically you would only want to generate media using rgba, however, it would be nice if we could choose a different layer in case someone wants to visualize the specular, diffuse, zdepth, etc..
[01:27] <synth_> ah okay
[01:28] <voip> I have http://pastebin.com/ZLc8PpSW. Command made stream copy. How i can change output for 720x480 and frame rate for 29.97 ?
[01:29] <llogan> voip: remove -vcodec copy. add -vcodec libx264. add -r 30000/1001 (or -r ntsc). add -r 720x480
[01:29] <llogan> that last one should be -s 720x480
[01:30] <voip> -s or -r ?
[01:30] <llogan> synth_: i think there is a layer option
[01:30] <voip> ok, thank you !
[01:31] <llogan> synth_: http://git.videolan.org/?p=ffmpeg.git;a=commit;h=3d20260157cb65582cb547befe744b9cbfaeac1d
[01:31] <llogan> undocumented
[01:32] <synth_> oh awesome
[01:38] <voip> llogan i made suggested changes, but recieve error: http://pastebin.com/vNSxJ6RY
[01:38] <llogan> synth_: as for your color issue you may want to see if chroma subsampling is occurring
[01:39] <llogan> voip: you're using an ancient build
[01:39] <llogan> use a newer ffmpeg
[01:40] <Moussekateer> Hi guys. I'm getting this issue remuxing an mkv to an mp4 and I'm not sure why http://pastie.org/private/1qyto20ed9kdgos7hhrgra
[01:41] <Moussekateer> I can copy over the audio stream fine but the video stream is the one crashing
[01:42] <voip> I know. Its not my server, and they owner used apt install for ffmpeg. I am not shure can i change ffmpeg. You think there is no way for using this version ?
[01:42] <llogan> no, it is unsupported here.
[01:43] <llogan> just download, extract, and run a static build
[01:43] <llogan> no need to install
[01:43] <llogan> see the links i gave you
[01:43] <voip> ok, thanks llogan!
[01:45] <synth_> llogan, chroma subsampling within nuke? or using ffmpeg?
[01:48] <llogan> synth_: ffmpeg
[01:50] <voip> can i use Static FFmpeg builds on 32bit linux ?
[01:50] <llogan> yes
[01:52] <voip> one more question :) is it ok if i make apt-get remove ffmpeg for remove old version?
[01:53] <synth_> how would one do that with ffmpeg?
[01:55] <llogan> voip: ask your admin.
[01:55] <synth_> llogan http://mellow.me/tmp/mjpg_h264_linear_difference.mov here's an example of what i'm seeing between h264 and mjpeg
[01:55] <voip> :)
[01:55] <llogan> synth_: view the console output
[01:55] <llogan> voip: but you won't need to remove the old ffmpeg. you can use the static build independently
[01:56] <voip> nice!
[02:00] <voip> llogan, intresting but i  cannot execute binary file
[02:01] <voip> ffmpeg
[02:02] <voip> may be problem 32bit ubuntu ?
[02:02] <llogan> cd /to/path/containing/binary && ./ffmpeg
[02:03] <llogan> or /full/path/to/ffmpeg -i input ...
[02:03] <llogan> or move it somewhere in your PATH
[02:03] <synth_> llogan http://pastebin.com/XaJFWcUw i'm not seeing anything in there about chroma subsampling
[02:04] <llogan> synth_: your input is rgb. the output is YUV planar 4:2:0. your mjpeg is probably yuvj444p.
[02:05] <llogan> that's the cause of the "degraded" colors
[02:05] <synth_> interesting
[02:05] <llogan> probably
[02:05] <synth_> http://i.imgur.com/zLaQmZZ.png a better look at it in a linear colorspace
[02:05] <synth_> so is there a way to use yuvj444p with h264?
[02:06] <llogan> those nodes remind me of shake
[02:06] <llogan> see ffmpeg -h encoder=libx264
[02:06] <synth_> shake was what a lot of us compositors learned in school or used professionally :)
[02:06] <voip> llogan i tryng from that directroy..   http://pastebin.com/Q40djyNt
[02:07] <llogan> you are using a 32-bit system but downloaded a 64-bit binary.
[02:07] <llogan> i thought you asked if those links contain 32-bit builds. gusari does.
[02:08] <voip> beaccuse i aseced , my linux 32
[02:08] <llogan> you will need a 32-bit build.
[02:08] <voip> ok
[02:09] <llogan> but your kernel migh tbe too old for the gusari ones.
[02:09] <voip> yes kernel 2.6
[02:09] <llogan> then you'll have to compile
[02:09] <llogan> or use a less ancient server
[02:09] <voip> :)
[02:10] <llogan> https://trac.ffmpeg.org/wiki/UbuntuCompilationGuide
[02:12] <voip> acctualy its CentOS release 6.5 (Final)
[02:12] <voip> and comes with 2,6 kernel
[02:12] <llogan> synth_: you're forcing yuv420p with -pix_fmt. by default, with libx264 at least, ffmpeg will attempt to minimize chroma subsampling. however the output may not be playable by non-FFmpeg based stuff. why do you want H.264? you're not using it as an intermediate file are you?
[02:13] <llogan> voip: https://trac.ffmpeg.org/wiki/CentosCompilationGuide
[02:14] <llogan> it is a "non-destructive" guide, so nothing is installed to system
[02:14] <synth_> llogan http://pastebin.com/x3TYs4qA
[02:14] <llogan> other than dependencies
[02:14] <llogan> remove -pix_fmt -pix_fmt yuvj444p
[02:14] <synth_> ah crap
[02:14] <synth_> i didnt' see that
[02:15] <synth_> the reason we're generating these is to show clients previews or to view them from our internal intranet page
[02:15] <synth_> kind of as a proxy
[02:15] <synth_> but our software will pull up the raw exrs for review in our theatre
[02:15] <llogan> then you'll need to use yuv420p, or they'll need to use a non-retarded player, or you'll need to use another encoder.
[02:15] <synth_> sigh, okay
[02:16] <llogan> but the capable player will convert to yuv420p on playback anyway, IIRC. i can't remember.
[02:16] <synth_> color is huge in this industry so if anything is slightly off they wig out. that's why i was trying to go for the most accurate color with lower file size
[02:16] <llogan> i should know this stuff but i have a shitty memory
[02:16] <synth_> mjpeg should be fine in this case then if h264 doesn't work out
[02:17] <synth_> and i guess mjpeg would be better for all platforms too
[08:30] <amigojapan> hi relaxed
[08:30] <amigojapan> I used the following command to concatenate a bunch of videos I made with my software: ffmpeg -f concat -i concat.txt -c copy output.mkv    Here is an example of the contents of the concat.txt file http://pastebin.com/1ie6wFEb , here is the output video http://www.youtube.com/watch?v=ICU32z3RmiY , as you can see, by the end of the video, the lips are out of sync. and as you can see here,...
[08:30] <amigojapan> ...(the last one) of the original videos , the lips are synced correctly http://youtu.be/xVJtAVvgQBQ
[08:32] <relaxed> amigojapan: concat with mkvmerge:   mkvmerge -o combined.mkv 1.mkv +2.mkv +3.mkv +4.mkv
[08:33] <amigojapan> ok, let me try that relaxed ,. thanks
[08:34] <relaxed> mkvmerge is the better tool when it comes to matroska
[08:35] <amigojapan> relaxed: ok, I will try it out, I hope it it multiplatform....
[08:35] <relaxed> it is
[08:35] <amigojapan> good, thanks
[08:36] <DeadSix27> amigojapan-> http://www.bunkus.org/videotools/mkvtoolnix/downloads.html | sudo apt-get install mkvtoolnix mkvtoolnix-gui
[08:36] <amigojapan> thanks DeadSix27
[08:55] <amigojapan> ok guys, that worked! thanks a lot!
[09:16] <anshul_> I was trying to encode video using h264 encoder, i am getting all I frame, I have set AVCodec -> gop = 15, Isnt it suppose to come 1 I frame per 15 frame
[09:35] <Mavrik> anshul_, are you setting frame type before passing it to encoder by any chance?
[09:48] <anshul_> if you mean frame->key_frame parameter its always 1 of passed frame in avcodec_encode_video2
[10:02] <steinchen> hiho... wont you setup a paypal account for donations (e.g. donation at ffmpeg.org) ? i really think more ppl will donate than - at least i would
[10:15] <Mavrik> anshul_, no, there's a "type" field on an AVFrame structure you're passing into encode
[10:15] <Mavrik> and libx264 will listen to it if it's set to anything that's not AVFRAME_TYPE_NONE
[10:15] <Mavrik> so if you set type to AVFRAME_TYPE_I you'll always get I-frame out even if gop size is different
[10:26] <anshul_> Mavrik, i didn't got anything like AVFRAME_TYPE_I but  if you mean AV_PICTURE_TYPE_I = 1; when I pass frame to av_encode_video2 there frame->type is always = 1
[10:27] <Mavrik> that's your problem then.
[10:27] <anshul_> I did not set that explicitly but this frame is what i get from buffer filters
[10:31] <anshul_> I checked same thing with ffmpeg -i test.ts -vcodec libx264 out.ts ; over here at avcodec_encode_video2 frame->type is always passed as 1; and in out.ts there are p frames present
[10:34] <Mavrik> anshul_, http://www.ffmpeg.org/doxygen/2.0/libx264_8c_source.html#l00152
[10:34] <Mavrik> do I have to spell it out for you?
[10:34] <Mavrik> the property name is pict_type
[10:35] <Mavrik> checking out ffmpeg source and doc will really save you alot of time when solving such issues ;)
[10:35] <anshul_> thanks
[10:35] <Mavrik> (type it seems is deprecated property from older versions)
[10:36] <anshul_> I think problem arise from sample_aspect_ratio  in my code it is set to 0,1 while ffmpeg set it to 1,1
[11:20] <anshul_> Mavrik, Thanks you saved my day.
[12:46] <steinchen> hey, how can i add a watermark/picture to the encoding? like "-vhook '/usr/lib/vhook/watermark.so -f /usr/lib/vhook/Logo.jpg'" in earlier versions
[12:47] <jnvsor> steinchen: Use an overlay filter http://www.ffmpeg.org/ffmpeg-filters.html#overlay-1
[12:48] <steinchen> ty
[12:56] <DrSlony> Hi, which version of ffmpeg is the first to support libvpx-vp9?
[12:59] <steinchen> jnvsor, can i use a jpg as watermark?
[12:59] <ubitux> yes
[13:00] <jnvsor> steinchen: You'll probably want to use a png though. Higher quality + alpha values
[13:14] <steinchen> ok.. ty ill try that
[14:02] <DrSlony> How do I change the framerate from 29.970 to 15 so that playing time remains the same?
[14:04] <DrSlony> -r15 before the output file name?
[14:09] <DrSlony> What is the recommended intermediate format when capturing a 1920x1080 screencast? i used libx264 -preset ultrafast when my final file was to be h.264 too, but now the final file will be vp8, so what is the recommended intermediate?
[14:09] <JEEB> well you want to have your intermediate to be lossless and fast to encode, so lossless H.264 still sounds like the best thing :P
[14:16] <DrSlony> JEEB ok, mplayer says that h264 file is YV12, does VP8 not prefer i420 instead?
[14:16] <JEEB> same thing called differently :P
[14:17] <DrSlony> ok
[14:26] <steinchen> soo.. i tried "-i logo.png -filter_complex 'overlay=10:main_h-overlay_h-10'" ... but there is no logo in the encoded videofile
[14:26] <steinchen> i also use -deinterlace and encode in mp4 - if that matters
[14:28] <steinchen> oh seem deinterlace was the prob
[14:28] <jnvsor> steinchen: you need to specify the inputs and outputs
[14:28] <steinchen> ye sure
[14:28] <jnvsor> steinchen: overlay takes 2 inputs (The overlay and the video) and an output stream
[14:28] <steinchen> thats what i did
[14:29] <steinchen> now without -deinterlace the logo is in the dest file
[14:29] <jnvsor> It's not in the filtergraph you pasted :/
[14:29] <steinchen> that was just a part of it
[14:30] <steinchen> ./ffmpeg -y -i $1 -i Logo.png -filter_complex 'overlay=10:main_h-overlay_h-10' -acodec aac -ar 44100 -ab 96k -r 25 vcodec libx264 -b 1800k -f mp4 -threads 8 -strict -2 -s 1920x1080 $1-noqt.mp4
[14:30] <steinchen> thats the whole command
[14:32] <jnvsor> I'd be surprised if that worked, last I checked filter_complex was very whiny about having the right filtergraph
[14:32] <jnvsor> Something like: http://pastebin.com/N0nLRZd9
[14:34] <steinchen> mmh but it worked fine.. i took it from here: http://ffmpeg.org/ffmpeg-filters.html#Examples-13
[14:36] <jnvsor> Cool, it usually complains to me if I leave something out
[14:51] <steinchen> cant i use -deinterlace with the filter_complex? there is no logo then
[14:55] <wodim> hello, i've used ffmpeg with no parameters to cut a part of a video but the output looks bad; i thought it would use the same quality settings as the input
[14:55] <wodim> but it doesn't
[14:55] <wodim> can you help?
[14:55] <wodim> i don't want to force a quality setting, i want to use the same exact settings so it looks more or less like the same
[14:57] <steinchen> '-c copy' should work
[14:57] <wodim> let's see
[14:57] <wodim> (thanks)
[14:58] <wodim> now it looks great but there is no sound. :-)
[15:03] <jnvsor> wodim: pastebin your command
[15:03] <wodim> jnvsor: i've decided to use -q instead, but thanks
[15:10] <steinchen> what happens with the logo when i use deinterlace.. cant i combine that in one command?
[15:13] <jnvsor> steinchen: give me a paste of your command?
[15:13] <steinchen> just add -deinterlace to the above one
[15:13] <steinchen> ./ffmpeg -y -i $1 -i Logo.png -filter_complex 'overlay=10:main_h-overlay_h-10' -acodec aac -ar 44100 -ab 96k -r 25 vcodec libx264 -b 1800k -f mp4 -threads 8 -strict -2 -s 1920x1080 -deinterlace $1-noqt.mp4
[15:14] <steinchen> ./ffmpeg -y -i $1 -i Logo.png -filter_complex 'overlay=10:main_h-overlay_h-10' -acodec aac -ar 44100 -ab 96k -r 25 -vcodec libx264 -b 1800k -f mp4 -threads 8 -strict -2 -s 1920x1080 -deinterlace $1-noqt.mp4
[15:14] <steinchen> ah sry
[15:14] <jnvsor> steinchen: you want output deinterlace right? the man page says `-deinterlace` is for inputs not outputs
[15:18] <jnvsor> steinchen: try this:
[15:18] <jnvsor> http://pastebin.com/dB49HRPG
[15:21] <steinchen> ok thanks, sec
[15:24] <steinchen> ok works thanks ... now with the logo on the right side?
[15:44] <steinchen> got it .. thanks so far!
[16:33] <Waraqa> Hi, How can I encode h264 file that is backward compatible with old players?
[16:34] <DrSlony> old players use divx
[16:34] <Waraqa> I mean old ffmpeg
[16:35] <Waraqa> I used recent ffmpeg to encode it but it's not working with ffmpeg 0.8
[16:36] <Waraqa> I see only solid grey when I play the video
[16:37] <DrSlony> if upgrading that badly outdated ffmpeg is impossible, try -profile:v baseline -level 3.0
[16:38] <Waraqa> DrSlony: I used to play every h264 successfully, this is the first time I get this
[16:38] <Waraqa> You can see the output errors in this ticket (which is closed) https://trac.ffmpeg.org/ticket/3485
[16:38] <JEEB> oh
[16:38] <JEEB> you encoded 4:2:2 H.264
[16:38] <DrSlony> and maybe -pix_fmt yuv420p
[16:38] <JEEB> yeah, that's newer than that release
[16:39] <Waraqa> How can I disable that?
[16:39] <JEEB> DrSlony, you don't need to limit profile or level for lavc
[16:39] <JEEB> what DrSlony said the last
[16:39] <JEEB> -pix_fmt yuv420p
[16:48] <Waraqa> Thanks
[16:48] <Waraqa> Is this option related to the resolution?
[16:48] <JEEB> not specifically, it sets the pixel format to YCbCr, 4:2:0 subsampling
[16:49] <JEEB> but yes, 4:2:0 limits you to mod2 width/height because of the subsampled chroma
[16:49] <Waraqa> If I'm encoding HD video, Do I need to change anything?
[16:49] <JEEB> just make sure your output width and height can be divided by 2 :P
[16:50] <JEEB> (you have one value per 2x2 area, whereas with 4:2:2 you only limited yourself to mod2 width, every line had its own samples)
[16:52] <Waraqa> Thanks again for your information
[16:56] <Waraqa> What makes ffmpeg chooses 4:2:2 by default?
[16:56] <ronlut> Hi. I want to use ffmpeg in an android app. I compiled ffmpeg with NDK, and now I have [libavcodec, libavformat, libavfilter, libavutil, libswscale] SO files. I have the command line arguments to do what I need, but how do I transfer it to a proper C code? I see functions are mentioned in the documentation, but where can I learn how to properly use them?
[16:57] <Bombo> i got a problem with the aspect of a target x264.mp4: i'm encoding a mpeg2 (tv-dvb) file, 'Video: mpeg2video (Main), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9]' with '-vf yadif,crop=in_w-(14+14):in_h-(4+4):14:4,scale=640:368' getting a 'Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 640x368 [SAR 15916:15975 DAR 5536:3195]' and when i play the mp4 (mplayer) it is 4:3 even when i add '-aspect 16:9' to the ffmpeg line
[16:58] <Bombo> when i encode just the first 60s from the mpg, the resulting mp4 is 16:9. but when i encode tzhe whole file i end up with 4:3
[16:59] <Bombo> ronlut: good question, i want to learn that too (got it on my todo list ;) my plan is to study the ffmpeg main tool source
[17:01] <Bombo> ronlut: it's hopefully readable, but i would like to have a really small documented example too, like for getting infos about the source first (i would try to understand ffprobe.c for that)
[17:08] <ronlut> Bombo: My problem is I really don't come from this world, and have no idea how to proceed.
[17:08] <ronlut> Bombo: I mean from the ffmpeg / video world. I am a programmer.
[17:09] <Mavrik> ronlut, do what you want in C on your desktop first
[17:09] <Mavrik> documentation is online in doxygen and you have examples in doc/examples in ffmpeg souce
[17:09] <JEEB> ronlut, see the examples under doc
[17:09] <Mavrik> dragging in Android NDK before you even understand what you're trying to do will lead to a catastrphe
[17:12] <ronlut> Ok thanks guys, would try to achieve this in simple c before proceeding to android.
[17:12] <iive> ronlut: there should be ffmpeg program too. you may also have ffplay if you have libsdl.
[17:17] <Mavrik> ronlut, also I recommend static linking for what you're trying to do, smaller binaries and easier to use on Android :)
[17:18] <Bombo> ronlut: if you're a programmer you should know how to do this ;)
[17:18] <Bombo> ronlut: by reading source/examples
[17:23] <ronlut> Mavrik: You mean having an libffmpeg.so file and executing command line params?
[17:30] <Mavrik> ronlut, no, having libyourlibrary.so that exposes as simple interface as possible
[17:30] <Mavrik> and with as little Java/JNI bridge calling as possible
[17:37] <Bombo> just found the ffmpeg/doc/examples/*.c ... interesting :)
[17:38] <Bombo> Mavrik: what do you want to do? encode videos on your phone?
[17:39] <Mavrik> O.o
[17:39] <Mavrik> Why are you asking me that? :P
[17:40] <Bombo> oops i meant ronlut
[17:40] <Bombo> ;)
[17:40] <Bombo> sorry Mavrik
[17:41] <Bombo> ronlut: what do you want to do? encode videos on your phone?
[17:41] <Bombo> ;)
[18:03] <share> my capture card only supports raw output
[18:03] <share> how to encode using x264 on fly
[18:10] <llogan> share: ffmpeg -i input -c:v libx264 output
[18:12] <share>  /dev/video0: Invalid data found when processing input
[18:13] <share> ok
[18:13] <share> llogan: https://pastee.org/4fw2f
[18:14] <share> do you also want v4l2-ctl --all
[18:14] <llogan> sure
[18:14] <llogan> you forgot "-f v4l2" as an input option
[18:14] <share> oops
[18:15] <llogan> is it a webcam?
[18:15] <share> no, capture card
[18:15] <share> https://pastee.org/vyqpp
[18:15] <llogan> oh, you mentioned that before and i instantly forgot
[18:16] <share> check that :)
[18:17] <share> I can capture in raw mode using VLC but that's like 200mb/s
[18:17] <share> sorry bad calculation
[18:18] <share> 20mb/s
[18:18] <llogan> in vlc you capture it as a v4l2 device?
[18:18] <share> I dont see v4l2 in vlc
[18:19] <share> advanced options show v4l
[18:19] <llogan> i don't know what type of device it is, so you'll have to look at http://ffmpeg.org/ffmpeg-devices.html
[18:19] <share> capture device /dev/video0
[18:21] <share> hm
[18:21] <share> it shows Video camera
[18:21] <share> llogan: vlc shows :v4l2-standard=PAL :live-caching=300
[18:21] <share> yeah it uses v4l2://
[18:22] <llogan> maybe it is /dev/video1
[18:22] <share> i only have /dev/video0
[18:24] <llogan> oh, i confused myself with the v4l2-ctl output. i guess i didn't get enough sleep last night. show: ffmpeg -f vfl2 -list_formats all -i /dev/video0
[18:25] <share> you mean v4l2
[18:25] <llogan> yes
[18:26] <share> https://pastee.org/qn4rm
[18:29] <llogan> that's progress at least, but i don't know why you get "invalid data"
[18:31] <share> this /dev/video0: Immediate exit requested ?
[18:31] <share> what invalid data
[18:31] <llogan> no. earlier you said "/dev/video0: Invalid data found when processing input". try ffmpeg -f v4l2 -video_size 720x576 -framerate 25 -i /dev/video0 output.mp4
[18:32] <share> ok
[18:32] <share> it's working..
[18:32] <llogan> what brand/make and model is this device?
[18:32] <share> ok it captured
[18:32] <share> this http://linuxtv.org/wiki/index.php/Easycap#USBTV007_EasyCAP
[18:33] <share> only audio isnt supported in the kernel but it does work https://github.com/simon3z/usbtv
[18:34] <llogan> you should add -pix_fmt yuv420p if you want the output to work in non-FFmpeg based players when using libx264 with this type of input
[18:34] <llogan> also see https://trac.ffmpeg.org/wiki/x264EncodingGuide
[18:35] <share> why yuv420p
[18:36] <llogan> it will attempt to minimize chroma subsampling, but most players can't handle anything else
[18:37] <share> how to change the container
[18:37] <llogan> output.mkv
[18:37] <share> to use mkv instead, do i just change the extension
[18:37] <share> k
[18:40] <share> llogan: some interesting messages https://pastee.org/85s2r
[18:40] <share> when recording
[18:40] <share> you were right :P
[18:46] <share> why did .mp4 used less space
[18:46] <llogan> it has more Chinese orphan children making more calculations per second.
[18:47] <llogan> -preset urchins
[18:47] <share> vlc shows Lavf55.19.104 on the first capture
[18:47] <llogan> i don't know. for each command you'll have to...
[18:47] <share> mkv file doesnt show that
[18:47] <share> so changing the extension alters it
[18:48] <llogan> and are you capturing the same thing (content and duration) each time?
[18:48] <share> no :P
[18:48] <share> yeah the bitrate changed  i guess
[18:48] <share> the first capture was more static image
[18:49] <llogan> they should be hardly any difference in size between mp4 and mkv if all things are equal.
[18:52] <share> "FFmpeg today doesn't support any means of GPU encoding, outside of libx264."
[18:52] <share> how do I know if my GPU supports that
[18:53] <share> my guess is that it only supports decoding
[18:53] <share> with vdpau
[18:53] <share> h264 high 4.1
[18:56] <llogan> add -x264opts opencl as an output option if your build supports it, then refer to the console output
[18:56] <llogan> otherwise, don't worry about it
[19:37] <ronlut> Bombo: sorry. wasn't here. The only thing I need to do is overlay one video over another one. That's it. I'm really lost here with all the outdated tutorials / ways to do that spreaded all over the internet. :(
[19:39] <Bombo> ronlut: like a logo for watermarking?
[19:40] <voip> hello guys
[19:41] <voip> i am converting stream to ntsc format http://pastebin.com/A9Y2KtNM but converted stream propertie shows 50frame rate
[19:43] <llogan> according to what?
[19:52] <voip> whats the problem its shuld be 25 fps
[20:02] <voip> ?
[20:09] <share> llogan: do I need opencl-nvidia for that?
[20:17] <Venti^> WINDOW 20
[20:18] Last message repeated 1 time(s).
[20:28] <voip> i am converting stream to ntsc format http://pastebin.com/A9Y2KtNM but converted stream propertie shows 50frame rate
[20:38] <llogan> voip: console output shows ntsc like you requested
[20:39] <voip> llogan, but i requested 29.97fps, in VLC i see 50
[20:41] Action: llogan blames VLC
[20:43] <voip> llogan, are you shure in my oputput 29.97fps, and this VLC problem ?
[21:25] <ronlut> Bombo: yes. like a video watermark (one video on another)
[21:34] <mjsmith> Hey guys. Im using ffmpeg-20140320-git-19139d8-win64-static and when I load in a properly formed (verified in audacity) raw pcm s16le and try to save it as a wav (or anything) it says Format mp3 detected only with low score of 1, misdetection possible! Is this a bug?
[21:35] <mjsmith> Here's my command. ffmpeg.exe -loglevel debug -format s16le -sample_fmt s16 -ar 44100 -ac 2 -i raw.pcm file.wav
[21:35] <Zeranoe> mjsmith: Please paste the full output to pastebin
[21:35] <mjsmith> will do
[21:37] <mjsmith> Zeranoe, http://pastebin.com/sS2KWygF
[21:38] <Zeranoe> your input file should be first if all your trying to do is convert to wav
[21:39] <Zeranoe> ffmpeg.exe -i raw.pcm -loglevel debug -format s16le -sample_fmt s16 -ar 44100 -ac 2 file.wav
[21:40] <mjsmith> still says format mp3 detected
[21:40] <mjsmith> i'll paste new output
[21:41] <mjsmith> Zeranoe, http://pastebin.com/Gd0PgPN7
[21:43] <klaxa> try: ffmpeg -f s16le -i raw.pcm instead
[21:43] <klaxa> the command syntax is: ffmpeg[.exe] <input options> -i <input> <output options> output
[21:44] <mjsmith> yes klaxa that worked thanks. sorry for my stupidity :)
[21:45] <Zeranoe> klaxa: Why does that work? Is it really an mp3 steam?
[21:46] <mjsmith> sound is distorted though. gotta fine tune the options
[21:46] <mjsmith> its definitely not an mp3. it's a fwrite sound buffer
[21:58] <mjsmith> Ok now for my next problem. Audacity spits out a proper wav at length 32 seconds. ffmpeg spits out one at 39 seconds. Both reported as 16bit pcm 2 channel 44100Hz
[00:00] --- Sat Mar 22 2014


More information about the Ffmpeg-devel-irc mailing list