Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
ffmpeg joinnig videos in php linux
28 octobre 2013, par user2226181I am trying to add joining videos with no audio in ffmpeg php using linux operating system. My code is this:
cat output_1.mp4 output_2.mp4 output_3.mp4 output_4.mp4 > final.mp4
It is giving me an output of
final.mp4
in result but there is a problem in thefinal.mp4
there is only first video which isoutput_1.mp4
in final video, the other videos are not being concatenate. Please help me in this case.Thanks
-
ffmpeg after converting avi to mp4 need wait till video loads in flash player 100% otherwise video is buffering
28 octobre 2013, par Xenos TrojanowiczSo if fixed all issues with my ffmpeg journey now I just need that after converting videos they play in flash player instantly and no need to wait till video loeaded 100% I use:
if ($success_msg) { $tmp_parts = explode('.', $file['name']); $ext = array_pop($tmp_parts); $ext = strtolower($ext); if($ext == "avi" && $convert_avi == true) { $convert_source = _VIDEOS_DIR_PATH.$new_name; $conv_name = substr(md5($file['name'].rand(1,888)), 2, 10).".mp4"; $converted_file = _VIDEOS_DIR_PATH.$conv_name; $ffmpeg_command = 'ffmpeg -i '.$convert_source.' -acodec libfaac -vcodec libx264 -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 '.$converted_file; echo exec($ffmpeg_command); $sql = "UPDATE pm_temp SET url = '".$conv_name."' WHERE url = '".$new_name."' LIMIT 1"; $result = @mysql_query($sql); unlink($convert_source); } echo $success_msg; }
To convert videos
EDIT #1 ffmpeg concole output with faststart function:
root@1tb:~# ffmpeg -i sample.avi -movflags faststart -acodec libfaac -vcodec libx264 -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 consample.mp4 ffmpeg version 0.7.15, Copyright (c) 2000-2013 the FFmpeg developers built on Feb 22 2013 07:18:58 with gcc 4.4.5 configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libfreetype --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis libavutil 50. 43. 0 / 50. 43. 0 libavcodec 52.123. 0 / 52.123. 0 libavformat 52.111. 0 / 52.111. 0 libavdevice 52. 5. 0 / 52. 5. 0 libavfilter 1. 80. 0 / 1. 80. 0 libswscale 0. 14. 1 / 0. 14. 1 libpostproc 51. 2. 0 / 51. 2. 0 [mp3 @ 0x15389100] Header missing [mpeg4 @ 0x15386dc0] Invalid and inefficient vfw-avi packed B frames detected Input #0, avi, from 'sample.avi': Metadata: encoder : VirtualDubMod 1.5.10.2 (build 2540/release) Duration: 00:01:01.81, start: 0.000000, bitrate: 1194 kb/s Stream #0.0: Video: mpeg4, yuv420p, 640x352 [PAR 1:1 DAR 20:11], 23.98 tbr, 23.98 tbn, 23.98 tbc Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s [MOV/3GP/MP4/3G2 muxer @ 0x15386c80] [Eval @ 0x7ffffec71230] Undefined constant or missing '(' in 'faststart' [MOV/3GP/MP4/3G2 muxer @ 0x15386c80] Unable to parse option value "faststart" Invalid value 'movflags' for option 'faststart'
-
run ffmpeg commands from my own project
28 octobre 2013, par brunoI'm starting a project where I want ppl to upload videos of a talk and a the video of slides for that talk and want to merge them (to play at the same time) and then show results.
My question is: Is it possible to do that from code? if it is, can you point me to the right doc? I was able to do it running command line, but as I want this to run on a server with different ppl uploading their videos I think this would not be the best approach. I have a preference for Java if it's possible to do it, but I can manage to use other languages what do you guys suggest?
The idea would be to have a service where I can point the urls of the videos stored in my server and it would merge them and save file where I can later stream. With different ppl uploading videos at the same time and being able to watch the result in a reasonable amount of time.
I used this tutorial to test: https://trac.ffmpeg.org/wiki/Create%20a%20mosaic%20out%20of%20several%20input%20videos
Thanks for your time
-
how to pass arguments to existing process instance in c#
28 octobre 2013, par Akash LanghaniI am using ffmpeg and I have start a process and I want to pass an argument to same instance after its start, so how to do this in c sharp any resource. Basically I am using ffmpeg to recored desktop screen and ffmpeg recording can be stop with "q" word.
-
How to convert .flv video into .h264 format with FFmpeg ?
28 octobre 2013, par Shishir MudliyarI want to convert from
.flv
to.h264
format.Problem: I did a conversion from FLV to H264 format but my converted video (.h264) is running so fast (just like we'd click on a fast forward button).
I used the following command:
ffmpeg -i example.flv -sameq -vcodec libx264 -vpre default -ar 22050 output.h264