Giter Site home page Giter Site logo

h264extractor's Introduction

H264extractor

Wireshark plugin to extract h264 stream from rtp packets, support Single NAL Unit Mode(RTP Packetization Mode 0), FU-A and STAP-A. In addition, opus stream is supported as well.

How to use h264extractor

  • Copy rtp_h264_extractor.lua to the directory where wireshark was installed
  • edit init.lua, make sure "disable_lua = false" and add "dofile(DATA_DIR.."rtp_h264_extractor.lua")"
  • when open pcap file in wireshark, decode as RTP and configure the H264 dynamic payload types.
  • Menu - Tools - Extract h264 stream from RTP

How to use opus extractor

  • Copy rtp_opus_extractor.lua to the directory where wireshark was installed
  • edit init.lua, make sure "disable_lua = false" and add "dofile(DATA_DIR.."rtp_opus_extractor.lua")"
  • when open pcap file in wireshark, decode as RTP.
  • Menu - Tools - Extract opus stream from RTP

Good tutorials

Reference

h264extractor's People

Contributors

neusoft-technology-solutions avatar volvet avatar volvet2002 avatar wilfordw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

h264extractor's Issues

Distortion in h264 video

hi, i have a h264 video stream over RTP. i use wireshark plugin(lua) to extract this h264, but after extraction the video does not play correctly, (Distortion in video).can any one help me?

Error on attempt to extract with WS on macOS

Catching this error:

image

I admit I could not follow your install instructions:

* Copy rtp_h264_extractor.lua to the directory where wireshark was installed
* edit init.lua,  make sure "disable_lua = false" and add "dofile(DATA_DIR.."rtp_h264_extractor.lua")"
* when open pcap file in wireshark,  decode as RTP and configure the H264 dynamic payload types.  
* Menu - Tools - Extract h264 stream from RTP

I was just able to copy the *.lua to /Applications/Wireshark.app/Contents/PlugIns/wireshark/ as suggested by WS: https://www.wireshark.org/docs/wsug_html_chunked/ChPluginFolders.html

Could not find "init.lua" there...

Could not work on Mac

It's a great tool. I had tried it on Windows and Mac. It works well on Windows, but has issue on Mac.
I use it to extract 264 bitstream, and report follows issue on Mac:

Lua: on packet 51 Error During execution of Listener Packet Callback:
...nts/Resources/share/wireshark/rtp_h264_extractor.lua:58: attempt to call method 'raw' (a nil value)

the WireShark version is 1.10.6.

Error of not able to open dump file

Lua: Error During execution of Menu Callback:
[string "/Users/sijchen/.wireshark/plugins/rtp_h264_ex..."]:40: attempt to call global 'log' (a nil value)

Ln40: log("open dump file fail")

Error of loading rtp_h264_extractor.lua

Hi,
I get an error when I try to reload the lua plugins: "Lua: Error during loading: rtp_h264_extractor.lua:7: unexpected symbol near '<' "
Any ideas how to solve it?

Thanks!

Lua script doesn't extract dump file using tshark

I want to run lua script from command line with tshark.

When I run tshark -X lua_script:rtp_h264_extractor.lua -r a.pcap on ubuntu terminal, it produces output that I expect but it doesn't create dump file.

Are there any solution for this problem? Thanks.

ERROR: payloadTable size is 0, seqTable size is 1

I have a pcap file which one has payload with video coded with h.264
Wireshark, with its option to "analyze->decode as->RTP" shows that has MPEG-TS payload but when use "Tools->Extract opus stream from RTP" or "Tools->Extract opus stream from RTP" just said

ERROR: payloadTable size is 0, seqTable size is 1

or

Start
phase 1
phase 2: max_packet_count = 0
End

We are using VLC player to transmit video.
Is there an specific configuration about codec in order that h264extractor works?

can't work in Ubuntu wireshark

get the error message:

Lua: on packet 19377 Error during execution of Listener packet callback:
/usr/share/wireshark/rtp_h264_extractor.lua:76: attempt to index upvalue 'fp' (a nil value)

Not filtering any packet

I need to change
local h264_tap = Listener.new("ip")
to
local h264_tap = Listener.new(tap, "h264")
to get it work.
(Must decode UDP as RTP and set H264 payload type first)
I don't know why...

How Do I Use Tshark?

tshark -X lua_script:rtp_h264_extractor.lua -r H264.pcapng
but don't Generating H264 file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.