Can ffmpeg convert audio to raw PCM? If so, how? [closed]
Give this a shot: ffmpeg -i input.flv -f s16le -acodec pcm_s16le output.raw You can get these options by running: ffmpeg -formats See https://trac.ffmpeg.org/wiki/audio%20types for details
Give this a shot: ffmpeg -i input.flv -f s16le -acodec pcm_s16le output.raw You can get these options by running: ffmpeg -formats See https://trac.ffmpeg.org/wiki/audio%20types for details
I used these options to convert to the H.264/AAC .mp4 format for HTML5 playback (I think it may help other guys with this problem in some way): ffmpeg -i input.flv -vcodec mpeg4 -acodec aac output.mp4 UPDATE As @LordNeckbeard mentioned, the previous line will produce MPEG-4 Part 2 (back in 2012 that worked somehow, I don’t … Read more
It’s giving an error because FFmpeg requires that an output file be specified. Using it just to get information about a file isn’t its intended use. Option 1: Ignore the error. FFmpeg prints the file information first, so you can simply get the information you need and ignore the error. Option 2: Use ffprobe instead. … Read more
Try try add this option at the end of your video options to increase the queue size: -max_muxing_queue_size 1024 This worked for me, but you may need a higher value like 2048 or even 4096. I found out about this here: https://discussion.mcebuddy2x.com/t/ffmpeg-bug-too-many-packets-buffered-for-output-stream/1148
If you just want to change the metadata such that mediaplayers that consider the flag play the file rotated, try something like: ffmpeg -i input.mp4 -c copy -metadata:s:v:0 rotate=90 output.mp4 as found elsewhere on stackoverflow.
You can save the global metadata to a text file using the -f ffmetadata option as follows: ffmpeg -i in.mp4 -f ffmetadata in.txt If you also need metadata from the video and audio streams (for example if the global metadata does not contain the creation time) use: ffmpeg -i in.mp4 -c copy -map_metadata 0 -map_metadata:s:v … Read more
Your command is completely incorrect. The output format is not rawvideo and you don’t need the bitstream filter h264_mp4toannexb which is used when you want to convert the h264 contained in an mp4 to the Annex B format used by MPEG-TS for example. What you want to use instead is the aac_adtstoasc for the AAC … Read more
With re-encoding: ffmpeg -y -i seeing_noaudio.mp4 -vf “setpts=1.25*PTS” -r 24 seeing.mp4 Without re-encoding: First step – extract video to raw bitstream ffmpeg -y -i seeing_noaudio.mp4 -c copy -f h264 seeing_noaudio.h264 Remux with new framerate ffmpeg -y -r 24 -i seeing_noaudio.h264 -c copy seeing.mp4
The ffmpeg wiki links back to this page in reference to “How to split video efficiently”. I’m not convinced this page answers that question, so I did as @AlcubierreDrive suggested… echo “Two commands” time ffmpeg -v quiet -y -i input.ts -vcodec copy -acodec copy -ss 00:00:00 -t 00:30:00 -sn test1.mkv time ffmpeg -v quiet -y … Read more
Use the drawtext filter for simple text on video. If you need more complex timing, formatting, or dynamic text see the subtitles filter. This answer focuses on the drawtext filter. Example Print Stack Overflow in white text onto center of video, with black background box of 50% opacity: ffmpeg -i input.mp4 -vf “drawtext=fontfile=/path/to/font.ttf:text=”Stack Overflow”:fontcolor=white:fontsize=24:box=1:boxcolor=black@0.5:boxborderw=5:x=(w-text_w)/2:y=(h-text_h)/2″ -codec:a … Read more