Hi,
Not sure this is the right forum to post in (but I found a post relating to ffmpeg in here before, so am hoping it is =))
I'm using the following SSH command to make a video screenshot:
...Now, this doesn't seem to work :/
However, using the same command with another .flv movie, and it works fine. After some debugging - the output from 2 example calls (one working, and one not) are below:
Working:
NOT working:
Can anyone see the problem? I'm hoping its just an issue with how we are calling it (rather than a problem with the .flv movies) ... as the movies are hosted by the websites, rather than us, so we can't fix any problems with the movies
TIA!
Andy
Not sure this is the right forum to post in (but I found a post relating to ffmpeg in here before, so am hoping it is =))
I'm using the following SSH command to make a video screenshot:
Code:
ffmpeg -i /home/projects/domains/domain.com/public_html/cgi-bin/tube/admin/get_screenshots/tmp/464_st.flv -y -f image2 -ss 12 -sameq -t 0.001 -s 320*240 /home/projects/domains/domain.com/public_html/static/shots/xx.jpg
...Now, this doesn't seem to work :/
However, using the same command with another .flv movie, and it works fine. After some debugging - the output from 2 example calls (one working, and one not) are below:
Working:
Code:
FFmpeg version SVN-r22470, Copyright (c) 2000-2010 the FFmpeg developers
built on Mar 11 2010 13:42:53 with gcc 4.2.1 20070719 [FreeBSD]
configuration: --enable-shared --prefix=/usr --extra-cflags=-D__BSD_VISIBLE
libavutil 50.11. 0 / 50.11. 0
libavcodec 52.58. 0 / 52.58. 0
libavformat 52.55. 0 / 52.55. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
[flv @ 0x28d12000]Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 30.00 (30/1)
Input #0, flv, from '/home/projects/domains/domain.com/public_html/cgi-bin/tube/admin/get_screenshots/tmp/464_st.flv':
Metadata:
duration : 123
width : 480
height : 360
framerate : 30
canSeekToEnd : true
videocodecid : 4
videodatarate : 800
audiocodecid : 2
audiosamplerate : 44100
audiosamplesize : 16
Duration: 00:02:02.63, start: 0.000000, bitrate: 947 kb/s
Stream #0.0: Video: vp6f, yuv420p, 480x360, 819 kb/s, 30 tbr, 1k tbn, 1k tbc
Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s
Output #0, image2, to '/home/projects/domains/domain.com/public_html/static/shots/xx.jpg':
Metadata:
encoder : Lavf52.55.0
Stream #0.0: Video: mjpeg, yuvj420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 30 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 0 fps= 0 q=0.0 Lsize= -0kB time=10000000000.00 bitrate= -0.0kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead -inf%
NOT working:
Code:
FFmpeg version SVN-r22470, Copyright (c) 2000-2010 the FFmpeg developers
built on Mar 11 2010 13:42:53 with gcc 4.2.1 20070719 [FreeBSD]
configuration: --enable-shared --prefix=/usr --extra-cflags=-D__BSD_VISIBLE
libavutil 50.11. 0 / 50.11. 0
libavcodec 52.58. 0 / 52.58. 0
libavformat 52.55. 0 / 52.55. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.10. 0 / 0.10. 0
[flv @ 0x28d12000]Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 30.00 (30/1)
Input #0, flv, from '/home/projects/domains/spunkedtube.com/public_html/cgi-bin/tube/admin/get_screenshots/tmp/464_st.flv':
Metadata:
duration : 123
width : 480
height : 360
framerate : 30
canSeekToEnd : true
videocodecid : 4
videodatarate : 800
audiocodecid : 2
audiosamplerate : 44100
audiosamplesize : 16
Duration: 00:02:02.63, start: 0.000000, bitrate: 947 kb/s
Stream #0.0: Video: vp6f, yuv420p, 480x360, 819 kb/s, 30 tbr, 1k tbn, 1k tbc
Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s
Output #0, image2, to '/home/projects/domains/spunkedtube.com/public_html/static/shots/xx.jpg':
Metadata:
encoder : Lavf52.55.0
Stream #0.0: Video: mjpeg, yuvj420p, 320x240, q=2-31, 200 kb/s, 90k tbn, 30 tbc
Stream mapping:
Stream #0.0 -> #0.0
Press [q] to stop encoding
frame= 0 fps= 0 q=0.0 Lsize= -0kB time=10000000000.00 bitrate= -0.0kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead -inf%
Can anyone see the problem? I'm hoping its just an issue with how we are calling it (rather than a problem with the .flv movies) ... as the movies are hosted by the websites, rather than us, so we can't fix any problems with the movies
TIA!
Andy