Re: [FFmpeg-user] Default Lanczos kernel?
On Tue, May 21, 2019 at 4:08 PM Werner Robitza wrote: > I was looking for some documentation for the Lanczos resampling > filter, but I cannot find any mention of the default value for the > alpha parameter. > Based on some debugging: the default is 3. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
[FFmpeg-user] Default Lanczos kernel?
All, I was looking for some documentation for the Lanczos resampling filter, but I cannot find any mention of the default value for the alpha parameter. I see this in swscale.h: For SWS_LANCZOS param[0] tunes the width of the window function I also see that SWS_PARAM_DEFAULT is 123456, whose purpose I don't fully understand, but clearly it's not the right value. Or is it 6, as shown in utils.c, line 412? Werner ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-user To unsubscribe, visit link above, or email ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
Re: [FFmpeg-user] ffprobe -show_frames values
On Wed, May 13, 2015 at 7:07 AM, Anatol anatol2...@gmail.com wrote: Werner, can you please shortly explain the no-scenecut issue. Without scenecut detection, if such event occurs in the middle of the GOP, as it usually does, the video quality till the end of the GOP will be rather compromised. It appears as a 'breathing effect'. It is mostly stands out when a high quality video played on a large screen. Is there a way to avoid such effects without scene cut detection? I haven't seen this in real life but we had pretty short GOPs in our tests. Could it be that the bitrate is generally too low then? Perhaps the qpstep value can be increased to allow the encoder to choose a lower QP for the non-I frames following a scene cut. I still have to test the force_key_frames method to see whether the quality is really noticeably worse compared to disabling scene-cut detection altogether. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffprobe -show_frames values
On Mon, May 11, 2015 at 10:49 PM, Joel Lopez badassmexi...@gmail.com wrote: Could I just run my unaligned files through ffmpeg again with a set keyframe interval and disabled scene cut detection? Or do I need to scrap them and re-encode the source file and generate new files that are properly aligned? We have thousands and am trying to save time where possible. You will have to re-encode the files from source. (Please do not top-post.) ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffprobe -show_frames values
Make sure to disable '-g' option, occasionally x264 generates both forced and '-g', increasing the bitrate, reducing the quality and causing some other mess. There's no way to disable the -g option. If you don't use it, x264 will stick to the default values of keyint=250 and min-keyint=25. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Encoding multiple files for adaptive bit rate streaming using RTMP and HLS
On Tue, May 12, 2015 at 1:25 AM, Joel Lopez badassmexi...@gmail.com wrote: Can I add a few lower versions to the mix and a higher one? Yes, you should do that. Can I realign the keyframes of the existing files? That's going to be hard. You're better off re-encoding from scratch with a fixed interval. I'm not so sure how crucial aligned key frames are. What have you seen out there? The recommendation is definitely to keep them aligned; otherwise you'll run into sync issues. What bitrates and dimensions do you think they're using? What do you recommend is good for adaptive bit rate switching? See https://developer.apple.com/library/ios/technotes/tn2224/_index.html#//apple_ref/doc/uid/DTS40009745-CH1-SETTINGSFILES It's a good starting point. He said I didn't need to change the dimensions when making different bit rate versions. What's your opinion? Typically you should vary both bit rate and resolution, and frame rate if you're targeting really crappy devices. Changing just the bit rate but not the resolution may make the video look worse at lower bit rates than if it had a lower resolution and the same low bit rate. I recently did a test with bitrate-only switching and I'm not sure if I'd recommend that. How do I change this command to make the different bitrate or sizes? ffmpeg [rawvideo demuxer options if required] -i input -c:v libx264 -crf 23 -preset medium -pix_fmt yuv420p -c:a libfdk_aac -vbr 5 -movflags +faststart output.mp4 Check the H.264 encoding guide (https://trac.ffmpeg.org/wiki/Encode/H.264). Do not use the CRF option but use -b:v 1M for 1 MBit/s, or similar. Ideally, do a two-pass encode for better quality, if you have the time. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffprobe -show_frames values
On Tue, May 12, 2015 at 2:45 PM, Christian Ebert blacktr...@gmx.net wrote: * Nicolas George on Tuesday, May 05, 2015 at 17:28:33 +0200 As an additional note, the second solution if by far preferable, because forcing the frame type too frequently ruins x264's bit allocation algorithms. As per this thread elsewhere there are different opinions on that. Others say that no-scenecut is not adviseable because it obviously removes scene detection. Which one is it then: -force_key_frames or -x264opts keyint=xxx:no-scenecut ? Personally I got ok looking results both ways with various material. I'm currently involved in ITU-T standardization of a quality model for adaptive streaming, and in our video sequences that we use for (subjective user) tests, we've disabled scene cut detection throughout, with good-looking results. Nothing unexpected. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Encoding multiple files for adaptive bit rate streaming using RTMP and HLS
On Tue, May 12, 2015 at 11:47 AM, Henk D. Schoneveld belca...@zonnet.nl wrote: Would you be so kind to explain why to NOT use the crf option? CRF is essentially a constant quality mode, which results in variable bitrate depending on the spatiotemporal complexity of the scenes. For streaming purposes, this is not ideal, since your adaptive streaming client assumes that a segment encoded at a target bitrate of x kBit/s is can actually be transmitted over a link with x kBit/s throughput. If you want to make sure you're not exceeding a certain bandwidth, the VBV encoding mode is probably the best option (see also https://trac.ffmpeg.org/wiki/EncodingForStreamingSites). Therefore, set -maxrate and -bufsize. A single-pass constant bitrate will not generally be more stable than CRF, but it should be less spikey. See this chart for a comparison between CRF, single-pass CBR and single-pass CBR with -maxrate set: http://i.imgur.com/GxTW4Jy.png y-axis is the frame size, moving average of 120 frames. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Encoding multiple files for adaptive bit rate streaming using RTMP and HLS
On Tue, May 12, 2015 at 3:16 PM, Henk D. Schoneveld belca...@zonnet.nl wrote: On 12 May 2015, at 13:50, Werner Robitza werner.robi...@gmail.com wrote: On Tue, May 12, 2015 at 11:47 AM, Henk D. Schoneveld belca...@zonnet.nl wrote: Would you be so kind to explain why to NOT use the crf option? CRF is essentially a constant quality mode, which results in variable bitrate depending on the spatiotemporal complexity of the scenes. Your goal is max quality within a given link-capacity I assume. Upfront choosing an arbitrary bitrate to achieve max possible quality seems sub-optimal/contradictionary to me. A. to many bits for talking heads B. to few bits for action dominant events. Yes, but that's still what's typically done, unless you choose a CQ encoding type with a max-rate (which is what libvpx recommends too). You should've mentioned that you're experienced with this -- otherwise I would've given a different answer. I see the difference between the methods, but I don’t really understand what it’s trying to tel me. What does the X-axis say, total stream-size/#frames/ ? It's the frame number (index) in a 3 minute sequence. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffprobe -show_frames values
On Tue, May 5, 2015 at 12:05 AM, Joel Lopez badassmexi...@gmail.com wrote: Should I re-encode these videos or could they still work? I saw that it's be possible to force keyframes on an existing video. You need to re-encode them with either the force_key_frames option, or by setting the keyframe interval for your encoder, and disabling scene cut detection. For x264 this would be keyint=120:scenecut=-1 if you want a keyframe every 5 seconds for a 24 fps video. That's what's typically done. Please don't top-post on this mailing list; your reply should be below mine. Thanks. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] ffprobe -show_frames values
On Thu, Apr 30, 2015 at 5:26 PM, Joel Lopez badassmexi...@gmail.com wrote: Thanks for the help. It's making a bit of sense now. It looks like my keyframes are 1/3 of a second. Is less than 2 seconds apart ok? For adaptive streaming the keyframes should be at regular intervals. That means, for encoding, you'll have to specify a keyframe interval and disable scene cut detection, if any. In the pict_type field I'm seeing B's and P's with one I. Does that translate to how far apart they are? Use this command, which gives you output that's easier to read: ffprobe -select_streams v -show_frames -of csv -show_entries frame=pkt_pts_time, pict_type Now, assuming the PTS time increases in regular intervals, it'll be quite easy to count the distance (in number of frames) between I-frames, and the time interval. Just do the subtraction of the PTS between two consecutive I-frames. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Making conditional statements with FFMPEG
On Thu, Apr 30, 2015 at 3:04 PM, Werner Robitza werner.robi...@gmail.com wrote: There are many ways to get Bash on Windows. I should add that you can also transform this into a Windows Batch file, or a Java program that does the looping and executes ffmpeg. What's important is that ffmpeg on its own cannot do what you want. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Making conditional statements with FFMPEG
On Thu, Apr 30, 2015 at 2:22 PM, Chris Zecco cze...@mreach.com wrote: Thanks Moritz, Would I enter this right into my command prompt, or would I create a separate file to run this statement from? I keep getting an error saying File unexpected at this time. Apologies for any ignorance. I am new to using the command window, though I do have coding experience in php and java (though I am not sure that will help here). Thanks! It seems like you're running Windows. Moritz gave you code that runs in Bash (or Bash-like shells), which are typically found on Linux/Unix systems. There are many ways to get Bash on Windows. (Please do not top-post on this mailing list. Place your reply under the other's message.) ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] getting error
On Tue, Apr 21, 2015 at 1:42 PM, aryan singh aryan...@gmail.com wrote: configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-nonfree --enable-libfdk_aac --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264 You need to add --enable-libx265 when doing ./configure This may or may not work depending on how you built x265. There are a few threads on this: https://ffmpeg.org/pipermail/ffmpeg-user/2014-April/020954.html https://ffmpeg.org/pipermail/ffmpeg-user/2015-April/026026.html I stopped trying a few days ago due to lack of response from x265 devs. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] getting error
On Tue, Apr 21, 2015 at 9:24 PM, Nicolas George geo...@nsup.org wrote: Le duodi 2 floréal, an CCXXIII, Werner Robitza a écrit : This may or may not work depending on how you built x265. It will work if the system is correctly configured and x265 is properly installed, but this mailing-list is not about Unix administration. Well, certainly the part about Unix administration where it's about actually getting ffmpeg to work should be on topic for this mailing list. (Unless, of course, you don't really want to make it easy for people to use your tools.) A similar recent issue reported to x265 where, of course, they say it's an ffmpeg bug: https://bitbucket.org/multicoreware/x265/issue/125/x265-not-found-using-pkg-config ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Fail to concatenate 2 videos
On Tue, Apr 21, 2015 at 10:01 AM, babeman92 brem...@cvz.es wrote: avconv Please note that this is an FFmpeg mailing list. You are using avconv from the Libav project, which is similar to FFmpeg but a different project. This mailing list is for issues with the ffmpeg command from the FFmpeg project which you can obtain through http://ffmpeg.org/download.html ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] How to pass -x264opts value with embedded colon in option value
On Thu, Apr 16, 2015 at 8:29 PM, David Favor da...@davidfavor.com wrote: Looked through the docs Please look more carefully: x264opts (N.A.) Set any x264 option, see x264 --fullhelp for a list. Argument is a list of key=value couples separated by :. In filter and psy-rd options that use : as a separator themselves, use , instead. They accept it as well since long ago but this is kept undocumented for some reason. Does this work? (Cannot test now…) -x264opts analyse=0x3,0x113 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Building FFMPEG and enabling x265
On Wed, Apr 15, 2015 at 12:38 PM, Nicolas George geo...@nsup.org wrote: Le sextidi 26 germinal, an CCXXIII, Werner Robitza a écrit : What's not correct? Your installation of x265. In what way, then? How else should I install it? Of course I know that it does not include x265. Hence my comment: for ffmpeg users we should probably update our compilation guide. Please do. If I knew how to install it I would have edited the wiki already. And again, irrespective of what you think a guide should be, people are gonna copy-paste stuff from it without understanding. You can't educate everyone. And instead of berating me about it, we could just improve the documentation. I should add that when installing x265 with sudo make install, then configuring ffmpeg by just adding --enable-libx265, I get ffmpeg: error while loading shared libraries: libx265.so.56: cannot open shared object file: No such file or directory So instead of arguing about it, I'd be happy if somebody could just provide the steps for x265 installation so that it works nicely with what's already there, so I can update the Wiki. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Building FFMPEG and enabling x265
On Wed, Apr 15, 2015 at 2:17 PM, Clément Bœsch u...@pkh.me wrote: On Tue, Apr 14, 2015 at 03:41:49PM +0200, Alexander Martin Dethof wrote: Do that for x265 (or find the equivalent) and use make install (no root needed, you have write perm in $HOME/ffmpeg_build). This will deploy a .pc file with all the other pc files available in $HOME/ffmpeg_build/lib/pkgconfig as well as deploying the libs in the parent directory of it. Everything else should then work as expected. I tried this: cd ~/ffmpeg_sources hg clone https://bitbucket.org/multicoreware/x265 cd x265 cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/ffmpeg_build source make make install This puts the libraries in ~/ffmpeg_build/lib/: ├── libavcodec.a ├── libavdevice.a ├── libavfilter.a ├── libavformat.a ├── libavutil.a ├── libfdk-aac.a ├── libfdk-aac.la ├── libopus.a ├── libopus.la ├── libpostproc.a ├── libswresample.a ├── libswscale.a ├── libvpx.a ├── libx265.a ├── libx265.so - libx265.so.56 ├── libx265.so.56 ├── libyasm.a └── pkgconfig ├── fdk-aac.pc ├── libavcodec.pc ├── libavdevice.pc ├── libavfilter.pc ├── libavformat.pc ├── libavutil.pc ├── libpostproc.pc ├── libswresample.pc ├── libswscale.pc ├── opus.pc ├── vpx.pc └── x265.pc Then I tried re-configuring ffmpeg with: PATH=$HOME/bin:$PATH PKG_CONFIG_PATH=$HOME/ffmpeg_build/lib/pkgconfig ./configure \ --prefix=$HOME/ffmpeg_build \ --extra-cflags=-I$HOME/ffmpeg_build/include \ --extra-ldflags=-L$HOME/ffmpeg_build/lib \ --bindir=$HOME/bin \ --enable-gpl \ --enable-libass \ --enable-libfdk-aac \ --enable-libfreetype \ --enable-libmp3lame \ --enable-libopus \ --enable-libtheora \ --enable-libvorbis \ --enable-libvpx \ --enable-libx264 \ --enable-libx265 \ --enable-nonfree ... and compiling it, but no dice: $ ffmpeg ffmpeg: error while loading shared libraries: libx265.so.56: cannot open shared object file: No such file or directory ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Building FFMPEG and enabling x265
On Wed, Apr 15, 2015 at 9:57 AM, Nicolas George geo...@nsup.org wrote: I also tried to modify the PKG_CONFIG_PATH var to In the future, look for the .pc files instead of trying random values. If you mean $HOME/ffmpeg_sources/x265/build/linux, then the .pc file is actually there. $ find ~ -name 'x265.pc' /home/werner/ffmpeg_sources/x265/build/linux/x265.pc I guess that a sudo make install after the make in x265 works, but that installs it to /usr/local instead of the home directory, which is what all the other tools in the compilation guide do. (I understand that this is not the x265 mailing list, but for ffmpeg users we should probably update our compilation guide..) ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] MPEG-DASH
On Tue, Feb 10, 2015 at 3:23 PM, Knapek Miroslav kna...@mmsw.cz wrote: I would like to kindly ask you for help. I try to encode my first mpeg-dash video using these steps: http://www.dash-player.com/blog/2014/11/mpeg-dash-content-generation-using-mp4box-and-x264/. I use panasonic camcoder MTS fullHD file as source. I am able to pass all three steps, but there is missing audio track in MP4 video after first conversion by x264.exe. This is more of a question to ask on the respective MP4Box / GPAC channels. Is somewhere any “tutorial” how to prepare MPEG-DASH content by ffmpeg? Not yet. There is an undocumented dashenc muxer. I requested a bit of information on how to use it here: http://mplayerhq.hu/pipermail/ffmpeg-user/2015-January/025046.html -- but until then, I would consider its functionality extremely limited. You can of course check the source file if you want. All in all, I would stick to using MP4Box for now. You may find other software here: http://dashif.org/software/ ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Frame rates and video accelerated
On Sat, Feb 7, 2015 at 6:05 PM, Cristiano Chieppa cristiano.chie...@gmail.com wrote: I save the raw frames (NALs) in a file (some frames grabbed from a camera) and I invoke the ffmpeg from the sw - like a batch program - to encode the raw H264 in MP4. The conversion works well. Out of curiosity, how exactly are you doing it? Is the file basically an Annex B stream? Sometimes, under circumstance that I’m not able to understand, I see that the generated mp4 video is like “accelerated”: the speed is very fast compare with the real stream. Is there a way to invoke ffmpeg and tell him, as a parameter, the timestamp of each grabbed frames to get the real synchronized video? ffmpeg -r 25 -i input output This is how you force the frame rate. Actually, when you do ffmpeg -i input -c:v libx264 output.h264, the output file indicates the frame rate when you read it back in with ffmpeg -i output.h264. And when you force a different frame rate, with for example ffmpeg -i input -c:v libx264 -r 12 output.h264, this frame rate change is visible when doing ffmpeg -i output.h264. This is due to the timing information being written into the Sequence Parameter Set (SPS). ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Add black on both side with 1024x576
On Mon, Feb 9, 2015 at 3:32 PM, thibault75 thiba...@capitalvision.fr wrote: I've got some video in 4/3 and other one in 16/9. I want to transcode this video to 1024x576 which is 16/9 ratio. If it's a 4/3 i want black to be add on each side of the video and if it's a 16/9 i just want video to be resized. ffmpeg -i input.mp4 -vf scale=-2:576, pad=1024:576:(ow-iw)/2:(oh-ih)/2 output.mp4 The -2 takes care of upscaling at multiples of 2, and 576 is the desired output height. It will not change the aspect ratio. The pad filter will pad the video to a full size of 1024x576, placing the video at the exact center (which is output width - input width divided by two, same goes for height). ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Frame rates and video accelerated
On Mon, Feb 9, 2015 at 9:10 PM, chie...@elmaxsrl.it wrote: I'm pretty sure that the raw H264 hasn't the timestamps. The NAL units themselves, no, but AFAIK the SPS can indicate the time base according to the VUI information in Annex E of H.264. So you have to make sure that this is present for ffmpeg to detect it. Then I prepare the command to launch by sw the FFMPEG: ffmpeg -y -i IMAGE_FILE.h264 -vf scale=960:-1 -c:v mpeg4 -q:v 1 IMAGE_FILE.mp4 ... Stream #0:0: Video: h264 (Baseline), yuv420p, 1280x720, 25 fps, 25 tbr, 1200k tbn, 50 tbc It assumes 25 fps here. Like I said, try -r 12.5 or whatever you need, e.g. ffmpeg -r 12.5 -i input output (Please do not top-post on this mailing list. Thanks!) ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] clipping bug on h264 files made by ffmpeg same version
On Wed, Feb 4, 2015 at 8:58 PM, S Andreason sandrea...@gmail.com wrote: I didn't get any reply to my Jan22 report, so I'm sending this again with working examples, and freshly compiled ffmpeg code: Good report, but have you considered posting an official bug report? = https://trac.ffmpeg.org ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] error in ffmpeg
On Wed, Feb 4, 2015 at 8:42 AM, Mohammad Shakir shaki...@gmail.com wrote: I want to rebrodcast this stream on udp but getting error, please help me to resolve this problem. Do you even need the bitstream filter here? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] I am confused between your FFMPEG and Sourcefordge FFMPEG
On Mon, Jan 26, 2015 at 4:58 PM, Dani A danix4u-at-yahoo@ffmpeg.org wrote: So can someone amazing show me how I can install both the latest FFMPEG library from FFMPEG.org and the PHPvideotoolkit v2 on my CENTOS/ Cpanel? My server is live and I do not want to start testing stuff on it. Download the latest static Linux build from http://ffmpeg.org/download.html and put it in /opt/local/bin, then make it executable. Download the PHP wrapper library of your choice (phpvideotoolkit-v2 or PHP-FFMpeg) and configure it according to the documentation. I think PHP-FFMpeg is more up to date and has better documentation. If you have troubles installing binaries, making them executable, configuring PHP, etc. then this mailing list is not really the place for such questions, I'm afraid. You really should not be playing on a live server with these things anyway, so perhaps it would be good to fire up a CentOS virtual machine and test there first. Good luck! ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] I am confused between your FFMPEG and Sourcefordge FFMPEG
On Mon, Jan 26, 2015 at 5:35 PM, Nicolas George geo...@nsup.org wrote: So if you plan to run code that REQUIRES ffmpeg-php to work, my guess is that you will need to run ffmpeg-php with whatever ancient version of ffmpeg is available for your CentOS. To add to the confusion, there is also https://github.com/PHP-FFMpeg/PHP-FFMpeg It seems well-maintained, but again, not related to FFmpeg. I would really recommend you to just construct a few command lines yourself, using the regular ffmpeg and ffprobe tools that you can get via http://ffmpeg.org/download.html -- I've found them sufficient for most cases. I really hope ffmpeg-php could be entirely removed from the Internet... ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Adding Audio to a video without re-encoding?
On Sun, Jan 25, 2015 at 7:15 AM, meino.cra...@gmx.de wrote: I have an video file (h264), which is without audio. I want to add music to it and have an audio file of the correct length. Is it possible to add that audio file to the video file without re-encoding one or both files? And if yes, how can I accieve this? ffmpeg -i video.mp4 -i audio.m4a -c copy -map 0:v -map 1:a output.mp4 assuming the audio codec is compatible with MP4 (i.e. AAC, MP3). Or use Matroska, since it more or less handles all codecs: ffmpeg -i video.mp4 -i audio.ogg -c copy -map 0:v -map 1:a output.mkv Here, 0:v refers to the video stream of the first input, and 1:a to the audio stream of the second input. -c copy copies the bitstreams instead of re-encoding. See also: https://trac.ffmpeg.org/wiki/How%20to%20use%20-map%20option http://superuser.com/a/800251/48078 ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] dynamic image overlay
On Fri, Jan 23, 2015 at 3:28 AM, Mark mwambler-at-yahoo@ffmpeg.org wrote: Thanks for responding. I'd like to alter the overlay image / watermark based on an external condition. So far I've tried pointing the image input to an http servlet that will alter the image data. Didn't work as it seems ffmpeg caches the remote image after the first call. So, put differently, there's a live encoding process and you'd like to change the watermark image dynamicall during encoding? (Please don't top-post.) ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] How to use the dashenc muxer?
Is there any documentation on how to actually use the dashenc muxer? More specifically, how multiple representations can be added to an adaptation set? Or is it just limited to one video/audio stream at the time? I would hope that some documentation is added until the next release. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] dynamic image overlay
On Thu, Jan 22, 2015 at 10:28 PM, Mark Ambler mwambler-at-yahoo@ffmpeg.org wrote: Hi All,Found this thread on the mailing list from back in 2012. Was it ever implemented? if yes... any command line samples out there? https://ffmpeg.org/pipermail/ffmpeg-user/2012-August/008703.html It says, Is there currently any way to get it to overlay with an image where the image can be updated every so often, during the ffmpeg session? I don't understand what exactly is wanted here. Can you please describe that with a more specific example? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] X264 and Smooth Text
On Mon, Jan 19, 2015 at 7:49 AM, Robert Nagy rona...@gmail.com wrote: However, at the first 1-2 seconds of the video the text looks quite a bit worse and then pops to better quality. Is there some setting I can use so that x264 uses a higher bitrate at the beginning of a clip as to avoid the pop? I'm surprised that CRF 18 exhibits this kind of rate control issue. Have you tried a fixed-bitrate two-pass encode? ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Image Conversion TIFF JPEG with yuv422 chroma subsampling
On Mon, Jan 19, 2015 at 6:05 PM, Andrea Rastelli a.raste...@rbw-cgi.it wrote: $ ffmpeg.exe -pix_fmt yuv422p -i in.tif out.jpg -q 1 Set -q before specifying the output filename. -pix_fmt specified before -i will try to read the input with said format. That doesn't make a lot of sense here. Also, if you want yuv444p output, you need to specify yuv444p, not yuv422p, and it needs to be specified after the input file, that is: ffmpeg -i in.tif -pix_fmt yuv444p -q:v 1 out.jpg PS: Please don't top-post. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Rawvideo Stream
On Wed, Dec 31, 2014 at 4:16 AM, Yafes Sahin yafes7-at-yahoo...@ffmpeg.org wrote: So what is the right way of streaming raw-input from a camera or any raw-video source. I'd capture the raw data, wrap it in UDP packets, and send it manually over the wire. You could do this very easily with any programming language of your choice. ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
Re: [FFmpeg-user] Packet header is not contained in global metadata when segmenting and encoding x264
On Wed, Jul 23, 2014 at 4:02 PM, Christian Ebert blacktr...@gmx.net wrote: If it's about avoiding intermediate files, encode to mpegts directly and pipe it to the segmenter: ffmpeg -i input.mp4 -f mpegts -c:a copy -c:v libx264 - | \ ffmpeg -i - -c copy -map 0 -f segment -segment_time 5 out%05d.ts That wouldn't work for me, for some reason, but I've found out that you simply have to use ssegment instead of segment. The error message you get when not using ssegment is misleading though, because it tells you to use the bitstream filter (even when it's there). ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user
[FFmpeg-user] Packet header is not contained in global metadata when segmenting and encoding x264
I have an x264-encoded MP4 file which I'd like to segment into MPEG-TS. ffmpeg -y -i tmp/tmpPass2.mp4 -c:v libx264 -acodec copy -map 0 -f segment -bsf h264_mp4toannexb -segment_time 5 -segment_format mpegts ./tsSegmentsDisplay/SRC04_Q1_%05d.ts The original was encoded with: ffmpeg -y -i ./srcVid/SRC04.avi -y -map 0:0 -c:v libx264 -pix_fmt yuv420p -preset medium -profile:v high10 -level 4.0 -pass 1 -s 1920x1080 -r 24.0 -b:v 8500k -x264opts merange=64:me=umh:b-pyramid=none:slices=1:b-adapt=0:bframes=2:scenecut=-1:threads=1:keyint=24 -map 0:1 -acodec libfdk_aac -profile:a aac_he_v2 -ac 2 -ab 128k tmp/tmpPass1.mp4 ffmpeg -y -i ./srcVid/SRC04.avi -y -map 0:0 -c:v libx264 -pix_fmt yuv420p -preset medium -profile:v high10 -level 4.0 -pass 2 -s 1920x1080 -r 24.0 -b:v 8500k -x264opts merange=64:me=umh:b-pyramid=none:slices=1:b-adapt=0:bframes=2:scenecut=-1:threads=1:keyint=24 -map 0:1 -acodec libfdk_aac -profile:a aac_he_v2 -ac 2 -ab 128k tmp/tmpPass2.mp4 Output from the segmenting command: ffmpeg -y -i tmp/tmpPass2.mp4 -c:v libx264 -acodec copy -map 0 -f segment -bsf h264_mp4toannexb -segment_time 5 -segment_format mpegts ./tsSegmentsDisplay/SRC04_Q1_%05d.ts ffmpeg version N-64919-ga613257 Copyright (c) 2000-2014 the FFmpeg developers built on Jul 23 2014 00:35:22 with gcc 4.8.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib libavutil 52. 92.101 / 52. 92.101 libavcodec 55. 69.100 / 55. 69.100 libavformat55. 48.101 / 55. 48.101 libavdevice55. 13.102 / 55. 13.102 libavfilter 4. 11.102 / 4. 11.102 libswscale 2. 6.100 / 2. 6.100 libswresample 0. 19.100 / 0. 19.100 libpostproc52. 3.100 / 52. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tmp/tmpPass2.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.33.100 Duration: 00:00:56.66, start: 0.161134, bitrate: 8528 kb/s Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 8484 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default) Metadata: handler_name: VideoHandler Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 64 kb/s (default) Metadata: handler_name: SoundHandler [libx264 @ 04db87a0] using SAR=1/1 [libx264 @ 04db87a0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2 [libx264 @ 04db87a0] profile High, level 4.0 [libx264 @ 04db87a0] 264 - core 142 r2431 ac76440 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=24 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 [mpegts @ 06f42440] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Last message repeated 1 times [adts @ 06f567e0] Using AVStream.codec.time_base as a timebase hint to the muxer is deprecated. Set AVStream.time_base instead. Output #0, segment, to './tsSegmentsDisplay/SRC04_Q1_%05d.ts': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf55.48.101 Stream #0:0(und): Video: h264 (libx264), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 24 fps, 24 tbn, 24 tbc (default) Metadata: handler_name: VideoHandler encoder : Lavc55.69.100 libx264 Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, 64 kb/s (default) Metadata: handler_name: SoundHandler Stream mapping: Stream #0:0 - #0:0 (h264 (native) - h264 (libx264)) Stream #0:1 - #0:1 (copy) Press [q] to stop, [?] for help [libx264 @ 04db8340] Packet header is not
Re: [FFmpeg-user] Packet header is not contained in global metadata when segmenting and encoding x264
On Wed, Jul 23, 2014 at 2:46 PM, Christian Ebert blacktr...@gmx.net wrote: I guess you just want to copy (-c copy both video and audio), not re-encode (-c:v libx264) I do want to re-encode (for various reasons, one being that I need another keyframe interval). ___ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user