LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-04-2010, 09:23 AM   #1
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Rep: Reputation: 48
extracting a stream from ffmpeg


I did
Code:
$ffmpeg -i /data/sumeet/video/hollywood/you\ don\'t\ know\ jack/You.Dont.Know.Jack.2010.DVDRipwww.theevolution.org_by_digoloko.rmvb 
FFmpeg version git-1dbd813, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct  1 2010 19:28:12 with gcc 4.4.3
  configuration: '--enable-avfilter' '--enable-avfilter-lavf' '--enable-vdpau' '--enable-bzlib' '--enable-libgsm' '--enable-libschroedinger' '--enable-libspeex' '--enable-libtheora' '--enable-libvorbis' '--enable-pthreads' '--enable-zlib' '--disable-stripping' '--enable-runtime-cpudetect' '--enable-gpl' '--enable-postproc' '--enable-swscale' '--enable-x11grab' '--enable-libdc1394' '--disable-static' '--enable-libopencore-amrnb' '--enable-libopencore-amrwb' '--enable-version3' '--enable-libfaac' '--enable-nonfree' '--enable-libmp3lame' '--enable-libx264' '--enable-gpl' '--enable-libxvid' '--enable-static'
  libavutil     50.23. 0 / 50.23. 0
  libavcore      0. 1. 0 /  0. 1. 0
  libavcodec    52.84. 1 / 52.84. 1
  libavformat   52.77. 0 / 52.77. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.26. 1 /  1.26. 1
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[NULL @ 0x93d80e0] Unsupported video codec
[rm @ 0x93d2470] max_analyze_duration reached
Input #0, rm, from '/data/sumeet/video/hollywood/you don't know jack/You.Dont.Know.Jack.2010.DVDRipwww.theevolution.org_by_digoloko.rmvb':
  Metadata:
    title           : 
    author          : 
    copyright       : 
    comment         : 
  Duration: 02:14:25.68, start: 0.000000, bitrate: 402 kb/s
    Stream #0.0: Audio: cook, 44100 Hz, stereo, s16, 64 kb/s
    Stream #0.1: Video: rv40, yuv420p, 720x384, 335 kb/s, 12.05 fps, 12 tbr, 1k tbn, 12 tbc
    Stream #0.2: Data: [0][0][0][0] / 0x0000
At least one output file must be specified
Actually the video has embedded subtitles. I thing that is stream 0.2 in real media container. How can i pull that data out ?
 
Old 10-04-2010, 10:34 PM   #2
sonic
Member
 
Registered: Jan 2002
Location: PA
Distribution: Suse 11.1, Mepis
Posts: 58

Rep: Reputation: 16
The ffmpeg output tells us a lot of things. First,
Quote:
At least one output file must be specified
refers to the output file not declared in the syntax. Use the -o outputfilename to tell ffmpeg where to store the converted file. Second,
Quote:
[NULL @ 0x93d80e0] Unsupported video codec
states that the video codec is not present. Try playing this video in xine or mplayer. If it does not play, it most likely means you do not have the video codec installed. Try googling to find the right codec. As far as removing subtitles, try the ffmpeg documentation http://ffmpeg.org/.
 
Old 10-05-2010, 07:44 AM   #3
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Original Poster
Rep: Reputation: 48
It seems the subtitles werre embedded in frames because
Code:
 $ffmpeg -i You.Dont.Know.Jack.2010.DVDRipwww.theevolution.org_by_digoloko.rmvb  -sn   -t 300 1.avi
FFmpeg version git-1dbd813, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct  1 2010 19:28:12 with gcc 4.4.3
  configuration: '--enable-avfilter' '--enable-avfilter-lavf' '--enable-vdpau' '--enable-bzlib' '--enable-libgsm' '--enable-libschroedinger' '--enable-libspeex' '--enable-libtheora' '--enable-libvorbis' '--enable-pthreads' '--enable-zlib' '--disable-stripping' '--enable-runtime-cpudetect' '--enable-gpl' '--enable-postproc' '--enable-swscale' '--enable-x11grab' '--enable-libdc1394' '--disable-static' '--enable-libopencore-amrnb' '--enable-libopencore-amrwb' '--enable-version3' '--enable-libfaac' '--enable-nonfree' '--enable-libmp3lame' '--enable-libx264' '--enable-gpl' '--enable-libxvid' '--enable-static'
  libavutil     50.23. 0 / 50.23. 0
  libavcore      0. 1. 0 /  0. 1. 0
  libavcodec    52.84. 1 / 52.84. 1
  libavformat   52.77. 0 / 52.77. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.26. 1 /  1.26. 1
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[NULL @ 0xa4610b0] Unsupported video codec
[rm @ 0xa45b470] max_analyze_duration reached
Input #0, rm, from 'You.Dont.Know.Jack.2010.DVDRipwww.theevolution.org_by_digoloko.rmvb':
  Metadata:
    title           : 
    author          : 
    copyright       : 
    comment         : 
  Duration: 02:14:25.68, start: 0.000000, bitrate: 402 kb/s
    Stream #0.0: Audio: cook, 44100 Hz, stereo, s16, 64 kb/s
    Stream #0.1: Video: rv40, yuv420p, 720x384, 335 kb/s, 12.05 fps, 12 tbr, 1k tbn, 12 tbc
    Stream #0.2: Data: [0][0][0][0] / 0x0000
File '1.avi' already exists. Overwrite ? [y/N] y
[buffer @ 0xa462a50] w:720 h:384 pixfmt:yuv420p
Output #0, avi, to '1.avi':
  Metadata:
    ISFT            : Lavf52.77.0
    Stream #0.0: Video: mpeg4, yuv420p, 720x384, q=2-31, 200 kb/s, 12 tbn, 12 tbc
    Stream #0.1: Audio: mp2, 44100 Hz, stereo, s16, 64 kb/s
Stream mapping:
  Stream #0.1 -> #0.0
  Stream #0.0 -> #0.1
Press [q] to stop encoding
frame= 2535 fps=118 q=9.2 Lsize=   10176kB time=299.99 bitrate= 277.9kbits/s dup=0 drop=3616    
video:7457kB audio:2344kB global headers:0kB muxing overhead 3.831181%
-sn meant disable subtitle recording in output
But my question was is it possible to extract stream 0.2 in above input ?
 
Old 11-18-2010, 06:41 AM   #4
sumeet inani
Member
 
Registered: Oct 2008
Posts: 895
Blog Entries: 26

Original Poster
Rep: Reputation: 48
In the same reference I wanted to ask "is it possible to turn subtitles off from video" . I pressed 'j' key in mplayer but no effect . Here is the analysis of above file by ffmpeg
Code:
$ffmpeg -i You.Dont.Know.Jack.2010.DVDRipwww.theevolution.org_by_digoloko.rmvb 
FFmpeg version git-1dbd813, Copyright (c) 2000-2010 the FFmpeg developers
  built on Oct  1 2010 19:28:12 with gcc 4.4.3
  configuration: '--enable-avfilter' '--enable-avfilter-lavf' '--enable-vdpau' '--enable-bzlib' '--enable-libgsm' '--enable-libschroedinger' '--enable-libspeex' '--enable-libtheora' '--enable-libvorbis' '--enable-pthreads' '--enable-zlib' '--disable-stripping' '--enable-runtime-cpudetect' '--enable-gpl' '--enable-postproc' '--enable-swscale' '--enable-x11grab' '--enable-libdc1394' '--disable-static' '--enable-libopencore-amrnb' '--enable-libopencore-amrwb' '--enable-version3' '--enable-libfaac' '--enable-nonfree' '--enable-libmp3lame' '--enable-libx264' '--enable-gpl' '--enable-libxvid' '--enable-static'
  libavutil     50.23. 0 / 50.23. 0
  libavcore      0. 1. 0 /  0. 1. 0
  libavcodec    52.84. 1 / 52.84. 1
  libavformat   52.77. 0 / 52.77. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.26. 1 /  1.26. 1
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[NULL @ 0xab880b0] Unsupported video codec
[rm @ 0xab82470] max_analyze_duration reached
Input #0, rm, from 'You.Dont.Know.Jack.2010.DVDRipwww.theevolution.org_by_digoloko.rmvb':
  Metadata:
    title           : 
    author          : 
    copyright       : 
    comment         : 
  Duration: 02:14:25.68, start: 0.000000, bitrate: 402 kb/s
    Stream #0.0: Audio: cook, 44100 Hz, stereo, s16, 64 kb/s
    Stream #0.1: Video: rv40, yuv420p, 720x384, 335 kb/s, 12.05 fps, 12 tbr, 1k tbn, 12 tbc
    Stream #0.2: Data: [0][0][0][0] / 0x0000
At least one output file must be specified

Last edited by sumeet inani; 11-18-2010 at 06:44 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg, trying to demux VOB, subtitles show up in video stream Meson Linux - Software 1 01-29-2010 09:41 AM
Help me in installing ffmpeg, ffmpeg-PHP, Mplayer, Mencoder, flv2tool, LAME MP3 Encod mitesh.ever Red Hat 5 05-16-2009 01:14 PM
Does the latest version of ffmpeg not work with ffmpeg-php? whitey4900 Linux - Software 0 08-04-2008 06:16 PM
ffmpeg - Unsupported codec for output stream #0.0 yitzle Linux - Software 4 01-30-2008 05:37 AM


All times are GMT -5. The time now is 03:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration