Re: [FFmpeg-user] generating silent audio streams simultaneous with lavfi / generated video
James Heliker gmail.com> writes: > C:\ffmpeg.exe -f lavfi -i color=c=black:s=1920x1080 > -frames:v 10 > -r 29.97 The color filter has a rate option. > However that results in a file with only video > stream - no audio. You failed to provide an input audio stream to ffmpeg, I usually use: ffmpeg -f s16le -i /dev/zero The anullsrc filter should work fine on Windows. Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] generating silent audio streams simultaneous with lavfi / generated video
Hi All - One more question for tonight. I'm generating an XDCAM slate using this command: C:\ffmpeg.exe -f lavfi -i color=c=black:s=1920x1080 -frames:v 10 -r 29.97 -vf "drawtext=fontfile=/Windows/Fonts/arial.ttf: fontcolor=white: fontsize=48: fontcolor=white:x=(w-text_w)/2:y=(h-text_h-line_h)/2:text='testing'" -pix_fmt yuv422p -vcodec mpeg2video -non_linear_quant 1 -flags +ildct+ilme -top 1 -dc 10 -intra_vlc 1 -qmax 3 -lmin "1*QP2LAMBDA" -vtag xd5c -rc_max_vbv_use 1 -rc_min_vbv_use 1 -g 15 -b:v 5k -minrate 5k -maxrate 5k -bufsize 8000k -acodec pcm_s24le -ar 48000 -bf 2 -ac 8 slate_output.mxf However that results in a file with only video stream - no audio. I need 8 silent mono audio streams to accompany the slate for the same duration (10 frames). I've tried many options per Google with aevalsrc etc., but have been unsuccessful in getting the color / drawtext to work at the same time as aevalsrc. Any help, again, would be very much appreciated!! I don't have uncut console output to show as the above command is successfully generating an XDCAM file - just without the desired 8 mono audio streams... -- Kind Regards, - James Heliker ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] concatenation problem with XDCAM mxf files
On Jun 30, 2015 8:23 PM, "James Heliker" wrote: > >-filter_complex "[0:0] [1:0]" concat=n=2:v=1 [v]" -map "[v]" concattest.mxf Your first [v] is missing a leading " ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] concatenation problem with XDCAM mxf files
Hey Folks - Sorry, I found my mistake...syntax error with the extra quote, should've been: C:\ffmpeg.exe -i slate_output.mxf -i black_output.mxf -filter_complex "[0:0] [1:0] concat=n=2:v=1 [v]" -map "[v]" concattest.mxf Thanks anyways! Kind Regards, - James Heliker On 6/30/2015 5:26 PM, James Heliker wrote: C:\ffmpeg.exe -i slate_output.mxf -i black_output.mxf -filter_complex "[0:0] [1:0]" concat=n=2:v=1 [v]" -map "[v]" concattest.mxf ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] concatenation problem with XDCAM mxf files
I'm trying to concatenate to XDCAM files (successfully generated from other FFmpeg commands) - and receiving an odd error: "[AVFilterGraph @ 028a8280] No such filter: '' Error configuring filters." Any help would be much appreciated!! C:\ffmpeg.exe -i slate_output.mxf -i black_output.mxf -filter_complex "[0:0] [1:0]" concat=n=2:v=1 [v]" -map "[v]" concattest.mxf ffmpeg version 2.5.2 Copyright (c) 2000-2014 the FFmpeg developers built on Dec 30 2014 17:13:24 with gcc 4.9.2 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca -- enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable- libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enab le-zlib libavutil 54. 15.100 / 54. 15.100 libavcodec 56. 13.100 / 56. 13.100 libavformat56. 15.102 / 56. 15.102 libavdevice56. 3.100 / 56. 3.100 libavfilter 5. 2.103 / 5. 2.103 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc53. 3.100 / 53. 3.100 Input #0, mxf, from 'slate_output.mxf': Metadata: uid : adab4424-2f25-4dc7-92ff-29bd000c generation_uid : adab4424-2f25-4dc7-92ff-29bd000c0001 company_name: FFmpeg product_name: OP1a Muxer product_version : 56.15.102 product_uid : adab4424-2f25-4dc7-92ff-29bd000c0002 modification_date: -01-01 00:00:00 material_package_uid: 52947134-0567-7314-0052-947134056700 timecode: 00:00:00:00 Duration: 00:00:00.33, start: 0.00, bitrate: 44341 kb/s Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 5 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc Metadata: file_package_uid: 52947134-0567-7314-0052-947134056701 Input #1, mxf, from 'black_output.mxf': Metadata: uid : adab4424-2f25-4dc7-92ff-29bd000c generation_uid : adab4424-2f25-4dc7-92ff-29bd000c0001 company_name: FFmpeg product_name: OP1a Muxer product_version : 56.15.102 product_uid : adab4424-2f25-4dc7-92ff-29bd000c0002 modification_date: -01-01 00:00:00 material_package_uid: 52947134-bc78-c95d-0052-947134bc7800 timecode: 00:00:00:00 Duration: 00:00:01.67, start: 0.00, bitrate: 49036 kb/s Stream #1:0: Video: mpeg2video (4:2:2), yuv422p(tv), 1920x1080 [SAR 1:1 DAR 16:9], 5 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc Metadata: file_package_uid: 52947134-bc78-c95d-0052-947134bc7801 [AVFilterGraph @ 028a8280] No such filter: '' Error configuring filters. -- Kind Regards, - James Heliker ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] How to output video with only specific Y/U/V bit planes
Hi, > On Jun 30, 2015, at 6:14 PM, Kieran O'Leary > wrote: > > Hello, > > I have been playing around with the bit plane filter in QCTools. More info > here: > http://htmlpreview.github.io/?https://github.com/bavc/qctools/blob/master/Source/Resource/Help/Playback%20Filters/Playback%20Filters.html > > From what I understand, QCtools is using ffmpeg to generate all these filters. This is true. > Is it possible to harness this bit plane filter via ffmpeg.exe and export a > video with it? For example, enable bit 1 of Y, bit 4 of U, bit 5 of V? Is > there another way of doing this? Here is the code containing the filterchain you mention: https://github.com/bavc/qctools/blob/master/Source/GUI/BigDisplay.cpp#L283 "lutyuv=y=if(eq(${1}\\,-1)\\,128\\,if(eq(${1}\\,0)\\,val\\,bitand(val\\,pow(2\\,8-${1}))*pow(2\\,${1}))):u=if(eq(${2}\\,-1)\\,128\\,if(eq(${2}\\,0)\\,val\\,bitand(val\\,pow(2\\,8-${2}))*pow(2\\,${2}))):v=if(eq(${3}\\,-1)\\,128\\,if(eq(${3}\\,0)\\,val\\,bitand(val\\,pow(2\\,8-${3}))*pow(2\\,${3}))),format=yuv444p|rgb24", You can use this if you replace $1 with the bit you want to Y, $2 for U and $3 for V. Note: playing back only bit 1 of Y, bit 4 of U and bit 5 of V is an unusual thing to do. > I've tried to find information on this but I've been coming up short. It’s all in here: https://github.com/bavc/qctools/blob/master/Source/GUI/BigDisplay.cpp though I should probably comment this better. Best Regards, Dave Rice ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] How to output video with only specific Y/U/V bit planes
Hello, I have been playing around with the bit plane filter in QCTools. More info here: http://htmlpreview.github.io/?https://github.com/bavc/qctools/blob/master/Source/Resource/Help/Playback%20Filters/Playback%20Filters.html >From what I understand, QCtools is using ffmpeg to generate all these filters. >Is it possible to harness this bit plane filter via ffmpeg.exe and export a >video with it? For example, enable bit 1 of Y, bit 4 of U, bit 5 of V? Is >there another way of doing this? I've tried to find information on this but I've been coming up short. Best regards, Kieran. -- This email has been scanned for spam and malware by The Email Laundry. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Feature request: show the "speed" of audio only conversions
On 6/11/15, Moritz Barsnick wrote: > On Thu, Jun 11, 2015 at 10:31:54 -0600, Roger Pack wrote: >> Suggestion/feature request: make audio progress bar include a "seconds >> per second" metric, or otherwise, like >> >> size= 499284kB time=00:14:47.61 bitrate=4608.0kbits/s speed= 1.9 s/s >> >> So you can see how many seconds (and thus infer how long the entire >> process will take) more easily. > > Which is something like a "5.3x" display, such as lame shows it (I > think). > > I think that is just as valid a request for video. I do see the fps, > but I need to do quick head-math and know the fps of the source. > > That said, there may be some ambiguity with regards to which base to > take: Input PTS, output PTS; what about jumps in PTS? Can this work > when copying? I'm thinking out loud too much. ;) It would be a huge win to get an "estimated time to completion" as well :) ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffplay at half size by means of a math function
On Tue, 30 Jun 2015 17:17:39 -0400 Jim Shupert wrote: > here is what i settled on. it works > > ffplay -vf "scale=iw/2:ih/2" -i /media/data/zzz-s/NASA_logo.mov Enhance laziness: -vf "scale=iw/2:-1" Also, you can remove the "-i" if you really wanted to be lazy. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffplay at half size by means of a math function
On 6/30/2015 3:25 PM, Dave P wrote: On Jun 30, 2015 11:32 AM, "Jim Shupert, Jr." wrote: Friends, I wish to be able to play a file with ffplay but have it play at 1/2 the real size with -x NUM -y NUM I can control play size with ffplay -x 640 -y 360 -i dog.avi this works as hoped but what I would really like to do is do some math on the file and scale it down with something like ffplay -vf=scale=iw/2:ih/2 -i /media/data/zzz-s/NASA_logo.mov You need a blank space after -vf -vf scale= oh my - that is humbling . Thank you dave P here is what i settled on. it works ffplay -vf "scale=iw/2:ih/2" -i /media/data/zzz-s/NASA_logo.mov ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] Linux Static Builds ffmpeg version:2.7.1 can't grab audio when use --video4linux2 /dev/video0 to grab
Dear ffmpeg: I'm a new user of ffmpeg,may I ask a qustion? these days when i download linux static builds version 2.7.1 to grab audio in this process ffmpeg -f video4linux2 -i /dev/video0 -vcodec mpeg4 -b 2000k -r 30 /home/test.avi ,failed!! error print:[video4linux2,v4l2 @ 0xb0d4e00] ioctl(VIDIOC_G_PARM): Inappropriate ioctl for device /dev/video0: Inappropriate ioctl for device I want to know the reson,whish to recive your answner! best whishes!! z...@ri-guard.com ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] ffmpeg auto trailer creation script
Hi, I have a server with the following specs: Processor: E3-1240v3 (3.4Ghz Quad Core + HT) Memory Type:4GB DDR3-1333 ECC UNBUFFERED Memory Amount: 2 Hard Drive Slot 1: 1TB SATA II Enterprise Grade (3.5") Hard Drive Slot 2: 2TB SATA II Enterprise Grade (3.5") Hard Drive Slot 3: 2TB SATA II Enterprise Grade (3.5") Windows Server 2008 Standard, but of course you can switch it to Linux. It's on contract and currently sitting idle doing nothing. I'd like to user this server to do some "automatic hands-free" video editing. I regularly get 1000s of SD video files that I would like to encode in batch. My videos are anywhere between 15 to 45 min and depending on the input length, I'd like to have short clips made from them, like trailers. But hands-free. Meaning, I would just tell the script: - where the input folder is - where my watermark image is - where the output folder is For example: Any video over 30 min. should be made into a 13 min. trailer clip with watermark. It'll probably be easier to have each bit taken from a set point in the main video? For example take each bit from the next 20% of the total video length? So if we want this 13 min. trailer to consist of 5 different parts of the main video, this means 13 min divided by 5. Which is about 2 min and 36 seconds long. So the script would do something like this: 1) take 2 min and 26 seconds from the beginning of the video (skipping the first minute) 2) take 02:26 starting from 20% into the video 3) take 02:26 starting from 40% into the video 4) take 02:26 starting from 60% into the video 5) take 02:26 starting from 80% into the video and join all these clips together into 1 trailer clip with a watermark. ffmpeg can perform fade out and fade in. I would like to use these fades as a transition. Just a quick fade so that joining the sub-clips doesn't seem too disrupting. For example, we can perform a fade in and fade out of about 0.3 seconds at the end and/of beginning of each clip when cutting them. Then the end clip will have this fade/transition when joining. Videos of 25-30 min in length should be made into a 12 min clip (or bigger but no bigger than 13 min) Videos of 20-25 min in length should be made into an 8 min clip (or bigger but no bigger than 10 min) Videos of 15-20 min in length should be made into a 7 min clip (or bigger but no bigger than 9 min) Let me know if something like this can be set up? What the cost would be to have it developed. And how long it would take? You can contact me on Skype: screwivo But I'm more of an email person. Thank you :) Ivo ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffplay at half size by means of a math function
On Jun 30, 2015 11:32 AM, "Jim Shupert, Jr." wrote: > > > > Friends, > > I wish to be able to play a file with ffplay but have it play at 1/2 the > real size > > with -x NUM -y NUM > I can control play size with > ffplay -x 640 -y 360 -i dog.avi > this works as hoped > > but what I would really like to do is do some math on the file and scale > it down > > > with something like > ffplay -vf=scale=iw/2:ih/2 -i /media/data/zzz-s/NASA_logo.mov You need a blank space after -vf -vf scale= ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] what does "is_slowmedia" filed in AVIOContext mean
what does "is_slowmedia" filed in AVIOContext mean? Does it mean local file? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] ffplay at half size by means of a math function
Friends, I wish to be able to play a file with ffplay but have it play at 1/2 the real size with -x NUM -y NUM I can control play size with ffplay -x 640 -y 360 -i dog.avi this works as hoped but what I would really like to do is do some math on the file and scale it down with something like ffplay -vf=scale=iw/2:ih/2 -i /media/data/zzz-s/NASA_logo.mov my Goal is to have a means of scaling down 1080p to a size that fits nicely on my vga ffplay -vf=scale=iw/2:ih/2 -i /media/data/zzz-s/NASA_logo.mov ffplay version git-2013-10-16-586b8ea Copyright (c) 2003-2013 the FFmpeg developers built on Oct 16 2013 13:38:00 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/home/j/ffmpeg_build --extra-cflags=-I/home/j/ffmpeg_build/include --extra-ldflags=-L/home/j/ffmpeg_build/lib --bindir=/home/j/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-libx264 --enable-nonfree --enable-x11grab libavutil 52. 46.101 / 52. 46.101 libavcodec 55. 37.100 / 55. 37.100 libavformat55. 19.102 / 55. 19.102 libavdevice55. 4.100 / 55. 4.100 libavfilter 3. 88.101 / 3. 88.101 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.103 / 0. 17.103 libpostproc52. 3.100 / 52. 3.100 Failed to set value '-i' for option 'vf=scale=iw/2:ih/2': Option not found with video_size ffplay -video_size 320x240-i /media/data/zzz-s/NASA_logo.mov ffplay version git-2013-10-16-586b8ea Copyright (c) 2003-2013 the FFmpeg developers built on Oct 16 2013 13:38:00 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5) configuration: --prefix=/home/j/ffmpeg_build --extra-cflags=-I/home/j/ffmpeg_build/include --extra-ldflags=-L/home/j/ffmpeg_build/lib --bindir=/home/j/bin --extra-libs=-ldl --enable-gpl --enable-libass --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-libx264 --enable-nonfree --enable-x11grab libavutil 52. 46.101 / 52. 46.101 libavcodec 55. 37.100 / 55. 37.100 libavformat55. 19.102 / 55. 19.102 libavdevice55. 4.100 / 55. 4.100 libavfilter 3. 88.101 / 3. 88.101 libswscale 2. 5.101 / 2. 5.101 libswresample 0. 17.103 / 0. 17.103 libpostproc52. 3.100 / 52. 3.100 Option video_size not found.aq=0KB vq=0KB sq=0B f=0/0 Thanks jim S ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] HAP encoding?
2015-06-30 14:51 GMT+02:00 Carl Eugen Hoyos : > On Tuesday 30 June 2015 02:21:41 pm Jesper Taxbøl wrote: > > ffmpeg -i test.mp4 -vcodec hap -format hap_q out.mov > > > > It seems to require a mov extension, > > The only hap samples I found were mov files, do you > have other samples? > > > but im happy :) > > Thank you for testing! > Did you successfully feed FFmpeg's output files to > another tool? > > Carl Eugen > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > No, I just had a h264 movie I tested with. I guess they require mov extension. I fed the result into Unity3D, via the AVPro Quicktime plugin, which should be a QT player of some sort. It looked allright. I will do deeper testing in the near future. Jesper ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] HAP encoding?
On Tuesday 30 June 2015 02:21:41 pm Jesper Taxbøl wrote: > ffmpeg -i test.mp4 -vcodec hap -format hap_q out.mov > > It seems to require a mov extension, The only hap samples I found were mov files, do you have other samples? > but im happy :) Thank you for testing! Did you successfully feed FFmpeg's output files to another tool? Carl Eugen ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] HAP encoding?
2015-06-29 23:50 GMT+02:00 Carl Eugen Hoyos : > On Monday 29 June 2015 04:40:15 pm Jesper Taxbøl wrote: > > It seems to be in git in a very recent commit. (7days ago) > > Nothing else is supported on this mailing list. > > > I have downloaded the source and can see hap when i run > > > > ./configure --list-encoders > > > I also tried building it but I havent figured out how to > > specify that it should use the hap codec to encode. > > > > How would I trigger its use? > > You first have to install a library called "snappy" (I > have never heard of it, sorry), then run configure with > "--enable-libsnappy". > You should be able to use -vcodec hap then. > > Please avoid top-posting here, Carl Eugen > ___ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > That did the trick! I can now encode with ffmpeg -i test.mp4 -vcodec hap -format hap_q out.mov It seems to require a mov extension, but im happy :) Thanx ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user