[FFmpeg-user] Extracting first subtitle as an image

2015-03-18 Thread petesea
Is there an easy way to extract the first subtitle (dvdsub) for a specific 
stream as an image?  In such a way that I can see the subtitle in the 
resulting image.


The following works... (limited testing) but it's kind of slow and 
cumbersome and I'm hoping there's a better way:


  $ ffprobe -i movie.vob -select_streams 5 -show_frames -print_format flat | 
grep 'pts_time=' | head -n1
  (get the value of pts_time from output and use in -ss option)
  $ ffmpeg -i movie.vob -ss 209.883889 -codec:v mpeg2video -filter_complex 
'[0:v][0:5]overlay' -frames:v 1 -f mpeg - | ffmpeg -i - -frames:v 1 
subtitle-05.png

I don't care if the subtitle is overlayed onto the video, all I want is to 
see the subtitle.  In fact I'd prefer it was NOT overlayed... or if it has 
to be overlayed, could it be overlayed onto some kind of blank background?

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


[FFmpeg-user] Fwd: VBV Underflow errors while setting up a desktop stream on OS X

2015-03-18 Thread Prajna Kandarpa
Hi,

I've setup a desktop stream using the following ffmpeg parameters. I stream
the raw data to an
ffserver instance running on the same machine (OS X Yosemite). The ffserver
streams encoded
video to another machine on the same local network.

I keep getting VBV Underflow errors on the desktop capture stream. I've
changed the encoding
parameters such as keyint, vbv-maxrate and vbv-bufsize on the ffserver conf
to no avail.(We encode
using libx264 )
The VBV underflow errors especially occur when there's a lot of movement on
the screen.

Can someone please take a look at my parameters and let me know if I'm
doing
something extremely wrong?

Thanks,
Praj

ffserver conf:

> HTTPPort 8090
> # bind to all IPs aliased or not
> HTTPBindAddress 0.0.0.0
> # max number of simultaneous clients
> MaxClients 1000
> # max bandwidth per-client (kb/s)
> MaxBandwidth 1
> # Suppress that if you want to launch ffserver as a daemon.
> #NoDaemon
>
> 
> File /tmp/feed1.ffm
> FileMaxSize 5M
> 
>
> 
> Feed feed1.ffm
> Format flv
> VideoCodec libx264
> #AVOptionVideo flags +global_header
> PixelFormat yuv420p
> VideoFrameRate 25
> #VideoGopSize 50
> VideoBufferSize 200
> VideoBitRate 200
> VideoBitRateRange 200-200
> AVOptionVideo preset ultrafast
> AVOptionVideo profile high
> AVOptionVideo tune zerolatency
> AVOptionVideo me_method hex
> AVOptionVideo refs 2
> AVOptionVideo subq 3
> AVOptionVideo level 4.0
> AVOptionVideo crf 30
> AVOptionVideo bt 10k
> AVOptionVideo g 15
> AVOptionVideo qcomp 0.9
> AVOptionVideo trellis 1
> AVOptionVideo 8x8dct 1
> AVOptionVideo mbtree 0
> VideoQMin 1
> VideoQMax 31
> VideoSize 1280x800
> PreRoll 0
> AudioCodec libmp3lame
> AudioBitRate 128
> AudioChannels 2
> AudioSamplerate 44100
> 


ffmpeg output:

> ffmpeg -f avfoundation -i "1:1" -s 1440x900 -r 25 -vcodec copy -threads:0
> 4 -acodec copy -movflags +faststart -pix_fmt yuv420p
> http://localhost:8090/feed1.ffm
> ffmpeg version N-70743-g332776f Copyright (c) 2000-2015 the FFmpeg
> developers
>   built with Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
>   configuration: --prefix=/usr/local --enable-gpl --enable-nonfree
> --enable-libass --enable-libfdk-aac --enable-libfreetype
> --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis
> --enable-libvpx --enable-libx264 --enable-libxvid
>   libavutil  54. 20.100 / 54. 20.100
>   libavcodec 56. 28.100 / 56. 28.100
>   libavformat56. 25.101 / 56. 25.101
>   libavdevice56.  4.100 / 56.  4.100
>   libavfilter 5. 12.100 /  5. 12.100
>   libswscale  3.  1.101 /  3.  1.101
>   libswresample   1.  1.100 /  1.  1.100
>   libpostproc53.  3.100 / 53.  3.100
> [avfoundation @ 0x7f9dec005200] Selected pixel format (yuv420p) is not
> supported by the input device.
> [avfoundation @ 0x7f9dec005200] Supported pixel formats:
> [avfoundation @ 0x7f9dec005200]   uyvy422
> [avfoundation @ 0x7f9dec005200]   yuyv422
> [avfoundation @ 0x7f9dec005200]   nv12
> [avfoundation @ 0x7f9dec005200]   0rgb
> [avfoundation @ 0x7f9dec005200]   bgr0
> [avfoundation @ 0x7f9dec005200] Overriding selected pixel format to use
> uyvy422 instead.
> [avfoundation @ 0x7f9dec005200] Stream #0: not enough frames to estimate
> rate; consider increasing probesize
> Input #0, avfoundation, from '1:1':
>   Duration: N/A, start: 0.154663, bitrate: N/A
> Stream #0:0: Video: rawvideo (UYVY / 0x59565955), uyvy422, 1440x900,
> 1000k tbr, 1000k tbn, 1000k tbc
> Stream #0:1: Audio: pcm_f32le, 44100 Hz, stereo, flt, 2822 kb/s
> [tcp @ 0x7f9debd0f680] Connection to tcp://localhost:8090 failed
> (Connection refused), trying next address
> Last message repeated 1 times
> [tcp @ 0x7f9debc76c00] Connection to tcp://localhost:8090 failed
> (Connection refused), trying next address
> Last message repeated 1 times
> [ffm @ 0x7f9ded031200] Frame rate very high for a muxer not efficiently
> supporting it.
> Please consider specifying a lower framerate, a different muxer or -vsync 2
> [libx264 @ 0x7f9dec299200] using cpu capabilities: MMX2 SSE2Fast SSSE3
> SSE4.2 AVX
> [libx264 @ 0x7f9dec299200] profile High, level 4.0
> Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
>   Metadata:
> creation_time   : now
> encoder : Lavf56.25.101
> Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s32p, 128 kb/s
> Metadata:
>   encoder : Lavc56.28.100 libmp3lame
> Stream #0:1: Video: h264 (libx264), yuv420p, 1280x800, q=1-31, 200
> kb/s, 1000k fps, 1000k tbn, 25 tbc
> Metadata:
>   encoder : Lavc56.28.100 libx264
> Stream mapping:
>   Stream #0:1 -> #0:0 (pcm_f32le (native) -> mp3 (libmp3lame))
>   Stream #0:0 -> #0:1 (rawvideo (native) -> h264 (libx264))
> Press [q] to stop, [?] for help
> [libx264 @ 0x7f9dec299200] VBV underflow (frame 15, -644504 bits)
> frame=   17 fps=0.0 q=31.0 size= 160kB time=00:00:00.68
> bitrate=1927.5kbits/[libx264 @ 0x7f9dec299200] VBV underflow (frame 21,
> -25728 bits)
> [libx264 @ 0x7f9dec299

Re: [FFmpeg-user] example to use VDA hw decoder on mac with ffmpeg?

2015-03-18 Thread Shi Yan
I cold emailed Xidorn who is the author of the h264_vda_dec.c file.

this was the answer:

Hi Shi,

I'm not very surprised that the VDA decoder cannot be properly inited here.
I guess you probably eventually have to remux your video to use MP4 or MKV
container.

I don't know exactly what happens there, but according to my experience
playing with VDA framework before, that framework had quite a few
limitations. I guess the limitation you met might be that, it required some
extra data of the video to init the decoder, which made it support only
some of the containers. I forget what the exact name of that extra data,
but AFAIK, only MP4-compatible container could provide that.

Regards,
Xidorn

I quickly tried a mp4 file, which worked.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] Issue with using amerge & pan to map & mix

2015-03-18 Thread Christian Johannesen
I am trying to utilize the amerge & pan filters to combine the audio tracks
of an MXF & MOV to create a 10 channel mix from them. I am trying to mix
both channels from the stereo WAV to output channels 3 & 4, if I do this, I
get silent audio on the output. If I map the inputs and apply no mixing, I
get audio output. If I just mix Stereo WAV's input channels to two channel
WAV, that results in a file with audio. It only seems to be that when I
combine mapping and mixing, I get no audio output.

ffmpeg D:\MIX\VIDEO.mxf -i D:\MIX\Stereo_AUDIO.wav -filter_complex
"[0:1][0:2][1:0]amerge=inputs=3,pan=10c|c0=c0|c1=c1|c2 amerge:in0
  Stream #0:2 (pcm_s24le) -> amerge:in1
  Stream #1:0 (pcm_s24le) -> amerge:in2
  pan -> Stream #0:0 (pcm_s24le)
Press [q] to stop, [?] for help
[pcm_s24le @ 04eabde0] not writing 'chan' tag due to lack of
channel information
size= 2067347kB time=00:24:30.10 bitrate=11520.1kbits/s
video:0kB audio:2067331kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.000787%

Image of the audio waveform with silence on all 10 channels:
http://imgur.com/JpafflT

If I modify the command to not mix the audio I get all the audio channels.

ffmpeg -i D:\MIX\VIDEO.mxf -i D:\MIX\Stereo_AUDIO.wav -filter_complex
"[0:1][0:2][1:0]amerge=inputs=3,pan=10c|c0=c0|c1=c1|c2=c16|c3=c17|c4=c4|c5=c5|c6=c6|c7=c7|c8=c8|c9=c9[a1]"
-map "[a1]" -acodec pcm_s24le -timecode 00:59:45;02
D:\MIX\VIDEO_audio_only_no_mix.mov

Image of the audio waveform with audio on all 10 channels:
http://imgur.com/8Bc0b1K

I decided to just test taking the stereo audio file and mixing the audio to
mono. This command outputs a file with audio.

ffmpeg -i D:\MIX\Stereo_AUDIO.wav -af "pan=stereo|c0 #0:0 (pcm_s24le (native) -> pcm_s24le (native))
Press [q] to stop, [?] for help
size=  413466kB time=00:24:30.10 bitrate=2304.0kbits/s

Ultimately I think my solution is to do this in two passes, where I mix the
stereo file to mono and then map it in to the two channels. Can anyone
think of a way to accomplish this in one pass?
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Faster way of cropping video?

2015-03-18 Thread Carl Eugen Hoyos
Dennis  gmail.com> writes:

> ffmpeg -i "Gopro1.mp4"  -filter:v crop=iw-300-20:ih-0-180:300:0 
> -c:v mpeg2video -qscale:v 2 "Gopro1_crop.ts"

Note that you need -mbd 2 for low-quantiser mpegvideo.

Carl Eugen

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


Re: [FFmpeg-user] Faster way of cropping video?

2015-03-18 Thread Dennis
On Wed, Mar 18, 2015 at 12:19 PM, JP Edwards <
jpedwardspost-at-yahoo.co...@ffmpeg.org> wrote:

> Hi,
> I've been cropping a number of mp4 videos with ffmpeg but I was just
> wondering whether there is a way of doing it that doesn't involve
> re-encoding.
> I've been using a command like:
> ffmpeg -i "Gopro1.mp4"  -filter:v crop=iw-300-20:ih-0-180:300:0
> "Gopro1_crop.mp4"
>
> Which works by cropping a 1920 x 1080 video to 1600 x 900
>
>
The re-encoding can be sped up by using other codecs, but will create a
bigger file. Added qscale to preserve original quality. Depending on audio
track format you might just copy it (-c:a copy).

ffmpeg -i "Gopro1.mp4"  -filter:v crop=iw-300-20:ih-0-180:300:0 -c:v mpeg4
-qscale:v 2 "Gopro1_crop.mp4"
ffmpeg -i "Gopro1.mp4"  -filter:v crop=iw-300-20:ih-0-180:300:0 -c:v
mpeg2video -qscale:v 2 "Gopro1_crop.ts"
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Faster way of cropping video?

2015-03-18 Thread Carl Eugen Hoyos
JP Edwards  ffmpeg.org> writes:

> I've been cropping a number of mp4 videos with ffmpeg 
> but I was just wondering whether there is a way of 
> doing it that doesn't involve re-encoding.

The mov container does support (container) cropping 
but afair FFmpeg does not support writing new values.

Carl Eugen

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


Re: [FFmpeg-user] Faster way of cropping video?

2015-03-18 Thread Claudiu Rad

On 3/18/2015 6:19 PM, JP Edwards wrote:

Hi,
I've been cropping a number of mp4 videos with ffmpeg but I was just wondering 
whether there is a way of doing it that doesn't involve re-encoding.


no, this is not technically possible for obvious reasons: you need to 
decode the frame, crop and re-encode the completely new image. due to 
the very nature of video encoding, you cannot remove portions of an 
image without re-encoding the rest as pixels in an image are strongly 
related.


--
Claudiu

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


[FFmpeg-user] Faster way of cropping video?

2015-03-18 Thread JP Edwards
Hi,
I've been cropping a number of mp4 videos with ffmpeg but I was just wondering 
whether there is a way of doing it that doesn't involve re-encoding.
I've been using a command like:
ffmpeg -i "Gopro1.mp4"  -filter:v crop=iw-300-20:ih-0-180:300:0 
"Gopro1_crop.mp4" 

Which works by cropping a 1920 x 1080 video to 1600 x 900 

But just wondering if there is a quicker way.
Thanks,JP.
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] RTMP Input error (UDP output)

2015-03-18 Thread Matt Conway
Thanks for getting back to me Moritz

Have you tried following this hint? Taken from your output log:

> [avi @ 02e8e8c0] H.264 bitstream malformed, no startcode 
> found, use the video bitstream filter 'h264_mp4toannexb' to fix it 
> ('-bsf:v h264_mp4toannexb' option with ffmpeg)

This seems to have fixed the output. I should probably learn to read the
output a bit more in depth! Here is the console output for the "working"
command from the ffmpeg side.


C:\Users\admin\Desktop>ffmpeg -re -i
rtmp://1.20006911.fme.ustream.tv/ustreamVideo/20006911/9gjxU2DxvaUJDQZ9Yc6eG
weKwV6Y2E7a -bsf:v h264_mp4toannexb -an -c:v copy -f avi
udp://239.0.1.23:1234
ffmpeg version N-69920-g8bc8001 Copyright (c) 2000-2015 the FFmpeg
developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --
enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --ena
ble-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjp
eg --enable-libopus --enable-librtmp --enable-libschroedinger
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enab
le-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma
--enable-decklink --enable-zlib
  libavutil  54. 18.100 / 54. 18.100
  libavcodec 56. 22.100 / 56. 22.100
  libavformat56. 22.100 / 56. 22.100
  libavdevice56.  4.100 / 56.  4.100
  libavfilter 5. 11.100 /  5. 11.100
  libswscale  3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc53.  3.100 / 53.  3.100
Input #0, flv, from
'rtmp://1.20006911.fme.ustream.tv/ustreamVideo/20006911/9gjxU2DxvaUJDQZ9Yc6e
GweKwV6Y2E7a':
  Duration: N/A, start: 0.00, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuvj420p(pc, bt709), 800x450 [SAR
1:1 DAR 16:9], 30 tbr, 1k tbn, 2k tbc
Output #0, avi, to 'udp://239.0.1.23:1234':
  Metadata:
ISFT: Lavf56.22.100
Stream #0:0: Video: h264 (H264 / 0x34363248), yuvj420p, 800x450 [SAR 1:1
DAR 16:9], q=2-31, 30 tbr, 1k tbn, 1k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame= 1666 fps= 30 q=-1.0 size=1860kB time=00:00:55.81 bitrate=
272.9kbits/s







However, the Raspberry Pi that is looking for the output (listening with
pwomxplayer for a video wall) does not receive anything when using this
command, unless I specifically set the video codec to h264 (-c:v libx264),
this brings new problems with it, creating a lot of "Past duration
0. too large" errors or just flatout crashing. I understand if I now
need to go and look for answers from the pwomxplayer side of things, but the
Pi does actually pick up the output with this command, so just need to make
sure that ffmpeg can handle the transcoding I guess!

C:\Users\admin\Desktop>ffmpeg -re -i
rtmp://1.20006911.fme.ustream.tv/ustreamVideo/20006911/9gjxU2DxvaUJDQZ9Yc6eG
weKwV6Y2E7a -bsf:v h264_mp4
toannexb -an -c:v h264 -f avi udp://239.0.1.23:1234
ffmpeg version N-69920-g8bc8001 Copyright (c) 2000-2015 the FFmpeg
developers
  built with gcc 4.9.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --
enable-gnutls --enable-iconv --enable-libass --enable-libbluray
--enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --ena
ble-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjp
eg --enable-libopus --enable-librtmp --enable-libschroedinger
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
--enab
le-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma
--enable-decklink --enable-zlib
  libavutil  54. 18.100 / 54. 18.100
  libavcodec 56. 22.100 / 56. 22.100
  libavformat56. 22.100 / 56. 22.100
  libavdevice56.  4.100 / 56.  4.100
  libavfilter 5. 11.100 /  5. 11.100
  libswscale  3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc53.  3.100 / 53.  3.100
Input #0, flv, from
'rtmp://1.20006911.fme.ustream.tv/ustreamVideo/20006911/9gjxU2DxvaUJDQZ9Yc6e
GweKwV6Y2E7a':
  Duration: N/A, start: 0.00, bitrate: N/A
Stream #0:0: Video: h264 (Baseline), yuvj420p(pc, bt709), 800x450 [SAR
1:1 DAR 16:9], 30 tbr, 1k tbn, 2k tbc
No pixel format specified, yuvj420p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 04aeb

Re: [FFmpeg-user] Hi

2015-03-18 Thread sathish
if i use any other command got this error
can u plz help me
ffmpeg version is 2.5.4 and android ndk version is ndk-r10d

Fatal signal 11 (SIGSEGV) at 0x0008 (code=1), thread 10105 (AsyncTask
#1)
03-18 19:01:37.821: E/Trace(10169): error opening trace file: No such file
or directory (2)


plz... help me

if any other samples please send me link thank you



On Wed, Mar 18, 2015 at 7:30 PM, Moritz Barsnick  wrote:

> On Wed, Mar 18, 2015 at 19:08:37 +0530, sathish wrote:
> > ffmpeg -i /sdcard/perfect.mp3 -i /sdcard/output_subtitle.mp4 -acodec
> > -vcodec copy /sdcard/newvideo.mp4
> >
> > I used same command.first time executed successfully from second time
> > onwards giving the below output.
>
> Actually, you must have used a different command, because it seems to
> basically have worked. Still, you should quote the _complete_ output,
> because it _seems_ that one of the files is empty. With the full
> output, we would have known better.
>
> And why does your ffmpeg version not report its version???
>
> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Hi

2015-03-18 Thread Moritz Barsnick
On Wed, Mar 18, 2015 at 19:08:37 +0530, sathish wrote:
> ffmpeg -i /sdcard/perfect.mp3 -i /sdcard/output_subtitle.mp4 -acodec
> -vcodec copy /sdcard/newvideo.mp4
> 
> I used same command.first time executed successfully from second time
> onwards giving the below output.

Actually, you must have used a different command, because it seems to
basically have worked. Still, you should quote the _complete_ output,
because it _seems_ that one of the files is empty. With the full
output, we would have known better.

And why does your ffmpeg version not report its version???

Moritz 
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Hi

2015-03-18 Thread Moritz Barsnick
Hi, sathish,

this part isn't supposed to happen:

> 03-18 19:01:31.511: A/libc(10092): Fatal signal 11 (SIGSEGV) at 0x0008 
> (code=1), thread 10105 (AsyncTask #1)

but it's hard to tell whether this reports an ffmpeg segmentation
fault. (What is Videokit?).

Your command line: 

> ffmpeg -i /sdcard/perfect.mp3 -i /sdcard/output_subtitle.mp4 -acodec -vcodec 
> copy /sdcard/newvideo.mp4

has an error, you don't provide an audio codec after '-acodec'. ffmpeg
tells you so:

> 03-18 19:01:31.501: D/Videokit(10092): Applying option acodec (force audio 
> codec ('copy' to copy stream)) with argument -vcodec.

It is interpreting "-vcodec" as your audio codec.

> 03-18 19:01:31.501: D/Videokit(10092): Opening an output file: copy.

And "copy" as a file name.

You need to fix your command line to be:

> ffmpeg -i /sdcard/perfect.mp3 -i /sdcard/output_subtitle.mp4 -acodec copy 
> -vcodec copy /sdcard/newvideo.mp4

for example.

HTH,
Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Hi

2015-03-18 Thread sathish
ffmpeg -i /sdcard/perfect.mp3 -i /sdcard/output_subtitle.mp4 -acodec
-vcodec copy /sdcard/newvideo.mp4




I used same command.first time executed successfully from second time
onwards giving the below output.

Please if any other sources are there help me.

thank you






03-18 19:06:53.222: I/Videokit(13613): Stream mapping:
03-18 19:06:53.222: I/Videokit(13613):   Stream #1:0 -> #0:0
03-18 19:06:53.222: I/Videokit(13613):  (copy)
03-18 19:06:53.222: I/Videokit(13613):   Stream #0:0 -> #0:1
03-18 19:06:53.222: I/Videokit(13613):  (copy)
03-18 19:06:53.222: I/Videokit(13613): Press [q] to stop, [?] for help
03-18 19:06:53.232: I/Videokit(13613): frame=0 fps=0.0 q=-1.0 size=
  0kB time=00:00:00.00 bitrate=N/A
03-18 19:06:53.232: V/Videokit(13613): No more output streams to write to,
finishing.
03-18 19:06:53.232: I/Videokit(13613): frame=0 fps=0.0 q=-1.0 Lsize=
1kB time=00:00:00.00 bitrate=N/A
03-18 19:06:53.242: I/Videokit(13613): video:0kB audio:0kB subtitle:0
data:0 global headers:0kB muxing overhead 0.00%
03-18 19:06:53.242: W/Videokit(13613): Output file is empty, nothing was
encoded (check -ss / -t / -frames parameters if used)
03-18 19:06:53.242: D/Videokit(13613): 0 frames successfully decoded, 0
decoding errors
03-18 19:06:53.242: I/Videokit(13613): Main ended with status 0
03-18 19:06:53.251: D/MainActivity(13613): Trimming: success


On Wed, Mar 18, 2015 at 7:03 PM, sathish  wrote:

>
>
>
> ffmpeg -i /sdcard/perfect.mp3 -i /sdcard/output_subtitle.mp4 -acodec
> -vcodec copy /sdcard/newvideo.mp4
>
>
>
> This is the command i am using to mix audio and video file its going to
> crash and
>
>
>
>
>
>
>
>
> 03-18 19:01:30.531: I/Videokit(10092): Loading native library compiled at
> 18:05:04 Mar 16 2015
> 03-18 19:01:30.541: E/ffmpegService(10092): onStart
> 03-18 19:01:30.541: I/ffmpegService(10092): attempt to start ffmpeg service
> 03-18 19:01:30.561: I/Videokit(10092): Option: ffmpeg
> 03-18 19:01:30.561: I/Videokit(10092): Option: -i
> 03-18 19:01:30.561: I/Videokit(10092): Option: /sdcard/perfect.mp3
> 03-18 19:01:30.561: I/Videokit(10092): Option: -i
> 03-18 19:01:30.571: I/Videokit(10092): Option: /sdcard/output_subtitle.mp4
> 03-18 19:01:30.571: I/Videokit(10092): Option: -acodec
> 03-18 19:01:30.571: I/Videokit(10092): Option: -vcodec
> 03-18 19:01:30.571: I/Videokit(10092): Option: copy
> 03-18 19:01:30.571: I/Videokit(10092): Option: /sdcard/newvideo.mp4
> 03-18 19:01:30.571: I/Videokit(10092): Running main
> 03-18 19:01:30.601: D/Videokit(10092): Splitting the commandline.
> 03-18 19:01:30.601: D/Videokit(10092): Reading option '-i' ...
> 03-18 19:01:30.601: D/Videokit(10092):  matched as input file with
> argument '/sdcard/perfect.mp3'.
> 03-18 19:01:30.612: D/Videokit(10092): Reading option '-i' ...
> 03-18 19:01:30.612: D/Videokit(10092):  matched as input file with
> argument '/sdcard/output_subtitle.mp4'.
> 03-18 19:01:30.612: D/Videokit(10092): Reading option '-acodec' ...
> 03-18 19:01:30.621: D/Videokit(10092):  matched as option 'acodec' (force
> audio codec ('copy' to copy stream)) with argument '-vcodec'.
> 03-18 19:01:30.621: D/Videokit(10092): Reading option 'copy' ...
> 03-18 19:01:30.631: D/Videokit(10092):  matched as output file.
> 03-18 19:01:30.631: D/Videokit(10092): Reading option
> '/sdcard/newvideo.mp4' ...
> 03-18 19:01:30.631: D/Videokit(10092):  matched as output file.
> 03-18 19:01:30.641: D/Videokit(10092): Finished splitting the commandline.
> 03-18 19:01:30.641: D/Videokit(10092): Parsing a group of options: global .
> 03-18 19:01:30.641: D/Videokit(10092): Successfully parsed a group of
> options.
> 03-18 19:01:30.651: D/Videokit(10092): Parsing a group of options: input
> file /sdcard/perfect.mp3.
> 03-18 19:01:30.651: D/Videokit(10092): Successfully parsed a group of
> options.
> 03-18 19:01:30.661: D/Videokit(10092): Opening an input file:
> /sdcard/perfect.mp3.
> 03-18 19:01:31.182: D/Videokit(10092): Successfully opened the file.
> 03-18 19:01:31.182: D/Videokit(10092): Parsing a group of options: input
> file /sdcard/output_subtitle.mp4.
> 03-18 19:01:31.182: D/Videokit(10092): Successfully parsed a group of
> options.
> 03-18 19:01:31.182: D/Videokit(10092): Opening an input file:
> /sdcard/output_subtitle.mp4.
> 03-18 19:01:31.501: D/Videokit(10092): Successfully opened the file.
> 03-18 19:01:31.501: D/Videokit(10092): Parsing a group of options: output
> file copy.
> 03-18 19:01:31.501: D/Videokit(10092): Applying option acodec (force audio
> codec ('copy' to copy stream)) with argument -vcodec.
> 03-18 19:01:31.501: D/Videokit(10092): Successfully parsed a group of
> options.
> 03-18 19:01:31.501: D/Videokit(10092): Opening an output file: copy.
> 03-18 19:01:31.511: E/Videokit(10092): copy: Invalid argument
> 03-18 19:01:31.511: A/libc(10092): Fatal signal 11 (SIGSEGV) at 0x0008
> (code=1), thread 10105 (AsyncTask #1)
> 03-18 19:01:37.821: E/Trace(10169): error opening trace file: No such file
> or directory (2)
>
>
> On Wed, 

Re: [FFmpeg-user] Hi

2015-03-18 Thread sathish
ffmpeg -i /sdcard/perfect.mp3 -i /sdcard/output_subtitle.mp4 -acodec
-vcodec copy /sdcard/newvideo.mp4



This is the command i am using to mix audio and video file its going to
crash and








03-18 19:01:30.531: I/Videokit(10092): Loading native library compiled at
18:05:04 Mar 16 2015
03-18 19:01:30.541: E/ffmpegService(10092): onStart
03-18 19:01:30.541: I/ffmpegService(10092): attempt to start ffmpeg service
03-18 19:01:30.561: I/Videokit(10092): Option: ffmpeg
03-18 19:01:30.561: I/Videokit(10092): Option: -i
03-18 19:01:30.561: I/Videokit(10092): Option: /sdcard/perfect.mp3
03-18 19:01:30.561: I/Videokit(10092): Option: -i
03-18 19:01:30.571: I/Videokit(10092): Option: /sdcard/output_subtitle.mp4
03-18 19:01:30.571: I/Videokit(10092): Option: -acodec
03-18 19:01:30.571: I/Videokit(10092): Option: -vcodec
03-18 19:01:30.571: I/Videokit(10092): Option: copy
03-18 19:01:30.571: I/Videokit(10092): Option: /sdcard/newvideo.mp4
03-18 19:01:30.571: I/Videokit(10092): Running main
03-18 19:01:30.601: D/Videokit(10092): Splitting the commandline.
03-18 19:01:30.601: D/Videokit(10092): Reading option '-i' ...
03-18 19:01:30.601: D/Videokit(10092):  matched as input file with argument
'/sdcard/perfect.mp3'.
03-18 19:01:30.612: D/Videokit(10092): Reading option '-i' ...
03-18 19:01:30.612: D/Videokit(10092):  matched as input file with argument
'/sdcard/output_subtitle.mp4'.
03-18 19:01:30.612: D/Videokit(10092): Reading option '-acodec' ...
03-18 19:01:30.621: D/Videokit(10092):  matched as option 'acodec' (force
audio codec ('copy' to copy stream)) with argument '-vcodec'.
03-18 19:01:30.621: D/Videokit(10092): Reading option 'copy' ...
03-18 19:01:30.631: D/Videokit(10092):  matched as output file.
03-18 19:01:30.631: D/Videokit(10092): Reading option
'/sdcard/newvideo.mp4' ...
03-18 19:01:30.631: D/Videokit(10092):  matched as output file.
03-18 19:01:30.641: D/Videokit(10092): Finished splitting the commandline.
03-18 19:01:30.641: D/Videokit(10092): Parsing a group of options: global .
03-18 19:01:30.641: D/Videokit(10092): Successfully parsed a group of
options.
03-18 19:01:30.651: D/Videokit(10092): Parsing a group of options: input
file /sdcard/perfect.mp3.
03-18 19:01:30.651: D/Videokit(10092): Successfully parsed a group of
options.
03-18 19:01:30.661: D/Videokit(10092): Opening an input file:
/sdcard/perfect.mp3.
03-18 19:01:31.182: D/Videokit(10092): Successfully opened the file.
03-18 19:01:31.182: D/Videokit(10092): Parsing a group of options: input
file /sdcard/output_subtitle.mp4.
03-18 19:01:31.182: D/Videokit(10092): Successfully parsed a group of
options.
03-18 19:01:31.182: D/Videokit(10092): Opening an input file:
/sdcard/output_subtitle.mp4.
03-18 19:01:31.501: D/Videokit(10092): Successfully opened the file.
03-18 19:01:31.501: D/Videokit(10092): Parsing a group of options: output
file copy.
03-18 19:01:31.501: D/Videokit(10092): Applying option acodec (force audio
codec ('copy' to copy stream)) with argument -vcodec.
03-18 19:01:31.501: D/Videokit(10092): Successfully parsed a group of
options.
03-18 19:01:31.501: D/Videokit(10092): Opening an output file: copy.
03-18 19:01:31.511: E/Videokit(10092): copy: Invalid argument
03-18 19:01:31.511: A/libc(10092): Fatal signal 11 (SIGSEGV) at 0x0008
(code=1), thread 10105 (AsyncTask #1)
03-18 19:01:37.821: E/Trace(10169): error opening trace file: No such file
or directory (2)


On Wed, Mar 18, 2015 at 6:52 PM, Moritz Barsnick  wrote:

> Hi sathish,
>
> On Wed, Mar 18, 2015 at 18:44:26 +0530, sathish wrote:
> > Hear audio file is .mp3
> > and video file .mp4
> >
> > can u tell me the reason
> > why its not mixing..
>
> No, because you're not telling us what went wrong. We can't do mind
> reading either.
>
> Could you be more precise what you mean by "mixing"?
>
> Please show us the command line you used, and the complete, uncut
> console output.
>
> Thanks,
> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] Hi

2015-03-18 Thread Moritz Barsnick
Hi sathish,

On Wed, Mar 18, 2015 at 18:44:26 +0530, sathish wrote:
> Hear audio file is .mp3
> and video file .mp4
> 
> can u tell me the reason
> why its not mixing..

No, because you're not telling us what went wrong. We can't do mind
reading either.

Could you be more precise what you mean by "mixing"?

Please show us the command line you used, and the complete, uncut
console output.

Thanks,
Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] Hi

2015-03-18 Thread sathish
Myself sathish i am unable to mix audio and video file .

Hear audio file is .mp3
and video file .mp4

can u tell me the reason
why its not mixing..
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


Re: [FFmpeg-user] RTMP Input error (UDP output)

2015-03-18 Thread Moritz Barsnick
Hi Matt,

On Wed, Mar 18, 2015 at 12:37:48 -, Matt Conway wrote:
> I am trying to use an RTMP source from the internet and broadcast it to my
> local network over UDP.
[...]

Have you tried following this hint? Taken from your output log:

> [avi @ 02e8e8c0] H.264 bitstream malformed, no startcode found, use 
> the video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v 
> h264_mp4toannexb' option with ffmpeg)

Moritz
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user


[FFmpeg-user] RTMP Input error (UDP output)

2015-03-18 Thread Matt Conway
I am trying to use an RTMP source from the internet and broadcast it to my
local network over UDP.

In the console output below I am using avi as my file format which produces
the error. 

If I use flv, there is no error and output SEEMS to be ok but I cannot
receive the output through pwomxplayer on a Raspberry Pi.

 

Any help is greatly appreciated!

 

 

 

 

 

Microsoft Windows [Version 6.3.9600]

(c) 2013 Microsoft Corporation. All rights reserved.

 

C:\Users\admin>ffmpeg -i
rtmp://1.20006911.fme.ustream.tv/ustreamVideo/20006911/

9gjxU2DxvaUJDQZ9Yc6eGweKwV6Y2E7a -an -c:v copy -f avi udp://239.0.1.23:1234

ffmpeg version N-69920-g8bc8001 Copyright (c) 2000-2015 the FFmpeg
developers

  built with gcc 4.9.2 (GCC)

  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av

isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
--enab

le-iconv --enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --

enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc
--enable-lib

modplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrw

b --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinge

r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame
--en

able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis

--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264
--enable-

libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink
--enab

le-zlib

  libavutil  54. 18.100 / 54. 18.100

  libavcodec 56. 22.100 / 56. 22.100

  libavformat56. 22.100 / 56. 22.100

  libavdevice56.  4.100 / 56.  4.100

  libavfilter 5. 11.100 /  5. 11.100

  libswscale  3.  1.101 /  3.  1.101

  libswresample   1.  1.100 /  1.  1.100

  libpostproc53.  3.100 / 53.  3.100

Input #0, flv, from
'rtmp://1.20006911.fme.ustream.tv/ustreamVideo/20006911/9gjx

U2DxvaUJDQZ9Yc6eGweKwV6Y2E7a':

  Duration: N/A, start: 0.00, bitrate: N/A

Stream #0:0: Video: h264 (Baseline), yuvj420p(pc, bt709), 800x450 [SAR
1:1 D

AR 16:9], 30 fps, 30 tbr, 1k tbn, 2k tbc

Output #0, avi, to 'udp://239.0.1.23:1234':

  Metadata:

ISFT: Lavf56.22.100

Stream #0:0: Video: h264 (H264 / 0x34363248), yuvj420p, 800x450 [SAR 1:1
DAR

16:9], q=2-31, 30 fps, 30 tbr, 60 tbn, 60 tbc

Stream mapping:

  Stream #0:0 -> #0:0 (copy)

Press [q] to stop, [?] for help

[avi @ 02e8e8c0] H.264 bitstream malformed, no startcode found, use
the

video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v
h264_mp4toannexb' o

ption with ffmpeg)

av_interleaved_write_frame(): Invalid data found when processing input

frame=1 fps=0.0 q=-1.0 Lsize=   1kB time=00:00:00.01 bitrate=
669.1kbits

/s

video:16kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
muxing ov

erhead: unknown

Conversion failed!

 

C:\Users\admin>

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


[FFmpeg-user] How to set 3 specific metadata flags (ITU601/displayoffset) in FFmpegs IMX50 MXF-OP1a encoding?

2015-03-18 Thread Christoph Gerstbauer

Hello

I am testing with ffmpeg the IMX50 D10 encoding, and I am very close to 
my target but I have to create 3 metadata values in the MXF header which 
is standard in most IMX50 MXF ecndodings:


+ SIGNAL STANDARD = 1 (ITU 601)
+ display y offset = 32  - I am encoding 720x608 sources with included 
VBI area (32 lines high at the top) -> the offset 32 defines the active 
picture -> 720x576

+ Color siting = 4 (Rec 601)

Is it possible to encoded with ffmpeg in a way that these values can be 
written?

If yes, which syntax should I add to my used syntax?
If no, could the option be implemented in future?

My used ffmpeg syntax is:
ffmpeg -i  -map 0:v -map 0:a  -c:v mpeg2video -r 25 -pix_fmt 
yuv422p -aspect 4:3 -minrate 5k -maxrate 5k -b:v 5k -intra 
-flags +ildct+ilme+low_delay -intra_vlc 1 -non_linear_quant 1 -ps 1 
-qmin 1 -qmax 3 -top 1 -dc 10 -bufsize 200 -rc_init_occupancy 
200 -rc_buf_aggressivity 0.25 -tag:v mx5p -c:a pcm_s24le -ar 48000 
-f mxf_d10 


I check the MXF metadata with BMX mxf2raw.exe (BBC)
I use 2 examples:
1.) a ffmpeg encoded MXF and
2.) a MXF from the Carbon Coder (Rhozet).

The carbon Coder playout shows me the wanted values:

C:\Users\gersti>mxf2raw -i I:\IMX_tests\IMX50_CARBON.mxf
MXF File Information:
  Filename   : I:\IMX_tests\IMX50_CARBON.mxf
  MXF version: 1.2
  OP label   : OP-1A (internal essence, stream file, 
multi-track)

  Wrapping type  : Frame
  Material package name  :
  Material start timecode: 00:00:00:00 (@ 25fps)
  File src start timecode: 00:00:00:00 (@ 25fps)
  Edit rate  : 25/1
  Precharge  : 0
  Duration   : 500
  Rollout: 0
  Identifications:
Identification 0:
  Generation UID: 10e5dae5.54663246.8c411484.8c2015e4
  Company name  : Rhozet
  Product name  : Carbon
  Product version   : (not set)
  Version string: 1.1
  Product UID   : 842d0e07.eb104da4.b6d1c16b.bfdf797b
  Modification date : 2015-02-03 13:39:02.000
  Toolkit version   : (not set)
  Platform  : (not set)
Track 0:
  Essence kind : Picture
  Essence type : D10 50Mbps
  Essence label: 060e2b34.04010101.0d010301.02010101
  Material package uid : 
060a2b34.01010105.01010d20.1300.d403bb57.8f86e749.9a0e3118.abce6ab9

  Material track id: 2
  Material track number: 0
  File package uid : 
060a2b34.01010105.01010d20.1300.09464eb5.53deb944.9566c38d.b95db9fd

  File track id: 2
  File track number: 0x05010100
  Edit rate: 25/1
  Duration : 500
  Lead filler offset   : 0
  Picture coding label : 060e2b34.04010101.04010202.01020101
  Signal standard  : 1 (ITU 601)
  Frame layout : 1 (Separate Fields)
  Stored dimensions: 720x608
  Display dimensions   : 720x576
  Display x offset : 0
  Display y offset : 32
  Aspect ratio : 4/3
  AFD  : (not set)
  Component depth  : 8
  Horiz subsampling: 2
  Vert subsampling : 1
  Color siting : 4 (Rec 601)


The FFMPEG MXF looks like this (the 3 values are not set correctly):

C:\Users\gersti>mxf2raw -i I:\IMX_tests\IMX50_FFMPEG.mxf
MXF File Information:
  Filename   : I:\IMX_tests\IMX50_FFMPEG.mxf
  MXF version: 1.2
  OP label   : OP-1A (internal essence, stream file, 
multi-track)

  Wrapping type  : Frame
  Material package name  :
  Material start timecode: 10:00:00:00 (@ 25fps)
  File src start timecode: 10:00:00:00 (@ 25fps)
  Edit rate  : 25/1
  Precharge  : 0
  Duration   : 750
  Rollout: 0
  Identifications:
Identification 0:
  Generation UID: adab4424.2f254dc7.92ff29bd.000b0001
  Company name  : FFmpeg
  Product name  : OP1a Muxer
  Product version   : (not set)
  Version string: 55.48.101
  Product UID   : adab4424.2f254dc7.92ff29bd.000b0002
  Modification date : 0-00-00 00:00:00.000
  Toolkit version   : (not set)
  Platform  : (not set)
Track 0:
  Essence kind : Picture
  Essence type : picture essence
  Essence label: 060e2b34.04010102.0d010301.02046001
  Material package uid : 
060a2b34.01010105.01010d00.1387b014.52947134.7187b014.00529471.34718700

  Material track id: 2
  Material track number: 0
  File package uid : 
060a2b34.01010105.01010d00.1387b014.52947134.7187b014.00529471.34718701

  File track id: 2
  File track number: 0x15010500
  Edit rate: 25/1
  Duration : 750
  Lead filler offset   : 0
  Picture coding label : 060e2b34.04010103.04010202.01020200
  Signal standard  : 0 (None)
  Frame layout : 1 (Separate Fields)
  Stored dimensions: 720x608
  Display dimensions   

Re: [FFmpeg-user] example to use VDA hw decoder on mac with ffmpeg?

2015-03-18 Thread Carl Eugen Hoyos
Shi Yan  gmail.com> writes:

> done.
> 
> ./VDADecoderChecker
> 
> Hardware acceleration is fully supported

Thank you.

Please test FFmpeg 1.2.12 and report back.

Do not top-post here!

Carl Eugen

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