Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Insert Video Background Looping With FFMPEG
10 février 2017, par userrrrrrrI have 2 videos: 1. bg.avi, length 30sec 2. main.avi, length 60sec
I'm trying to make bg.avi as my video background. I've try this https://www.youtube.com/watch?v=Yph83IzlHcE but it doesn't work.It says "failed to avformat_open_input"
Any ideas? Thank you
-
FFMPEG command works in shell, but not in node.js
10 février 2017, par moeiscoolWhen my ffmpeg command is built by my node.js application it does not run. it says
Output file #0 does not contain any stream
but if i copy and paste that line into terminal it works fine. Any ideas?
ffmpeg -loglevel warning -i rtsp://50.73.56.89/axis-media/media.3gp -stimeout 2000 -r 5 -movflags frag_keyframe+empty_moov -s 640x480 -use_wallclock_as_timestamps 1 -q:v 1 -f segment -segment_time 3600000 -segment_format webm -c:v libvpx -strftime 1 '/home/nodejs/cloudcam/videos/2Df5hBE/bunny/%Y-%m-%dT%H-%M-%S.webm'
note the single quotes wrapping the filename. I tried using double quotes but it did the same thing. I need the quotes for the particular app i am building. Some names are not space friendly.
-
Converting From 4-bit RAW Audio to WAV (or another output format)
10 février 2017, par HaravikkOkay, so I've got some .raw files from an old game (Zork Nemesis) and determined that they're audio files, however I'm having trouble converting them into something meaningful.
With a bit of trial and error in Audacity I've found that I can listen to a still noisy version of the audio using raw file input settings of 8-bit signed PCM in stereo with a sample rate of 22050hz. However, my suspicion is that the files may in fact be encoded in 4-bits with a sample rate of 44100hz, but I'm having trouble finding a tool that can handle this.
What I'm looking for is either a tool that can handle 4-bit raw formats, or even a tool that can determine (or guess at) the format of a given .raw file, so I know for sure what I'm dealing with (as I'm just going by trial and error so far).
I've tried
sox
, but I'm most likely doing something wrong as it complains of an unsupported size:sox -r 44100 -e signed -b 4 -c 2 in.raw out.wav
I was also going to try
ffmpeg
, but I can't find the appropriate format/codec to set.In case it gives any further clues; I've tried various combinations of settings, increasing sample size while decreasing sample rate increases the (white-)noise, and even 8-bit is still noisy, which is why I'm thinking 4-bit. I've tried signed and unsigned, which strangely doesn't seem to make much of a difference
-
Imagick Montage FFMPEg max tile
10 février 2017, par OSAMA BIN BUSH$num_cols = 4;
"montage '$spriteOutput"."-tmpspriteimg*.jpg' -tile ".$num_cols."x -geometry ".$_160px."x '$spriteOutput"."-MNM.jpg' 2>&1"
i am creating a montage of images
'$spriteOutput"."-tmpspriteimg*.jpg'
using montage.What i want is join all those images in grid of
4xm
wherem <= 4
The problem is
- if i use
-tile 4x4
and i have2 images
i get extra 3 rows which is waste of size. - If i use
-tile 4x
and i have more than 16 images number of rows i.e m increases more than 4 .
How can i fix this ?
- if i use
-
Streaming - How do you re-encode (fps, bit rate, codec) a live stream (e:g twitch/youtube) to another live stream ? [on hold]
10 février 2017, par shayanFor example I could receive a twitch 720p/60fps stream and encode it down to 360p/60fps for live viewing(hls preferably). I have used
ffmpeg
andyoutube-dl
for simple tasks but i don't know how I can achieve this.