Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use FFMPEG to generate F4V videos?

I need to generate a script that converts videos to F4V's for use with Flash Media Server 4.5...is this possible? I have it converting files to MP4s and then swapping the extension. This works fine, but seems like a dirty work around. I'd prefer to use a generate a true F4V. I've heard mixed things on whether or not ffmpeg truly supports F4Vs. Any guidance would be appreciated. Also, is there a doc guide on what file formats are allowed by FFMPEG?

like image 877
James Raber Avatar asked Nov 05 '22 08:11

James Raber


1 Answers

Everything I've read suggests that there is little to no difference between MP4 and flattened F4V video. In my case, I'm stripping out the audio, remastering it and muxing it back with the original video. We're still on FMS 3.5, but I'm having success with the following:

ffmpeg \
  -r 30000/1001 \         # Specifying video fps (29.97)
  -i orig.f4v \           # orig.f4v - h264 video, mp3 audio (recorded using FMS 3.2)
  -i new.wav \            # new.wav - remastered audio from orig.f4v
  -map 0:0 \              
  -map 1:0 \
  -vcodec copy \          # Preserving original h264 encoded video
  -acodec aac \           # Using experimental AAC encoder, could use libfaac if available
  -ab 96k \               # Matching audio bitrate to original bitrate
  -strict experimental \  # Necessary to use the experimental AAC encoder
  -async 1 \              
   new.f4v

#List of available formats
ffmpeg -formats

#List of available codecs
ffmpeg -codecs
like image 58
chprpipr Avatar answered Nov 15 '22 12:11

chprpipr