Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Wo can tell me the difference and relation between ffmpeg 、libav and avconv
28 février 2012, par whywhen I run ffmpeg on ubuntu, it shows:
ffmpeg ffmpeg version v0.8, Copyright (c) 2000-2011 the Libav developers built on Feb 28 2012 13:27:36 with gcc 4.6.1 This program is not developed anymore and is only provided for compatibility. Use avconv instead (see Changelog for the list of incompatible changes). Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Use -h to get full help or, even better, run 'man ffmpeg'
I found avconv on http://libav.org, I am just perplexed by them
-
error : ‘CODEC_TYPE_AUDIO’ undeclared when make m3u8-segmenter
28 février 2012, par whyI want to make m3u8-segmenter for Http Live Stream: https://github.com/johnf/m3u8-segmenter
There are errors when I make, the errors are:
gcc -g -O -Wall -Wstrict-prototypes -Wmissing-prototypes -Waggregate-return -Wcast-align -Wcast-qual -Wnested-externs -Wshadow -Wbad-function-cast -Wwrite-strings -Werror m3u8-segmenter.c -o m3u8-segmenter -lavformat -lavcodec -lavutil m3u8-segmenter.c: In function ‘add_output_stream’: m3u8-segmenter.c:82:14: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function) m3u8-segmenter.c:82:14: note: each undeclared identifier is reported only once for each function it appears in m3u8-segmenter.c:94:14: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function) m3u8-segmenter.c: In function ‘main’: m3u8-segmenter.c:338:5: error: ‘av_open_input_file’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1090) [-Werror=deprecated-declarations] m3u8-segmenter.c:352:5: error: implicit declaration of function ‘guess_format’ [-Werror=implicit-function-declaration] m3u8-segmenter.c:352:5: error: nested extern declaration of ‘guess_format’ [-Werror=nested-externs] m3u8-segmenter.c:352:10: error: assignment makes pointer from integer without a cast [-Werror] m3u8-segmenter.c:371:18: error: ‘CODEC_TYPE_VIDEO’ undeclared (first use in this function) m3u8-segmenter.c:376:18: error: ‘CODEC_TYPE_AUDIO’ undeclared (first use in this function) m3u8-segmenter.c:387:5: error: ‘av_set_parameters’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1434) [-Werror=deprecated-declarations] m3u8-segmenter.c:392:5: error: ‘dump_format’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1559) [-Werror=deprecated-declarations] m3u8-segmenter.c:406:5: error: ‘url_fopen’ is deprecated (declared at /usr/local/include/libavformat/avio.h:279) [-Werror=deprecated-declarations] m3u8-segmenter.c:411:5: error: ‘av_write_header’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1492) [-Werror=deprecated-declarations] m3u8-segmenter.c:444:67: error: ‘PKT_FLAG_KEY’ undeclared (first use in this function) m3u8-segmenter.c:455:13: error: ‘put_flush_packet’ is deprecated (declared at /usr/local/include/libavformat/avio.h:293) [-Werror=deprecated-declarations] m3u8-segmenter.c:456:13: error: ‘url_fclose’ is deprecated (declared at /usr/local/include/libavformat/avio.h:280) [-Werror=deprecated-declarations] m3u8-segmenter.c:476:13: error: ‘url_fopen’ is deprecated (declared at /usr/local/include/libavformat/avio.h:279) [-Werror=deprecated-declarations] m3u8-segmenter.c:482:13: error: ‘av_write_header’ is deprecated (declared at /usr/local/include/libavformat/avformat.h:1492) [-Werror=deprecated-declarations] m3u8-segmenter.c:514:5: error: ‘url_fclose’ is deprecated (declared at /usr/local/include/libavformat/avio.h:280) [-Werror=deprecated-declarations] cc1: all warnings being treated as errors make: *** [all] Error 1
-
azap from LinuxTV dvb-apps strange signal behavior with Hauppauge WinTV-HVR 950Q [migrated]
27 février 2012, par mmomentWhat I want to do
I have a Hauppauge WinTV-HVR 950Q USB-TV-Stick. I want to use this stick to successively tune to and read in a certain live TV stream.
What I do
I trigger a scan and save the scan results in a file. I call it channels.conf, like the v4l documentary proposes.
scan /home/username/Documents/dvb/atsc/us-CA-SF-Bay-Area > /home/username/Documents/dvb/atsc/conf/home_channels.conf
Everything works fine, the scan returns something like this(A correct channel file):
[0003]:503000000:8VSB:49:52:3 [0005]:503000000:8VSB:81:84:5 [0006]:503000000:8VSB:97:100:6 26 San Francisco, CA:551000000:8VSB:49:52:3 26 San Francisco, CA:551000000:8VSB:65:68:4 KTSF-D3:551000000:8VSB:81:84:5 KTSF-D4:551000000:8VSB:97:100:6 KTSF-D5:551000000:8VSB:113:116:7 KTSF-D6:551000000:8VSB:129:132:8 KPIX-DT:563000000:8VSB:49:52:1 KKPX ION:635000000:8VSB:49:52:3 KKPX qubo:635000000:8VSB:65:68:4 IONLife:635000000:8VSB:81:84:5 100:635000000:8VSB:487:488:100 200:635000000:8VSB:417:418:200 201:635000000:8VSB:422:423:201 202:635000000:8VSB:427:428:202 203:635000000:8VSB:432:433:203 204:635000000:8VSB:412:413:204 300:635000000:8VSB:442:443:300 400:635000000:8VSB:457:458:400 KSTS-HD:683000000:8VSB:49:52:3 Telemundo Exitos TV:683000000:8VSB:65:68:4 CNL-SOI:683000000:8VSB:81:84:5 KQEH:689000000:8VSB:49:52:1 KQED:689000000:8VSB:65:68:2 LIFE:689000000:8VSB:81:84:3 KIDS:689000000:8VSB:97:100:4 V-me:689000000:8VSB:113:116:5
Then I tune to a channel from the scan results. KIDS for example:
azap -r -c Documents/dvb/atsc/conf/channels.conf KIDS
What I expect the program to do:
I expect the program to be tuned and to deliver results similar to this:
username@username:~$ azap -r -c Documents/dvb/atsc/conf/channels.conf KIDS using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0' tuning to 689000000 Hz video pid 0x0061, audio pid 0x0064 status 1f | signal 00e6 | snr 00e6 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 00e6 | snr 00e6 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 00e6 | snr 00e6 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 00dc | snr 00e6 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 00e6 | snr 00e6 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 00e6 | snr 00e6 | ber 00000000 | unc 00000000 | FE_HAS_LOCK ...
What it does:
In 2 out of 5 tries the azap just doesn't work at all.
username@username:~$ azap -r -c Documents/dvb/atsc/conf/channels.conf KIDS using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0' tuning to 689000000 Hz video pid 0x0061, audio pid 0x0064 status 00 | signal 0000 | snr 00e6 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 00 | signal 0000 | snr 00e4 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 00 | signal 0000 | snr 00e6 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 00 | signal 0000 | snr 00c2 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 00 | signal 0000 | snr 00e6 | ber 00000000 | unc 00000000 | FE_HAS_LOCK ...
The rest of the time it generally works initially, then switches the status to 00 and can not be used any more, even if there is incoming signal.
status 1f | signal 00dc | snr 00dc | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 00d2 | snr 00dc | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 00dc | snr 00dc | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 00dc | snr 00dc | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 00d2 | snr 00d2 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 00c8 | snr 00d2 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 00d2 | snr 00d2 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 00 | signal 00d2 | snr 00d2 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 00 | signal 00d2 | snr 00d2 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 00 | signal 00d2 | snr 00d2 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 00 | signal 00dc | snr 00dc | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 00 | signal 00e6 | snr 00e6 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 00 | signal 00dc | snr 00dc | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 00 | signal 00e6 | snr 00e6 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 00 | signal 00e6 | snr 00e6 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 00 | signal 00e6 | snr 00dc | ber 00000000 | unc 00000000 | FE_HAS_LOCK ...
The output even shows that there is high signal to noise ratio, low or rather no block errors or uncorrected errors at all at first, then it This keeps me wondering since I see no reason for the program to switch. After double checking with a real TV I am very sure that I always have an incoming signal and that there should not be any reasons for a behavior like this.
Question
Can any of you guys see a reason for this behavior, could it be a problem with the Hardware that I'm using or rather a Software issue? Did anybody experience the same issues, how did you fix it? Any help is greatly appreciated!
-
Process audio and video independently
27 février 2012, par Ericdue to the unpopularity of my last posts here and here , I'll try something else. I have corresponding audio (.wav) and video files (.mpg). Let's consider that those two streams where recorded synchronously. I want to process both stream, with opencv for the images, and with "I don't know which audio lib" (you tell me ?) for audio, and I want to process those streams online and keep the synchronicity. Note that the length of the video is less that 2 minutes.
Thanks for any help!
-
Streaming interruption issue
27 février 2012, par victor kulichkinI am trying to send audio/video streams to justin.tv using the following command:
ffmpeg -i Engl_01.avi -re -acodec copy -ar 22050 -vcodec libx264 -f flv rtmp://live.justin.tv/app/live_.....
It works well for Linux but doesn't work under MS Windows 7: the site (justin.tv) shows me a movie with interruptions, why is this? Is there any option allowing ffmpeg to fix this problem for Windows?