Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
ffmpeg encoding run a shell command
11 octobre 2013, par user1503606How do i run this file
infile ="video.avi" tmpfile="video_tmp.mp4" outfile="video.mp4" options="-vcodec libx264 -b 512k -flags +loop+mv4 -cmp 256 \ -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 \ -me_method hex -subq 7 -trellis 1 -refs 5 -bf 3 \ -flags2 +bpyramid+wpred+mixed_refs+dct8x8 -coder 1 -me_range 16 \ -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10\ -qmax 51 -qdiff 4" ffmpeg -y -i "$infile" -an -pass 1 -threads 2 $options "$tmpfile" ffmpeg -y -i "$infile" -acodec libfaac -ar 44100 -ab 96k -pass 2 -threads 2 $options "$tmpfile" qt-faststart "$tmpfile" "$outfile"
Taken from here https://gist.github.com/vadimii/4621929
Shell commands is well out of my scope any help would be appreciated thanks
-
FFMPEG on Fedora but PHP Compilation confliction
11 octobre 2013, par UMII have running Xampp with PHP5.5 on Fedora from Apache Friend, with default settings what the installer package do on Linux.
When I install FFMPEG successfully and try to load from php.ini it always says:
*
11-Oct-2013 14:05:51 Europe/Berlin] PHP Warning: PHP Startup: ffmpeg: Unable to initialize module Module compiled with module API=20060613 PHP compiled with module API=20121212 These options need to match in Unknown on line 0
*
The only thing which is confusing me is that when I did phpize even that I already installed xampp server which means I have PHP running. FFMPEG phpize did not work and I had to install php-devel. Does that mean that FFMPEG is configured with PHP, other than the installed with XAMPP? I am not sure what is happening. Whatever I do I always receive this error message in php_error_log file.
It is amazing :) that I just run below command to see what version of PHP is, I have and below are the results which are shocking one because I am in a feeling that I have PHP 5.5 installed and running from XAMMP.
[root@localhost ~]# php -v PHP 5.2.6 (cli) (built: May 8 2008 08:53:44) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
How can I get this covered that if I simple install XAMPP server on linux and want to install and configure FFMPEG along with?
-
Configure ffmpeg for wowza and wp8
11 octobre 2013, par Anton ShakaloI have mp4 file from my windows phone.
There is info:
General Format : MPEG-4 Format profile : Base Media / Version 2 Codec ID : mp42 Video Format : AVC Codec ID : avc1 Codec ID/Info : Advanced Video Coding Audio Format : AAC Format profile : LC Codec ID : 40 Bit rate : 96.0 Kbps Sampling rate : 44.1 KHz
When I stream it to wowza with next ffmpeg command ( I got it from documentation)
ffmpeg -re -i "C:\sample2.mp4" -vcodec libx264 -vb 150000 -g 60 -vprofile main -level 2.1 -acodec aac -ab 64000 -ar 48000 -ac 2 -vbsf h264_mp4toannexb -f mpegts udp://127.0.0.1:10001?pkt_size=1316
In client app I see corrupted video: http://i.imgur.com/fKEMlsB.png
With sample file provided by wowza streamed video looks fine.
There is info about sample file from wowza:
General Format : MPEG-4 Format profile : QuickTime Codec ID : qt Video Format : AVC Format profile : Baseline@L3.0 Codec ID : avc1 Audio Format : AAC Format profile : LC Codec ID : 40
Can you help me with ffmpeg configuring? I read documentation, but understand nothing.
-
Apply video effects
11 octobre 2013, par ishan jainI am creating an application, in which I have to give the option to apply different effects (normal, sepia, black & white, vintage, HD) to the VIDEO. I am creating this application for android version 2.3 . I am thinking of following the flow video -> convert to image frames -> apply effect to frames using some library -> convert frames to video.
Can anyone help me that if above flow is correct or not? And which library I can use for applying effects to the frames or is there any other way to apply the effects to the video?
Thanks
-
Ffmpeg segmenting syntax [migrated]
10 octobre 2013, par user2868579I'm trying to use ffmpeg to break long video files (circa 60mins) with the following requirements: 30sec chunks (fairly exact chunks, no frame loss between chunks) Transcoded to html 5 compatible video Filenames in time code format eg first chunk 00:00:00 second chunk 00:00:30 etc (it would be great if first chunk time could be specified by this would be the cherry on top!)
So far the closest working script I got was
ffmpeg -i VID_20130417_140328_555.mp4 -s 480x360 -map 0 -keyint_min 10 -vcodec libx264 -g 60 -vb 500000 -strict experimental -acodec libfaac -f ssegment -segment_list out.list out%03d.ts
This segments the file into the correct format but I can't control duration or naming.
Any help greatly appreciated.