class EL_VIDEO_TO_MP3_COMMAND_IMP

(source code)

Client examples: OS_COMMAND_AUTOTEST_APP

description

Implementation of EL_VIDEO_TO_MP3_COMMAND_I interface Does AAC -> MP3 audio conversion

notes

Before 2015-10-21 was using piped command:

-f wav - | lame --silent --id3v2-only --tt "Title" -h -b ${bit_rate} - $output_file_path

This was to prevent a problem of incorrect durations being reported in some media players (Neutron MP). A ID3 2.3 title is added to ensure a skelton ID3 header is in place.

note
	description: "[
		Implementation of ${EL_VIDEO_TO_MP3_COMMAND_I} interface
		Does AAC -> MP3 audio conversion
	]"
	notes: "[
		Before 2015-10-21 was using piped command:
		
			-f wav - | lame --silent --id3v2-only --tt "Title" -h -b ${bit_rate} - $output_file_path
			
		This was to prevent a problem of incorrect durations being reported in some
		media players (Neutron MP). A ID3 2.3 title is added to ensure a skelton ID3 header is in place.
	]"

	author: "Finnian Reilly"
	copyright: "Copyright (c) 2001-2022 Finnian Reilly"
	contact: "finnian at eiffel hyphen loop dot com"

	license: "MIT license (See: en.wikipedia.org/wiki/MIT_License)"
	date: "2024-01-20 19:18:26 GMT (Saturday 20th January 2024)"
	revision: "8"

class
	EL_VIDEO_TO_MP3_COMMAND_IMP

inherit
	EL_VIDEO_TO_MP3_COMMAND_I
		export
			{NONE} all
		end

	EL_OS_COMMAND_IMP

create
	make

feature {NONE} -- Constants

	Template: STRING = "[
		$command_name -v quiet -i $input_file_path
		#if $has_offset_time then
			-ss $offset_time
		#end
		#if $has_duration then
			-t ${duration}
		#end
		-ab ${bit_rate}k -id3v2_version 4 $output_file_path
	]"

end