www.kaixin001.com有个应用叫 转帖
支持直接转帖视频
只要输入视频播放的地址,不需要FLV文件的路径
在查看转帖列表的时候居然连视频的缩略图都显示出来了
我看了几个视频站,图片地址跟播放地址几乎没看出有什么关联,播放页面也没有缩略图的地址请高手指教这个地址是怎么抓来的UCHOME里也有类似的功能 就是 分享 但是分享视频没有缩略图 我想自己把这个功能加上

解决方案 »

  1.   

    http://ffmpeg.org/faq.html 参考这个吧
      

  2.   

    A few multimedia containers (MPEG-1, MPEG-2 PS, DV) allow to join video files by merely concatenating them.Hence you may concatenate your multimedia files by first transcoding them to these privileged formats, then using the humble cat command (or the equally humble copy under Windows), and finally transcoding back to your format of choice.ffmpeg -i input1.avi -sameq intermediate1.mpg
    ffmpeg -i input2.avi -sameq intermediate2.mpg
    cat intermediate1.mpg intermediate2.mpg > intermediate_all.mpg
    ffmpeg -i intermediate_all.mpg -sameq output.avi
    Notice that you should either use -sameq or set a reasonably high bitrate for your intermediate and output files, if you want to preserve video quality.Also notice that you may avoid the huge intermediate files by taking advantage of named pipes, should your platform support it:mkfifo intermediate1.mpg
    mkfifo intermediate2.mpg
    ffmpeg -i input1.avi -sameq -y intermediate1.mpg < /dev/null &
    ffmpeg -i input2.avi -sameq -y intermediate2.mpg < /dev/null &
    cat intermediate1.mpg intermediate2.mpg |\
    ffmpeg -f mpeg -i - -sameq -vcodec mpeg4 -acodec libmp3lame output.avi
    Similarly, the yuv4mpegpipe format, and the raw video, raw audio codecs also allow concatenation, and the transcoding step is almost lossless.For example, let's say we want to join two FLV files into an output.flv file:mkfifo temp1.a
    mkfifo temp1.v
    mkfifo temp2.a
    mkfifo temp2.v
    mkfifo all.a
    mkfifo all.v
    ffmpeg -i input1.flv -vn -f u16le -acodec pcm_s16le -ac 2 -ar 44100 - > temp1.a < /dev/null &
    ffmpeg -i input2.flv -vn -f u16le -acodec pcm_s16le -ac 2 -ar 44100 - > temp2.a < /dev/null &
    ffmpeg -i input1.flv -an -f yuv4mpegpipe - > temp1.v < /dev/null &
    ffmpeg -i input2.flv -an -f yuv4mpegpipe - > temp2.v < /dev/null &
    cat temp1.a temp2.a > all.a &
    cat temp1.v temp2.v > all.v &
    ffmpeg -f u16le -acodec pcm_s16le -ac 2 -ar 44100 -i all.a \
           -f yuv4mpegpipe -i all.v \
           -sameq -y output.flv
    rm temp[12].[av] all.[av]
      

  3.   

    好像在CSDN的老贴里面讨论过这问题的   你搜索下