[FFmpeg-user] FFPLAY

Def Etienne shaker.doc at gmail.com
Tue Sep 19 21:05:42 EEST 2023



Sent from my iPhone

> On 19 Sep 2023, at 09:08, faut_voir <fautvoirplusclair at gmail.com> wrote:
> 
> Hello,
> 
> 
> _I've spent a lot of time to look for an answer about my 2 questions whithout success_ :
> 
> 
> *# QUESTION 1*
> 
> I would like to play a movie's file on my computer, but select and play directly by the command line, the audio and subtitle files.
> 
> 
> Actualy, I'm using, the command  ==>
> 
> /ffplay -autoexit -hide_banner -vf "crop=in_w:in_h-270" /mnt/8b01_III_15465_blablabla/the_folder/movie_file_to_see.mkv/
> 
> 
> With an example, what should I have to add to the command for select and play directly, french language and subtitle, when I get these informations with the following command line :
> 
> /   ffprobe -i "/mnt/8b017371-7a05/videos_part_III/The_Wolverine/The_Wolverine.mkv" 2>&1 | grep -E "Seems|Input|Duration:|Stream"/
> 
> /Input #0, matroska,webm, from '/mnt/8b017-7aa05/videos_part_III/The_Wolverine/The_Wolverine.mkv'://
> //  Duration: 02:06:08.56, start: 0.000000, bitrate: 35834 kb/s//
> //    Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc//
> //    Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)//
> //*Stream #0:2(fra): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 768 kb/s*//
> //    Stream #0:3(spa): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 768 kb/s//
> //    Stream #0:4(deu): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 768 kb/s//
> //    Stream #0:5(zho): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s//
> //    Stream #0:6(tur): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s//
> //    Stream #0:7(eng): Subtitle: hdmv_pgs_subtitle//
> //    Stream #0:8(eng): Subtitle: hdmv_pgs_subtitle//
> //    Stream #0:9(eng): Subtitle: hdmv_pgs_subtitle//
> //*Stream #0:10(fra): Subtitle: hdmv_pgs_subtitle*//
> //    Stream #0:11(fra): Subtitle: hdmv_pgs_subtitle//
> //    Stream #0:12(spa): Subtitle: hdmv_pgs_subtitle//
> //    Stream #0:13(spa): Subtitle: hdmv_pgs_subtitle//
> //    Stream #0:14(dan): Subtitle: hdmv_pgs_subtitle//
> //    Stream #0:15(nld): Subtitle: hdmv_pgs_subtitle//
> //    Stream #0:16(fin): Subtitle: hdmv_pgs_subtitle//
> //    Stream #0:17(deu): Subtitle: hdmv_pgs_subtitle//
> //    Stream #0:18(deu): Subtitle: hdmv_pgs_subtitle//
> //    Stream #0:19(nor): Subtitle: hdmv_pgs_subtitle//
> //    Stream #0:20(swe): Subtitle: hdmv_pgs_subtitle//
> //    Stream #0:21(zho): Subtitle: hdmv_pgs_subtitle//
> //    Stream #0:22(zho): Subtitle: hdmv_pgs_subtitle//
> //    Stream #0:23(tur): Subtitle: hdmv_pgs_subtitle//
> //    Stream #0:24(tur): Subtitle: hdmv_pgs_subtitle/
> 
> 
> _/MORE DETAILS ABOUT FRENCH AUDIO & SUBTITLE FILES
> /_
> 
> /AUDIO/
> 
> /Metadata://
> //      title           : Surround 5.1//
> //      BPS-eng         : 1509000//
> //      DURATION-eng    : 02:06:08.565333333//
> //      NUMBER_OF_FRAMES-eng: 709553//
> //      NUMBER_OF_BYTES-eng: 1427620636//
> //      SOURCE_ID-eng   : 001100//
> //      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)//
> //      _STATISTICS_WRITING_DATE_UTC-eng: 2017-11-24 19:59:24//
> //      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID//
> //    Stream #0:2(fra): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 768 kb/s/
> 
> /SUBTITLE//
> /
> 
> /Metadata://
> //      BPS-eng         : 1267//
> //      DURATION-eng    : 01:32:46.581854166//
> //      NUMBER_OF_FRAMES-eng: 201//
> //      NUMBER_OF_BYTES-eng: 881680//
> //      SOURCE_ID-eng   : 001201//
> //      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 win(x64-release)//
> //      _STATISTICS_WRITING_DATE_UTC-eng: 2017-11-24 19:59:24//
> //      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID//
> //    Stream #0:10(fra): Subtitle: hdmv_pgs_subtitle/
> 
> 
> 
> *# QUESTION 2*
> 
> _In one folder, call "music"_, I have more than 1.000 folders. Each contains the songs of one CDs in .wav audio format, I ripped.
> 
> For on file only, I've found this command line wich works well, BUT ONLY SONGS INSIDE ONE FILE ONLY !!!  ==>
> 
> /for f in *.wav .flac .ogg ; do ffplay -nodisp -autoexit -hide_banner "$f"; done/
> 
> Could you please tell//me what is the command line to play musics files which are inside the folder "music" and the option to add if I want to listen randomly ?
> 
> 
> When I'll get your answer, may I share it on the ubuntu and debian french websites for ffmpeg documentations ?
> 
> Thanks so much for you help and have a good day.
> 
> King regards.
> 
> 
> Faut Voir
> 

UNIX has a philosophy. 

And ffplay might not be the recommend tool for your tasks. 

Try the mpv player to use the command line. 

Greetings.  


More information about the ffmpeg-user mailing list