19:09
I have videos with 2 audio tracks. Track 1 is ac3 foreign and track 2 is flac English. I only want to transcode the English track 2. When I use ffmpg to map track 2 and transcode to aac the result is vorbis.
Here is my code:
"ffmpeg.exe" -i "U:\\infile.mkv" -map 0:v:0 -c:v:0 copy -map 0:a:1 -c:a:1 aac -ac:a:1 2 -b:a:1 192000 -map 0:s:0 -c:s copy "U:\\Outfile.mkv"
This is what happens:
Stream #0:0(eng): Video: h264 (High), yuv420p(tv, bt709/unknown/unknown, progressive), 1278x720 [SAR 1:1 DAR 71:40], 23.98 fps, 23.98 tbr, 1k tbn (default)
Stream #0:1(rus): Audio: (...)
22:54
I'm trying to draw a waveform from a raw audio file. I demuxed/decoded an audio file using FFmpeg and I have those informations: samples buffer, the size of the samples buffer, the duration of the audio file (in seconds), sample rate (44100, 48000, etc), sample size, sample format (uint8, int16, int32, float, double), and the raw audio data itself.
Digging on the Internet I found this algorithm (more here):
White Noise:
The Algorithm
All you need to do is randomize every sample from –amplitude to
amplitude. We don’t care (...)
09:34
I am trying to create a thumbnail using laravel and ffmpeg. But am getting this error.
Disk [videos] does not have a configured driver.
My code
public function index()
FFMpeg::fromDisk('videos')
->open('steve_howe.mp4')
->getFrameFromSeconds(10)
->export()
->toDisk('thumnails')
->save('FrameAt10sec.png');
// $videos = Videos::where('user_email', Auth::user()->email)->get();
// return view('instructor.videos')->with('videost', (...)