[FFmpeg-user] how to extract h264 nal bitstream into a file from h264 quicktime file?

Kaijun Tang kaijun61 at yahoo.com
Tue Apr 26 22:58:41 CEST 2011


Hi Ben,

I just downloaded latest ffmpeg. It still doesn't work if I use .264 as output 
file. But if I use .mov file, it is packetized stream. Do you have the
first start code of 0x0000000109 or 0x000000000109 at the beginning of the 
stream?

 Kind Regards


Kaijun Tang




________________________________
From: Ben Mesander <ben at cardinalpeak.com>
To: FFmpeg user questions and RTFMs <ffmpeg-user at ffmpeg.org>
Sent: Tue, 26 April, 2011 18:27:34
Subject: Re: [FFmpeg-user] how to extract h264 nal bitstream into a file from 
h264 quicktime file?

Hi Kai,

  Mine is a bit newer, maybe that is the issue?

$ ./ffmpeg
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfi
le}...

FFmpeg version git-N-29131-gf4bc923, Copyright (c) 2000-2011 the FFmpeg develope
rs
  built on Apr 15 2011 13:17:53 with gcc 4.5.2
  configuration: --enable-gpl --enable-version3 --enable-runtime-cpudetect --ena
ble-memalign-hack --enable-avisynth --enable-bzlib --enable-frei0r --enable-libo
pencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --
enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enabl
e-libx264 --enable-libxavs --enable-libxvid --enable-zlib --cross-prefix=i686-w6
4-mingw32- --target-os=mingw32 --arch=x86_32 --extra-cflags=-I/home/kyle/softwar
e/ffmpeg/external-libraries/win32/include --extra-ldflags=-L/home/kyle/software/
ffmpeg/external-libraries/win32/lib --pkg-config=pkg-config
  libavutil    50. 40. 1 / 50. 40. 1
  libavcodec   52.119. 1 / 52.119. 1
  libavformat  52.108. 0 / 52.108. 0
  libavdevice  52.  4. 0 / 52.  4. 0
  libavfilter   1. 78. 0 /  1. 78. 0
  libswscale    0. 13. 0 /  0. 13. 0
Use -h to get full help or, even better, run 'man ffmpeg'

Regards,
Ben




________________________________
From: Kaijun Tang <kaijun61 at yahoo.com>
To: FFmpeg user questions and RTFMs <ffmpeg-user at ffmpeg.org>
Sent: Tue, April 26, 2011 11:00:52 AM
Subject: Re: [FFmpeg-user] how to extract h264 nal bitstream into a file from 
h264 quicktime file?

I have tried that for both .mov and video only. But I got


Unable to find a suitable output format for 'of.264', here is my ffmpeg info

   built on Dec  9 2010 15:18:49 with gcc 4.4.5 20101112 (Red Hat 4.4.5-2)
  configuration: 
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.11. 0 /  0.11. 0

Kind Regards


Kai




________________________________
From: Ben Mesander <ben at cardinalpeak.com>
To: FFmpeg user questions and RTFMs <ffmpeg-user at ffmpeg.org>
Sent: Tue, 26 April, 2011 17:48:08
Subject: Re: [FFmpeg-user] how to extract h264 nal bitstream into a file from 
h264 quicktime file?

Here is how I did it:

http://www.cardinalpeak.com/blog/?p=878

ffmpeg.exe -i Old\ Faithful.mp4 -vcodec copy -vbsf h264_mp4toannexb -an of.h264
I have also done this with .mov containers, which I assume is what you mean by a 



quicktime file.


Regards,
Ben




________________________________
From: Kaijun Tang <kaijun61 at yahoo.com>
To: ffmpeg-user at ffmpeg.org
Sent: Tue, April 26, 2011 10:27:14 AM
Subject: [FFmpeg-user] how to extract h264 nal bitstream into a file from h264 
quicktime file?

I have tried -vbsf h264_mp4toannexb or -f rawvideo. These options don't work.

Thanks,
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

2i
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list