Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
time stamping using ffmpeg for recording the live stream
6 septembre 2012, par user1650873I have a live video coming from multicast address 239.xxx.xxx.xxx port 5006 with 15 frames/s, i want to capture this video and time stamp current date and time, and save it in MPEG4(h.264) format using ffmpeg. since i am new to ffmpeg please help me in this matter.
-
why is streaming to an flv server with ffmpeg only showing black/blank video for clients ?
6 septembre 2012, par rogerdpackWhen I stream to an flv server, like flash media server, using ffmpeg, like
ffmpeg -i input -vcodec libx264 rtmp://hostname/streamname
it turns out black. Why is that?
-
Getting FFProbe Information With Python
5 septembre 2012, par Robin HoodI've been attempting to figure this out for forever now (I'm new to programming) and I can't figure it out.
I'm attempting to build a script that will test the file, and give me output from which I can get information like "Audio Format" that I can then put into the filename. However, I can't even get the script to return any file info. I've hit a wall at inserting an input file...
So at this point I just need help getting it to spit out info based on the argvs I've thrown in. Hopefully I'll be able to figure out how to parse the audio info from that.
My attempt that seems to be close:
#!/usr/bin/python import os, sys, subprocess, shlex, re from subprocess import call def probe_file(filename): p = subprocess.Popen(['/opt/local/bin/ffprobe', '-show_format', '-pretty', '-loglevel quiet', -i filename], stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True) print filename print p.communicate() [probe_file (f) for f in os.listdir('.') if not f.startswith('.')]
-
Burn subtitles Ffmpeg Segmantation Fault error
5 septembre 2012, par Batuhan TopbaşI have vps and ffmpeg latest version. I wanna burn subtitles on videos then i use this input
ffmpeg -i ohd.avi -report -acodec copy -strict -2 -vcodec libx264 -acodec aac -sameq -vf ass=ohd.ass outputass.mp4
But this is give me error. Segmantation Fault. See in output..
ffmpeg started on 2012-09-05 at 10:30:37 Report written to "ffmpeg-20120905-103037.log" ffmpeg version N-44073-g54ca7e3 Copyright (c) 2000-2012 the FFmpeg developers built on Aug 31 2012 16:15:40 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-52) configuration: --enable-libfreetype --enable-libx264 --enable-gpl --enable-libfaac --enable-libass --enable-nonfree libavutil 51. 70.100 / 51. 70.100 libavcodec 54. 55.100 / 54. 55.100 libavformat 54. 25.104 / 54. 25.104 libavdevice 54. 2.100 / 54. 2.100 libavfilter 3. 15.101 / 3. 15.101 libswscale 2. 1.101 / 2. 1.101 libswresample 0. 15.100 / 0. 15.100 libpostproc 52. 0.100 / 52. 0.100 Input #0, avi, from 'ohd.avi': Metadata: encoder : Lavf54.25.104 Duration: 00:01:00.22, start: 0.000000, bitrate: 4538 kb/s Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 23.98 tbn, 47.95 tbc Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 44100 Hz, stereo, s16, 192 kb/s File 'outputass.mp4' already exists. Overwrite ? [y/N] y FreeType library version: 2.2.1 [Parsed_ass_0 @ 0xa6b4b00] FreeType headers version: 2.2.1 [Parsed_ass_0 @ 0xa6b4b00] Init [Parsed_ass_0 @ 0xa6b4b00] File size: 622 [Parsed_ass_0 @ 0xa6b4b00] [0xa6b7420] Style: Default,FreeSerif,24,&H00FFFFFF,&H00FFFFFF,&H00FFFFFF,&H00C0C0C0,-1,0,0,0,100,100,0,0.00,1,2,3,2,20,20,20,1 [Parsed_ass_0 @ 0xa6b4b00] Added subtitle file: 'ohd.ass' (1 styles, 1 events) [Parsed_ass_0 @ 0xa6b4b00] Fontconfig disabled, only default font will be used. [graph 0 input from stream 0:0 @ 0xa6cd900] w:1280 h:720 pixfmt:yuv420p tb:1001/24000 fr:24000/1001 sar:1/1 sws_param:flags=2 [graph 1 input from stream 0:1 @ 0xa6b0ae0] tb:1/44100 samplefmt:s16 samplerate:44100 chlayout:0x3 [audio format for output stream 0:1 @ 0xa6b0c60] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:1' [auto-inserted resampler 0 @ 0xa6b17c0] chl:stereo fmt:s16 r:44100Hz -> chl:stereo fmt:flt r:44100Hz [libx264 @ 0xa6bfa20] using SAR=1/1 [libx264 @ 0xa6bfa20] using cpu capabilities: MMX2 SSE2Fast FastShuffle SSEMisalign LZCNT [libx264 @ 0xa6bfa20] profile High, level 3.1 [libx264 @ 0xa6bfa20] 264 - core 125 r2208 d9d2288 - H.264/MPEG-4 AVC codec - Copyleft 2003-2012 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'outputass.mp4': Metadata: encoder : Lavf54.25.104 Stream #0:0: Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 24k tbn, 23.98 tbc Stream #0:1: Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, flt, 128 kb/s Stream mapping: Stream #0:0 -> #0:0 (h264 -> libx264) Stream #0:1 -> #0:1 (ac3 -> aac) Press [q] to stop, [?] for help Segmentation fault
What is wrong my input code ? i can't find because i am amateur.
-
FFmpeg lagging issue in android
5 septembre 2012, par Balwant Kumar SinghI'm using FFmpeg using dolphin player. I'm getting video lagging issue and also Audio/Video synch issue for big files.
Is there any solution to get rid of it? I'm pretty new in this and don't have the knowledge FFmpeg code.
I've gone through this FFmpeg tutorial site, http://dranger.com/ffmpeg/ffmpeg.html.
With this I can understand about a little about implementing internal audio/video clock. I'm not able to understand, in which part of FFmpeg I should do alteration for solving this problem.
Kindly reply with a solution...