How to output the MPEG-4 streaming to file?

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

How to output the MPEG-4 streaming to file?

Yuki
Hi.

I want to output the MPEG-4 streaming to file.

When try to output the MP4 stream to a file, "Invalid data found when processing input" will occur.
MPEG-2 stream is successfully output.

ffmpeg is whether it is possible to output the MPEG-4 stream to the file?
Also, please tell me that way if possible.

OS is CentOS 7.2 64bit.
ffmpeg is git-2016-10-25-c117343.

Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: How to output the MPEG-4 streaming to file?

Carl Eugen Hoyos-2
2016-10-25 5:58 GMT+02:00 Yuki <[hidden email]>:

> I want to output the MPEG-4 streaming to file.
>
> When try to output the MP4 stream to a file, "Invalid data
> found when processing input" will occur.

Please (test current FFmpeg git head) provide your command
line including the complete, uncut console output.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to output the MPEG-4 streaming to file?

Yuki
This post was updated on .
2016-10-25 17:35 GMT+09:00 Carl Eugen Hoyos <ceffmpeg@gmail.com>:

> 2016-10-25 5:58 GMT+02:00 Yuki <yn.musen@gmail.com>:
>
> > I want to output the MPEG-4 streaming to file.
> >
> > When try to output the MP4 stream to a file, "Invalid data
> > found when processing input" will occur.
>
> Please (test current FFmpeg git head) provide your command
> line including the complete, uncut console output.
>
>
Provide command line.

[centos@localhost Desktop]$ ffmpeg -i udp://@239.203.59.225:50100
ffmpeg version git-2016-10-25-c117343 Copyright (c) 2000-2016 the FFmpeg
developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --prefix=/usr/local/ffmpeg_build
--extra-cflags=-I/usr/local/ffmpeg_build/include
--extra-ldflags=-L/usr/local/ffmpeg_build/lib
--bindir=/usr/local/ffmpeg_build/bin --pkg-config-flags=--static
--enable-gpl --enable-nonfree --enable-libfreetype --enable-libx264
--enable-libx265 --enable-libfdk-aac --enable-libmp3lame --enable-libopus
--enable-libvorbis --enable-libtheora --enable-libvpx --enable-libass
  libavutil      55. 33.100 / 55. 33.100
  libavcodec     57. 63.103 / 57. 63.103
  libavformat    57. 55.100 / 57. 55.100
  libavdevice    57.  0.103 / 57.  0.103
  libavfilter     6. 64.100 /  6. 64.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
udp://@239.203.59.225:50100: Invalid data found when processing input

I executed 'ffmpeg -formats', it does not include MPEG-4 Part 2 demuxing
supported.
This is wrong?

File formats:
 D. = Demuxing supported
 .E = Muxing supported
 --
 D  3dostr          3DO STR
  E 3g2             3GP2 (3GPP2 file format)
  E 3gp             3GP (3GPP file format)
 D  4xm             4X Technologies
  E a64             a64 - video for Commodore 64
 D  aa              Audible AA format files
 D  aac             raw ADTS AAC (Advanced Audio Coding)
 DE ac3             raw AC-3
 D  acm             Interplay ACM
 D  act             ACT Voice file format
 D  adf             Artworx Data Format
 D  adp             ADP
 D  ads             Sony PS2 ADS
  E adts            ADTS AAC (Advanced Audio Coding)
 DE adx             CRI ADX
 D  aea             MD STUDIO audio
 D  afc             AFC
 DE aiff            Audio IFF
 D  aix             CRI AIX
 DE alaw            PCM A-law
 D  alias_pix       Alias/Wavefront PIX image
 DE amr             3GPP AMR
 D  anm             Deluxe Paint Animation
 D  apc             CRYO APC
 D  ape             Monkey's Audio
 DE apng            Animated Portable Network Graphics
 D  aqtitle         AQTitle subtitles
 DE asf             ASF (Advanced / Active Streaming Format)
 D  asf_o           ASF (Advanced / Active Streaming Format)
  E asf_stream      ASF (Advanced / Active Streaming Format)
 DE ass             SSA (SubStation Alpha) subtitle
 DE ast             AST (Audio Stream)
 DE au              Sun AU
 DE avi             AVI (Audio Video Interleaved)
  E avm2            SWF (ShockWave Flash) (AVM2)
 D  avr             AVR (Audio Visual Research)
 D  avs             AVS
 D  bethsoftvid     Bethesda Softworks VID
 D  bfi             Brute Force & Ignorance
 D  bfstm           BFSTM (Binary Cafe Stream)
 D  bin             Binary text
 D  bink            Bink
 DE bit             G.729 BIT file format
 D  bmp_pipe        piped bmp sequence
 D  bmv             Discworld II BMV
 D  boa             Black Ops Audio
 D  brender_pix     BRender PIX image
 D  brstm           BRSTM (Binary Revolution Stream)
 D  c93             Interplay C93
 DE caf             Apple CAF (Core Audio Format)
 DE cavsvideo       raw Chinese AVS (Audio Video Standard) video
 D  cdg             CD Graphics
 D  cdxl            Commodore CDXL video
 D  cine            Phantom Cine
 D  concat          Virtual concatenation script
  E crc             CRC testing
  E dash            DASH Muxer
 DE data            raw data
 DE daud            D-Cinema audio
 D  dcstr           Sega DC STR
 D  dds_pipe        piped dds sequence
 D  dfa             Chronomaster DFA
 DE dirac           raw Dirac
 DE dnxhd           raw DNxHD (SMPTE VC-3)
 D  dpx_pipe        piped dpx sequence
 D  dsf             DSD Stream File (DSF)
 D  dsicin          Delphine Software International CIN
 D  dss             Digital Speech Standard (DSS)
 DE dts             raw DTS
 D  dtshd           raw DTS-HD
 DE dv              DV (Digital Video)
 D  dv1394          DV1394 A/V grab
 D  dvbsub          raw dvbsub
 D  dvbtxt          dvbtxt
  E dvd             MPEG-2 PS (DVD VOB)
 D  dxa             DXA
 D  ea              Electronic Arts Multimedia
 D  ea_cdata        Electronic Arts cdata
 DE eac3            raw E-AC-3
 D  epaf            Ensoniq Paris Audio File
 D  exr_pipe        piped exr sequence
 DE f32be           PCM 32-bit floating-point big-endian
 DE f32le           PCM 32-bit floating-point little-endian
  E f4v             F4V Adobe Flash Video
 DE f64be           PCM 64-bit floating-point big-endian
 DE f64le           PCM 64-bit floating-point little-endian
 DE fbdev           Linux framebuffer
 DE ffm             FFM (FFserver live feed)
 DE ffmetadata      FFmpeg metadata in text
  E fifo            FIFO queue pseudo-muxer
 D  film_cpk        Sega FILM / CPK
 DE filmstrip       Adobe Filmstrip
 DE flac            raw FLAC
 D  flic            FLI/FLC/FLX animation
 DE flv             FLV (Flash Video)
  E framecrc        framecrc testing
  E framehash       Per-frame hash testing
  E framemd5        Per-frame MD5 testing
 D  frm             Megalux Frame
 D  fsb             FMOD Sample Bank
 DE g722            raw G.722
 DE g723_1          raw G.723.1
 D  g729            G.729 raw format demuxer
 D  genh            GENeric Header
 DE gif             GIF Animation
 DE gsm             raw GSM
 DE gxf             GXF (General eXchange Format)
 DE h261            raw H.261
 DE h263            raw H.263
 DE h264            raw H.264 video
  E hash            Hash testing
  E hds             HDS Muxer
 DE hevc            raw HEVC video
  E hls             Apple HTTP Live Streaming
 D  hls,applehttp   Apple HTTP Live Streaming
 D  hnm             Cryo HNM v4
 DE ico             Microsoft Windows ICO
 D  idcin           id Cinematic
 D  idf             iCE Draw File
 D  iff             IFF (Interchange File Format)
 DE ilbc            iLBC storage
 DE image2          image2 sequence
 DE image2pipe      piped image2 sequence
 D  ingenient       raw Ingenient MJPEG
 D  ipmovie         Interplay MVE
  E ipod            iPod H.264 MP4 (MPEG-4 Part 14)
 DE ircam           Berkeley/IRCAM/CARL Sound Format
  E ismv            ISMV/ISMA (Smooth Streaming)
 D  iss             Funcom ISS
 D  iv8             IndigoVision 8000 video
 DE ivf             On2 IVF
 D  ivr             IVR (Internet Video Recording)
 D  j2k_pipe        piped j2k sequence
 DE jacosub         JACOsub subtitle format
 D  jpeg_pipe       piped jpeg sequence
 D  jpegls_pipe     piped jpegls sequence
 D  jv              Bitmap Brothers JV
  E latm            LOAS/LATM
 D  lavfi           Libavfilter virtual input device
 D  live_flv        live RTMP FLV (Flash Video)
 D  lmlm4           raw lmlm4
 D  loas            LOAS AudioSyncStream
 DE lrc             LRC lyrics
 D  lvf             LVF
 D  lxf             VR native stream (LXF)
 DE m4v             raw MPEG-4 video
  E matroska        Matroska
 D  matroska,webm   Matroska / WebM
  E md5             MD5 testing
 D  mgsts           Metal Gear Solid: The Twin Snakes
 DE microdvd        MicroDVD subtitle format
 DE mjpeg           raw MJPEG video
  E mkvtimestamp_v2 extract pts as timecode v2 format, as defined by
mkvtoolnix
 DE mlp             raw MLP
 D  mlv             Magic Lantern Video (MLV)
 D  mm              American Laser Games MM
 DE mmf             Yamaha SMAF
  E mov             QuickTime / MOV
 D  mov,mp4,m4a,3gp,3g2,mj2 QuickTime / MOV
  E mp2             MP2 (MPEG audio layer 2)
 DE mp3             MP3 (MPEG audio layer 3)
  E mp4             MP4 (MPEG-4 Part 14)
 D  mpc             Musepack
 D  mpc8            Musepack SV8
 DE mpeg            MPEG-1 Systems / MPEG program stream
  E mpeg1video      raw MPEG-1 video
  E mpeg2video      raw MPEG-2 video
 DE mpegts          MPEG-TS (MPEG-2 Transport Stream)
 D  mpegtsraw       raw MPEG-TS (MPEG-2 Transport Stream)
 D  mpegvideo       raw MPEG video
 DE mpjpeg          MIME multipart JPEG
 D  mpl2            MPL2 subtitles
 D  mpsub           MPlayer subtitles
 D  msf             Sony PS3 MSF
 D  msnwctcp        MSN TCP Webcam stream
 D  mtaf            Konami PS2 MTAF
 D  mtv             MTV
 DE mulaw           PCM mu-law
 D  musx            Eurocom MUSX
 D  mv              Silicon Graphics Movie
 D  mvi             Motion Pixels MVI
 DE mxf             MXF (Material eXchange Format)
  E mxf_d10         MXF (Material eXchange Format) D-10 Mapping
  E mxf_opatom      MXF (Material eXchange Format) Operational Pattern Atom
 D  mxg             MxPEG clip
 D  nc              NC camera feed
 D  nistsphere      NIST SPeech HEader REsources
 D  nsv             Nullsoft Streaming Video
  E null            raw null video
 DE nut             NUT
 D  nuv             NuppelVideo
  E oga             Ogg Audio
 DE ogg             Ogg
  E ogv             Ogg Video
 DE oma             Sony OpenMG audio
  E opus            Ogg Opus
 DE oss             OSS (Open Sound System) playback
 D  paf             Amazing Studio Packed Animation File
 D  pam_pipe        piped pam sequence
 D  pbm_pipe        piped pbm sequence
 D  pcx_pipe        piped pcx sequence
 D  pgm_pipe        piped pgm sequence
 D  pgmyuv_pipe     piped pgmyuv sequence
 D  pictor_pipe     piped pictor sequence
 D  pjs             PJS (Phoenix Japanimation Society) subtitles
 D  pmp             Playstation Portable PMP
 D  png_pipe        piped png sequence
 D  ppm_pipe        piped ppm sequence
  E psp             PSP MP4 (MPEG-4 Part 14)
 D  psxstr          Sony Playstation STR
 D  pva             TechnoTrend PVA
 D  pvf             PVF (Portable Voice Format)
 D  qcp             QCP
 D  qdraw_pipe      piped qdraw sequence
 D  r3d             REDCODE R3D
 DE rawvideo        raw video
 D  realtext        RealText subtitle format
 D  redspark        RedSpark
 D  rl2             RL2
 DE rm              RealMedia
 DE roq             raw id RoQ
 D  rpl             RPL / ARMovie
 D  rsd             GameCube RSD
 DE rso             Lego Mindstorms RSO
 DE rtp             RTP output
  E rtp_mpegts      RTP/mpegts output format
 DE rtsp            RTSP output
 DE s16be           PCM signed 16-bit big-endian
 DE s16le           PCM signed 16-bit little-endian
 DE s24be           PCM signed 24-bit big-endian
 DE s24le           PCM signed 24-bit little-endian
 DE s32be           PCM signed 32-bit big-endian
 DE s32le           PCM signed 32-bit little-endian
 DE s8              PCM signed 8-bit
 D  sami            SAMI subtitle format
 DE sap             SAP output
 D  sbg             SBaGen binaural beats script
 D  sdp             SDP
 D  sdr2            SDR2
  E segment         segment
 D  sgi_pipe        piped sgi sequence
 D  shn             raw Shorten
 D  siff            Beam Software SIFF
  E singlejpeg      JPEG single image
 D  sln             Asterisk raw pcm
 DE smjpeg          Loki SDL MJPEG
 D  smk             Smacker
  E smoothstreaming Smooth Streaming Muxer
 D  smush           LucasArts Smush
 D  sol             Sierra SOL
 DE sox             SoX native
 DE spdif           IEC 61937 (used on S/PDIF - IEC958)
  E spx             Ogg Speex
 DE srt             SubRip subtitle
 D  stl             Spruce subtitle format
  E stream_segment,ssegment streaming segment muxer
 D  subviewer       SubViewer subtitle format
 D  subviewer1      SubViewer v1 subtitle format
 D  sunrast_pipe    piped sunrast sequence
 D  sup             raw HDMV Presentation Graphic Stream subtitles
 D  svag            Konami PS2 SVAG
  E svcd            MPEG-2 PS (SVCD)
 DE swf             SWF (ShockWave Flash)
 D  tak             raw TAK
 D  tedcaptions     TED Talks captions
  E tee             Multiple muxer tee
 D  thp             THP
 D  tiertexseq      Tiertex Limited SEQ
 D  tiff_pipe       piped tiff sequence
 D  tmv             8088flex TMV
 DE truehd          raw TrueHD
 DE tta             TTA (True Audio)
 D  tty             Tele-typewriter
 D  txd             Renderware TeXture Dictionary
 DE u16be           PCM unsigned 16-bit big-endian
 DE u16le           PCM unsigned 16-bit little-endian
 DE u24be           PCM unsigned 24-bit big-endian
 DE u24le           PCM unsigned 24-bit little-endian
 DE u32be           PCM unsigned 32-bit big-endian
 DE u32le           PCM unsigned 32-bit little-endian
 DE u8              PCM unsigned 8-bit
  E uncodedframecrc uncoded framecrc testing
 D  v210            Uncompressed 4:2:2 10-bit
 D  v210x           Uncompressed 4:2:2 10-bit
  E v4l2            Video4Linux2 output device
 D  vag             Sony PS2 VAG
 DE vc1             raw VC-1 video
 DE vc1test         VC-1 test bitstream
  E vcd             MPEG-1 Systems / MPEG program stream (VCD)
 D  video4linux2,v4l2 Video4Linux2 device grab
 D  vivo            Vivo
 D  vmd             Sierra VMD
  E vob             MPEG-2 PS (VOB)
 D  vobsub          VobSub subtitle format
 DE voc             Creative Voice
 D  vpk             Sony PS2 VPK
 D  vplayer         VPlayer subtitles
 D  vqf             Nippon Telegraph and Telephone Corporation (NTT) TwinVQ
 DE w64             Sony Wave64
 DE wav             WAV / WAVE (Waveform Audio)
 D  wc3movie        Wing Commander III movie
  E webm            WebM
  E webm_chunk      WebM Chunk Muxer
 DE webm_dash_manifest WebM DASH Manifest
  E webp            WebP
 D  webp_pipe       piped webp sequence
 DE webvtt          WebVTT subtitle
 D  wsaud           Westwood Studios audio
 D  wsd             Wideband Single-bit Data (WSD)
 D  wsvqa           Westwood Studios VQA
 DE wtv             Windows Television (WTV)
 DE wv              raw WavPack
 D  wve             Psion 3 audio
 D  xa              Maxis XA
 D  xbin            eXtended BINary text (XBIN)
 D  xmv             Microsoft XMV
 D  xvag            Sony PS3 XVAG
 D  xwma            Microsoft xWMA
 D  yop             Psygnosis YOP
 DE yuv4mpegpipe    YUV4MPEG pipe

Yuki
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request@ffmpeg.org with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to output the MPEG-4 streaming to file?

Reuben Martin
On Wednesday, October 26, 2016 9:51:45 AM CDT Yuki Nakamura wrote:

> 2016-10-25 17:35 GMT+09:00 Carl Eugen Hoyos <[hidden email]>:
> > 2016-10-25 5:58 GMT+02:00 Yuki <[hidden email]>:
> > > I want to output the MPEG-4 streaming to file.
> > >
> > > When try to output the MP4 stream to a file, "Invalid data
> > > found when processing input" will occur.
> >
> > Please (test current FFmpeg git head) provide your command
> > line including the complete, uncut console output.
>
> Provide command line.
>
> [centos@localhost Desktop]$ ffmpeg udp://@239.203.59.225:50100

That’s hardly the same command, as it does not even output the same error.

At least give some people the satisfaction that you’ve at least tried to
search. Cargo-cult copy-and-paste shows more effort than this.

ffmpeg -i udp://@239.203.59.225:50100 -c:v copy -c:a copy -f mpegts
stream_dump.ts

Also, MPEG4 Part-2 is a codec, not a format.

ffmpeg -codecs | grep 'MPEG-4 part 2'

-Reuben
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to output the MPEG-4 streaming to file?

Yuki
Reuben Martin wrote
That’s hardly the same command, as it does not even output the same error.

At least give some people the satisfaction that you’ve at least tried to
search. Cargo-cult copy-and-paste shows more effort than this.

ffmpeg -i udp://@239.203.59.225:50100 -c:v copy -c:a copy -f mpegts
stream_dump.ts

Also, MPEG4 Part-2 is a codec, not a format.

ffmpeg -codecs | grep 'MPEG-4 part 2'
Thank you for your advice, and I'm sorry not enough question.

There is a multicast network and in the network, flowing data of H.264 MPEG-2 and Mpeg4 Part2.

I send igmp join and captured those packets. and restreaming in test network using Colasoft Packet Builder.

When I use command "ffmpeg -i udp://@{IpAddr}:{Port} -c:v copy -c:a copy -f mpegts stream_dump.ts", i got the following results.
  - H.264...OK.
  - MPEG-2...OK.
  - MPEG-4...NG. "Invalid data found when processing input" will occur.

I've uploaded a packet file of raw datas.
if you will assist me, please use this file.
  - H.264...https://drive.google.com/file/d/0Bx3xeHwXuVdlbXA4ZDlSYWJsb0U/view?usp=sharing
  - MPEG-2...https://drive.google.com/file/d/0Bx3xeHwXuVdlMTJJQXhzWUVVR3M/view?usp=sharing
  - MPEG-4...https://drive.google.com/file/d/0Bx3xeHwXuVdlQi02Um1DbXc1TXM/view?usp=sharing

Yuki
Reply | Threaded
Open this post in threaded view
|

Re: How to output the MPEG-4 streaming to file?

Cley Faye
> When I use command "ffmpeg -i udp://@{IpAddr}:{Port} -c:v copy -c:a copy
-f
> mpegts stream_dump.ts", i got the following results.
>   - H.264...OK.
>   - MPEG-2...OK.
>   - MPEG-4...NG. "Invalid data found when processing input" will occur.

What is required to better understand the issue is the full command and the
full output of the ffmpeg process, from the version header to the end. It
will most likely contain the required informations.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to output the MPEG-4 streaming to file?

Yuki
Cley Faye wrote
What is required to better understand the issue is the full command and the
full output of the ffmpeg process, from the version header to the end. It
will most likely contain the required informations.
Thank you for your reply.
Provide results.

H.264:
[centos@localhost ~]$ ffmpeg -i udp://@239.203.64.134:29000 -c:v copy -c:a copy -f mpegts h264_dump.ts
ffmpeg version git-2016-10-25-c117343 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/ffmpeg_build/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libvpx --enable-libass
  libavutil      55. 33.100 / 55. 33.100
  libavcodec     57. 63.103 / 57. 63.103
  libavformat    57. 55.100 / 57. 55.100
  libavdevice    57.  0.103 / 57.  0.103
  libavfilter     6. 64.100 /  6. 64.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] decode_slice_header error
[h264 @ 0x44842a0] no frame!
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] decode_slice_header error
[h264 @ 0x44842a0] no frame!
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] decode_slice_header error
[h264 @ 0x44842a0] no frame!
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] decode_slice_header error
[h264 @ 0x44842a0] no frame!
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] decode_slice_header error
[h264 @ 0x44842a0] no frame!
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] decode_slice_header error
[h264 @ 0x44842a0] no frame!
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] decode_slice_header error
[h264 @ 0x44842a0] no frame!
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] SPS unavailable in decode_picture_timing
[h264 @ 0x44842a0] non-existing PPS 0 referenced
[h264 @ 0x44842a0] decode_slice_header error
[h264 @ 0x44842a0] no frame!
[h264 @ 0x44842a0] concealing 438 DC, 438 AC, 438 MV errors in I frame
Input #0, mpegts, from 'udp://@239.203.64.134:29000':
  Duration: N/A, start: 9141.978289, bitrate: N/A
  Program 29952
    Stream #0:0[0x1011]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Output #0, mpegts, to 'h264_dump.ts':
  Metadata:
    encoder         : Lavf57.55.100
    Stream #0:0: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(top first), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=  648 fps= 39 q=-1.0 Lsize=   16635kB time=00:00:21.88 bitrate=6225.8kbits/s speed=1.32x    
video:15365kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.263613%

OutputFile...https://drive.google.com/file/d/0Bx3xeHwXuVdlbzMzcTQxNE9IRFE/view?usp=sharing



MPEG-2:
[centos@localhost ~]$ ffmpeg -i udp://@239.203.64.133:29000 -c:v copy -c:a copy -f mpegts mpeg2_dump.ts
ffmpeg version git-2016-10-25-c117343 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/ffmpeg_build/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libvpx --enable-libass
  libavutil      55. 33.100 / 55. 33.100
  libavcodec     57. 63.103 / 57. 63.103
  libavformat    57. 55.100 / 57. 55.100
  libavdevice    57.  0.103 / 57.  0.103
  libavfilter     6. 64.100 /  6. 64.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
[mpeg2video @ 0x31baf80] Invalid frame dimensions 0x0.
    Last message repeated 4 times
Input #0, mpeg, from 'udp://@239.203.64.133:29000':
  Duration: N/A, start: 94619.412067, bitrate: 5423 kb/s
    Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 8:9 DAR 4:3], 5167 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 256 kb/s
Output #0, mpegts, to 'mpeg2_dump.ts':
  Metadata:
    encoder         : Lavf57.55.100
    Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, top first), 720x480 [SAR 8:9 DAR 4:3], q=2-31, 5167 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: mp2, 48000 Hz, stereo, 256 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame=  629 fps= 38 q=-1.0 Lsize=   14989kB time=00:00:21.84 bitrate=5621.7kbits/s speed=1.32x    
video:13189kB audio:661kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 8.228645%

OutputFile...https://drive.google.com/file/d/0Bx3xeHwXuVdlVHpEYkpuYmxLNHM/view?usp=sharing



MPEG-4:
[centos@localhost ~]$ ffmpeg -i udp://@239.203.59.225:50100 -c:v copy -c:a copy -f mpegts mpeg4_dump.ts
ffmpeg version git-2016-10-25-c117343 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-4)
  configuration: --prefix=/usr/local/ffmpeg_build --extra-cflags=-I/usr/local/ffmpeg_build/include --extra-ldflags=-L/usr/local/ffmpeg_build/lib --bindir=/usr/local/ffmpeg_build/bin --pkg-config-flags=--static --enable-gpl --enable-nonfree --enable-libfreetype --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libtheora --enable-libvpx --enable-libass
  libavutil      55. 33.100 / 55. 33.100
  libavcodec     57. 63.103 / 57. 63.103
  libavformat    57. 55.100 / 57. 55.100
  libavdevice    57.  0.103 / 57.  0.103
  libavfilter     6. 64.100 /  6. 64.100
  libswscale      4.  1.100 /  4.  1.100
  libswresample   2.  2.100 /  2.  2.100
  libpostproc    54.  0.100 / 54.  0.100
udp://@239.203.59.225:50100: Invalid data found when processing input
Reply | Threaded
Open this post in threaded view
|

Re: How to output the MPEG-4 streaming to file?

Carl Eugen Hoyos-2
In reply to this post by Yuki
2016-10-26 8:37 GMT+02:00 Yuki <[hidden email]>:
> Reuben Martin wrote

>> ffmpeg -i udp://@239.203.59.225:50100 -c:v copy -c:a copy
>> -f mpegts stream_dump.ts

If the input is mpegts, this is most likely not a good idea, there are
many possibilities to dump the raw stream like tools/aviocat and
mplayer -dumpstream.

> MPEG-4...https://drive.google.com/file/d/0Bx3xeHwXuVdlQi02Um1DbXc1TXM/view?usp=sharing

If you can provide an absolutely fool-proof, 100% clear explanation
on what I should do with the pcap file, I will happily test.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to output the MPEG-4 streaming to file?

Yuki
Carl Eugen Hoyos-2 wrote
If the input is mpegts, this is most likely not a good idea, there are
many possibilities to dump the raw stream like tools/aviocat and
mplayer -dumpstream.
I did not know there is such a method.
After trying the command to obtain the following output.
But it is the video that we saw in other systems did not like this noise is not contain.

C:\Program Files\SMPlayer\mplayer>mplayer -dumpstream udp://@239.203.59.225:50100
MPlayer Redxii-SVN-r37871-4.9.3 (x86_64) (C) 2000-2016 MPlayer Team
FFmpeg version: N-80185-gbb3388f
Build date: 2016-06-04 18:44:50 EDT

Playing udp://@239.203.59.225:50100.
STREAM_UDP, URL: udp://@239.203.59.225:50100
dump: 4984832 bytes written


MPlayer interrupted by signal 2 in module: dumpstream
dump: 5025792 bytes written to 'stream.dump'.
Core dumped ;)

Exiting... (End of file)


OutputFile: https://drive.google.com/file/d/0Bx3xeHwXuVdlZE9CVnRsMWN4Ukk/view?usp=sharing

Carl Eugen Hoyos-2 wrote
If you can provide an absolutely fool-proof, 100% clear explanation
on what I should do with the pcap file, I will happily test.
Thank you.
What I hope is that the output video files with no noise from this packet.

Yuki