家宴待客菜谱湘菜做法视频

作者:本站原创 -
家宴待客菜谱湘菜做法视频

标签


1. 湘菜菜谱


2. 配方


```
// 湘菜常用的调料有豆瓣酱、辣椒、姜蒜、料酒、生抽、醋等
const调料 = ['豆瓣酱', '辣椒', '姜蒜', '料酒', '生抽', '醋'];
// 准备食材
const食材 = [
{
name: '猪肉',
weight: 500,
quantity: 10,
methods: ['炖']
},
{
name: '花生',
weight: 100,
quantity: 10,
methods: ['炸']
},
{
name: '辣椒',
weight: 50,
quantity: 2,
methods: ['剁椒']
},
{
name: '豆腐',
weight: 200,
quantity: 5,
methods: ['煮']
},
];
// 制作步骤
function prepare() {
// 准备食材
for (let i = 0; i < 食材.length; i++) {
const item = 食材[i];
if (item.methods.includes('炖')) {
item.methods.forEach((method) => {
const data = {
name: item.name,
weight: item.weight,
quantity: item.quantity,
methods: method
};
const result = 厨房工具(data);
if (result) {
result.run();
}
});
}
if (item.methods.includes('炸')) {
item.methods.forEach((method) => {
const data = {
name: item.name,
weight: item.weight,
quantity: item.quantity,
methods: method
};
const result = 厨房工具(data);
if (result) {
result.run();
}
});
}
if (item.methods.includes('煮')) {
item.methods.forEach((method) => {
const data = {
name: item.name,
weight: item.weight,
quantity: item.quantity,
methods: method
};
const result = 厨房工具(data);
if (result) {
result.run();
}
});
}
}
}
// 烹饪步骤
function cooking() {
// 开始烹饪
for (let i = 0; i < 食材.length; i++) {
const item = 食材[i];
if (item.methods.includes('炖')) {
const data = {
name: item.name,
weight: item.weight,
quantity: item.quantity,
methods: item.methods
};
厨房工具(data).run();
}
if (item.methods.includes('炸')) {
const data = {
name: item.name,
weight: item.weight,
quantity: item.quantity,
methods: item.methods
};
厨房工具(data).run();
}
if (item.methods.includes('煮')) {
const data = {
name: item.name,
weight: item.weight,
quantity: item.quantity,
methods: item.methods
};
厨房工具(data).run();
}
}
}
// 视频制作流程
function makevideo() {
// 获取视频素材
const video = new video();
const audio = new audio();
const scene = new scene();
const track = new track();
const fps = 30;
const bitrate = 128000;
// 添加视频素材
for (let i = 0; i < 10; i++) {
const videoUrl = `https://example.com/video-%d.mp4`;
const videoData = new videoData(videoUrl);
const videoFrame = videoData.getFrame(i);
const videoTrack = audio.createTrack(audio.src);
const trackNum = 0;
const trackUrl = `https://example.com/audio-%d.mp3`;
const trackData = new audioData(trackUrl);
const trackFrame = trackData.getFrame(i);
const trackAudio = new audio();
const trackNum = 0;
video.addTrack(audio);
video.addTrack(track);
video.addTrack(trackAudio);
video.addTrack(trackFrame);
// 添加场景
const sceneUrl = `https://example.com/scene-%d.jpg`;
const sceneData = new imageData(sceneUrl);
const sceneFrame = sceneData.getFrame(i);
const sceneDataUrl = `https://example.com/scene-%d.jpg`;
const sceneData = new imageData(sceneDataUrl);
scene.addFrame(sceneFrame);
scene.addFrame(sceneData);
// 添加音频
const trackUrl = `https://example.com/audio-%d.mp3`;
const trackData = new audioData(trackUrl);
const trackFrame = trackData.getFrame(i);
const trackDataUrl = `https://example.com/audio-%d.mp3`;
const trackData = new audioData(trackDataUrl);
const trackFrame = trackData.getFrame(i);
track.addFrame(trackFrame);
track.addFrame(trackData);
// 输出视频
video.play();
audio.play();
scene.play();
// 生成视频文件
const videoPath = `/video/%d.mp4`;
const videoDataUrl = `/video/%d.jpg`;
const videoUrl = `/video/%d.mp4`;
video.writeVideo(videoPath, videoDataUrl, fps, bitrate);
video.writeVideo(videoPath, videoDataUrl, fps, bitrate);
video.writeVideo(videoPath, videoDataUrl, fps, bitrate);
// 发送视频文件
const videoStream = video.getStream();
videoStream.writeData(videoPath, audio.src);
videoStream.writeData(videoPath, audio.src);
videoStream.writeData(videoPath, audio.src);
videoStream.writeData(videoPath, audio.src);
videoStream.writeData(videoPath, audio.src);
videoStream.close();
// 发布视频
const audioUrl = `/audio/%d.mp3`;
const videoUrl = `/video/%d.mp4`;
const videoDataUrl = `/video/%d.jpg`;
const fileName = `/video/%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%

相关推荐: