Michael Rampe
Forum Replies Created
-
[Jeff Thompson] “I’ve had great success in the past in Final Cut using PhotoJPEG (not supported by my installation of ffmpeg)”
This is supported by the mjpeg codec which is the same as Photojpeg for all intents and purposes.
Check out this post from a while ago:
https://forums.creativecow.net/readpost/291/143Michael
-
I use FFprobe (a tool included with FFmpeg) for this task.
It has just been updated recently to include the all important show_frames option in the trunk.
Check it out (the recent GIT or 0.10 release) and let me know….
Michael
-
I use SoX for this operation.
https://sox.sourceforge.net/A command like:
$ sox $INPUT -n stats 2> stats.txt…will give you a lot of useful data. I found that you get quite inaccurate results on some recordings due to subsonic non-vocal frequencies.
You can also use SoX to filter these out such as:
$ sox $INPUT -n -D highpass 100 stats 2> stats.txtLet me know if this helps.
Michael
-
Michael Rampe
September 30, 2011 at 2:16 am in reply to: Mux 3gp audio file with jpg image to create video clip[C David Young] “The audio sounds ok but the image is missing.”
You need the -map command for two inputs.
Michael
-
Michael Rampe
September 30, 2011 at 2:14 am in reply to: Mux 3gp audio file with jpg image to create video clip[C David Young] “ERROR: libfaac not found”
You need to install libfaac first:
https://www.audiocoding.com/faac.htmlAnd while you are at it, you might as well install x264 and mp3lame as well for flexibility.
Michael
-
[Yair Ben] “(admin: please ignore the previous post)”
Not sure what this means… You want me to ignore my own post? 😉
[Yair Ben] “But my input is a stream, not a video file.”
This is well documented.
Try to remove the startpts filters or investigate the split filter if the filter chain I suggested does not work for a live stream.
Michael
-
Michael Rampe
September 29, 2011 at 5:35 am in reply to: Mux 3gp audio file with jpg image to create video clipHaven’t dealt with your input codec before but:
[C David Young] “Error while opening encoder for output stream #0.0 – maybe incorrect parameters such as bit_rate, rate, width or height”
you need to set these parameters…
here are some examples:
bitrate: -ab 128k
rate: -ar 48k
channels: -ac 2Also, by specifying aac as the encoder, you are using the experimental aac encoder. I would recommend installing libfaac and recompiling FFmpeg with –enable-libfaac. The you would specify -acodec libfaac.
Michael
-
Michael Rampe
September 29, 2011 at 2:02 am in reply to: Mux 3gp audio file with jpg image to create video clip[C David Young] “Stream #1.0: Audio: amr_nb (samr / 0x726D6173), 8000 Hz, 1 channels, flt, 12 kb/s”
It looks like the -acodec copy that is giving you grief in the .mp4 container. Try aac (libfaac) or mp3 (libmp3lame) instead.
Michael
-
[Yair Ben] “For example, consider having a 1000px wide stream, and you want to output only from pixels 1 to 200, then 400 to 600, and 800 to 1000 as a solid single stream (600px wide).”
OK. The best thing for this is to use the avfiltering pipeline. I did some work and got this to give your result (one way out of several):
$ ffmpeg -i 1000wide.mpg -sameq -vf
“movie=1000wide.mpg,setpts=PTS-STARTPTS,crop=200:in_h:400:0[T1];
movie=1000wide.mpg,setpts=PTS-STARTPTS,crop=200:in_h:800:0[T2];
[in]setpts=PTS-STARTPTS,crop=200:in_h:0:0,pad=600:in_h:0:0,
[T1]overlay=200:0,[T2]overlay=400:0[out]”
output.mpgBasically,
1. create an duplicate input and crop to the centre 200 pixels
2. create a second duplicate input and crop to the right 200 pixels
3. Take the input, crop to the left 200 pixels, pad 400 pixels of black to the right, overlay the two duplicates.[Yair Ben] “We have a 360 panoramic camera video stream input, and we need to crop the stream and output the cropped live-stream.”
Not sure how this will perform for a live stream…..;-) (probably have issues with the PTS settings above and might be slower than realtime which will also cause headaches)
Let me know.
Michael
-
can you post the terminal output from one of the times it fails?
Michael