Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
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.
-
extracting h264 raw video stream from mp4 or flv with ffmpeg generate an invalid stream
10 octobre 2013, par neo2006I'm trying to extract the video stream from an mp4 or flv h264 video (youtube video) using ffmpeg. The original video (test.flv) play without trouble with ffplay , ffprobe gives an error as follow:
ffprobe version N-55515-gbbbd959 Copyright (c) 2007-2013 the FFmpeg developers built on Aug 13 2013 18:06:32 with gcc 4.7.3 (GCC) configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp eex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo- amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs -- enable-libxvid --enable-zlib libavutil 52. 42.100 / 52. 42.100 libavcodec 55. 27.100 / 55. 27.100 libavformat 55. 13.102 / 55. 13.102 libavdevice 55. 3.100 / 55. 3.100 libavfilter 3. 82.100 / 3. 82.100 libswscale 2. 4.100 / 2. 4.100 libswresample 0. 17.103 / 0. 17.103 libpostproc 52. 3.100 / 52. 3.100 [flv @ 000000000031ea80] Stream discovered after head already parsed Input #0, flv, from 'test.flv': Metadata: starttime : 0 totalduration : 142 totaldatarate : 692 bytelength : 12286492 canseekontime : true sourcedata : B42B95507HH1381414522145462 purl : pmsg : Duration: 00:02:22.02, start: 0.000000, bitrate: 692 kb/s Stream #0:0: Video: h264 (Main), yuv420p, 640x268, 568 kb/s, 23.98 tbr, 1k t bn, 47.95 tbc Stream #0:1: Audio: aac, 44100 Hz, stereo, fltp, 131 kb/s Stream #0:2: Data: none Unsupported codec with id 0 for input stream 2
to get rid of the extra streams ( I only needs the video) I used the following ffmpeg command line:
ffmpeg -i test.flv -map 0:0 -vcodec copy -an -f h264 test.h264
The new stream is unreadable by any player including ffplay and gives an error with ffprobe : test.h264: Invalid data found when processing inputq= 0B f=0/0
Any body have an idea about what am I doing wrong?
I also tried simpler youtube command line:
ffmpeg -i test.flv -vcodec copy -an test.h264
if I use another format (avi for example):
ffmpeg -i test.flv -vcodec copy -an test.avi
the output video is valid.
If I transcode the video
ffmpeg -i test.flv -an test.h264
the output is also valid
Any suggestions?
-
How to get video thumbnail in PHP ? [on hold]
10 octobre 2013, par assafI am trying to get a thumbnail from an uploaded videos to my site, but I don't really know how to do this.
I read that FFMPEG is the tool for this kind of actions, but I didn't understand how do I use this tool, is this a plugin? Do I need to install it?
I really need help here and the detailed kind, thanks!