Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
How to generate fragmented mp4 files programmatically
9 mars 2017, par 方柏棟I have a media .h264 live streaming server, and want to mux .h264 frames to fragmented mp4 files. I am wondering does any library could support this?
As far as I know, ffmpeg.exe and Bento4 could support this, but I want to use a library to do that in my code, not executing another process.
To specify my point, I want to generate fragmented mp4 files, which could be achieved by executing ffmpeg.exe like below,
ffmpeg -i xx.h264 -vcodec copy -an -f mp4 -reset_timestamps 0 -movflags empty_moov+default_base_moof+frag_keyframe -loglevel quiet xxx.mp4"
I want to mux mp4 files in my code, not create another process to do it.
Thanks.
-
How to set position in pixel or percentage of water mark video using ffmpeg bottom left ?
9 mars 2017, par RemyaMy code is below
shell_exec('/usr/local/bin/ffmpeg -i uploads/videos/profile/'.$video.' -vf "movie=uploads/whatermark_logo.png [watermark]; [in][watermark] overlay=10:main_h-overlay_h-10 [out]" uploads/videos/profile/star_'.$video.' >/dev/null 2>&1 &');
-
embed m3u8 file in HTML5 page with no plugin support
9 mars 2017, par A4uI have used FFMPEG to convert .mp4 file to .m3u8 and .ts file , now i need to embed these video to another site which has no player plugin support (as we embed youtube videos). Is there any way to do it ..
-
How to convert all types (audio*) to mp3 ? Using FFMPEG
9 mars 2017, par Matheus MirandaIt is possible to convert all audio to mp3?
System.Diagnostics.Process proc = new System.Diagnostics.Process(); proc.EnableRaisingEvents = false; proc.StartInfo.FileName = @"""C:\ffmpeg\bin\ffmpeg.exe"""; proc.StartInfo.Arguments = "-i C:\\Matheus\\Matheus_Project\\Matheus_Project\\App_Data\\" + User.Identity.Name + "\\" + fileNameAndType + " -acodec libmp3lame -ab 128k C:\\Matheus\\Matheus_Project\\Matheus_Project\\App_Data\\" + User.Identity.Name + "\\" + fileName + ".mp3"; /* use /y to overwrite if there it exists already or will fail */ proc.StartInfo.UseShellExecute = false; proc.StartInfo.CreateNoWindow = false; proc.StartInfo.RedirectStandardOutput = true; proc.StartInfo.RedirectStandardError = true; proc.Start(); var output = proc.StandardOutput.ReadToEnd(); string output_error = proc.StandardError.ReadToEnd(); proc.WaitForExit(); proc.Close();
Example:
audio/x-m4a to mp3
audio/mp4 to mp3
audio/basic to mp3
audio/L24 to mp3
audio/mid to mp3
audio/x-aiff to mp3
audio/x-mpegurl to mp3
audio/vnd.rn-realaudio to mp3
audio/ogg to mp3
audio/vorbis to mp3
audio/vnd.wav to mp3
Any idea ?
-
Merge all .h264 files in directory in alphabetical order
9 mars 2017, par nicolashahnI have a camera that records in 5 second clips with filenames that are timestamps:
2017-03-08-09-54-27.334326-000000.h264 2017-03-08-09-54-27.334326-000001.h264 2017-03-08-09-54-27.334326-000002.h264 2017-03-08-09-54-27.334326-000003.h264 ...
What is the easiest way to merge these in order into one video file on OSX?