Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
pexpect.run() terminates before ending ffmpeg without finishing the conversion
24 novembre 2012, par DaviseinI'm working on a python script that does a custom conversion of videos via ffmpeg.
My problem is that the execution of ffmpeg stops suddenly after a bit of conversion (usually 3-4 mb out of 100mb) with a None exit code.
I'm using the pexpect library. Currently I do not check the progress but I will in a close future. It seems that I am right using pexpect regarding these questions FFMPEG and Pythons subprocess and Getting realtime output from ffmpeg to be used in progress bar (PyQt4, stdout). This is the command that I'm running (I have checked that it's exactly this one)
nice ffmpeg -i '/full/path' -s 640x360 -strict experimental -vcodec libx264 -f mp4 - coder 0 -bf 0 -refs 1 -flags2 -wpred-dct8x8 -level 30 -crf 26 -bufsize 4000k -maxrate 350k -preset medium -acodec libvo_aacenc -ar 48000.0 -ab 128K -threads 2 -y '/full/path/out'
I am using nice but I have tried also without it and the result ends up being the same.
I'm running pexpect this way:
output, exit = pexpect.run(self.command(), withexitstatus=True,\ logfile=logfile) print output print exit
Of course I have tried the same command on the command line and it works fine.
Any clue on what might be happening?
-
PHP Ffmpeg Join Audio files and video
24 novembre 2012, par George L.I am trying to use the code bellow to join an audio file in the 6th second of my input video file and export all into one new video file but it doesnt run.
<?php session_start(); $au = $_SESSION['mysound']; $ffmpeg = "/usr/local/bin/ffmpeg"; $videofile = "video/sample.mp4"; $outputfile = "upload/outputvideo.mp4"; //This folder has full permissions if (exec("-i $au -itsoffset 6 -i $videofile -acodec copy -vcodec copy $outputfile")){ echo "SUCCESS"; }else{ echo "FAILURE"; } ?>
Any help please?
-
live encoding/streaming with ffmpeg [migrated]
24 novembre 2012, par daveI'm using ffmpeg to encode large avi (or other) files to mp4, which are then saved to disk, then streamed in the browser using apache mod_h264.
The problem with this is that we have to wait until ffmpeg finishes encoding the mp4, which can take a long time. Ideally, we would be able to stream the video, while the encoding is being processed.
Is there a way to do this with ffmpeg/mod_h264 or is there a better solution to achieve this?
Thanks!
-
RTMP Streaming using ffserver
24 novembre 2012, par NadavRubI would like to be able to stream media content originated by eg. a file to a flash player using RTMP.
I have considered librtmp though it seems ffmpeg support rtmp more as a client than as a server, that is, it implement the push/pull models w/o a ~server~ model.
Having 'ffserver' in mind, Does it support RTMP in the above mentioned manner? is it possibe to expose H264/AAC content via RTMP using ffserver ?
Any help will B appreciated.
Nadav at Sophin
-
cut and encode 30 seconds video samples from a movie with xuggler
23 novembre 2012, par user1848294I would like cut three 30 seconds samples from movies at the begin of the movie at the middle and at the end.
Can I get the movie length with xuggler? How can I tell the xuggler to encode aa:bb to cc:dd then ee:ff to gg:hh etc.?