[FFmpeg-user] ffmpeg treats m4v as container not elementry video format

Yogesh Tyagi yogesh.bit2006 at gmail.com
Tue Jan 22 14:48:24 CET 2013


On Tue, Jan 22, 2013 at 7:03 PM, Carl Eugen Hoyos <cehoyos at ag.or.at> wrote:
> Yogesh Tyagi <yogesh.bit2006 <at> gmail.com> writes:
>
>> I tried to extract video elementary stream from a 3gp file
>>
>> ./ffmpeg -i Nachde+Punjabi-Ajab+Gazabb+Love.3gp -vcodec copy temp.m4v
>
>> What format should I use so that I get mpeg4 video elementary stream.
>
> You have to use -f m4v to choose the right format:
> $ ffmpeg -i input -vcodec copy -f m4v out.m4v
>
> (The reason is probably that more people need iDevice output
> than MPEG-4 elemetary stream.)
>
> Carl Eugen
>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user

Hi,

If I use "-f m4v" to generate mpeg4 video elementary stream from a 3gp
file and I try to play this file with ffplay, It throws following
error:
"Invalid data found when processing input"

I have previous extracted mpeg video elementary stream from mp4
container using "-f m4v" but somehow it's not working with 3gp.

root at yogesh-desktop:~/SDK/27.0.12132.316788/IntelCE-27.0.12132.316788/project_build_i686/IntelCE/root/mnt#
ffplay out.m4v
ffplay version 0.9, Copyright (c) 2003-2011 the FFmpeg developers
  built on Dec  6 2012 19:13:59 with gcc 4.4.5
  configuration: --enable-libx264 --enable-gpl
  libavutil    51. 32. 0 / 51. 32. 0
  libavcodec   53. 42. 0 / 53. 42. 0
  libavformat  53. 24. 0 / 53. 24. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 53. 0 /  2. 53. 0
  libswscale    2.  1. 0 /  2.  1. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Home directory /home/yogesh not ours.
Home directory /home/yogesh not ours.
out.m4v: Invalid data found when processing input

Thanks,
Yogesh


More information about the ffmpeg-user mailing list