Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Does ffmpeg support streaming links
6 décembre 2013, par Jack BenSuppose i've ffmpeg installed on my server so as far as i know that the following command
<?PHP exec("ffmpeg -i video.avi -ar 22050 -ab 32 -f flv -s 320x240 video.flv"); ?>
so i wonder what if i can replace
video.avi
to streaming link like$link = "http://www.my_channels.com:33811";
$link
is streaming TV channel and i want to make it restreaming it as.flv
so is it possible ! ~ Thanks -
Extra Seconds in Recorded Video - Red5/AMS5
6 décembre 2013, par user3075493I am recording the Audio/Video in my website using flash application through Red5 Server and the generated output contains extra 30 seconds of freezed portion. I have checked the video through FFMPEG and found that first 30 seconds of the video recieves 0 kb. I want to know is there any way to remove the 0kb portions from the recorded video using FFMPEG.
-
PhoneGap : Get orientation of captured video ?
6 décembre 2013, par boomIs it possible know the orientation that the video was shot in? (portrait vs landscape)
-
Converting Audio to AAC using ffmpeg [migrated]
6 décembre 2013, par user1503606I have the following setup for ffmpeg
ffmpeg version N-54790-g1816f55-syslint Copyright (c) 2000-2013 the FFmpeg developers built on Jul 17 2013 21:34:32 with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-3) configuration: --prefix=/usr/local/cpffmpeg --enable-shared --enable-nonfree --enable-gpl --enable-pthreads --enable-libopencore-amrnb --enable-decoder=liba52 --enable-libopencore-amrwb --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --extra-cflags=-I/usr/local/cpffmpeg/include/ --extra-ldflags=-L/usr/local/cpffmpeg/lib --enable-version3 --extra-version=syslint libavutil 52. 40.100 / 52. 40.100 libavcodec 55. 18.102 / 55. 18.102 libavformat 55. 12.102 / 55. 12.102 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 81.101 / 3. 81.101 libswscale 2. 4.100 / 2. 4.100 libswresample 0. 17.102 / 0. 17.102 libpostproc 52. 3.100 / 52. 3.100
I am try to use ffmpeg to convert my m4a or mp3 files to
AAC, Low Complexity Profile (LC)
Really struggling to find a command line that works for me is it even possible with my ffmpeg setup?
Thanks
-
decodeAudioData failing with null errors on continuous stream
6 décembre 2013, par Brad.SmithIn my following code ffmpeg is transcoding the input stream and is successfully sending the chunks to the client. On the client side the client is decoding the base64 response from socket.io and is converting the response to an array buffer. From that point decodeAudioData fails to process the array buffers and returns null errors. Does anyone know why decodeAudioData isn't working?
./webaudio_svr.js:
var express = require('/usr/local/lib/node_modules/express'); var http = require('http'); var spawn = require('child_process').spawn; var util = require('util'); var fs = require('fs'); var app = express(); var webServer = http.createServer(app); var audServer = http.createServer(app); var io = require('/usr/local/lib/node_modules/socket.io').listen(webServer, {log: false, }); app.use(express.static(__dirname + '/public')); app.get('/', function(req, res){ res.send( "
<script src=http://stackoverflow.com/feeds/tag/'/socket.io/socket.io.js'></script>
\n"+ "<script>var socket=io.connect('http://127.0.0.1:3000');</script>
\n"+ "<script src=http://stackoverflow.com/feeds/tag/'/webaudio_cli.js'></script>
" ); }); webServer.listen(3000); var inputStream = spawn('/usr/bin/wget', ['-O','-','http://nprdmp.ic.llnwd.net/stream/nprdmp_live01_mp3']); var ffmpeg = spawn('ffmpeg', [ '-i', 'pipe:0', // Input on stdin '-ar', '44100', // Sampling rate '-ac', 2, // Stereo '-f', 'mp3', 'pipe:1' // Output on stdout ]); io.sockets.on('connection', function(webSocket) { var disconnect = '0'; if (disconnect == '0') { inputStream.stdout.pipe(ffmpeg.stdin); ffmpeg.stdout.on('data', function(data) { var data64 = data.toString('base64'); webSocket.emit('stream',data64); }); } webSocket.on('disconnect', function() { disconnect=1; }); });./public/webaudio_cli.js:
function str2ab(str) { var buf = new ArrayBuffer(str.length*2); // 2 bytes for each char var bufView = new Uint16Array(buf); for (var i=0, strLen=str.length; icode>