View Full Version : ffxvid for Linux/BSD
microchip8
17th February 2017, 21:04
I've received a number of requests from people who asked for a script that helps to encode to Xvid, so here it is. It's a modified script of ffx264 for Xvid encoding with FFmpeg
https://sourceforge.net/projects/ffxvid/
Enjoy
microchip8
18th February 2017, 17:55
ChangeLog for ffxvid 1.0.2
* Switch to using libxvid instead of mpeg4 encoder
* Set appropriate threads amount for encoding
* Update default encoding options
microchip8
19th February 2017, 06:19
ChangeLog for ffxvid 1.0.3
* Enable Variance AQ by default
* Correct a few things in man page
* Update the preset.txt file
microchip8
22nd February 2017, 16:15
ChangeLog for ffxvid 1.0.4
* Support high FPS -> low FPS conversions
* Bugfix: missing options in FPS conversion menu
microchip8
18th March 2017, 22:57
ChangeLog for ffxvid 1.0.5
* Update audio compression level values
* Update colorspace entry for NTSC video
* Fixed bug in the video_colorspace_func() values
microchip8
13th May 2017, 19:11
ChangeLog for ffxvid 1.0.7
* Support accurate rounding for the software scalers
* Support full chroma interpolation for the software scalers
* Use the flags option of the scale option instead of -sws_flags to set scaler and its options
* Bugfix: software scaler code missing
microchip8
14th May 2017, 10:33
ChangeLog for ffxvid 1.0.8
* Bugfix in the software scale code. Use an if conditional to check for an y/n answer
microchip8
16th May 2017, 09:50
ChangeLog for ffxvid 1.0.9
* Added support for FFmpeg's internal Opus audio encoder
microchip8
1st June 2017, 13:02
ChangeLog for ffxvid 1.1.0
* Simplify the scale variable a bit
* Support SMPTE170M colorspace conversion
microchip8
4th June 2017, 22:40
ChangeLog for ffxvid 1.1.1
* Match software scaler options in config file with the ones inside the script. $SCALER in config file now takes a value between 0 and 9
* Do some basic checking of scaler option when it's set in the config file
microchip8
5th June 2017, 04:51
ChangeLog for ffxvid 1.1.2
* Remove redundant software scaler warning and exit in the sws_func() function for the config file
* Added support for the experimental software scaler
* Added support for software scaler tuning where applicable
* Removed additional encoder info on max audio channels support
microchip8
8th June 2017, 15:44
ChangeLog for ffxvid 1.1.3
* Report software scaler set in the config file
* Merge the bicubic and spline scaler tuning code
* Mention for the Lanczos scaler that the scaler tuning value is the filter length and not sharpness
microchip8
9th June 2017, 09:46
ChangeLog for ffxvid 1.1.4
* New function, video_chars_func(), to detect and display video characteristics like color range/space/transfer/primaries
* Detect and display video resolution if video scaling is enabled
* Detect and display pixel format
microchip8
10th June 2017, 08:51
ChangeLog for ffxvid 1.1.5
* Replace numbers in array variable char of the video_chars_func() function with the ones from the for loop
* Pipe the ffprobe string to tail -1 to work around issues with some problematic files
* Some small improvements to the video_colorspace_func() function
microchip8
13th June 2017, 00:57
ChangeLog for ffxvid 1.1.6
* Bugfix in the video_colorspace_func() function. Wrong value used for the ispace option of the filter. Must be bt2020ncl instead of just bt2020
microchip8
14th June 2017, 13:11
ChangeLog for ffxvid 1.1.7
* Make software scaler tweaking optional
* Added support for the unsharp filter for sharpen/blur
* Use a colon symbol as separation for input/output color range in the video_colorspace_func() function as to be consistent with the other options. Also set the default to tv:tv
microchip8
20th July 2017, 19:45
ChangeLog for ffxvid 1.1.8
* Bugfix: use realpath instead of readlink for the OUTPUT var when running in batch mode. Fixes the issue where readlink will follow the full path in case the input is a symlink which may result of encoding files we were not asked to
* Don't print cropped resolution during runtime if batch mode is selected
* Remove check for realpath. It is now required and not optional
microchip8
23rd August 2017, 10:50
ChangeLog for ffxvid 1.1.9
* Support full chroma input for the software scaler
microchip8
29th September 2017, 16:42
ChangeLog for ffxvid 1.2.0
* Support setting the output video aspect ratio
microchip8
22nd October 2017, 18:32
ChangeLog for ffxvid 1.2.1
* Support dialog level normalization for AC3/EAC3 audio
microchip8
26th December 2017, 08:19
ChangeLog for ffxvid 1.2.2
* Initial support for HDR to SDR conversions. Requires FFmpeg to be compiled with the zimg library as it needs the zscale filter https://github.com/sekrit-twc/zimg
microchip8
27th December 2017, 15:05
ChangeLog for ffxvid 1.2.3
* Renamed array variable CHARS to VCHARS in the video_chars_func() function
* Report pixel format in the video_chars_func() function
* Use -v quiet instead of -v error log level for ffprobe
* Cosmetics
microchip8
2nd January 2018, 00:06
ChangeLog for ffxvid 1.2.4
* Reworked the video_chars_func() function and added reporting of video bit depth
* Initial support for audio codec metadata when doing audio copy
* Increased default E-AC-3 audio bitrate from 768 to 960 kbps
* Set dialnorm for AC-3/E-AC-3 to its FFmpeg default (-31)
* Use a desat value of 2.5 for the tonemap filter when doing HDR to SDR conversions
* Don't use pix_fmts in the format filter. It is not really needed
* Removed 12-bit options from the video_pixfmt_func() function
* Cosmetics
microchip8
4th January 2018, 22:42
ChangeLog for ffxvid 1.2.5
* Don't hardcode the desaturation strength of the tonemap filter but let is be an option
* Removed the matrix and primaries options in the zscale filter as it leads to over-saturation of colors
* Support tweaking the tonemap algorithms for HDR to SDR conversion
* Support applying color saturation correction when doing an HDR to SDR conversion
* Added bt2020-12 to the list of transfers when doing color characteristics copy
* Added HDR_to_SDR_instructions.txt file to the package
microchip8
9th January 2018, 21:43
ChangeLog for ffxvid 1.2.6
* Moved the eq filter to almost the end of the video filter chain as it can lead to banding in certain cases in case the filter is in front of most other ones
* If the eq filter is used, also insert the format one after it if a pixel format has been chosen
* Fixed a possible devision by 0 that may occur when one copies audio and the bitrate for metadata is reported as N/A by ffprobe
microchip8
20th February 2018, 12:52
ChangeLog for ffxvid 1.2.7
* Fixed an issue where in some cases write-testing the output directory will fail due usage of readlink -f instead of readlink -m
* Update transfer chars to support latest changes to zimg from git
microchip8
26th February 2018, 21:51
ChangeLog for ffxvid 1.2.8
* Set the eq saturation default value to 1.0 (same as filter default)
* Add the colorspace and colormatrix filters when doing an HDR to SDR conversion
* Lower tonemap desat strength to 2.8
* Support white point adaptation for HDR to SDR
* Moved the colorspace filter after the scale one
* Moved the pixel format filter near the end of the filter chain
microchip8
14th June 2019, 19:42
ChangeLog for ffxvid 1.2.9
* Added support for the bm3d denoise filter
microchip8
23rd July 2019, 12:23
ChangeLog for version 1.3.0
* Added support for crop preview using MPlayer when autocrop is enabled in the config file. This was ported over from my h264enc script
microchip8
21st August 2019, 15:38
ChangeLog for ffxvid 1.3.1
* Add audio sample rate to the audio metadata
microchip8
29th August 2019, 08:53
ChangeLog for ffxvid 1.3.2
* Use a comma instead of a dash for the audio sample rate metadata
microchip8
5th September 2019, 04:33
ChangeLog for ffxvid 1.3.3
* Code optimization in the audio sample rate metadata
microchip8
13th September 2019, 15:13
ChangeLog for ffxvid 1.3.4
* Add audio channel metadata when using audio copy
microchip8
18th September 2019, 09:01
ChangeLog for ffxvid 1.3.5
* Improvements to the audio copy metadata
microchip8
19th September 2019, 05:00
ChangeLog for ffxvid 1.3.6
* Support encoding to WMAv1 and WMAv2 audio
* Update high bit depth pixel formats options
* Add WMAv1 and WMAv2 audio detection metadata when doing audio copy
microchip8
21st September 2019, 06:33
ChangeLog for ffxvid 1.3.7
* Add side channel info to the audio metadata
microchip8
22nd September 2019, 05:54
ChangeLog for ffxvid 1.3.8
* For audio stream copy, in case ffprobe reports channels layout as unknown, try to guess the amount of channels based on channel detection and use that as metadata
* Set Mobisu transform as default for HDR to SDR
* Updated the man page
microchip8
25th September 2019, 07:26
ChangeLog for ffxvid 1.3.9
* Use the audindex[i] variable for audio metadata during audio copy
* Don't use audio metadata when using audio copy and running in batch mode
* Updated default audio bitrates for some codecs
microchip8
25th September 2019, 15:06
ChangeLog for ffxvid 1.4.0
* Revert using audindex[i] var for audio metadata during copy
microchip8
11th October 2019, 11:28
ChangeLog for ffxvid 1.4.1
* Support hardcoding external or embedded subtitles. Requires libass support in FFmpeg
* Fixed a typo in the subtitles code
microchip8
13th October 2019, 06:39
ChangeLog for ffxvid 1.4.2
* Use readlink -e and realpath -e where needed
* Cosmetics
microchip8
14th October 2019, 15:35
ChangeLog for ffxvid 1.4.3
* Support scanning for multiple video tracks in the input file
microchip8
15th October 2019, 05:00
ChangeLog for ffxvid 1.4.4
* Bugfix: use correct video mapping for crop detection
microchip8
16th October 2019, 06:24
ChangeLog for ffxvid 1.4.5
* Support the fftdnoiz denoise filter
microchip8
17th October 2019, 06:42
ChangeLog for ffxvid 1.4.6
* Support the WMV container format
microchip8
18th October 2019, 06:02
ChangeLog for ffxvid 1.4.7
* Bugfix: use correct video track for crop preview with MPlayer
* Bugfix: missing ;; in the additional container formats code
* Renamed variable SCAN_MULTIPLE_VID_TRACKS to SCAN_MULTI_VID_TRACKS
* Some reordering in the config file
* Set Catmull-Rom as default Bicubic/Spline tuning
* Add LPCM detection for audio copy
* Support the mp4/m4v containers
* Add support for cover art for the mp4/m4v/mov containers. Requires MP4Box from GPAC
* Some code optimization
microchip8
19th October 2019, 08:20
ChangeLog for ffxvid 1.4.8
* Use atomicparsley to add cover art for the mp4/m4v containers. This removes dependence on MP4Box and makes it possible to copy over metadata info in an easy way
* Add +frag_keyframe to the -movflags option when output is mp4
* Renamed variable METACOVER to MKVCOVER
* Updated the man page
microchip8
20th October 2019, 05:44
ChangeLog for ffxvid 1.4.9
* Added support for embedding of SRT/SSA/ASS subtitles in the MP4/M4V containers
* Moved back to MP4Box for adding cover art to MP4/M4V/MOV. Apparently, after lots of testing, atomicparsley creates files that hang during playback
* Cosmetics
* Updated the man page
microchip8
21st October 2019, 04:42
ChangeLog for ffxvid 1.5.0
* Add support for verbose logging to a log file
* Bugfix: -map_metadata and -map_chapters where not set to 0 when the respective options in the config file were set to "y"
microchip8
21st October 2019, 09:48
ChangeLog for ffxvid 1.5.1
* Renamed variables $MDATA and $CHPS to $METADATA and $CHAPS
* Add $METADATA and $CHAPS to the remuxing code
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.