Skip to main content

All Questions

Tagged with
0 votes
0 answers
146 views

How to extract subtitle from usm file

I would like to extract subtitle.txt from usm file, I tried use ffmpeg but it show unspuported file. Hexedit show that file has txt extension. Ffmpeg support demux cri usm file, but I cant figure out ...
Marcin Nancin's user avatar
1 vote
0 answers
160 views

Can FFMPEG extract still images from video based on video "SMPTE timecode" hh:mm:ss:ff?

Is there any way to extract still images from video based on video "own SMPTE" timecode? (hour:minute:second:frame) as seen in the "Timecode Handler" recognized by ffmpeg. I would ...
Barcud's user avatar
  • 11
1 vote
1 answer
8k views

How can I extract a subtitle in "HDMV PGS" format from a video with FFmpeg?

I'm trying to extract a subtitle in "HDMV PGS" format embedded in a video with this command ffmpeg -i Movie.mkv -map 0:s:0 subs.srt from an answer on Super User command, but it gives the ...
Idhtft's user avatar
  • 11
3 votes
1 answer
3k views

Extracting DVB_subtitles with ffmpeg fails with empty file / nothing encoded

These are the streams contained: Stream #0:0[0x247]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #...
udippel's user avatar
  • 31
1 vote
2 answers
135 views

Extracting audio from mp4 has less bitrate

I'm using ffmpeg -i input.mp4 -c:a copy -vn -sn output.m4a to extract audio from an mp4 file. However, when I open the mp4 in Spek, it shows 255kbps AAC and the extracted file is only 200kbps. Also, ...
Ookami's user avatar
  • 11
2 votes
1 answer
431 views

FFMPEG How to extract a variable number of audio streams?

I'm trying to make a small batch file that extracts all audio streams when dragging a video onto it. ffmpeg.exe -i "%1" -map 0:a? -c:a copy "%1~extracted.aac" But this seems to be overwriting the ...
tugalaw's user avatar
  • 33
7 votes
3 answers
6k views

ffmpeg extract pictures from several selected time points

I have a videofile and like to extract a single image from (about 1500) specific timepoints.(expl. -ss 00:50, ss 00:67, ss: 01:70 ...) Is there a way to do this? I tried out to use this command: ...
Jakob Winter's user avatar
2 votes
1 answer
106 views

FFMPEG Same Commands?

Is there any difference between these two commands for extracting audio from a video? ffmpeg -i input.mp4 -c copy -map 0:a output.wav ffmpeg -i input.mp4 -vn -acodec copy output.wav
AwesomeMarioFan's user avatar
8 votes
2 answers
21k views

How to extract lossless image from video with FFmpeg?

I have a 5s fps25 mp4 video and I use the following command to extract jpg images from the video ffmpeg -i input.mp4 -r 1 -q:v 1 output_%01d.jpg The images are extracted successfully, but jpg files ...
Chito Cheng's user avatar
2 votes
1 answer
14k views

Force ffmpeg to use 100% of CPU

I'm using ffmpeg to extract frames from video, but the process is so slow. Looking at CPU usage I see that ffmpeg use only 50% of my CPU. I've tried also to add -threads 4, but it seems it doesn't ...
Hyperion's user avatar
  • 579
6 votes
3 answers
7k views

FFMPEG: extract audio with exact frame length of video

For a digital cinema package I need to extract the audio track (.wav, 48000 kHz, 16-bit) from QuickTime movies (in this case with Prores or Photo-JPEG codec). The catch is that the duration of the ...
schmiddl's user avatar
  • 131
0 votes
2 answers
1k views

Getting value from file using Windows Batch scripting

Using Windows Batch scripting, I want to get the max_volume value (-2.9 in the following example) from a ffmpeg output written to a log file: [Parsed_volumedetect_0 @ 0000000005428b20] n_samples: ...
Mapg's user avatar
  • 3
5 votes
2 answers
7k views

Extract video frames display time and frame number

I would like to extract each frame and its display time. The purpose will be to later compare the output between two videos (reference/original video and the transmitted video) and see what frames are ...
user1991772's user avatar
1 vote
1 answer
443 views

How do I extract parts of a video with a specific aspect ratio with ffmpeg or mencoder?

I've got some recordings from TV. The movies are all in 4:3 but the advertisement is in 16:9. My input format is a mpeg 2 transport stream. I would like to convert my movies to mp4 with h264 video and ...
MinecraftBhil's user avatar
91 votes
7 answers
183k views

How to extract subtitle from video using ffmpeg?

I am trying to extract subtitle from video as .srt file, I used the following command: ffmpeg -i mytestmovie.mkv -vn -an -codec:s:0.1 srt sub.srt But, I got an error as Unrecognized option codec:s:0:...
vijay's user avatar
  • 921

15 30 50 per page