Media tool with support for multiple codecs, filters, and containers. Include the full, uncut console output if you have problems with an FFmpeg command.
0
votes
0answers
16 views
How to pipe regex with ffmpeg and perl?
So I am trying to get the current frame of the conversion with this bash command:
ffmpeg -i fd.mp4 fd.avi < /dev/null 2>&1 | perl -015 -e 'print <STDIN>=~/frame=(\ {3})(\d+)/' | sed ...
0
votes
0answers
63 views
Extracting one frame per minute with ffmpeg, and skip a few seconds
I'd like to extract one frame per minute from a video, starting from a specified offset. For example, say the offset is 00:01 (mm:ss), then I'd like to extract 00:01, 01:01, 02:01, and so on.
The ...
0
votes
1answer
45 views
Extracting frames with ffmpeg and including subtitles
I am attempting to extract a single frame from a video, with subtitles, using ffmpeg.
I built ffmpeg myself:
sircmpwn@picard ~/sources/bakabt-staging/hennkeo/groups $ ffmpeg
ffmpeg version ...
1
vote
1answer
36 views
Modify ffmpeg batch file to replace extension instead of appending new one
I'm trying to convert a bunch of .flv's in a folder to .mp3's with FFMPEG in Windows XP.
This batch file works fine for me.
for %%A IN (*.flv) DO ffmpeg -i "%%A" -ar 44100 -ab 128000 -ac 2 ...
-5
votes
0answers
37 views
Command line based softwares [closed]
What are some of the most extinsively used Shell/Command-Line based software, that are still used a lot today.
Few examples would be FFMPEG and VIM.
Can anyone list out a few others?
1
vote
0answers
26 views
Wrong audio duration with ffmpeg
I tried to convert a m4a file to mp3 with ffmpeg, with the following simplest command:
ffmpeg -i in.m4a out.mp3
After conversion, the duration seems weird. The original m4a was 4:06. But for the ...
1
vote
1answer
19 views
How can I use FFmpeg to record a live stream to multiple files simulataneously?
I have FFMPEG reading a live stream and writing to an MP4 file. I would like to modify the FFMPEG command to write to 3 MP4 files simultaneously. This means that instead of generating one file, FFMPEG ...
0
votes
0answers
17 views
How do I get ffmpeg to generate useful (and not empty) thumbnails from AVI files?
I'm using Cumulus Clips to upload some videos from work to other work people.
When I use the following thumbnail command with a WMV file, all is good.
/usr/bin/ffmpeg -i ...
0
votes
0answers
22 views
Using jpegtran with ffmpeg via piping?
I use ffmpeg to generate a ton of jpeg images. However, these jpegs aren't optimized by ffmpeg. On average, the images losslessly compress another 10-20% when I run them through jpegtran.
I don't ...
0
votes
1answer
21 views
Concat two mp4 files with ffmpeg without losing quality
i have now a problem with concatenating of 2 videos using ffmpeg.
So, i am encoding the source mp4 files to ts with
ffmpeg -i output1.mp4 -scodec copy -vbsf h264_mp4toannexb i0.ts
but the file ...
1
vote
1answer
23 views
How do I determine if ffmpeg can handle file?
I have an application that splits video with ffmpeg.
In order to avoid errors, I would like to know if file selected by user is video or not.
Is there any ffmpeg command that would inform me whether ...
0
votes
0answers
19 views
How to use ffmpeg to concat mpeg4-aac mp4s?
I know that you can concat h264-aac mp4s using the following command:
ffmpeg -i INPUT.mp4 -codec copy -bsf:v h264_mp4toannexb OUTPUT.ts
(as per ...
0
votes
0answers
11 views
converting MPTS to SPTS
I have a live multi-program MPEG-TS stream [MPTS] over IP, I'd like to select just one program from the stream, and output a single-program MPEG-TS stream containing just that program.
is there any ...
0
votes
0answers
18 views
Converting image format to jpeg using ffmpeg
Before I ask I want to say that I know about ImageMagick and the other image processing tools but I explicitly need to use ffmpeg.
So, can someone tell me if there's a way to use ffmpeg to convert an ...
2
votes
1answer
26 views
Splitting video in multiple episodes with ffmpeg
I need to cut one video into multiple pieces with ffmpeg.
When I cut just one episode
ffmpeg -i 001.mp4 -vcodec copy -acodec copy -ss 00:00:00.000 -t 00:00:25.500 -strict -2 out1.mp4
or
ffmpeg -i ...
0
votes
0answers
16 views
Preserve text readability while encoding game screencasts
I have a bunch of (almost lossless) 3d game screencasts which now occupy considerable amount of my hdd space. I would like to reduce their size. Overall image quality isn't of great concern, except ...
1
vote
2answers
69 views
FFmpeg: image intro
I would like to add an image intro to a video for about 5 seconds but the time could be variable.
I made a 5 seconds during intro.mkv with the following command:
ffmpeg -loop 1 -f image2 -i png.png ...
0
votes
1answer
18 views
FFMPEG converting media type aswell as relocating MOOV atom
I have found this line online
ffmpeg -i input.mp4 -c:a copy -c:v copy -movflags faststart output.mp4
Which takes an input, and copies the audio, video and sets the MOOV atom to the beginning in an ...
2
votes
1answer
78 views
FFmpeg watermark
ffmpeg –i test.mkv -vf "movie=watermark.png [watermark]; [in][watermark] overlay=10:10 [out]" outputvideo.mkv
I'm trying to simply add a watermark to a video to start testing with ffmpeg. But it ...
0
votes
0answers
57 views
How to output to both mp4 and mpegts
Using h264 and aac, I've been trying to generate an mp4 and mpegts output in one command using the new tee muxer.
Either it complains about a lack of the aac_adtstoasc bsf, or if global_header is set ...
1
vote
0answers
48 views
+50
FFMPEG - Non-monotonous DTS
When I use FFMPEG to convert a video from MP4 to M3U8, using the following command,
ffmpeg -i op.mp4 -b:v 128k -flags -global_header -map 0:0 -map 0:1 -f segment -segment_time 4 -segment_list_size 0 ...
0
votes
1answer
52 views
Encoding video using Vp8 encoding scheme
Hi I want to encode raw(yuv) video to m4v using ffmpeg command in Vp8 encoding scheme, i try to use this command:
./ffmpeg -s 1280x720 -i raw.yuv -vcodec libvpx 1.m4v
but the error was :
Input ...
0
votes
2answers
48 views
How to batch insert same clip scene at the beginning of multiple videos?
Well, it has been a few days researching on a suitable auto or semi-automatic way of mass merging files this way. Basically, what I want to achieve is inserting the same clip, before a bunch of other ...
0
votes
1answer
49 views
Specify MPEG-4 as encoding parameter in FFmpeg
I want to ask about mpeg4 codec parameters. I use it to encode video in Evalvid environment as follows:
./ffmpeg -s cif -r 30 -b 64000 -bt 3200 -g 30 -i raw.yuv -vcodec mpeg4 vid.m4v
The video will ...
1
vote
1answer
40 views
How can I use FFmpeg to add a ticker/varying text to live video?
I am able to add text to a video on my hard disk, before I braodcast it...by
using the command.
ffmpeg -y -i IMG_0696.MOV -acodec libmp3lame -vcodec msmpeg4 \
-b:a 192k -b:v 1000k -ar 44100 \
-vf ...
3
votes
2answers
63 views
FFMPEG extract intra-frames I,P,B frames
Is there a way to extract the intra-frames and preserve them as-is from FFMPEG or similar program? I know you can extract frames to a sequence of JPEG images using -f image2. But those are full images ...
0
votes
0answers
21 views
How can I limit ffmpeg log output to specific values?
How can I limit log output to specific values? I want the output of:
ffmpeg.exe -i input.mp4 -f mp3 -acodec mp3 -vn output.mp3
To contain only:
size= 161kB time=00:00:10.29 bitrate= 128.3kbits/s
...
-2
votes
0answers
87 views
Encoding and decoding in ffmpeg
I need to convert a rtp stream to a mp4 file. After reading the ffmpeg tool documentation and the encoder guideline Itried this:
ffmpeg -re -i sample.mp4 -c:v libx264 -c:a libfdk_aac -f rtp ...
-3
votes
1answer
36 views
How to using ffmpeg to insert logo to the live video stream
I have one question: How to using ffmpeg to insert logo to one udp streaming of live video?
-1
votes
0answers
34 views
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument [duplicate]
I am trying to run this command copy pasting it from somewhere
ffmpeg -re -i "sample.mp4" -vcodec libx264 -vb 150000 -g 60 -vprofile baseline -level 2.1 -acodec aac -ab 64000 -ar 48000 -ac 2 -vbsf ...
0
votes
1answer
44 views
Getting error: Unknown encoder 'libvo_aacenc'
I am new to ffmpeg, just trying to build an SDP file for streaming. I'm facing an error when I run the command
ffmpeg -re -i "sample.mp4" -f rtp rtp://127.0.0.1:10000 -flags +global_header -c:a ...
1
vote
1answer
34 views
Optimum parameters for audio slicing using FFMpeg
I am planning to use Perl to extract audio from media files through FFMpeg. Now as far as I know, FFMpeg needs lot of parameters like bit-rate, etc which it used to extract the audio. So for one ...
1
vote
1answer
36 views
ffmpeg thumbnails with exact size main aspect ratio
Hi need to get one thumbnail with resolution 560x420.
I'm using this command:
ffmpeg -i "file.mp4" -vf "scale=560:-1,pad=max(iw\,ih):420:(ow-iw)/2:(oh-ih)/2" \
-frames:v 1 best.png
This command ...
2
votes
1answer
27 views
ffmpeg: isolate one audio channel
How can I use ffmpeg to isolate one channel from an audio file? I have a stereo audio file, and I need the output to be the contents of the right channel in a mono audio file.
While I'm sure it's ...
0
votes
2answers
52 views
ffmpeg with 720p video and y4m file
I was simulating a lot of videos in cif format, also all videos came with yuv format file.
I used the expression below and it works well:
ffmpeg -s cif -r 30 -i video.yuv -vcodec mpeg4 -g 12 -bf 2 ...
1
vote
1answer
27 views
Producing stable video from slow images with FFmpeg
I'm struggling to achieve stable ffmpeg outputs that work across players and platforms for a video produced from a series of images that need to roll at about 1 fps.
ffmpeg -f image2 -r 1 -i %02d.png ...
1
vote
0answers
23 views
Video output options of the CLI players?
Just thought I'd jot this down while I have the problem: On a computer that apparently has a problem with having X11 use graphics acceleration, I experience (understandably) problems playing video ...
0
votes
1answer
19 views
can ffmpeg streaming jumpt to certain position?
I am working with ffmpeg.
I can get a thumbnail from rtsp via command like below.
ffmpeg -itsoffset -4 -f rtsp -rtsp_transport tcp -i rtsp://fostv.com:554/test/smarttv_sample.ts.pac -vframes 1 -s ...
2
votes
1answer
66 views
Pipe VLC output to ffplay?
I have a (broken) PC, where VLC plays videos on only the left half the screen, which seems related to OpenGL/drivers (see here). On the other hand, ffplay doesn't have the half-window problem, but can ...
1
vote
0answers
25 views
How to encode a video with timestamps in order to have audio/video sync
DISCLAIMER: I am unfortunately very new to codecs and using FFMPEG, so I apologize for any incorrect terminology or if this is in actuality a very easily resolved question.
I have a sequence of jpeg ...
1
vote
1answer
53 views
Problems with frame rate on video conversion using ffmpeg with libx264
I have problems with transcoding some videos. I ran the most simple ffmpeg command and it takes very long time and the output file is about 10 times bigger. If I provide the frame rate parameter -r it ...
0
votes
0answers
59 views
Convert stream file (mux) to mp4 gstreamer
I used a program to capture my screen (called Kazam for linux). My computer crashed and I lost my screen capture which I cannot recreate.
I found two files that seem to hold my video, a .mux and ...
0
votes
1answer
35 views
ffmpeg video with watermark and subtitle at same time
Hi I want to add watermark png image to video with hardcode substitle .srt file at same time what changes i should do the to following line
ffmpeg -i input.mkv -threads 0 -c:v libx264 -crf 28 -preset ...
0
votes
1answer
39 views
ffmpeg stopped when set “-i” option with rtsp URL
I am using ffmpeg on Ubuntu 12.4 to get thumbnails from RTSP URL.
I confirmed with vlc that this URL is fine,
Video file played nicely.
The problem is ffmpeg.
I command like
ffmpeg -itsoffset ...
0
votes
1answer
78 views
Why some videos play only in a particular media player?
Our client sent us a couple of videos files for audio transcription work. They said that we should use Player Microsoft application 4.8.0.0 to properly run the two files [right clicking these files, ...
0
votes
1answer
42 views
Converting with ffmpeg a .mov to uncompressed .avi results in a black screen in virtualdub
I am trying to convert a .mov to an uncompressed .avi with ffmpeg. As I want no quality loss, I am using the following ffmpeg command:
ffmpeg -i toto.mov -vcodec copy -y toto.avi
The convertion ...
0
votes
0answers
39 views
how can I extract from video using ffmpeg with timestamps information
I am using ffmpeg to extract frame and save it into jpg files as follow.
ffmpeg -i video.avi -r 1 -f image2 -q 1 %05d.jpg
However, how can I get the timestamps information of each extracted frame.
...
1
vote
1answer
52 views
Make short timelapse movie from long boring movie?
I have an .mp4 file to turn into a timelapse movie.
How can I encode every n frames from the source movie into a new movie file, preferably using ffmpeg? Solutions that extract a bunch of stills ...
3
votes
0answers
60 views
How to convert 1080p to 1080i video using ffmpeg
I am using ffmpeg, trying to convert 1080p to 1080i. I know that -vf tinterlace should do that, but I don't know the exact syntax of use. Currently I'm trying this:
ffmpeg -i <input file.mp4> ...
1
vote
1answer
80 views
Can ImageMagick make thumbnails from video?
I'm trying to extract thumbnails from video via ImageMagick. I found some samples from their official site, but it makes GIF, not PNG. I want a solid thumbnail though.
Can it create the same output ...


