dump video es and audio es from avi using gstreamer tools
2012-02-24 10:10
375 查看
I am using a embedded linux board with gstreamer installed.
"cd" to the directory where gst tools are installed, you can run the gst commands such as gst-launch and gst-inspect.
A usb mememory is mounted under /mnt/sda. Under the directory of "streams" some streams are available. I want to dump video and audio from the "VID-3B.avi" stream, so I ran the following command respectively, and the 2 files test_video.es and test_audio.es are generated respectively under current directory.
1. generate video es:
./gst-launch filesrc location=/mnt/sda/streams/VID-3B.avi ! queue max-size-time=0 max-size-buffers=10 max-size-bytes=$((8*1024)) ! avidemux name=dm dm.video_00 ! filesink location=test_video.es
2. Generate audio es:
./gst-launch filesrc location=/mnt/sda/streams/VID-3B.avi ! queue max-size-time=0 max-size-buffers=10 max-size-bytes=$((8*1024)) ! avidemux name=dm dm.audio_00 ! filesink location=test_audio.es
Suppose your file is on the http, using the command like below:
gst-launch souphttpsrc location=http://xx.xx.xx.xx/test/H_VIDEO_CODECS/VID-3B.avi ! avidemux name=dm dm.video_00 ! queue max-size-time=0 max-size-buffers=10 max-size-bytes=$((8*1024)) ! filesink sync=true render-delay=250000000 location=test_1.es
Where xx.xx.xx.xx is the IP address of your http server.
本文出自 “linux问题” 博客,请务必保留此出处http://greg10.blog.51cto.com/3430979/788299
"cd" to the directory where gst tools are installed, you can run the gst commands such as gst-launch and gst-inspect.
A usb mememory is mounted under /mnt/sda. Under the directory of "streams" some streams are available. I want to dump video and audio from the "VID-3B.avi" stream, so I ran the following command respectively, and the 2 files test_video.es and test_audio.es are generated respectively under current directory.
1. generate video es:
./gst-launch filesrc location=/mnt/sda/streams/VID-3B.avi ! queue max-size-time=0 max-size-buffers=10 max-size-bytes=$((8*1024)) ! avidemux name=dm dm.video_00 ! filesink location=test_video.es
2. Generate audio es:
./gst-launch filesrc location=/mnt/sda/streams/VID-3B.avi ! queue max-size-time=0 max-size-buffers=10 max-size-bytes=$((8*1024)) ! avidemux name=dm dm.audio_00 ! filesink location=test_audio.es
Suppose your file is on the http, using the command like below:
gst-launch souphttpsrc location=http://xx.xx.xx.xx/test/H_VIDEO_CODECS/VID-3B.avi ! avidemux name=dm dm.video_00 ! queue max-size-time=0 max-size-buffers=10 max-size-bytes=$((8*1024)) ! filesink sync=true render-delay=250000000 location=test_1.es
Where xx.xx.xx.xx is the IP address of your http server.
本文出自 “linux问题” 博客,请务必保留此出处http://greg10.blog.51cto.com/3430979/788299
相关文章推荐
- Transmitting Audio and Video using RTP
- 《微软:DirectShow开发指南》第5章 Capturing Audio and Video from a Webcam
- How to download streaming audio or video media from the internet using the MMS protocol?
- How To Build xfstools, xfsprogs And xfsdump From Source On Ubuntu
- Block developers from using TOAD and other tools on production databases
- Using HTML5 audio and video
- Configuring comms database using CED and CEDDUMP
- Video Compression and Communications: From Basics to H.261, H.263, H.264, MPEG4 for DVB and HSDPA-St
- Using ASP.NET and jQuery to Pass Multiple Values from a GridView to Another Page
- Backup and Restore MySQL Database Using mysqldump
- 捕获video&audio录制AVI文件
- 10 Open Source Security Tools from Google, Facebook, Netflix and Cisco
- Overlay Images on Video Using MPlayer and MEncoder
- hal testapp and file open and close, and ES and PES dump. HAL doc position. hal compile
- How to Capture and Decrypt Lync Server 2010 TLS Traffic Using Microsoft Tools
- Managing Virtual Teams: Getting the Most from Wikis, Blogs, and Other Collaborative Tools
- An Overview of Audio and Video Transcoding 转自:http://www.longtailvideo.com/
- recording and play using Waveform audio interface
- NAACL 2013 Paper Mining User Relations from Online Discussions using Sentiment Analysis and PMF
- Essential Blogging: Selecting and Using Weblog Tools [ILLUSTRATED]